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

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

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.37    ! millert     3: # Generated by GNU Autoconf 2.61 for sudo 1.7.
1.1       millert     4: #
1.27      millert     5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                      6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       millert     7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
1.16      millert     9: ## --------------------- ##
                     10: ## M4sh Initialization.  ##
                     11: ## --------------------- ##
1.1       millert    12:
1.27      millert    13: # Be more Bourne compatible
                     14: DUALCASE=1; export DUALCASE # for MKS sh
1.16      millert    15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     16:   emulate sh
                     17:   NULLCMD=:
                     18:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     19:   # is contrary to our usage.  Disable this feature.
                     20:   alias -g '${1+"$@"}'='"$@"'
1.27      millert    21:   setopt NO_GLOB_SUBST
                     22: else
                     23:   case `(set -o) 2>/dev/null` in
                     24:   *posix*) set -o posix ;;
                     25: esac
                     26:
                     27: fi
                     28:
                     29:
                     30:
                     31:
                     32: # PATH needs CR
                     33: # Avoid depending upon Character Ranges.
                     34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     37: as_cr_digits='0123456789'
                     38: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     39:
                     40: # The user is always right.
                     41: if test "${PATH_SEPARATOR+set}" != set; then
                     42:   echo "#! /bin/sh" >conf$$.sh
                     43:   echo  "exit 0"   >>conf$$.sh
                     44:   chmod +x conf$$.sh
                     45:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     46:     PATH_SEPARATOR=';'
                     47:   else
                     48:     PATH_SEPARATOR=:
                     49:   fi
                     50:   rm -f conf$$.sh
1.16      millert    51: fi
                     52:
                     53: # Support unset when possible.
1.25      millert    54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16      millert    55:   as_unset=unset
                     56: else
                     57:   as_unset=false
                     58: fi
                     59:
                     60:
1.27      millert    61: # IFS
                     62: # We need space, tab and new line, in precisely that order.  Quoting is
                     63: # there to prevent editors from complaining about space-tab.
                     64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     65: # splitting by setting IFS to empty value.)
                     66: as_nl='
                     67: '
                     68: IFS=" ""       $as_nl"
                     69:
                     70: # Find who we are.  Look in the path if we contain no directory separator.
                     71: case $0 in
                     72:   *[\\/]* ) as_myself=$0 ;;
                     73:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     74: for as_dir in $PATH
                     75: do
                     76:   IFS=$as_save_IFS
                     77:   test -z "$as_dir" && as_dir=.
                     78:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     79: done
                     80: IFS=$as_save_IFS
                     81:
                     82:      ;;
                     83: esac
                     84: # We did not find ourselves, most probably we were run as `sh COMMAND'
                     85: # in which case we are not to be found in the path.
                     86: if test "x$as_myself" = x; then
                     87:   as_myself=$0
                     88: fi
                     89: if test ! -f "$as_myself"; then
                     90:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                     91:   { (exit 1); exit 1; }
                     92: fi
                     93:
1.16      millert    94: # Work around bugs in pre-3.0 UWIN ksh.
1.27      millert    95: for as_var in ENV MAIL MAILPATH
                     96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                     97: done
1.16      millert    98: PS1='$ '
                     99: PS2='> '
                    100: PS4='+ '
                    101:
                    102: # NLS nuisances.
                    103: for as_var in \
                    104:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                    105:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                    106:   LC_TELEPHONE LC_TIME
                    107: do
1.25      millert   108:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16      millert   109:     eval $as_var=C; export $as_var
                    110:   else
1.27      millert   111:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.16      millert   112:   fi
                    113: done
                    114:
                    115: # Required to use basename.
1.27      millert   116: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    117:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.16      millert   118:   as_expr=expr
                    119: else
                    120:   as_expr=false
                    121: fi
                    122:
1.27      millert   123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.16      millert   124:   as_basename=basename
                    125: else
                    126:   as_basename=false
                    127: fi
                    128:
                    129:
                    130: # Name of the executable.
1.27      millert   131: as_me=`$as_basename -- "$0" ||
1.16      millert   132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    133:         X"$0" : 'X\(//\)$' \| \
1.27      millert   134:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert   135: echo X/"$0" |
1.27      millert   136:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    137:            s//\1/
                    138:            q
                    139:          }
                    140:          /^X\/\(\/\/\)$/{
                    141:            s//\1/
                    142:            q
                    143:          }
                    144:          /^X\/\(\/\).*/{
                    145:            s//\1/
                    146:            q
                    147:          }
                    148:          s/.*/./; q'`
                    149:
                    150: # CDPATH.
                    151: $as_unset CDPATH
                    152:
1.16      millert   153:
1.27      millert   154: if test "x$CONFIG_SHELL" = x; then
                    155:   if (eval ":") 2>/dev/null; then
                    156:   as_have_required=yes
                    157: else
                    158:   as_have_required=no
                    159: fi
                    160:
                    161:   if test $as_have_required = yes &&    (eval ":
                    162: (as_func_return () {
                    163:   (exit \$1)
                    164: }
                    165: as_func_success () {
                    166:   as_func_return 0
                    167: }
                    168: as_func_failure () {
                    169:   as_func_return 1
                    170: }
                    171: as_func_ret_success () {
                    172:   return 0
                    173: }
                    174: as_func_ret_failure () {
                    175:   return 1
                    176: }
1.16      millert   177:
1.27      millert   178: exitcode=0
                    179: if as_func_success; then
                    180:   :
                    181: else
                    182:   exitcode=1
                    183:   echo as_func_success failed.
                    184: fi
                    185:
                    186: if as_func_failure; then
                    187:   exitcode=1
                    188:   echo as_func_failure succeeded.
                    189: fi
                    190:
                    191: if as_func_ret_success; then
                    192:   :
                    193: else
                    194:   exitcode=1
                    195:   echo as_func_ret_success failed.
                    196: fi
1.9       millert   197:
1.27      millert   198: if as_func_ret_failure; then
                    199:   exitcode=1
                    200:   echo as_func_ret_failure succeeded.
1.16      millert   201: fi
                    202:
1.27      millert   203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    204:   :
                    205: else
                    206:   exitcode=1
                    207:   echo positional parameters were not saved.
                    208: fi
1.16      millert   209:
1.27      millert   210: test \$exitcode = 0) || { (exit 1); exit 1; }
1.16      millert   211:
1.27      millert   212: (
                    213:   as_lineno_1=\$LINENO
                    214:   as_lineno_2=\$LINENO
                    215:   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
                    216:   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
                    217: ") 2> /dev/null; then
                    218:   :
                    219: else
                    220:   as_candidate_shells=
1.16      millert   221:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    223: do
                    224:   IFS=$as_save_IFS
                    225:   test -z "$as_dir" && as_dir=.
1.27      millert   226:   case $as_dir in
1.16      millert   227:         /*)
1.27      millert   228:           for as_base in sh bash ksh sh5; do
                    229:             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
                    230:           done;;
                    231:        esac
                    232: done
                    233: IFS=$as_save_IFS
                    234:
                    235:
                    236:       for as_shell in $as_candidate_shells $SHELL; do
                    237:         # Try only shells that exist, to save several forks.
                    238:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    239:                { ("$as_shell") 2> /dev/null <<\_ASEOF
                    240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    241:   emulate sh
                    242:   NULLCMD=:
                    243:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    244:   # is contrary to our usage.  Disable this feature.
                    245:   alias -g '${1+"$@"}'='"$@"'
                    246:   setopt NO_GLOB_SUBST
                    247: else
                    248:   case `(set -o) 2>/dev/null` in
                    249:   *posix*) set -o posix ;;
                    250: esac
                    251:
                    252: fi
                    253:
                    254:
                    255: :
                    256: _ASEOF
                    257: }; then
                    258:   CONFIG_SHELL=$as_shell
                    259:               as_have_required=yes
                    260:               if { "$as_shell" 2> /dev/null <<\_ASEOF
                    261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    262:   emulate sh
                    263:   NULLCMD=:
                    264:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    265:   # is contrary to our usage.  Disable this feature.
                    266:   alias -g '${1+"$@"}'='"$@"'
                    267:   setopt NO_GLOB_SUBST
                    268: else
                    269:   case `(set -o) 2>/dev/null` in
                    270:   *posix*) set -o posix ;;
                    271: esac
                    272:
                    273: fi
                    274:
                    275:
                    276: :
                    277: (as_func_return () {
                    278:   (exit $1)
                    279: }
                    280: as_func_success () {
                    281:   as_func_return 0
                    282: }
                    283: as_func_failure () {
                    284:   as_func_return 1
                    285: }
                    286: as_func_ret_success () {
                    287:   return 0
                    288: }
                    289: as_func_ret_failure () {
                    290:   return 1
                    291: }
                    292:
                    293: exitcode=0
                    294: if as_func_success; then
                    295:   :
                    296: else
                    297:   exitcode=1
                    298:   echo as_func_success failed.
                    299: fi
                    300:
                    301: if as_func_failure; then
                    302:   exitcode=1
                    303:   echo as_func_failure succeeded.
                    304: fi
                    305:
                    306: if as_func_ret_success; then
                    307:   :
                    308: else
                    309:   exitcode=1
                    310:   echo as_func_ret_success failed.
                    311: fi
                    312:
                    313: if as_func_ret_failure; then
                    314:   exitcode=1
                    315:   echo as_func_ret_failure succeeded.
                    316: fi
                    317:
                    318: if ( set x; as_func_ret_success y && test x = "$1" ); then
                    319:   :
                    320: else
                    321:   exitcode=1
                    322:   echo positional parameters were not saved.
                    323: fi
                    324:
                    325: test $exitcode = 0) || { (exit 1); exit 1; }
                    326:
                    327: (
                    328:   as_lineno_1=$LINENO
                    329:   as_lineno_2=$LINENO
                    330:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    331:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
                    332:
                    333: _ASEOF
                    334: }; then
                    335:   break
                    336: fi
                    337:
                    338: fi
                    339:
                    340:       done
                    341:
                    342:       if test "x$CONFIG_SHELL" != x; then
                    343:   for as_var in BASH_ENV ENV
                    344:         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                    345:         done
                    346:         export CONFIG_SHELL
                    347:         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    348: fi
                    349:
                    350:
                    351:     if test $as_have_required = no; then
                    352:   echo This script requires a shell more modern than all the
                    353:       echo shells that I found on your system.  Please install a
                    354:       echo modern shell, or manually run the script under such a
                    355:       echo shell if you do have one.
                    356:       { (exit 1); exit 1; }
                    357: fi
                    358:
                    359:
                    360: fi
                    361:
                    362: fi
                    363:
                    364:
                    365:
                    366: (eval "as_func_return () {
                    367:   (exit \$1)
                    368: }
                    369: as_func_success () {
                    370:   as_func_return 0
                    371: }
                    372: as_func_failure () {
                    373:   as_func_return 1
                    374: }
                    375: as_func_ret_success () {
                    376:   return 0
                    377: }
                    378: as_func_ret_failure () {
                    379:   return 1
                    380: }
                    381:
                    382: exitcode=0
                    383: if as_func_success; then
                    384:   :
                    385: else
                    386:   exitcode=1
                    387:   echo as_func_success failed.
                    388: fi
                    389:
                    390: if as_func_failure; then
                    391:   exitcode=1
                    392:   echo as_func_failure succeeded.
                    393: fi
                    394:
                    395: if as_func_ret_success; then
                    396:   :
                    397: else
                    398:   exitcode=1
                    399:   echo as_func_ret_success failed.
                    400: fi
                    401:
                    402: if as_func_ret_failure; then
                    403:   exitcode=1
                    404:   echo as_func_ret_failure succeeded.
                    405: fi
                    406:
                    407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    408:   :
                    409: else
                    410:   exitcode=1
                    411:   echo positional parameters were not saved.
                    412: fi
                    413:
                    414: test \$exitcode = 0") || {
                    415:   echo No shell found that supports shell functions.
                    416:   echo Please tell autoconf@gnu.org about your system,
                    417:   echo including any error possibly output before this
                    418:   echo message
                    419: }
                    420:
                    421:
                    422:
1.16      millert   423:   as_lineno_1=$LINENO
                    424:   as_lineno_2=$LINENO
                    425:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.27      millert   426:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.9       millert   427:
1.16      millert   428:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    429:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.27      millert   430:   # line-number line after each line using $LINENO; the second 'sed'
                    431:   # does the real work.  The second script uses 'N' to pair each
                    432:   # line-number line with the line containing $LINENO, and appends
                    433:   # trailing '-' during substitution so that $LINENO is not a special
                    434:   # case at line end.
1.16      millert   435:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.27      millert   436:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                    437:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                    438:   sed -n '
                    439:     p
                    440:     /[$]LINENO/=
                    441:   ' <$as_myself |
1.16      millert   442:     sed '
1.27      millert   443:       s/[$]LINENO.*/&-/
                    444:       t lineno
                    445:       b
                    446:       :lineno
1.16      millert   447:       N
1.27      millert   448:       :loop
                    449:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.16      millert   450:       t loop
1.27      millert   451:       s/-\n.*//
1.16      millert   452:     ' >$as_me.lineno &&
1.27      millert   453:   chmod +x "$as_me.lineno" ||
1.16      millert   454:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    455:    { (exit 1); exit 1; }; }
                    456:
                    457:   # Don't try to exec as it changes $[0], causing all sort of problems
                    458:   # (the dirname of $[0] is not the place where we might find the
1.27      millert   459:   # original and so on.  Autoconf is especially sensitive to this).
                    460:   . "./$as_me.lineno"
1.16      millert   461:   # Exit status is that of the last command.
                    462:   exit
                    463: }
1.9       millert   464:
                    465:
1.27      millert   466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    467:   as_dirname=dirname
                    468: else
                    469:   as_dirname=false
                    470: fi
                    471:
                    472: ECHO_C= ECHO_N= ECHO_T=
                    473: case `echo -n x` in
                    474: -n*)
                    475:   case `echo 'x\c'` in
                    476:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    477:   *)   ECHO_C='\c';;
                    478:   esac;;
                    479: *)
                    480:   ECHO_N='-n';;
1.16      millert   481: esac
1.9       millert   482:
1.27      millert   483: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    484:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.9       millert   485:   as_expr=expr
                    486: else
                    487:   as_expr=false
                    488: fi
                    489:
                    490: rm -f conf$$ conf$$.exe conf$$.file
1.27      millert   491: if test -d conf$$.dir; then
                    492:   rm -f conf$$.dir/conf$$.file
                    493: else
                    494:   rm -f conf$$.dir
                    495:   mkdir conf$$.dir
                    496: fi
1.9       millert   497: echo >conf$$.file
                    498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.27      millert   499:   as_ln_s='ln -s'
                    500:   # ... but there are two gotchas:
                    501:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    502:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    503:   # In both cases, we have to default to `cp -p'.
                    504:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.9       millert   505:     as_ln_s='cp -p'
                    506: elif ln conf$$.file conf$$ 2>/dev/null; then
                    507:   as_ln_s=ln
                    508: else
                    509:   as_ln_s='cp -p'
                    510: fi
1.27      millert   511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    512: rmdir conf$$.dir 2>/dev/null
1.9       millert   513:
1.16      millert   514: if mkdir -p . 2>/dev/null; then
                    515:   as_mkdir_p=:
                    516: else
1.25      millert   517:   test -d ./-p && rmdir ./-p
1.16      millert   518:   as_mkdir_p=false
                    519: fi
                    520:
1.27      millert   521: if test -x / >/dev/null 2>&1; then
                    522:   as_test_x='test -x'
                    523: else
                    524:   if ls -dL / >/dev/null 2>&1; then
                    525:     as_ls_L_option=L
                    526:   else
                    527:     as_ls_L_option=
                    528:   fi
                    529:   as_test_x='
                    530:     eval sh -c '\''
                    531:       if test -d "$1"; then
                    532:         test -d "$1/.";
                    533:       else
                    534:        case $1 in
                    535:         -*)set "./$1";;
                    536:        esac;
                    537:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                    538:        ???[sx]*):;;*)false;;esac;fi
                    539:     '\'' sh
                    540:   '
                    541: fi
                    542: as_executable_p=$as_test_x
1.9       millert   543:
1.16      millert   544: # Sed expression to map a string onto a valid CPP name.
1.25      millert   545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert   546:
                    547: # Sed expression to map a string onto a valid variable name.
1.25      millert   548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9       millert   549:
                    550:
                    551:
1.23      millert   552:
                    553: # Check that we are running under the correct shell.
                    554: SHELL=${CONFIG_SHELL-/bin/sh}
                    555:
1.27      millert   556: case X$ECHO in
1.23      millert   557: X*--fallback-echo)
                    558:   # Remove one level of quotation (which was required for Make).
1.27      millert   559:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23      millert   560:   ;;
                    561: esac
                    562:
1.27      millert   563: echo=${ECHO-echo}
1.23      millert   564: if test "X$1" = X--no-reexec; then
                    565:   # Discard the --no-reexec flag, and continue.
                    566:   shift
                    567: elif test "X$1" = X--fallback-echo; then
                    568:   # Avoid inline document here, it may be left over
                    569:   :
1.27      millert   570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
                    571:   # Yippee, $echo works!
1.23      millert   572:   :
                    573: else
                    574:   # Restart under the correct shell.
                    575:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    576: fi
                    577:
                    578: if test "X$1" = X--fallback-echo; then
                    579:   # used as fallback echo
                    580:   shift
1.27      millert   581:   cat <<EOF
1.23      millert   582: $*
1.27      millert   583: EOF
1.23      millert   584:   exit 0
                    585: fi
                    586:
                    587: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    588: # if CDPATH is set.
1.25      millert   589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert   590:
1.27      millert   591: if test -z "$ECHO"; then
                    592: if test "X${echo_test_string+set}" != Xset; then
                    593: # find a string as large as possible, as long as the shell can cope with it
                    594:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    595:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    596:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
                    597:        echo_test_string=`eval $cmd` &&
                    598:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    599:     then
                    600:       break
                    601:     fi
                    602:   done
                    603: fi
1.23      millert   604:
1.27      millert   605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    606:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    607:    test "X$echo_testing_string" = "X$echo_test_string"; then
                    608:   :
                    609: else
                    610:   # The Solaris, AIX, and Digital Unix default echo programs unquote
                    611:   # backslashes.  This makes it impossible to quote backslashes using
                    612:   #   echo "$something" | sed 's/\\/\\\\/g'
                    613:   #
                    614:   # So, first we look for a working echo in the user's PATH.
1.23      millert   615:
1.27      millert   616:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    617:   for dir in $PATH /usr/ucb; do
1.23      millert   618:     IFS="$lt_save_ifs"
1.27      millert   619:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    620:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    621:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    622:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    623:       echo="$dir/echo"
                    624:       break
                    625:     fi
                    626:   done
                    627:   IFS="$lt_save_ifs"
1.23      millert   628:
1.27      millert   629:   if test "X$echo" = Xecho; then
                    630:     # We didn't find a better echo, so look for alternatives.
                    631:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    632:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    633:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    634:       # This shell has a builtin print -r that does the trick.
                    635:       echo='print -r'
                    636:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    637:         test "X$CONFIG_SHELL" != X/bin/ksh; then
                    638:       # If we have ksh, try running configure again with it.
                    639:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    640:       export ORIGINAL_CONFIG_SHELL
                    641:       CONFIG_SHELL=/bin/ksh
                    642:       export CONFIG_SHELL
                    643:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    644:     else
                    645:       # Try using printf.
                    646:       echo='printf %s\n'
                    647:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    648:         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    649:         test "X$echo_testing_string" = "X$echo_test_string"; then
                    650:        # Cool, printf works
                    651:        :
                    652:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    653:           test "X$echo_testing_string" = 'X\t' &&
                    654:           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    655:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    656:        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    657:        export CONFIG_SHELL
                    658:        SHELL="$CONFIG_SHELL"
                    659:        export SHELL
                    660:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    661:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    662:           test "X$echo_testing_string" = 'X\t' &&
                    663:           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    664:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    665:        echo="$CONFIG_SHELL $0 --fallback-echo"
1.25      millert   666:       else
1.27      millert   667:        # maybe with a smaller string...
                    668:        prev=:
                    669:
                    670:        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    671:          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    672:          then
                    673:            break
                    674:          fi
                    675:          prev="$cmd"
                    676:        done
1.25      millert   677:
1.27      millert   678:        if test "$prev" != 'sed 50q "$0"'; then
                    679:          echo_test_string=`eval $prev`
                    680:          export echo_test_string
                    681:          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    682:        else
                    683:          # Oops.  We lost completely, so just stick with echo.
                    684:          echo=echo
                    685:        fi
1.23      millert   686:       fi
                    687:     fi
                    688:   fi
                    689: fi
1.27      millert   690: fi
1.23      millert   691:
                    692: # Copy echo and quote the copy suitably for passing to libtool from
                    693: # the Makefile, instead of quoting the original, which is used later.
1.27      millert   694: ECHO=$echo
                    695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    696:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23      millert   697: fi
                    698:
                    699:
                    700:
                    701:
1.27      millert   702: exec 7<&0 </dev/null 6>&1
                    703:
1.9       millert   704: # Name of the host.
                    705: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    706: # so uname gets run too.
                    707: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    708:
                    709: #
                    710: # Initializations.
                    711: #
1.1       millert   712: ac_default_prefix=/usr/local
1.27      millert   713: ac_clean_files=
1.16      millert   714: ac_config_libobj_dir=.
1.27      millert   715: LIBOBJS=
1.9       millert   716: cross_compiling=no
                    717: subdirs=
1.16      millert   718: MFLAGS=
                    719: MAKEFLAGS=
1.9       millert   720: SHELL=${CONFIG_SHELL-/bin/sh}
                    721:
1.16      millert   722: # Identity of this package.
                    723: PACKAGE_NAME='sudo'
                    724: PACKAGE_TARNAME='sudo'
1.37    ! millert   725: PACKAGE_VERSION='1.7'
        !           726: PACKAGE_STRING='sudo 1.7'
1.16      millert   727: PACKAGE_BUGREPORT=''
                    728:
1.9       millert   729: # Factoring default headers for most tests.
                    730: ac_includes_default="\
                    731: #include <stdio.h>
1.27      millert   732: #ifdef HAVE_SYS_TYPES_H
1.9       millert   733: # include <sys/types.h>
                    734: #endif
1.27      millert   735: #ifdef HAVE_SYS_STAT_H
1.9       millert   736: # include <sys/stat.h>
                    737: #endif
1.27      millert   738: #ifdef STDC_HEADERS
1.9       millert   739: # include <stdlib.h>
                    740: # include <stddef.h>
                    741: #else
1.27      millert   742: # ifdef HAVE_STDLIB_H
1.9       millert   743: #  include <stdlib.h>
                    744: # endif
                    745: #endif
1.27      millert   746: #ifdef HAVE_STRING_H
                    747: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.9       millert   748: #  include <memory.h>
                    749: # endif
                    750: # include <string.h>
                    751: #endif
1.27      millert   752: #ifdef HAVE_STRINGS_H
1.9       millert   753: # include <strings.h>
                    754: #endif
1.27      millert   755: #ifdef HAVE_INTTYPES_H
1.9       millert   756: # include <inttypes.h>
                    757: #endif
1.27      millert   758: #ifdef HAVE_STDINT_H
                    759: # include <stdint.h>
                    760: #endif
                    761: #ifdef HAVE_UNISTD_H
1.9       millert   762: # include <unistd.h>
                    763: #endif"
1.1       millert   764:
1.27      millert   765: ac_subst_vars='SHELL
                    766: PATH_SEPARATOR
                    767: PACKAGE_NAME
                    768: PACKAGE_TARNAME
                    769: PACKAGE_VERSION
                    770: PACKAGE_STRING
                    771: PACKAGE_BUGREPORT
                    772: exec_prefix
                    773: prefix
                    774: program_transform_name
                    775: bindir
                    776: sbindir
                    777: libexecdir
                    778: datarootdir
                    779: datadir
                    780: sysconfdir
                    781: sharedstatedir
                    782: localstatedir
                    783: includedir
                    784: oldincludedir
                    785: docdir
                    786: infodir
                    787: htmldir
                    788: dvidir
                    789: pdfdir
                    790: psdir
                    791: libdir
                    792: localedir
                    793: mandir
                    794: DEFS
                    795: ECHO_C
                    796: ECHO_N
                    797: ECHO_T
                    798: LIBS
                    799: build_alias
                    800: host_alias
                    801: target_alias
                    802: LIBTOOL
                    803: CFLAGS
                    804: PROGS
                    805: CPPFLAGS
                    806: LDFLAGS
                    807: SUDO_LDFLAGS
                    808: SUDO_OBJS
                    809: SUDO_LIBS
                    810: NET_LIBS
                    811: AFS_LIBS
1.32      millert   812: GETGROUPS_LIB
1.27      millert   813: OSDEFS
                    814: AUTH_OBJS
                    815: MANTYPE
                    816: MAN_POSTINSTALL
                    817: SUDOERS_MODE
                    818: SUDOERS_UID
                    819: SUDOERS_GID
                    820: DEV
1.36      millert   821: SELINUX
                    822: BAMAN
                    823: LCMAN
                    824: SEMAN
1.37    ! millert   825: devdir
1.27      millert   826: mansectsu
                    827: mansectform
                    828: mansrcdir
1.36      millert   829: NOEXECFILE
1.27      millert   830: NOEXECDIR
                    831: noexec_file
                    832: INSTALL_NOEXEC
                    833: DONT_LEAK_PATH_INFO
1.37    ! millert   834: BSDAUTH_USAGE
        !           835: SELINUX_USAGE
        !           836: LDAP
        !           837: LOGINCAP_USAGE
1.27      millert   838: timedir
                    839: timeout
                    840: password_timeout
                    841: sudo_umask
                    842: passprompt
                    843: long_otp_prompt
                    844: lecture
                    845: logfac
                    846: goodpri
                    847: badpri
                    848: loglen
                    849: ignore_dot
                    850: mail_no_user
                    851: mail_no_host
                    852: mail_no_perms
                    853: mailto
                    854: mailsub
                    855: badpass_message
                    856: fqdn
                    857: runas_default
                    858: env_editor
                    859: passwd_tries
                    860: tty_tickets
                    861: insults
                    862: root_sudo
                    863: path_info
1.37    ! millert   864: ldap_conf
        !           865: ldap_secret
        !           866: nsswitch_conf
1.27      millert   867: EGREPPROG
                    868: CC
                    869: ac_ct_CC
                    870: EXEEXT
                    871: OBJEXT
                    872: CPP
                    873: build
                    874: build_cpu
                    875: build_vendor
                    876: build_os
                    877: host
                    878: host_cpu
                    879: host_vendor
                    880: host_os
                    881: target
                    882: target_cpu
                    883: target_vendor
                    884: target_os
                    885: SED
                    886: GREP
                    887: EGREP
                    888: LN_S
                    889: ECHO
                    890: AR
                    891: RANLIB
                    892: STRIP
1.36      millert   893: DSYMUTIL
                    894: NMEDIT
1.27      millert   895: UNAMEPROG
                    896: TRPROG
                    897: NROFFPROG
                    898: YACC
                    899: YFLAGS
                    900: LIBOBJS
                    901: KRB5CONFIG
                    902: LTLIBOBJS'
1.16      millert   903: ac_subst_files=''
1.27      millert   904:       ac_precious_vars='build_alias
                    905: host_alias
                    906: target_alias
                    907: CC
                    908: CFLAGS
                    909: LDFLAGS
                    910: LIBS
                    911: CPPFLAGS
                    912: CPP
                    913: YACC
                    914: YFLAGS'
                    915:
1.16      millert   916:
1.1       millert   917: # Initialize some variables set by options.
1.9       millert   918: ac_init_help=
                    919: ac_init_version=false
1.1       millert   920: # The variables have the same names as the options, with
                    921: # dashes changed to underlines.
1.9       millert   922: cache_file=/dev/null
1.1       millert   923: exec_prefix=NONE
                    924: no_create=
                    925: no_recursion=
                    926: prefix=NONE
                    927: program_prefix=NONE
                    928: program_suffix=NONE
                    929: program_transform_name=s,x,x,
                    930: silent=
                    931: site=
                    932: srcdir=
                    933: verbose=
                    934: x_includes=NONE
                    935: x_libraries=NONE
1.9       millert   936:
                    937: # Installation directory options.
                    938: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    939: # and all the variables that are supposed to be based on exec_prefix
                    940: # by default will actually change.
                    941: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27      millert   942: # (The list follows the same order as the GNU Coding Standards.)
1.1       millert   943: bindir='${exec_prefix}/bin'
                    944: sbindir='${exec_prefix}/sbin'
                    945: libexecdir='${exec_prefix}/libexec'
1.27      millert   946: datarootdir='${prefix}/share'
                    947: datadir='${datarootdir}'
1.1       millert   948: sysconfdir='${prefix}/etc'
                    949: sharedstatedir='${prefix}/com'
                    950: localstatedir='${prefix}/var'
                    951: includedir='${prefix}/include'
                    952: oldincludedir='/usr/include'
1.27      millert   953: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    954: infodir='${datarootdir}/info'
                    955: htmldir='${docdir}'
                    956: dvidir='${docdir}'
                    957: pdfdir='${docdir}'
                    958: psdir='${docdir}'
                    959: libdir='${exec_prefix}/lib'
                    960: localedir='${datarootdir}/locale'
                    961: mandir='${datarootdir}/man'
1.1       millert   962:
                    963: ac_prev=
1.27      millert   964: ac_dashdash=
1.1       millert   965: for ac_option
                    966: do
                    967:   # If the previous option needs an argument, assign it.
                    968:   if test -n "$ac_prev"; then
1.27      millert   969:     eval $ac_prev=\$ac_option
1.1       millert   970:     ac_prev=
                    971:     continue
                    972:   fi
                    973:
1.27      millert   974:   case $ac_option in
                    975:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    976:   *)   ac_optarg=yes ;;
                    977:   esac
1.1       millert   978:
                    979:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    980:
1.27      millert   981:   case $ac_dashdash$ac_option in
                    982:   --)
                    983:     ac_dashdash=yes ;;
1.1       millert   984:
                    985:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    986:     ac_prev=bindir ;;
                    987:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   988:     bindir=$ac_optarg ;;
1.1       millert   989:
                    990:   -build | --build | --buil | --bui | --bu)
1.9       millert   991:     ac_prev=build_alias ;;
1.1       millert   992:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   993:     build_alias=$ac_optarg ;;
1.1       millert   994:
                    995:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    996:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    997:     ac_prev=cache_file ;;
                    998:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    999:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert  1000:     cache_file=$ac_optarg ;;
                   1001:
                   1002:   --config-cache | -C)
                   1003:     cache_file=config.cache ;;
1.1       millert  1004:
1.27      millert  1005:   -datadir | --datadir | --datadi | --datad)
1.1       millert  1006:     ac_prev=datadir ;;
1.27      millert  1007:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9       millert  1008:     datadir=$ac_optarg ;;
1.1       millert  1009:
1.27      millert  1010:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1011:   | --dataroo | --dataro | --datar)
                   1012:     ac_prev=datarootdir ;;
                   1013:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1014:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1015:     datarootdir=$ac_optarg ;;
                   1016:
1.1       millert  1017:   -disable-* | --disable-*)
1.9       millert  1018:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert  1019:     # Reject names that are not valid shell variable names.
1.27      millert  1020:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1021:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1022:    { (exit 1); exit 1; }; }
1.27      millert  1023:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1024:     eval enable_$ac_feature=no ;;
                   1025:
                   1026:   -docdir | --docdir | --docdi | --doc | --do)
                   1027:     ac_prev=docdir ;;
                   1028:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1029:     docdir=$ac_optarg ;;
                   1030:
                   1031:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1032:     ac_prev=dvidir ;;
                   1033:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1034:     dvidir=$ac_optarg ;;
1.1       millert  1035:
                   1036:   -enable-* | --enable-*)
1.9       millert  1037:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert  1038:     # Reject names that are not valid shell variable names.
1.27      millert  1039:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1040:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1041:    { (exit 1); exit 1; }; }
1.27      millert  1042:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1043:     eval enable_$ac_feature=\$ac_optarg ;;
1.1       millert  1044:
                   1045:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1046:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1047:   | --exec | --exe | --ex)
                   1048:     ac_prev=exec_prefix ;;
                   1049:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1050:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1051:   | --exec=* | --exe=* | --ex=*)
1.9       millert  1052:     exec_prefix=$ac_optarg ;;
1.1       millert  1053:
                   1054:   -gas | --gas | --ga | --g)
                   1055:     # Obsolete; use --with-gas.
                   1056:     with_gas=yes ;;
                   1057:
1.9       millert  1058:   -help | --help | --hel | --he | -h)
                   1059:     ac_init_help=long ;;
                   1060:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1061:     ac_init_help=recursive ;;
                   1062:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1063:     ac_init_help=short ;;
1.1       millert  1064:
                   1065:   -host | --host | --hos | --ho)
1.9       millert  1066:     ac_prev=host_alias ;;
1.1       millert  1067:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert  1068:     host_alias=$ac_optarg ;;
1.1       millert  1069:
1.27      millert  1070:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1071:     ac_prev=htmldir ;;
                   1072:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1073:   | --ht=*)
                   1074:     htmldir=$ac_optarg ;;
                   1075:
1.1       millert  1076:   -includedir | --includedir | --includedi | --included | --include \
                   1077:   | --includ | --inclu | --incl | --inc)
                   1078:     ac_prev=includedir ;;
                   1079:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1080:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert  1081:     includedir=$ac_optarg ;;
1.1       millert  1082:
                   1083:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1084:     ac_prev=infodir ;;
                   1085:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert  1086:     infodir=$ac_optarg ;;
1.1       millert  1087:
                   1088:   -libdir | --libdir | --libdi | --libd)
                   1089:     ac_prev=libdir ;;
                   1090:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert  1091:     libdir=$ac_optarg ;;
1.1       millert  1092:
                   1093:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1094:   | --libexe | --libex | --libe)
                   1095:     ac_prev=libexecdir ;;
                   1096:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1097:   | --libexe=* | --libex=* | --libe=*)
1.9       millert  1098:     libexecdir=$ac_optarg ;;
1.1       millert  1099:
1.27      millert  1100:   -localedir | --localedir | --localedi | --localed | --locale)
                   1101:     ac_prev=localedir ;;
                   1102:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1103:     localedir=$ac_optarg ;;
                   1104:
1.1       millert  1105:   -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27      millert  1106:   | --localstate | --localstat | --localsta | --localst | --locals)
1.1       millert  1107:     ac_prev=localstatedir ;;
                   1108:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27      millert  1109:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9       millert  1110:     localstatedir=$ac_optarg ;;
1.1       millert  1111:
                   1112:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1113:     ac_prev=mandir ;;
                   1114:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert  1115:     mandir=$ac_optarg ;;
1.1       millert  1116:
                   1117:   -nfp | --nfp | --nf)
                   1118:     # Obsolete; use --without-fp.
                   1119:     with_fp=no ;;
                   1120:
                   1121:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16      millert  1122:   | --no-cr | --no-c | -n)
1.1       millert  1123:     no_create=yes ;;
                   1124:
                   1125:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1126:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1127:     no_recursion=yes ;;
                   1128:
                   1129:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1130:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1131:   | --oldin | --oldi | --old | --ol | --o)
                   1132:     ac_prev=oldincludedir ;;
                   1133:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1134:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1135:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert  1136:     oldincludedir=$ac_optarg ;;
1.1       millert  1137:
                   1138:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1139:     ac_prev=prefix ;;
                   1140:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert  1141:     prefix=$ac_optarg ;;
1.1       millert  1142:
                   1143:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1144:   | --program-pre | --program-pr | --program-p)
                   1145:     ac_prev=program_prefix ;;
                   1146:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1147:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert  1148:     program_prefix=$ac_optarg ;;
1.1       millert  1149:
                   1150:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1151:   | --program-suf | --program-su | --program-s)
                   1152:     ac_prev=program_suffix ;;
                   1153:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1154:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert  1155:     program_suffix=$ac_optarg ;;
1.1       millert  1156:
                   1157:   -program-transform-name | --program-transform-name \
                   1158:   | --program-transform-nam | --program-transform-na \
                   1159:   | --program-transform-n | --program-transform- \
                   1160:   | --program-transform | --program-transfor \
                   1161:   | --program-transfo | --program-transf \
                   1162:   | --program-trans | --program-tran \
                   1163:   | --progr-tra | --program-tr | --program-t)
                   1164:     ac_prev=program_transform_name ;;
                   1165:   -program-transform-name=* | --program-transform-name=* \
                   1166:   | --program-transform-nam=* | --program-transform-na=* \
                   1167:   | --program-transform-n=* | --program-transform-=* \
                   1168:   | --program-transform=* | --program-transfor=* \
                   1169:   | --program-transfo=* | --program-transf=* \
                   1170:   | --program-trans=* | --program-tran=* \
                   1171:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert  1172:     program_transform_name=$ac_optarg ;;
1.1       millert  1173:
1.27      millert  1174:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1175:     ac_prev=pdfdir ;;
                   1176:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1177:     pdfdir=$ac_optarg ;;
                   1178:
                   1179:   -psdir | --psdir | --psdi | --psd | --ps)
                   1180:     ac_prev=psdir ;;
                   1181:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1182:     psdir=$ac_optarg ;;
                   1183:
1.1       millert  1184:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1185:   | -silent | --silent | --silen | --sile | --sil)
                   1186:     silent=yes ;;
                   1187:
                   1188:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1189:     ac_prev=sbindir ;;
                   1190:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1191:   | --sbi=* | --sb=*)
1.9       millert  1192:     sbindir=$ac_optarg ;;
1.1       millert  1193:
                   1194:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1195:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1196:   | --sharedst | --shareds | --shared | --share | --shar \
                   1197:   | --sha | --sh)
                   1198:     ac_prev=sharedstatedir ;;
                   1199:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1200:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1201:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1202:   | --sha=* | --sh=*)
1.9       millert  1203:     sharedstatedir=$ac_optarg ;;
1.1       millert  1204:
                   1205:   -site | --site | --sit)
                   1206:     ac_prev=site ;;
                   1207:   -site=* | --site=* | --sit=*)
1.9       millert  1208:     site=$ac_optarg ;;
1.1       millert  1209:
                   1210:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1211:     ac_prev=srcdir ;;
                   1212:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert  1213:     srcdir=$ac_optarg ;;
1.1       millert  1214:
                   1215:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1216:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1217:     ac_prev=sysconfdir ;;
                   1218:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1219:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert  1220:     sysconfdir=$ac_optarg ;;
1.1       millert  1221:
                   1222:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert  1223:     ac_prev=target_alias ;;
1.1       millert  1224:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert  1225:     target_alias=$ac_optarg ;;
1.1       millert  1226:
                   1227:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1228:     verbose=yes ;;
                   1229:
1.9       millert  1230:   -version | --version | --versio | --versi | --vers | -V)
                   1231:     ac_init_version=: ;;
1.1       millert  1232:
                   1233:   -with-* | --with-*)
1.9       millert  1234:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert  1235:     # Reject names that are not valid shell variable names.
1.27      millert  1236:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1237:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1238:    { (exit 1); exit 1; }; }
1.27      millert  1239:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1240:     eval with_$ac_package=\$ac_optarg ;;
1.1       millert  1241:
                   1242:   -without-* | --without-*)
1.9       millert  1243:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert  1244:     # Reject names that are not valid shell variable names.
1.27      millert  1245:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1246:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1247:    { (exit 1); exit 1; }; }
1.27      millert  1248:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1249:     eval with_$ac_package=no ;;
1.1       millert  1250:
                   1251:   --x)
                   1252:     # Obsolete; use --with-x.
                   1253:     with_x=yes ;;
                   1254:
                   1255:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1256:   | --x-incl | --x-inc | --x-in | --x-i)
                   1257:     ac_prev=x_includes ;;
                   1258:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1259:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert  1260:     x_includes=$ac_optarg ;;
1.1       millert  1261:
                   1262:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1263:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1264:     ac_prev=x_libraries ;;
                   1265:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1266:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert  1267:     x_libraries=$ac_optarg ;;
1.1       millert  1268:
1.9       millert  1269:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                   1270: Try \`$0 --help' for more information." >&2
                   1271:    { (exit 1); exit 1; }; }
1.1       millert  1272:     ;;
                   1273:
1.9       millert  1274:   *=*)
                   1275:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1276:     # Reject names that are not valid shell variable names.
                   1277:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                   1278:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                   1279:    { (exit 1); exit 1; }; }
1.27      millert  1280:     eval $ac_envvar=\$ac_optarg
1.9       millert  1281:     export $ac_envvar ;;
                   1282:
1.1       millert  1283:   *)
1.9       millert  1284:     # FIXME: should be removed in autoconf 3.0.
                   1285:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1286:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1287:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1288:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert  1289:     ;;
                   1290:
                   1291:   esac
                   1292: done
                   1293:
                   1294: if test -n "$ac_prev"; then
1.9       millert  1295:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1296:   { echo "$as_me: error: missing argument to $ac_option" >&2
                   1297:    { (exit 1); exit 1; }; }
1.1       millert  1298: fi
                   1299:
1.27      millert  1300: # Be sure to have absolute directory names.
                   1301: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1302:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1303:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1304:                libdir localedir mandir
1.9       millert  1305: do
1.27      millert  1306:   eval ac_val=\$$ac_var
1.9       millert  1307:   case $ac_val in
1.27      millert  1308:     [\\/$]* | ?:[\\/]* )  continue;;
                   1309:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1       millert  1310:   esac
1.27      millert  1311:   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                   1312:    { (exit 1); exit 1; }; }
1.1       millert  1313: done
                   1314:
1.9       millert  1315: # There might be people who depend on the old broken behavior: `$host'
                   1316: # used to hold the argument of --host etc.
1.16      millert  1317: # FIXME: To remove some day.
1.9       millert  1318: build=$build_alias
                   1319: host=$host_alias
                   1320: target=$target_alias
                   1321:
1.16      millert  1322: # FIXME: To remove some day.
1.9       millert  1323: if test "x$host_alias" != x; then
                   1324:   if test "x$build_alias" = x; then
                   1325:     cross_compiling=maybe
                   1326:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                   1327:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1328:   elif test "x$build_alias" != "x$host_alias"; then
                   1329:     cross_compiling=yes
                   1330:   fi
                   1331: fi
1.1       millert  1332:
1.9       millert  1333: ac_tool_prefix=
                   1334: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert  1335:
1.9       millert  1336: test "$silent" = yes && exec 6>/dev/null
1.1       millert  1337:
1.16      millert  1338:
1.27      millert  1339: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1340: ac_ls_di=`ls -di .` &&
                   1341: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1342:   { echo "$as_me: error: Working directory cannot be determined" >&2
                   1343:    { (exit 1); exit 1; }; }
                   1344: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1345:   { echo "$as_me: error: pwd does not report name of working directory" >&2
                   1346:    { (exit 1); exit 1; }; }
                   1347:
                   1348:
1.1       millert  1349: # Find the source files, if location was not specified.
                   1350: if test -z "$srcdir"; then
                   1351:   ac_srcdir_defaulted=yes
1.27      millert  1352:   # Try the directory containing this script, then the parent directory.
                   1353:   ac_confdir=`$as_dirname -- "$0" ||
1.16      millert  1354: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25      millert  1355:         X"$0" : 'X\(//\)[^/]' \| \
                   1356:         X"$0" : 'X\(//\)$' \| \
1.27      millert  1357:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert  1358: echo X"$0" |
1.27      millert  1359:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1360:            s//\1/
                   1361:            q
                   1362:          }
                   1363:          /^X\(\/\/\)[^/].*/{
                   1364:            s//\1/
                   1365:            q
                   1366:          }
                   1367:          /^X\(\/\/\)$/{
                   1368:            s//\1/
                   1369:            q
                   1370:          }
                   1371:          /^X\(\/\).*/{
                   1372:            s//\1/
                   1373:            q
                   1374:          }
                   1375:          s/.*/./; q'`
1.1       millert  1376:   srcdir=$ac_confdir
1.27      millert  1377:   if test ! -r "$srcdir/$ac_unique_file"; then
1.1       millert  1378:     srcdir=..
                   1379:   fi
                   1380: else
                   1381:   ac_srcdir_defaulted=no
                   1382: fi
1.27      millert  1383: if test ! -r "$srcdir/$ac_unique_file"; then
                   1384:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1385:   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                   1386:    { (exit 1); exit 1; }; }
                   1387: fi
                   1388: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1389: ac_abs_confdir=`(
                   1390:        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
                   1391:    { (exit 1); exit 1; }; }
                   1392:        pwd)`
                   1393: # When building in place, set srcdir=.
                   1394: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1395:   srcdir=.
                   1396: fi
                   1397: # Remove unnecessary trailing slashes from srcdir.
                   1398: # Double slashes in file names in object file debugging info
                   1399: # mess up M-x gdb in Emacs.
                   1400: case $srcdir in
                   1401: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1402: esac
                   1403: for ac_var in $ac_precious_vars; do
                   1404:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1405:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1406:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1407:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1408: done
1.9       millert  1409:
                   1410: #
                   1411: # Report the --help message.
                   1412: #
                   1413: if test "$ac_init_help" = "long"; then
                   1414:   # Omit some internal or obsolete options to make the list less imposing.
                   1415:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16      millert  1416:   cat <<_ACEOF
1.37    ! millert  1417: \`configure' configures sudo 1.7 to adapt to many kinds of systems.
1.9       millert  1418:
                   1419: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1420:
                   1421: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1422: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1423:
                   1424: Defaults for the options are specified in brackets.
                   1425:
                   1426: Configuration:
                   1427:   -h, --help              display this help and exit
                   1428:       --help=short        display options specific to this package
                   1429:       --help=recursive    display the short help of all the included packages
                   1430:   -V, --version           display version information and exit
                   1431:   -q, --quiet, --silent   do not print \`checking...' messages
                   1432:       --cache-file=FILE   cache test results in FILE [disabled]
                   1433:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1434:   -n, --no-create         do not create output files
                   1435:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1436:
                   1437: Installation directories:
                   1438:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.25      millert  1439:                          [$ac_default_prefix]
1.9       millert  1440:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.25      millert  1441:                          [PREFIX]
1.9       millert  1442:
                   1443: By default, \`make install' will install all the files in
                   1444: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1445: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1446: for instance \`--prefix=\$HOME'.
                   1447:
                   1448: For better control, use the options below.
                   1449:
                   1450: Fine tuning of the installation directories:
                   1451:   --bindir=DIR           user executables [EPREFIX/bin]
                   1452:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                   1453:   --libexecdir=DIR       program executables [EPREFIX/libexec]
1.27      millert  1454:   --sysconfdir=DIR       read-only single-machine data [etc]
1.9       millert  1455:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                   1456:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                   1457:   --libdir=DIR           object code libraries [EPREFIX/lib]
                   1458:   --includedir=DIR       C header files [PREFIX/include]
                   1459:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1.27      millert  1460:   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                   1461:   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                   1462:   --infodir=DIR          info documentation [DATAROOTDIR/info]
                   1463:   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                   1464:   --mandir=DIR           man documentation [DATAROOTDIR/man]
                   1465:   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
                   1466:   --htmldir=DIR          html documentation [DOCDIR]
                   1467:   --dvidir=DIR           dvi documentation [DOCDIR]
                   1468:   --pdfdir=DIR           pdf documentation [DOCDIR]
                   1469:   --psdir=DIR            ps documentation [DOCDIR]
1.16      millert  1470: _ACEOF
1.9       millert  1471:
1.16      millert  1472:   cat <<\_ACEOF
1.9       millert  1473:
                   1474: System types:
                   1475:   --build=BUILD     configure for building on BUILD [guessed]
1.16      millert  1476:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1.23      millert  1477:   --target=TARGET   configure for building compilers for TARGET [HOST]
1.16      millert  1478: _ACEOF
1.9       millert  1479: fi
                   1480:
                   1481: if test -n "$ac_init_help"; then
                   1482:   case $ac_init_help in
1.37    ! millert  1483:      short | recursive ) echo "Configuration of sudo 1.7:";;
1.9       millert  1484:    esac
1.16      millert  1485:   cat <<\_ACEOF
1.9       millert  1486:
                   1487: Optional Features:
                   1488:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1489:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1490:   --disable-authentication
                   1491:                           Do not require authentication by default
1.12      millert  1492:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert  1493:   --disable-setreuid      Don't try to use the setreuid() function
1.25      millert  1494:   --disable-setresuid     Don't try to use the setresuid() function
1.9       millert  1495:   --disable-shadow        Never use shadow passwords
1.12      millert  1496:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert  1497:   --enable-log-host       Log the hostname in the log file
                   1498:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1499:   --enable-shell-sets-home
1.37    ! millert  1500:                           Set $HOME to target user in shell mode
1.9       millert  1501:   --disable-path-info     Print 'command not allowed' not 'command not found'
1.37    ! millert  1502:   --enable-gss-krb5-ccache-name
        !          1503:                           Use GSS-API to set the Kerberos V cred cache name
1.27      millert  1504:   --enable-static[=PKGS]  build static libraries [default=no]
                   1505:   --enable-shared[=PKGS]  build shared libraries [default=yes]
1.23      millert  1506:   --enable-fast-install[=PKGS]
                   1507:                           optimize for fast installation [default=yes]
                   1508:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.27      millert  1509:   --disable-sia           Disable SIA on Digital UNIX
1.30      millert  1510:   --disable-pam-session   Disable PAM session support
1.9       millert  1511:
                   1512: Optional Packages:
                   1513:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1514:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1515:   --with-otp-only         deprecated
                   1516:   --with-alertmail        deprecated
                   1517:   --with-CC               C compiler to use
1.17      millert  1518:   --with-rpath            pass -R flag in addition to -L for lib paths
1.25      millert  1519:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1.9       millert  1520:   --with-incpath          additional places to look for include files
                   1521:   --with-libpath          additional places to look for libraries
                   1522:   --with-libraries        additional libraries to link with
1.15      david    1523:   --with-devel            add development options
1.11      millert  1524:   --with-efence           link with -lefence for malloc() debugging
1.9       millert  1525:   --with-csops            add CSOps standard options
                   1526:   --without-passwd        don't use passwd/shadow file for authentication
1.25      millert  1527:   --with-skey=DIR         enable S/Key support
                   1528:   --with-opie=DIR         enable OPIE support
1.9       millert  1529:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1.17      millert  1530:   --with-SecurID[=DIR]    enable SecurID support
                   1531:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
                   1532:   --with-kerb4[=DIR]      enable Kerberos IV support
                   1533:   --with-kerb5[=DIR]      enable Kerberos V support
1.25      millert  1534:   --with-aixauth          enable AIX general authentication support
1.9       millert  1535:   --with-pam              enable PAM support
                   1536:   --with-AFS              enable AFS support
                   1537:   --with-DCE              enable DCE support
                   1538:   --with-logincap         enable BSD login class support
                   1539:   --with-bsdauth          enable BSD authentication support
1.25      millert  1540:   --with-project          enable Solaris project support
1.9       millert  1541:   --without-lecture       don't print lecture for first-time sudoer
                   1542:   --with-logging          log via syslog, file, or both
                   1543:   --with-logfac           syslog facility to log with (default is "local2")
                   1544:   --with-goodpri          syslog priority for commands (def is "notice")
                   1545:   --with-badpri           syslog priority for failures (def is "alert")
                   1546:   --with-logpath          path to the sudo log file
                   1547:   --with-loglen           maximum length of a log file line (default is 80)
                   1548:   --with-ignore-dot       ignore '.' in the PATH
                   1549:   --without-mail-if-no-user do not send mail if user not in sudoers
                   1550:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1551:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1552:   --with-mailto           who should get sudo mail (default is "root")
                   1553:   --with-mailsubject      subject of sudo mail
                   1554:   --with-passprompt       default password prompt
                   1555:   --with-badpass-message  message the user sees when the password is wrong
                   1556:   --with-fqdn             expect fully qualified hosts in sudoers
                   1557:   --with-timedir          path to the sudo timestamp dir
                   1558:   --with-sendmail=path    set path to sendmail
                   1559:   --without-sendmail      do not send mail at all
                   1560:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1561:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1562:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                   1563:   --with-umask            umask with which the prog should run (default is 022)
                   1564:   --without-umask         Preserves the umask of the user invoking sudo.
                   1565:   --with-runas-default    User to run commands as (default is "root")
                   1566:   --with-exempt=group     no passwd needed for users in this group
                   1567:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1568:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1569:   --with-passwd-tries     number of tries to enter password (default is 3)
                   1570:   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
                   1571:   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
                   1572:   --with-tty-tickets      use a different ticket file for each tty
                   1573:   --with-insults          insult the user for entering an incorrect password
                   1574:   --with-all-insults      include all the sudo insult sets
                   1575:   --with-classic-insults  include the insults from the "classic" sudo
                   1576:   --with-csops-insults    include CSOps insults
                   1577:   --with-hal-insults      include 2001-like insults
                   1578:   --with-goons-insults    include the insults from the "Goon Show"
1.37    ! millert  1579:   --with-nsswitch[=PATH]  path to nsswitch.conf
1.25      millert  1580:   --with-ldap[=DIR]       enable LDAP support
1.23      millert  1581:   --with-ldap-conf-file   path to LDAP configuration file
1.33      millert  1582:   --with-ldap-secret-file path to LDAP secret password file
1.23      millert  1583:   --with-pc-insults       replace politically incorrect insults with less offensive ones
1.20      millert  1584:   --with-secure-path      override the user's path with a built-in one
1.9       millert  1585:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16      millert  1586:   --with-stow             properly handle GNU stow packaging
1.37    ! millert  1587:   --with-askpass=PATH     Fully qualified pathname of askpass helper
1.36      millert  1588:   --with-selinux          enable SELinux support
1.27      millert  1589:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.23      millert  1590:   --with-pic              try to use only PIC/non-PIC objects [default=use
                   1591:                           both]
1.25      millert  1592:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1.9       millert  1593:
                   1594: Some influential environment variables:
                   1595:   CC          C compiler command
                   1596:   CFLAGS      C compiler flags
                   1597:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1598:               nonstandard directory <lib dir>
1.27      millert  1599:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1600:   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                   1601:               you have headers in a nonstandard directory <include dir>
1.9       millert  1602:   CPP         C preprocessor
1.27      millert  1603:   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                   1604:               the first program found out of: `bison -y', `byacc', `yacc'.
                   1605:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   1606:               This script will default YFLAGS to the empty string to avoid a
                   1607:               default value of `-d' given by some make applications.
1.9       millert  1608:
                   1609: Use these variables to override the choices made by `configure' or to help
                   1610: it to find libraries and programs with nonstandard names/locations.
                   1611:
1.16      millert  1612: _ACEOF
1.27      millert  1613: ac_status=$?
1.9       millert  1614: fi
                   1615:
                   1616: if test "$ac_init_help" = "recursive"; then
                   1617:   # If there are subdirs, report their specific --help.
1.16      millert  1618:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27      millert  1619:     test -d "$ac_dir" || continue
1.16      millert  1620:     ac_builddir=.
                   1621:
1.27      millert  1622: case "$ac_dir" in
                   1623: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1624: *)
1.16      millert  1625:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27      millert  1626:   # A ".." for each directory in $ac_dir_suffix.
                   1627:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   1628:   case $ac_top_builddir_sub in
                   1629:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1630:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1631:   esac ;;
                   1632: esac
                   1633: ac_abs_top_builddir=$ac_pwd
                   1634: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1635: # for backward compatibility:
                   1636: ac_top_builddir=$ac_top_build_prefix
1.16      millert  1637:
                   1638: case $srcdir in
1.27      millert  1639:   .)  # We are building in place.
1.16      millert  1640:     ac_srcdir=.
1.27      millert  1641:     ac_top_srcdir=$ac_top_builddir_sub
                   1642:     ac_abs_top_srcdir=$ac_pwd ;;
                   1643:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.16      millert  1644:     ac_srcdir=$srcdir$ac_dir_suffix;
1.27      millert  1645:     ac_top_srcdir=$srcdir
                   1646:     ac_abs_top_srcdir=$srcdir ;;
                   1647:   *) # Relative name.
                   1648:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1649:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1650:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1651: esac
                   1652: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1653:
                   1654:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1655:     # Check for guested configure.
                   1656:     if test -f "$ac_srcdir/configure.gnu"; then
                   1657:       echo &&
                   1658:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1659:     elif test -f "$ac_srcdir/configure"; then
                   1660:       echo &&
                   1661:       $SHELL "$ac_srcdir/configure" --help=recursive
1.9       millert  1662:     else
1.16      millert  1663:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27      millert  1664:     fi || ac_status=$?
                   1665:     cd "$ac_pwd" || { ac_status=$?; break; }
1.9       millert  1666:   done
                   1667: fi
                   1668:
1.27      millert  1669: test -n "$ac_init_help" && exit $ac_status
1.9       millert  1670: if $ac_init_version; then
1.16      millert  1671:   cat <<\_ACEOF
1.37    ! millert  1672: sudo configure 1.7
1.27      millert  1673: generated by GNU Autoconf 2.61
1.9       millert  1674:
1.27      millert  1675: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                   1676: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9       millert  1677: This configure script is free software; the Free Software Foundation
                   1678: gives unlimited permission to copy, distribute and modify it.
1.16      millert  1679: _ACEOF
1.27      millert  1680:   exit
1.9       millert  1681: fi
1.27      millert  1682: cat >config.log <<_ACEOF
1.9       millert  1683: This file contains any messages produced by compilers while
                   1684: running configure, to aid debugging if configure makes a mistake.
                   1685:
1.37    ! millert  1686: It was created by sudo $as_me 1.7, which was
1.27      millert  1687: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  1688:
                   1689:   $ $0 $@
                   1690:
1.16      millert  1691: _ACEOF
1.27      millert  1692: exec 5>>config.log
1.9       millert  1693: {
                   1694: cat <<_ASUNAME
1.16      millert  1695: ## --------- ##
                   1696: ## Platform. ##
                   1697: ## --------- ##
1.9       millert  1698:
                   1699: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1700: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1701: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1702: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1703: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1704:
                   1705: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1706: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1707:
                   1708: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1709: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1710: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27      millert  1711: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.9       millert  1712: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1713: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1714: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1715:
1.16      millert  1716: _ASUNAME
                   1717:
                   1718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1719: for as_dir in $PATH
                   1720: do
                   1721:   IFS=$as_save_IFS
                   1722:   test -z "$as_dir" && as_dir=.
                   1723:   echo "PATH: $as_dir"
                   1724: done
1.27      millert  1725: IFS=$as_save_IFS
1.9       millert  1726:
                   1727: } >&5
                   1728:
1.16      millert  1729: cat >&5 <<_ACEOF
                   1730:
                   1731:
                   1732: ## ----------- ##
                   1733: ## Core tests. ##
                   1734: ## ----------- ##
                   1735:
                   1736: _ACEOF
1.9       millert  1737:
                   1738:
                   1739: # Keep a trace of the command line.
                   1740: # Strip out --no-create and --no-recursion so they do not pile up.
1.16      millert  1741: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1742: # Also quote any args containing shell meta-characters.
1.16      millert  1743: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1744: ac_configure_args=
1.16      millert  1745: ac_configure_args0=
                   1746: ac_configure_args1=
                   1747: ac_must_keep_next=false
                   1748: for ac_pass in 1 2
1.9       millert  1749: do
1.16      millert  1750:   for ac_arg
                   1751:   do
                   1752:     case $ac_arg in
                   1753:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1754:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1755:     | -silent | --silent | --silen | --sile | --sil)
                   1756:       continue ;;
1.27      millert  1757:     *\'*)
1.16      millert  1758:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1759:     esac
                   1760:     case $ac_pass in
                   1761:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1762:     2)
                   1763:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1764:       if test $ac_must_keep_next = true; then
1.25      millert  1765:        ac_must_keep_next=false # Got value, back to normal.
1.16      millert  1766:       else
1.25      millert  1767:        case $ac_arg in
                   1768:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1769:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1770:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1771:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1772:            case "$ac_configure_args0 " in
                   1773:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1774:            esac
                   1775:            ;;
                   1776:          -* ) ac_must_keep_next=true ;;
                   1777:        esac
1.16      millert  1778:       fi
1.27      millert  1779:       ac_configure_args="$ac_configure_args '$ac_arg'"
1.16      millert  1780:       ;;
                   1781:     esac
                   1782:   done
1.9       millert  1783: done
1.16      millert  1784: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1785: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1786:
                   1787: # When interrupted or exit'd, cleanup temporary files, and complete
                   1788: # config.log.  We remove comments because anyway the quotes in there
                   1789: # would cause problems or look ugly.
1.27      millert  1790: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   1791: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9       millert  1792: trap 'exit_status=$?
                   1793:   # Save into config.log some information that might help in debugging.
1.16      millert  1794:   {
                   1795:     echo
                   1796:
                   1797:     cat <<\_ASBOX
                   1798: ## ---------------- ##
                   1799: ## Cache variables. ##
                   1800: ## ---------------- ##
                   1801: _ASBOX
                   1802:     echo
                   1803:     # The following way of writing the cache mishandles newlines in values,
1.27      millert  1804: (
                   1805:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   1806:     eval ac_val=\$$ac_var
                   1807:     case $ac_val in #(
                   1808:     *${as_nl}*)
                   1809:       case $ac_var in #(
                   1810:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   1811: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   1812:       esac
                   1813:       case $ac_var in #(
                   1814:       _ | IFS | as_nl) ;; #(
                   1815:       *) $as_unset $ac_var ;;
                   1816:       esac ;;
                   1817:     esac
                   1818:   done
1.9       millert  1819:   (set) 2>&1 |
1.27      millert  1820:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   1821:     *${as_nl}ac_space=\ *)
1.9       millert  1822:       sed -n \
1.27      millert  1823:        "s/'\''/'\''\\\\'\'''\''/g;
                   1824:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   1825:       ;; #(
1.9       millert  1826:     *)
1.27      millert  1827:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9       millert  1828:       ;;
1.27      millert  1829:     esac |
                   1830:     sort
                   1831: )
1.16      millert  1832:     echo
                   1833:
                   1834:     cat <<\_ASBOX
                   1835: ## ----------------- ##
                   1836: ## Output variables. ##
                   1837: ## ----------------- ##
                   1838: _ASBOX
                   1839:     echo
                   1840:     for ac_var in $ac_subst_vars
                   1841:     do
1.27      millert  1842:       eval ac_val=\$$ac_var
                   1843:       case $ac_val in
                   1844:       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1845:       esac
                   1846:       echo "$ac_var='\''$ac_val'\''"
1.16      millert  1847:     done | sort
                   1848:     echo
                   1849:
                   1850:     if test -n "$ac_subst_files"; then
                   1851:       cat <<\_ASBOX
1.27      millert  1852: ## ------------------- ##
                   1853: ## File substitutions. ##
                   1854: ## ------------------- ##
1.16      millert  1855: _ASBOX
                   1856:       echo
                   1857:       for ac_var in $ac_subst_files
                   1858:       do
1.27      millert  1859:        eval ac_val=\$$ac_var
                   1860:        case $ac_val in
                   1861:        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1862:        esac
                   1863:        echo "$ac_var='\''$ac_val'\''"
1.16      millert  1864:       done | sort
                   1865:       echo
                   1866:     fi
                   1867:
                   1868:     if test -s confdefs.h; then
                   1869:       cat <<\_ASBOX
                   1870: ## ----------- ##
                   1871: ## confdefs.h. ##
                   1872: ## ----------- ##
                   1873: _ASBOX
                   1874:       echo
1.27      millert  1875:       cat confdefs.h
1.16      millert  1876:       echo
                   1877:     fi
                   1878:     test "$ac_signal" != 0 &&
                   1879:       echo "$as_me: caught signal $ac_signal"
                   1880:     echo "$as_me: exit $exit_status"
                   1881:   } >&5
1.27      millert  1882:   rm -f core *.core core.conftest.* &&
                   1883:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1884:     exit $exit_status
1.27      millert  1885: ' 0
1.9       millert  1886: for ac_signal in 1 2 13 15; do
                   1887:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1888: done
                   1889: ac_signal=0
1.1       millert  1890:
1.9       millert  1891: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27      millert  1892: rm -f -r conftest* confdefs.h
1.9       millert  1893:
1.16      millert  1894: # Predefined preprocessor variables.
                   1895:
                   1896: cat >>confdefs.h <<_ACEOF
                   1897: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1898: _ACEOF
                   1899:
                   1900:
                   1901: cat >>confdefs.h <<_ACEOF
                   1902: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1903: _ACEOF
                   1904:
                   1905:
                   1906: cat >>confdefs.h <<_ACEOF
                   1907: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1908: _ACEOF
                   1909:
                   1910:
                   1911: cat >>confdefs.h <<_ACEOF
                   1912: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1913: _ACEOF
                   1914:
                   1915:
                   1916: cat >>confdefs.h <<_ACEOF
                   1917: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1918: _ACEOF
                   1919:
                   1920:
1.9       millert  1921: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1922: # Prefer explicitly selected file to automatically selected ones.
1.27      millert  1923: if test -n "$CONFIG_SITE"; then
                   1924:   set x "$CONFIG_SITE"
                   1925: elif test "x$prefix" != xNONE; then
                   1926:   set x "$prefix/share/config.site" "$prefix/etc/config.site"
                   1927: else
                   1928:   set x "$ac_default_prefix/share/config.site" \
                   1929:        "$ac_default_prefix/etc/config.site"
1.1       millert  1930: fi
1.27      millert  1931: shift
                   1932: for ac_site_file
                   1933: do
1.1       millert  1934:   if test -r "$ac_site_file"; then
1.16      millert  1935:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1936: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16      millert  1937:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1938:     . "$ac_site_file"
                   1939:   fi
                   1940: done
                   1941:
                   1942: if test -r "$cache_file"; then
1.9       millert  1943:   # Some versions of bash will fail to source /dev/null (special
                   1944:   # files actually), so we avoid doing that.
                   1945:   if test -f "$cache_file"; then
1.16      millert  1946:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1947: echo "$as_me: loading cache $cache_file" >&6;}
                   1948:     case $cache_file in
1.27      millert  1949:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   1950:       *)                      . "./$cache_file";;
1.9       millert  1951:     esac
                   1952:   fi
1.1       millert  1953: else
1.16      millert  1954:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1955: echo "$as_me: creating cache $cache_file" >&6;}
                   1956:   >$cache_file
                   1957: fi
                   1958:
                   1959: # Check that the precious variables saved in the cache have kept the same
                   1960: # value.
                   1961: ac_cache_corrupted=false
1.27      millert  1962: for ac_var in $ac_precious_vars; do
1.9       millert  1963:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1964:   eval ac_new_set=\$ac_env_${ac_var}_set
1.27      millert  1965:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   1966:   eval ac_new_val=\$ac_env_${ac_var}_value
1.9       millert  1967:   case $ac_old_set,$ac_new_set in
                   1968:     set,)
1.16      millert  1969:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1970: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1971:       ac_cache_corrupted=: ;;
                   1972:     ,set)
1.16      millert  1973:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1974: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1975:       ac_cache_corrupted=: ;;
                   1976:     ,);;
                   1977:     *)
                   1978:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.25      millert  1979:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1980: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25      millert  1981:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1982: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.25      millert  1983:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1984: echo "$as_me:   current value: $ac_new_val" >&2;}
1.25      millert  1985:        ac_cache_corrupted=:
1.9       millert  1986:       fi;;
                   1987:   esac
1.16      millert  1988:   # Pass precious variables to config.status.
1.9       millert  1989:   if test "$ac_new_set" = set; then
                   1990:     case $ac_new_val in
1.27      millert  1991:     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16      millert  1992:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1993:     esac
                   1994:     case " $ac_configure_args " in
                   1995:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1996:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  1997:     esac
                   1998:   fi
                   1999: done
                   2000: if $ac_cache_corrupted; then
1.16      millert  2001:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  2002: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16      millert  2003:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  2004: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   2005:    { (exit 1); exit 1; }; }
1.1       millert  2006: fi
                   2007:
1.9       millert  2008:
                   2009:
1.16      millert  2010:
                   2011:
                   2012:
                   2013:
                   2014:
                   2015:
                   2016:
                   2017:
                   2018:
                   2019:
                   2020:
                   2021:
                   2022:
                   2023:
                   2024:
                   2025:
                   2026:
                   2027:
                   2028:
                   2029:
                   2030:
                   2031:
1.27      millert  2032: ac_ext=c
                   2033: ac_cpp='$CPP $CPPFLAGS'
                   2034: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2035: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2036: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16      millert  2037:
                   2038:
1.27      millert  2039: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16      millert  2040:
1.37    ! millert  2041: { echo "$as_me:$LINENO: Configuring Sudo version 1.7" >&5
        !          2042: echo "$as_me: Configuring Sudo version 1.7" >&6;}
        !          2043:
        !          2044:
        !          2045:
        !          2046:
        !          2047:
        !          2048:
        !          2049:
        !          2050:
1.25      millert  2051:
                   2052:
                   2053:
                   2054:
                   2055:
                   2056:
                   2057:
                   2058:
                   2059:
                   2060:
                   2061:
                   2062:
                   2063:
                   2064:
                   2065:
                   2066:
                   2067:
                   2068:
                   2069:
1.23      millert  2070:
                   2071:
                   2072:
                   2073:
                   2074:
1.16      millert  2075:
                   2076:
                   2077:
                   2078:
                   2079:
                   2080:
                   2081:
                   2082:
                   2083:
                   2084:
                   2085:
                   2086:
                   2087:
                   2088:
                   2089:
                   2090:
                   2091:
                   2092:
                   2093:
                   2094:
                   2095:
                   2096:
                   2097:
                   2098:
                   2099:
                   2100:
1.9       millert  2101:
1.32      millert  2102:
1.36      millert  2103:
                   2104:
                   2105:
                   2106:
                   2107:
1.9       millert  2108: timeout=5
                   2109: password_timeout=5
                   2110: sudo_umask=0022
                   2111: passprompt="Password:"
                   2112: long_otp_prompt=off
1.23      millert  2113: lecture=once
1.9       millert  2114: logfac=local2
                   2115: goodpri=notice
                   2116: badpri=alert
                   2117: loglen=80
                   2118: ignore_dot=off
                   2119: mail_no_user=on
                   2120: mail_no_host=off
                   2121: mail_no_perms=off
                   2122: mailto=root
                   2123: mailsub='*** SECURITY information for %h ***'
                   2124: badpass_message='Sorry, try again.'
                   2125: fqdn=off
                   2126: runas_default=root
                   2127: env_editor=off
                   2128: passwd_tries=3
                   2129: tty_tickets=off
                   2130: insults=off
1.23      millert  2131: root_sudo=on
1.25      millert  2132: path_info=on
1.23      millert  2133: INSTALL_NOEXEC=
1.37    ! millert  2134: devdir='$(srcdir)'
1.1       millert  2135: PROGS="sudo visudo"
1.25      millert  2136: : ${MANTYPE='man'}
                   2137: : ${mansrcdir='.'}
                   2138: : ${SUDOERS_MODE='0440'}
                   2139: : ${SUDOERS_UID='0'}
                   2140: : ${SUDOERS_GID='0'}
1.1       millert  2141: DEV="#"
1.37    ! millert  2142: LDAP="#"
1.36      millert  2143: SELINUX="#"
                   2144: BAMAN='.\" '
                   2145: LCMAN='.\" '
                   2146: SEMAN='.\" '
1.27      millert  2147: AUTH_OBJS=
                   2148: AUTH_REG=
                   2149: AUTH_EXCL=
                   2150: AUTH_EXCL_DEF=
                   2151: AUTH_DEF=passwd
1.1       millert  2152:
                   2153: CHECKSHADOW=true
1.25      millert  2154: shadow_defs=
                   2155: shadow_funcs=
                   2156: shadow_libs=
                   2157: shadow_libs_optional=
1.1       millert  2158:
1.36      millert  2159: if test X"$prefix" = X"NONE"; then
                   2160:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
                   2161: else
                   2162:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
                   2163: fi
1.1       millert  2164: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   2165: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16      millert  2166: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   2167:
                   2168:
1.1       millert  2169:
1.27      millert  2170: # Check whether --with-otp-only was given.
1.1       millert  2171: if test "${with_otp_only+set}" = set; then
1.27      millert  2172:   withval=$with_otp_only; case $with_otp_only in
                   2173:     yes)       with_passwd="no"
1.17      millert  2174:                { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   2175: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1       millert  2176:                ;;
                   2177: esac
1.27      millert  2178: fi
                   2179:
1.1       millert  2180:
1.16      millert  2181:
1.27      millert  2182: # Check whether --with-alertmail was given.
1.1       millert  2183: if test "${with_alertmail+set}" = set; then
1.27      millert  2184:   withval=$with_alertmail; case $with_alertmail in
1.1       millert  2185:     *)         with_mailto="$with_alertmail"
1.17      millert  2186:                { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
                   2187: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1       millert  2188:                ;;
                   2189: esac
1.27      millert  2190: fi
                   2191:
1.1       millert  2192:
1.16      millert  2193:
                   2194:
1.27      millert  2195: # Check whether --with-CC was given.
1.1       millert  2196: if test "${with_CC+set}" = set; then
1.27      millert  2197:   withval=$with_CC; case $with_CC in
1.16      millert  2198:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  2199: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   2200:    { (exit 1); exit 1; }; }
                   2201:                ;;
1.16      millert  2202:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  2203: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   2204:    { (exit 1); exit 1; }; }
1.1       millert  2205:                ;;
                   2206:     *)         CC=$with_CC
                   2207:                ;;
                   2208: esac
1.27      millert  2209: fi
                   2210:
1.1       millert  2211:
1.16      millert  2212:
1.27      millert  2213: # Check whether --with-rpath was given.
1.17      millert  2214: if test "${with_rpath+set}" = set; then
1.27      millert  2215:   withval=$with_rpath; case $with_rpath in
1.25      millert  2216:     yes|no)    ;;
1.17      millert  2217:     *)         { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
                   2218: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
                   2219:    { (exit 1); exit 1; }; }
                   2220:                ;;
                   2221: esac
1.27      millert  2222: fi
                   2223:
1.17      millert  2224:
                   2225:
1.27      millert  2226: # Check whether --with-blibpath was given.
1.17      millert  2227: if test "${with_blibpath+set}" = set; then
1.27      millert  2228:   withval=$with_blibpath; case $with_blibpath in
1.25      millert  2229:     yes|no)    ;;
1.17      millert  2230:     *)         { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
                   2231: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
                   2232:                ;;
                   2233: esac
1.27      millert  2234: fi
                   2235:
1.17      millert  2236:
                   2237:
1.27      millert  2238: # Check whether --with-incpath was given.
1.1       millert  2239: if test "${with_incpath+set}" = set; then
1.27      millert  2240:   withval=$with_incpath; case $with_incpath in
1.16      millert  2241:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  2242: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   2243:    { (exit 1); exit 1; }; }
                   2244:                ;;
1.16      millert  2245:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  2246: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   2247:    { (exit 1); exit 1; }; }
1.1       millert  2248:                ;;
1.17      millert  2249:     *)         { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
                   2250: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1       millert  2251:                for i in ${with_incpath}; do
                   2252:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   2253:                done
                   2254:                ;;
                   2255: esac
1.27      millert  2256: fi
                   2257:
1.1       millert  2258:
1.16      millert  2259:
1.27      millert  2260: # Check whether --with-libpath was given.
1.1       millert  2261: if test "${with_libpath+set}" = set; then
1.27      millert  2262:   withval=$with_libpath; case $with_libpath in
1.16      millert  2263:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  2264: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   2265:    { (exit 1); exit 1; }; }
                   2266:                ;;
1.16      millert  2267:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  2268: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   2269:    { (exit 1); exit 1; }; }
1.1       millert  2270:                ;;
1.17      millert  2271:     *)         { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
                   2272: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1       millert  2273:                ;;
                   2274: esac
1.27      millert  2275: fi
                   2276:
1.1       millert  2277:
1.16      millert  2278:
1.27      millert  2279: # Check whether --with-libraries was given.
1.1       millert  2280: if test "${with_libraries+set}" = set; then
1.27      millert  2281:   withval=$with_libraries; case $with_libraries in
1.16      millert  2282:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  2283: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   2284:    { (exit 1); exit 1; }; }
                   2285:                ;;
1.16      millert  2286:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  2287: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   2288:    { (exit 1); exit 1; }; }
1.1       millert  2289:                ;;
1.17      millert  2290:     *)         { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
                   2291: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1       millert  2292:                ;;
                   2293: esac
1.27      millert  2294: fi
                   2295:
1.1       millert  2296:
1.16      millert  2297:
1.27      millert  2298: # Check whether --with-devel was given.
1.1       millert  2299: if test "${with_devel+set}" = set; then
1.27      millert  2300:   withval=$with_devel; case $with_devel in
1.17      millert  2301:     yes)       { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
                   2302: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1       millert  2303:                PROGS="${PROGS} testsudoers"
                   2304:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   2305:                DEV=""
1.37    ! millert  2306:                devdir=.
1.1       millert  2307:                ;;
                   2308:     no)                ;;
1.17      millert  2309:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   2310: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1       millert  2311:                ;;
                   2312: esac
1.27      millert  2313: fi
                   2314:
1.1       millert  2315:
1.16      millert  2316:
1.27      millert  2317: # Check whether --with-efence was given.
1.11      millert  2318: if test "${with_efence+set}" = set; then
1.27      millert  2319:   withval=$with_efence; case $with_efence in
1.17      millert  2320:     yes)       { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
                   2321: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11      millert  2322:                LIBS="${LIBS} -lefence"
                   2323:                if test -f /usr/local/lib/libefence.a; then
1.17      millert  2324:                    with_libpath="${with_libpath} /usr/local/lib"
1.11      millert  2325:                fi
                   2326:                ;;
                   2327:     no)                ;;
1.17      millert  2328:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   2329: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11      millert  2330:                ;;
                   2331: esac
1.27      millert  2332: fi
                   2333:
1.11      millert  2334:
1.16      millert  2335:
1.27      millert  2336: # Check whether --with-csops was given.
1.1       millert  2337: if test "${with_csops+set}" = set; then
1.27      millert  2338:   withval=$with_csops; case $with_csops in
1.17      millert  2339:     yes)       { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
                   2340: echo "$as_me: Adding CSOps standard options" >&6;}
1.1       millert  2341:                CHECKSIA=false
                   2342:                with_ignore_dot=yes
1.9       millert  2343:                insults=on
1.1       millert  2344:                with_classic_insults=yes
                   2345:                with_csops_insults=yes
                   2346:                with_env_editor=yes
1.25      millert  2347:                : ${mansectsu='8'}
                   2348:                : ${mansectform='5'}
1.1       millert  2349:                ;;
                   2350:     no)                ;;
1.17      millert  2351:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   2352: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1       millert  2353:                ;;
                   2354: esac
1.27      millert  2355: fi
                   2356:
1.1       millert  2357:
1.16      millert  2358:
1.27      millert  2359: # Check whether --with-passwd was given.
1.1       millert  2360: if test "${with_passwd+set}" = set; then
1.27      millert  2361:   withval=$with_passwd; case $with_passwd in
                   2362:     yes|no)    { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
                   2363: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
                   2364:                { echo "$as_me:$LINENO: result: $with_passwd" >&5
                   2365: echo "${ECHO_T}$with_passwd" >&6; }
                   2366:                AUTH_DEF=""
                   2367:                test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1       millert  2368:                ;;
1.16      millert  2369:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  2370: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   2371:    { (exit 1); exit 1; }; }
1.1       millert  2372:                ;;
                   2373: esac
1.27      millert  2374: fi
1.1       millert  2375:
1.16      millert  2376:
1.27      millert  2377:
                   2378: # Check whether --with-skey was given.
1.1       millert  2379: if test "${with_skey+set}" = set; then
1.27      millert  2380:   withval=$with_skey; case $with_skey in
1.25      millert  2381:     no)                with_skey=""
                   2382:                ;;
1.27      millert  2383:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2384: #define HAVE_SKEY 1
1.16      millert  2385: _ACEOF
1.1       millert  2386:
1.27      millert  2387:                { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
                   2388: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
                   2389:                { echo "$as_me:$LINENO: result: yes" >&5
                   2390: echo "${ECHO_T}yes" >&6; }
                   2391:                AUTH_REG="$AUTH_REG S/Key"
                   2392:                ;;
                   2393: esac
1.25      millert  2394: fi
                   2395:
1.1       millert  2396:
1.16      millert  2397:
1.27      millert  2398: # Check whether --with-opie was given.
1.1       millert  2399: if test "${with_opie+set}" = set; then
1.27      millert  2400:   withval=$with_opie; case $with_opie in
1.25      millert  2401:     no)                with_opie=""
                   2402:                ;;
1.27      millert  2403:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2404: #define HAVE_OPIE 1
1.16      millert  2405: _ACEOF
1.1       millert  2406:
1.27      millert  2407:                { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
                   2408: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
                   2409:                { echo "$as_me:$LINENO: result: yes" >&5
                   2410: echo "${ECHO_T}yes" >&6; }
                   2411:                AUTH_REG="$AUTH_REG NRL_OPIE"
                   2412:                ;;
                   2413: esac
1.25      millert  2414: fi
                   2415:
1.1       millert  2416:
1.16      millert  2417:
1.27      millert  2418: # Check whether --with-long-otp-prompt was given.
1.1       millert  2419: if test "${with_long_otp_prompt+set}" = set; then
1.27      millert  2420:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23      millert  2421:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2422: #define LONG_OTP_PROMPT 1
1.16      millert  2423: _ACEOF
1.1       millert  2424:
1.27      millert  2425:                { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
                   2426: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
                   2427:                { echo "$as_me:$LINENO: result: yes" >&5
                   2428: echo "${ECHO_T}yes" >&6; }
1.9       millert  2429:                long_otp_prompt=on
1.1       millert  2430:                ;;
1.9       millert  2431:     no)                long_otp_prompt=off
                   2432:                ;;
1.16      millert  2433:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  2434: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   2435:    { (exit 1); exit 1; }; }
1.1       millert  2436:                ;;
                   2437: esac
1.27      millert  2438: fi
                   2439:
1.1       millert  2440:
1.16      millert  2441:
1.27      millert  2442: # Check whether --with-SecurID was given.
1.1       millert  2443: if test "${with_SecurID+set}" = set; then
1.27      millert  2444:   withval=$with_SecurID; case $with_SecurID in
1.17      millert  2445:     no)                with_SecurID="";;
1.23      millert  2446:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2447: #define HAVE_SECURID 1
1.16      millert  2448: _ACEOF
1.1       millert  2449:
1.27      millert  2450:                { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
                   2451: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
                   2452:                { echo "$as_me:$LINENO: result: yes" >&5
                   2453: echo "${ECHO_T}yes" >&6; }
                   2454:                AUTH_EXCL="$AUTH_EXCL SecurID"
1.1       millert  2455:                ;;
                   2456: esac
1.27      millert  2457: fi
                   2458:
1.1       millert  2459:
1.16      millert  2460:
1.27      millert  2461: # Check whether --with-fwtk was given.
1.1       millert  2462: if test "${with_fwtk+set}" = set; then
1.27      millert  2463:   withval=$with_fwtk; case $with_fwtk in
1.17      millert  2464:     no)                with_fwtk="";;
1.23      millert  2465:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2466: #define HAVE_FWTK 1
1.16      millert  2467: _ACEOF
1.1       millert  2468:
1.27      millert  2469:                { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
                   2470: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
                   2471:                { echo "$as_me:$LINENO: result: yes" >&5
                   2472: echo "${ECHO_T}yes" >&6; }
                   2473:                AUTH_EXCL="$AUTH_EXCL FWTK"
                   2474:                ;;
                   2475: esac
1.25      millert  2476: fi
                   2477:
1.1       millert  2478:
1.16      millert  2479:
1.27      millert  2480: # Check whether --with-kerb4 was given.
1.1       millert  2481: if test "${with_kerb4+set}" = set; then
1.27      millert  2482:   withval=$with_kerb4; case $with_kerb4 in
1.17      millert  2483:     no)                with_kerb4="";;
1.27      millert  2484:     *)         { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
                   2485: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
                   2486:                { echo "$as_me:$LINENO: result: yes" >&5
                   2487: echo "${ECHO_T}yes" >&6; }
                   2488:                AUTH_REG="$AUTH_REG kerb4"
1.1       millert  2489:                ;;
                   2490: esac
1.27      millert  2491: fi
                   2492:
1.1       millert  2493:
1.16      millert  2494:
1.27      millert  2495: # Check whether --with-kerb5 was given.
1.1       millert  2496: if test "${with_kerb5+set}" = set; then
1.27      millert  2497:   withval=$with_kerb5; case $with_kerb5 in
1.17      millert  2498:     no)                with_kerb5="";;
1.27      millert  2499:     *)         { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
                   2500: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
                   2501:                { echo "$as_me:$LINENO: result: yes" >&5
                   2502: echo "${ECHO_T}yes" >&6; }
                   2503:                AUTH_REG="$AUTH_REG kerb5"
1.1       millert  2504:                ;;
                   2505: esac
1.27      millert  2506: fi
                   2507:
1.1       millert  2508:
1.16      millert  2509:
1.27      millert  2510: # Check whether --with-aixauth was given.
1.25      millert  2511: if test "${with_aixauth+set}" = set; then
1.27      millert  2512:   withval=$with_aixauth; case $with_aixauth in
                   2513:     yes)       AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
                   2514:     no)                ;;
1.25      millert  2515:     *)         { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
                   2516: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9       millert  2517:    { (exit 1); exit 1; }; }
1.1       millert  2518:                ;;
                   2519: esac
1.27      millert  2520: fi
                   2521:
1.1       millert  2522:
1.16      millert  2523:
1.27      millert  2524: # Check whether --with-pam was given.
1.1       millert  2525: if test "${with_pam+set}" = set; then
1.27      millert  2526:   withval=$with_pam; case $with_pam in
                   2527:     yes)       AUTH_EXCL="$AUTH_EXCL PAM";;
                   2528:     no)                ;;
1.16      millert  2529:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  2530: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   2531:    { (exit 1); exit 1; }; }
1.1       millert  2532:                ;;
                   2533: esac
1.27      millert  2534: fi
                   2535:
1.1       millert  2536:
1.16      millert  2537:
1.27      millert  2538: # Check whether --with-AFS was given.
1.1       millert  2539: if test "${with_AFS+set}" = set; then
1.27      millert  2540:   withval=$with_AFS; case $with_AFS in
1.23      millert  2541:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2542: #define HAVE_AFS 1
1.16      millert  2543: _ACEOF
1.1       millert  2544:
1.27      millert  2545:                { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
                   2546: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
                   2547:                { echo "$as_me:$LINENO: result: yes" >&5
                   2548: echo "${ECHO_T}yes" >&6; }
                   2549:                AUTH_REG="$AUTH_REG AFS"
1.1       millert  2550:                ;;
                   2551:     no)                ;;
1.16      millert  2552:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  2553: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   2554:    { (exit 1); exit 1; }; }
1.1       millert  2555:                ;;
                   2556: esac
1.27      millert  2557: fi
                   2558:
1.1       millert  2559:
1.16      millert  2560:
1.27      millert  2561: # Check whether --with-DCE was given.
1.1       millert  2562: if test "${with_DCE+set}" = set; then
1.27      millert  2563:   withval=$with_DCE; case $with_DCE in
1.23      millert  2564:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2565: #define HAVE_DCE 1
1.16      millert  2566: _ACEOF
1.1       millert  2567:
1.27      millert  2568:                { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
                   2569: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
                   2570:                { echo "$as_me:$LINENO: result: yes" >&5
                   2571: echo "${ECHO_T}yes" >&6; }
                   2572:                AUTH_REG="$AUTH_REG DCE"
1.1       millert  2573:                ;;
                   2574:     no)                ;;
1.16      millert  2575:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  2576: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   2577:    { (exit 1); exit 1; }; }
1.1       millert  2578:                ;;
                   2579: esac
1.27      millert  2580: fi
                   2581:
1.1       millert  2582:
1.16      millert  2583:
1.27      millert  2584: # Check whether --with-logincap was given.
1.6       millert  2585: if test "${with_logincap+set}" = set; then
1.27      millert  2586:   withval=$with_logincap; case $with_logincap in
1.7       millert  2587:     yes|no)    ;;
1.16      millert  2588:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  2589: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   2590:    { (exit 1); exit 1; }; }
1.7       millert  2591:                ;;
                   2592: esac
1.27      millert  2593: fi
                   2594:
1.6       millert  2595:
1.16      millert  2596:
1.27      millert  2597: # Check whether --with-bsdauth was given.
1.7       millert  2598: if test "${with_bsdauth+set}" = set; then
1.27      millert  2599:   withval=$with_bsdauth; case $with_bsdauth in
                   2600:     yes)       AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
                   2601:     no)                ;;
1.16      millert  2602:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  2603: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   2604:    { (exit 1); exit 1; }; }
1.6       millert  2605:                ;;
                   2606: esac
1.27      millert  2607: fi
                   2608:
1.6       millert  2609:
1.25      millert  2610:
1.27      millert  2611: # Check whether --with-project was given.
1.25      millert  2612: if test "${with_project+set}" = set; then
1.27      millert  2613:   withval=$with_project; case $with_project in
1.25      millert  2614:     yes|no)    ;;
                   2615:     no)        ;;
                   2616:     *)         { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
                   2617: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
                   2618:    { (exit 1); exit 1; }; }
                   2619:                ;;
                   2620: esac
1.27      millert  2621: fi
                   2622:
1.25      millert  2623:
1.27      millert  2624: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
                   2625: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6       millert  2626:
1.27      millert  2627: # Check whether --with-lecture was given.
1.1       millert  2628: if test "${with_lecture+set}" = set; then
1.27      millert  2629:   withval=$with_lecture; case $with_lecture in
1.23      millert  2630:     yes|short|always)  lecture=once
1.1       millert  2631:                ;;
1.23      millert  2632:     no|none|never)     lecture=never
1.1       millert  2633:                ;;
1.16      millert  2634:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  2635: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   2636:    { (exit 1); exit 1; }; }
1.1       millert  2637:                ;;
                   2638: esac
1.27      millert  2639: fi
                   2640:
1.23      millert  2641: if test "$lecture" = "once"; then
1.27      millert  2642:     { echo "$as_me:$LINENO: result: yes" >&5
                   2643: echo "${ECHO_T}yes" >&6; }
1.1       millert  2644: else
1.23      millert  2645:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2646: #define NO_LECTURE 1
1.16      millert  2647: _ACEOF
1.9       millert  2648:
1.27      millert  2649:     { echo "$as_me:$LINENO: result: no" >&5
                   2650: echo "${ECHO_T}no" >&6; }
1.1       millert  2651: fi
                   2652:
1.27      millert  2653: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
                   2654: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1       millert  2655:
1.27      millert  2656: # Check whether --with-logging was given.
1.1       millert  2657: if test "${with_logging+set}" = set; then
1.27      millert  2658:   withval=$with_logging; case $with_logging in
1.16      millert  2659:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  2660: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   2661:    { (exit 1); exit 1; }; }
                   2662:                ;;
1.16      millert  2663:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  2664: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   2665:    { (exit 1); exit 1; }; }
1.1       millert  2666:                ;;
1.23      millert  2667:     syslog)    cat >>confdefs.h <<\_ACEOF
1.1       millert  2668: #define LOGGING SLOG_SYSLOG
1.16      millert  2669: _ACEOF
1.1       millert  2670:
1.27      millert  2671:                { echo "$as_me:$LINENO: result: syslog" >&5
                   2672: echo "${ECHO_T}syslog" >&6; }
1.1       millert  2673:                ;;
1.16      millert  2674:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2675: #define LOGGING SLOG_FILE
1.16      millert  2676: _ACEOF
1.1       millert  2677:
1.27      millert  2678:                { echo "$as_me:$LINENO: result: file" >&5
                   2679: echo "${ECHO_T}file" >&6; }
1.1       millert  2680:                ;;
1.16      millert  2681:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2682: #define LOGGING SLOG_BOTH
1.16      millert  2683: _ACEOF
1.1       millert  2684:
1.27      millert  2685:                { echo "$as_me:$LINENO: result: both" >&5
                   2686: echo "${ECHO_T}both" >&6; }
1.1       millert  2687:                ;;
1.16      millert  2688:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  2689: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   2690:    { (exit 1); exit 1; }; }
1.1       millert  2691:                ;;
                   2692: esac
                   2693: else
1.16      millert  2694:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2695: #define LOGGING SLOG_SYSLOG
1.16      millert  2696: _ACEOF
1.27      millert  2697:  { echo "$as_me:$LINENO: result: syslog" >&5
                   2698: echo "${ECHO_T}syslog" >&6; }
                   2699: fi
                   2700:
1.1       millert  2701:
1.27      millert  2702: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
                   2703: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1       millert  2704:
1.27      millert  2705: # Check whether --with-logfac was given.
1.1       millert  2706: if test "${with_logfac+set}" = set; then
1.27      millert  2707:   withval=$with_logfac; case $with_logfac in
1.16      millert  2708:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  2709: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   2710:    { (exit 1); exit 1; }; }
                   2711:                ;;
1.16      millert  2712:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  2713: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   2714:    { (exit 1); exit 1; }; }
1.1       millert  2715:                ;;
1.9       millert  2716:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2717:                ;;
1.16      millert  2718:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2719: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2720:    { (exit 1); exit 1; }; }
1.1       millert  2721:                ;;
                   2722: esac
1.27      millert  2723: fi
                   2724:
1.9       millert  2725:
1.16      millert  2726: cat >>confdefs.h <<_ACEOF
1.9       millert  2727: #define LOGFAC "$logfac"
1.16      millert  2728: _ACEOF
1.1       millert  2729:
1.27      millert  2730: { echo "$as_me:$LINENO: result: $logfac" >&5
                   2731: echo "${ECHO_T}$logfac" >&6; }
1.9       millert  2732:
1.27      millert  2733: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
                   2734: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1       millert  2735:
1.27      millert  2736: # Check whether --with-goodpri was given.
1.1       millert  2737: if test "${with_goodpri+set}" = set; then
1.27      millert  2738:   withval=$with_goodpri; case $with_goodpri in
1.16      millert  2739:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2740: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2741:    { (exit 1); exit 1; }; }
1.1       millert  2742:                ;;
1.16      millert  2743:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2744: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2745:    { (exit 1); exit 1; }; }
1.1       millert  2746:                ;;
1.9       millert  2747:     alert|crit|debug|emerg|err|info|notice|warning)
                   2748:                goodpri=$with_goodpri
1.1       millert  2749:                ;;
1.16      millert  2750:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2751: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2752:    { (exit 1); exit 1; }; }
1.1       millert  2753:                ;;
                   2754: esac
1.27      millert  2755: fi
                   2756:
1.9       millert  2757:
1.16      millert  2758: cat >>confdefs.h <<_ACEOF
1.9       millert  2759: #define PRI_SUCCESS "$goodpri"
1.16      millert  2760: _ACEOF
1.1       millert  2761:
1.27      millert  2762: { echo "$as_me:$LINENO: result: $goodpri" >&5
                   2763: echo "${ECHO_T}$goodpri" >&6; }
1.9       millert  2764:
1.27      millert  2765: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
                   2766: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1       millert  2767:
1.27      millert  2768: # Check whether --with-badpri was given.
1.1       millert  2769: if test "${with_badpri+set}" = set; then
1.27      millert  2770:   withval=$with_badpri; case $with_badpri in
1.16      millert  2771:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2772: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2773:    { (exit 1); exit 1; }; }
1.1       millert  2774:                ;;
1.16      millert  2775:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2776: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2777:    { (exit 1); exit 1; }; }
1.1       millert  2778:                ;;
1.9       millert  2779:     alert|crit|debug|emerg|err|info|notice|warning)
                   2780:                badpri=$with_badpri
1.1       millert  2781:                ;;
1.16      millert  2782:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2783: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2784:    { (exit 1); exit 1; }; }
1.1       millert  2785:                ;;
                   2786: esac
1.27      millert  2787: fi
                   2788:
1.9       millert  2789:
1.16      millert  2790: cat >>confdefs.h <<_ACEOF
1.9       millert  2791: #define PRI_FAILURE "$badpri"
1.16      millert  2792: _ACEOF
                   2793:
1.27      millert  2794: { echo "$as_me:$LINENO: result: $badpri" >&5
                   2795: echo "${ECHO_T}$badpri" >&6; }
1.1       millert  2796:
                   2797:
1.27      millert  2798: # Check whether --with-logpath was given.
1.1       millert  2799: if test "${with_logpath+set}" = set; then
1.27      millert  2800:   withval=$with_logpath; case $with_logpath in
1.16      millert  2801:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2802: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2803:    { (exit 1); exit 1; }; }
1.1       millert  2804:                ;;
1.16      millert  2805:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2806: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2807:    { (exit 1); exit 1; }; }
1.1       millert  2808:                ;;
                   2809: esac
1.27      millert  2810: fi
                   2811:
1.1       millert  2812:
1.27      millert  2813: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
                   2814: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1       millert  2815:
1.27      millert  2816: # Check whether --with-loglen was given.
1.1       millert  2817: if test "${with_loglen+set}" = set; then
1.27      millert  2818:   withval=$with_loglen; case $with_loglen in
1.16      millert  2819:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2820: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2821:    { (exit 1); exit 1; }; }
1.1       millert  2822:                ;;
1.16      millert  2823:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2824: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2825:    { (exit 1); exit 1; }; }
1.1       millert  2826:                ;;
1.9       millert  2827:     [0-9]*)    loglen=$with_loglen
1.1       millert  2828:                ;;
1.16      millert  2829:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2830: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2831:    { (exit 1); exit 1; }; }
1.1       millert  2832:                ;;
                   2833: esac
1.27      millert  2834: fi
                   2835:
1.9       millert  2836:
1.16      millert  2837: cat >>confdefs.h <<_ACEOF
1.9       millert  2838: #define MAXLOGFILELEN $loglen
1.16      millert  2839: _ACEOF
1.1       millert  2840:
1.27      millert  2841: { echo "$as_me:$LINENO: result: $loglen" >&5
                   2842: echo "${ECHO_T}$loglen" >&6; }
1.9       millert  2843:
1.27      millert  2844: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   2845: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1       millert  2846:
1.27      millert  2847: # Check whether --with-ignore-dot was given.
1.1       millert  2848: if test "${with_ignore_dot+set}" = set; then
1.27      millert  2849:   withval=$with_ignore_dot; case $with_ignore_dot in
1.9       millert  2850:     yes)       ignore_dot=on
1.1       millert  2851:                ;;
1.9       millert  2852:     no)                ignore_dot=off
1.1       millert  2853:                ;;
1.16      millert  2854:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2855: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2856:    { (exit 1); exit 1; }; }
1.1       millert  2857:                ;;
                   2858: esac
1.27      millert  2859: fi
                   2860:
1.9       millert  2861: if test "$ignore_dot" = "on"; then
1.23      millert  2862:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2863: #define IGNORE_DOT_PATH 1
1.16      millert  2864: _ACEOF
1.9       millert  2865:
1.27      millert  2866:     { echo "$as_me:$LINENO: result: yes" >&5
                   2867: echo "${ECHO_T}yes" >&6; }
1.1       millert  2868: else
1.27      millert  2869:     { echo "$as_me:$LINENO: result: no" >&5
                   2870: echo "${ECHO_T}no" >&6; }
1.1       millert  2871: fi
                   2872:
1.27      millert  2873: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
                   2874: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1       millert  2875:
1.27      millert  2876: # Check whether --with-mail-if-no-user was given.
1.9       millert  2877: if test "${with_mail_if_no_user+set}" = set; then
1.27      millert  2878:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9       millert  2879:     yes)       mail_no_user=on
                   2880:                ;;
                   2881:     no)                mail_no_user=off
1.1       millert  2882:                ;;
1.16      millert  2883:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2884: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2885:    { (exit 1); exit 1; }; }
1.1       millert  2886:                ;;
1.9       millert  2887: esac
1.27      millert  2888: fi
                   2889:
1.9       millert  2890: if test "$mail_no_user" = "on"; then
1.23      millert  2891:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2892: #define SEND_MAIL_WHEN_NO_USER 1
1.16      millert  2893: _ACEOF
1.1       millert  2894:
1.27      millert  2895:     { echo "$as_me:$LINENO: result: yes" >&5
                   2896: echo "${ECHO_T}yes" >&6; }
1.1       millert  2897: else
1.27      millert  2898:     { echo "$as_me:$LINENO: result: no" >&5
                   2899: echo "${ECHO_T}no" >&6; }
1.1       millert  2900: fi
                   2901:
1.27      millert  2902: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
                   2903: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1       millert  2904:
1.27      millert  2905: # Check whether --with-mail-if-no-host was given.
1.9       millert  2906: if test "${with_mail_if_no_host+set}" = set; then
1.27      millert  2907:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9       millert  2908:     yes)       mail_no_host=on
1.1       millert  2909:                ;;
1.9       millert  2910:     no)                mail_no_host=off
1.1       millert  2911:                ;;
1.16      millert  2912:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2913: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2914:    { (exit 1); exit 1; }; }
1.1       millert  2915:                ;;
                   2916: esac
1.27      millert  2917: fi
                   2918:
1.9       millert  2919: if test "$mail_no_host" = "on"; then
1.23      millert  2920:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2921: #define SEND_MAIL_WHEN_NO_HOST 1
1.16      millert  2922: _ACEOF
1.1       millert  2923:
1.27      millert  2924:     { echo "$as_me:$LINENO: result: yes" >&5
                   2925: echo "${ECHO_T}yes" >&6; }
1.9       millert  2926: else
1.27      millert  2927:     { echo "$as_me:$LINENO: result: no" >&5
                   2928: echo "${ECHO_T}no" >&6; }
1.1       millert  2929: fi
                   2930:
1.27      millert  2931: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
                   2932: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1       millert  2933:
1.27      millert  2934: # Check whether --with-mail-if-noperms was given.
1.9       millert  2935: if test "${with_mail_if_noperms+set}" = set; then
1.27      millert  2936:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9       millert  2937:     yes)       mail_noperms=on
1.1       millert  2938:                ;;
1.9       millert  2939:     no)                mail_noperms=off
1.1       millert  2940:                ;;
1.16      millert  2941:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2942: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2943:    { (exit 1); exit 1; }; }
1.1       millert  2944:                ;;
                   2945: esac
1.27      millert  2946: fi
                   2947:
1.9       millert  2948: if test "$mail_noperms" = "on"; then
1.23      millert  2949:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2950: #define SEND_MAIL_WHEN_NOT_OK 1
1.16      millert  2951: _ACEOF
1.9       millert  2952:
1.27      millert  2953:     { echo "$as_me:$LINENO: result: yes" >&5
                   2954: echo "${ECHO_T}yes" >&6; }
1.1       millert  2955: else
1.27      millert  2956:     { echo "$as_me:$LINENO: result: no" >&5
                   2957: echo "${ECHO_T}no" >&6; }
1.1       millert  2958: fi
                   2959:
1.27      millert  2960: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
                   2961: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1       millert  2962:
1.27      millert  2963: # Check whether --with-mailto was given.
1.9       millert  2964: if test "${with_mailto+set}" = set; then
1.27      millert  2965:   withval=$with_mailto; case $with_mailto in
1.16      millert  2966:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  2967: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   2968:    { (exit 1); exit 1; }; }
1.1       millert  2969:                ;;
1.16      millert  2970:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  2971: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   2972:    { (exit 1); exit 1; }; }
1.1       millert  2973:                ;;
1.9       millert  2974:     *)         mailto=$with_mailto
1.1       millert  2975:                ;;
                   2976: esac
1.27      millert  2977: fi
                   2978:
1.1       millert  2979:
1.16      millert  2980: cat >>confdefs.h <<_ACEOF
1.9       millert  2981: #define MAILTO "$mailto"
1.16      millert  2982: _ACEOF
1.1       millert  2983:
1.27      millert  2984: { echo "$as_me:$LINENO: result: $mailto" >&5
                   2985: echo "${ECHO_T}$mailto" >&6; }
1.1       millert  2986:
1.16      millert  2987:
1.27      millert  2988: # Check whether --with-mailsubject was given.
1.9       millert  2989: if test "${with_mailsubject+set}" = set; then
1.27      millert  2990:   withval=$with_mailsubject; case $with_mailsubject in
1.16      millert  2991:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  2992: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   2993:    { (exit 1); exit 1; }; }
1.1       millert  2994:                ;;
1.17      millert  2995:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
                   2996: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1       millert  2997:                ;;
1.9       millert  2998:     *)         mailsub="$with_mailsubject"
1.27      millert  2999:                { echo "$as_me:$LINENO: checking sudo mail subject" >&5
                   3000: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
                   3001:                { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
                   3002: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1       millert  3003:                ;;
                   3004: esac
1.27      millert  3005: fi
                   3006:
1.9       millert  3007:
1.16      millert  3008: cat >>confdefs.h <<_ACEOF
1.9       millert  3009: #define MAILSUBJECT "$mailsub"
1.16      millert  3010: _ACEOF
                   3011:
1.1       millert  3012:
1.27      millert  3013: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
                   3014: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1       millert  3015:
1.27      millert  3016: # Check whether --with-passprompt was given.
1.1       millert  3017: if test "${with_passprompt+set}" = set; then
1.27      millert  3018:   withval=$with_passprompt; case $with_passprompt in
1.16      millert  3019:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  3020: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   3021:    { (exit 1); exit 1; }; }
1.1       millert  3022:                ;;
1.17      millert  3023:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
                   3024: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1       millert  3025:                ;;
1.9       millert  3026:     *)         passprompt="$with_passprompt"
                   3027: esac
1.27      millert  3028: fi
                   3029:
                   3030: { echo "$as_me:$LINENO: result: $passprompt" >&5
                   3031: echo "${ECHO_T}$passprompt" >&6; }
1.1       millert  3032:
1.16      millert  3033: cat >>confdefs.h <<_ACEOF
1.9       millert  3034: #define PASSPROMPT "$passprompt"
1.16      millert  3035: _ACEOF
                   3036:
1.1       millert  3037:
1.27      millert  3038: { echo "$as_me:$LINENO: checking for bad password message" >&5
                   3039: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1       millert  3040:
1.27      millert  3041: # Check whether --with-badpass-message was given.
1.1       millert  3042: if test "${with_badpass_message+set}" = set; then
1.27      millert  3043:   withval=$with_badpass_message; case $with_badpass_message in
1.16      millert  3044:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  3045: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   3046:    { (exit 1); exit 1; }; }
1.1       millert  3047:                ;;
1.17      millert  3048:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
                   3049: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1       millert  3050:                ;;
1.9       millert  3051:     *)         badpass_message="$with_badpass_message"
1.1       millert  3052:                ;;
                   3053: esac
1.27      millert  3054: fi
                   3055:
1.9       millert  3056:
1.16      millert  3057: cat >>confdefs.h <<_ACEOF
1.9       millert  3058: #define INCORRECT_PASSWORD "$badpass_message"
1.16      millert  3059: _ACEOF
1.1       millert  3060:
1.27      millert  3061: { echo "$as_me:$LINENO: result: $badpass_message" >&5
                   3062: echo "${ECHO_T}$badpass_message" >&6; }
1.9       millert  3063:
1.27      millert  3064: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
                   3065: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1       millert  3066:
1.27      millert  3067: # Check whether --with-fqdn was given.
1.1       millert  3068: if test "${with_fqdn+set}" = set; then
1.27      millert  3069:   withval=$with_fqdn; case $with_fqdn in
1.9       millert  3070:     yes)       fqdn=on
1.1       millert  3071:                ;;
1.9       millert  3072:     no)                fqdn=off
1.1       millert  3073:                ;;
1.16      millert  3074:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  3075: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   3076:    { (exit 1); exit 1; }; }
1.1       millert  3077:                ;;
                   3078: esac
1.27      millert  3079: fi
                   3080:
1.9       millert  3081: if test "$fqdn" = "on"; then
1.23      millert  3082:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3083: #define FQDN 1
1.16      millert  3084: _ACEOF
1.9       millert  3085:
1.27      millert  3086:     { echo "$as_me:$LINENO: result: yes" >&5
                   3087: echo "${ECHO_T}yes" >&6; }
1.1       millert  3088: else
1.27      millert  3089:     { echo "$as_me:$LINENO: result: no" >&5
                   3090: echo "${ECHO_T}no" >&6; }
1.1       millert  3091: fi
                   3092:
1.16      millert  3093:
1.27      millert  3094: # Check whether --with-timedir was given.
1.1       millert  3095: if test "${with_timedir+set}" = set; then
1.27      millert  3096:   withval=$with_timedir; case $with_timedir in
1.16      millert  3097:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  3098: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   3099:    { (exit 1); exit 1; }; }
1.1       millert  3100:                ;;
1.16      millert  3101:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  3102: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   3103:    { (exit 1); exit 1; }; }
1.1       millert  3104:                ;;
                   3105: esac
1.27      millert  3106: fi
                   3107:
1.1       millert  3108:
1.16      millert  3109:
1.27      millert  3110: # Check whether --with-sendmail was given.
1.1       millert  3111: if test "${with_sendmail+set}" = set; then
1.27      millert  3112:   withval=$with_sendmail; case $with_sendmail in
1.1       millert  3113:     yes)       with_sendmail=""
                   3114:                ;;
                   3115:     no)                ;;
1.9       millert  3116:     *)         cat >>confdefs.h <<EOF
                   3117: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  3118: EOF
                   3119:
                   3120:                ;;
                   3121: esac
1.27      millert  3122: fi
                   3123:
1.1       millert  3124:
1.16      millert  3125:
1.27      millert  3126: # Check whether --with-sudoers-mode was given.
1.1       millert  3127: if test "${with_sudoers_mode+set}" = set; then
1.27      millert  3128:   withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16      millert  3129:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  3130: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   3131:    { (exit 1); exit 1; }; }
                   3132:                ;;
1.16      millert  3133:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  3134: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   3135:    { (exit 1); exit 1; }; }
1.1       millert  3136:                ;;
                   3137:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   3138:                ;;
                   3139:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   3140:                ;;
1.16      millert  3141:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
                   3142: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  3143:    { (exit 1); exit 1; }; }
1.1       millert  3144:                ;;
                   3145: esac
1.27      millert  3146: fi
                   3147:
1.1       millert  3148:
1.16      millert  3149:
1.27      millert  3150: # Check whether --with-sudoers-uid was given.
1.1       millert  3151: if test "${with_sudoers_uid+set}" = set; then
1.27      millert  3152:   withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16      millert  3153:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  3154: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   3155:    { (exit 1); exit 1; }; }
                   3156:                ;;
1.16      millert  3157:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  3158: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   3159:    { (exit 1); exit 1; }; }
1.1       millert  3160:                ;;
                   3161:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   3162:                ;;
1.16      millert  3163:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
                   3164: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  3165:    { (exit 1); exit 1; }; }
1.1       millert  3166:                ;;
                   3167: esac
1.27      millert  3168: fi
                   3169:
1.1       millert  3170:
1.16      millert  3171:
1.27      millert  3172: # Check whether --with-sudoers-gid was given.
1.1       millert  3173: if test "${with_sudoers_gid+set}" = set; then
1.27      millert  3174:   withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16      millert  3175:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  3176: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   3177:    { (exit 1); exit 1; }; }
                   3178:                ;;
1.16      millert  3179:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  3180: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   3181:    { (exit 1); exit 1; }; }
1.1       millert  3182:                ;;
                   3183:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   3184:                ;;
1.16      millert  3185:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
                   3186: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  3187:    { (exit 1); exit 1; }; }
1.1       millert  3188:                ;;
                   3189: esac
1.27      millert  3190: fi
                   3191:
1.1       millert  3192:
1.27      millert  3193: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
                   3194: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1       millert  3195:
1.27      millert  3196: # Check whether --with-umask was given.
1.1       millert  3197: if test "${with_umask+set}" = set; then
1.27      millert  3198:   withval=$with_umask; case $with_umask in
1.16      millert  3199:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  3200: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   3201:    { (exit 1); exit 1; }; }
1.1       millert  3202:                ;;
1.9       millert  3203:     no)                sudo_umask=0777
1.1       millert  3204:                ;;
1.9       millert  3205:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  3206:                ;;
1.16      millert  3207:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  3208: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   3209:    { (exit 1); exit 1; }; }
1.1       millert  3210:                ;;
                   3211: esac
1.27      millert  3212: fi
                   3213:
1.9       millert  3214:
1.16      millert  3215: cat >>confdefs.h <<_ACEOF
1.9       millert  3216: #define SUDO_UMASK $sudo_umask
1.16      millert  3217: _ACEOF
1.9       millert  3218:
                   3219: if test "$sudo_umask" = "0777"; then
1.27      millert  3220:     { echo "$as_me:$LINENO: result: user" >&5
                   3221: echo "${ECHO_T}user" >&6; }
1.1       millert  3222: else
1.27      millert  3223:     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
                   3224: echo "${ECHO_T}$sudo_umask" >&6; }
1.1       millert  3225: fi
                   3226:
1.27      millert  3227: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
                   3228: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1       millert  3229:
1.27      millert  3230: # Check whether --with-runas-default was given.
1.1       millert  3231: if test "${with_runas_default+set}" = set; then
1.27      millert  3232:   withval=$with_runas_default; case $with_runas_default in
1.16      millert  3233:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  3234: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   3235:    { (exit 1); exit 1; }; }
1.1       millert  3236:                ;;
1.16      millert  3237:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  3238: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   3239:    { (exit 1); exit 1; }; }
1.1       millert  3240:                ;;
1.9       millert  3241:     *)         runas_default="$with_runas_default"
1.1       millert  3242:                ;;
                   3243: esac
1.27      millert  3244: fi
                   3245:
1.9       millert  3246:
1.16      millert  3247: cat >>confdefs.h <<_ACEOF
1.9       millert  3248: #define RUNAS_DEFAULT "$runas_default"
1.16      millert  3249: _ACEOF
1.1       millert  3250:
1.27      millert  3251: { echo "$as_me:$LINENO: result: $runas_default" >&5
                   3252: echo "${ECHO_T}$runas_default" >&6; }
1.1       millert  3253:
1.16      millert  3254:
1.27      millert  3255: # Check whether --with-exempt was given.
1.1       millert  3256: if test "${with_exempt+set}" = set; then
1.27      millert  3257:   withval=$with_exempt; case $with_exempt in
1.16      millert  3258:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  3259: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   3260:    { (exit 1); exit 1; }; }
                   3261:                ;;
1.16      millert  3262:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  3263: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   3264:    { (exit 1); exit 1; }; }
1.1       millert  3265:                ;;
1.9       millert  3266:     *)
1.16      millert  3267: cat >>confdefs.h <<_ACEOF
1.1       millert  3268: #define EXEMPTGROUP "$with_exempt"
1.16      millert  3269: _ACEOF
1.1       millert  3270:
1.27      millert  3271:                { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
                   3272: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
                   3273:                { echo "$as_me:$LINENO: result: $with_exempt" >&5
                   3274: echo "${ECHO_T}$with_exempt" >&6; }
1.1       millert  3275:                ;;
                   3276: esac
1.27      millert  3277: fi
                   3278:
1.1       millert  3279:
1.27      millert  3280: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
                   3281: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1       millert  3282:
1.27      millert  3283: # Check whether --with-editor was given.
1.1       millert  3284: if test "${with_editor+set}" = set; then
1.27      millert  3285:   withval=$with_editor; case $with_editor in
1.16      millert  3286:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  3287: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   3288:    { (exit 1); exit 1; }; }
                   3289:                ;;
1.16      millert  3290:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3291: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3292:    { (exit 1); exit 1; }; }
1.1       millert  3293:                ;;
1.9       millert  3294:     *)
1.16      millert  3295: cat >>confdefs.h <<_ACEOF
1.1       millert  3296: #define EDITOR "$with_editor"
1.16      millert  3297: _ACEOF
1.1       millert  3298:
1.27      millert  3299:                { echo "$as_me:$LINENO: result: $with_editor" >&5
                   3300: echo "${ECHO_T}$with_editor" >&6; }
1.1       millert  3301:                ;;
                   3302: esac
                   3303: else
1.16      millert  3304:   cat >>confdefs.h <<\_ACEOF
1.1       millert  3305: #define EDITOR _PATH_VI
1.16      millert  3306: _ACEOF
1.27      millert  3307:  { echo "$as_me:$LINENO: result: vi" >&5
                   3308: echo "${ECHO_T}vi" >&6; }
                   3309: fi
                   3310:
1.1       millert  3311:
1.27      millert  3312: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   3313: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1       millert  3314:
1.27      millert  3315: # Check whether --with-env-editor was given.
1.1       millert  3316: if test "${with_env_editor+set}" = set; then
1.27      millert  3317:   withval=$with_env_editor; case $with_env_editor in
1.9       millert  3318:     yes)       env_editor=on
1.1       millert  3319:                ;;
1.9       millert  3320:     no)                env_editor=off
1.1       millert  3321:                ;;
1.16      millert  3322:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  3323: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   3324:    { (exit 1); exit 1; }; }
1.1       millert  3325:                ;;
                   3326: esac
1.27      millert  3327: fi
                   3328:
1.9       millert  3329: if test "$env_editor" = "on"; then
1.23      millert  3330:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3331: #define ENV_EDITOR 1
1.16      millert  3332: _ACEOF
1.9       millert  3333:
1.27      millert  3334:     { echo "$as_me:$LINENO: result: yes" >&5
                   3335: echo "${ECHO_T}yes" >&6; }
1.1       millert  3336: else
1.27      millert  3337:     { echo "$as_me:$LINENO: result: no" >&5
                   3338: echo "${ECHO_T}no" >&6; }
1.1       millert  3339: fi
                   3340:
1.27      millert  3341: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
                   3342: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1       millert  3343:
1.27      millert  3344: # Check whether --with-passwd-tries was given.
1.1       millert  3345: if test "${with_passwd_tries+set}" = set; then
1.27      millert  3346:   withval=$with_passwd_tries; case $with_passwd_tries in
1.9       millert  3347:     yes)       ;;
1.16      millert  3348:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3349: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3350:    { (exit 1); exit 1; }; }
1.1       millert  3351:                ;;
1.9       millert  3352:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  3353:                ;;
1.16      millert  3354:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  3355: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   3356:    { (exit 1); exit 1; }; }
1.1       millert  3357:                ;;
                   3358: esac
1.27      millert  3359: fi
                   3360:
1.9       millert  3361:
1.16      millert  3362: cat >>confdefs.h <<_ACEOF
1.9       millert  3363: #define TRIES_FOR_PASSWORD $passwd_tries
1.16      millert  3364: _ACEOF
1.1       millert  3365:
1.27      millert  3366: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
                   3367: echo "${ECHO_T}$passwd_tries" >&6; }
1.9       millert  3368:
1.27      millert  3369: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
                   3370: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1       millert  3371:
1.27      millert  3372: # Check whether --with-timeout was given.
1.1       millert  3373: if test "${with_timeout+set}" = set; then
1.27      millert  3374:   withval=$with_timeout; case $with_timeout in
1.9       millert  3375:     yes)       ;;
                   3376:     no)                timeout=0
1.1       millert  3377:                ;;
1.9       millert  3378:     [0-9]*)    timeout=$with_timeout
1.1       millert  3379:                ;;
1.16      millert  3380:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3381: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3382:    { (exit 1); exit 1; }; }
1.1       millert  3383:                ;;
                   3384: esac
1.27      millert  3385: fi
                   3386:
1.9       millert  3387:
1.16      millert  3388: cat >>confdefs.h <<_ACEOF
1.9       millert  3389: #define TIMEOUT $timeout
1.16      millert  3390: _ACEOF
1.1       millert  3391:
1.27      millert  3392: { echo "$as_me:$LINENO: result: $timeout" >&5
                   3393: echo "${ECHO_T}$timeout" >&6; }
1.9       millert  3394:
1.27      millert  3395: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
                   3396: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1       millert  3397:
1.27      millert  3398: # Check whether --with-password-timeout was given.
1.1       millert  3399: if test "${with_password_timeout+set}" = set; then
1.27      millert  3400:   withval=$with_password_timeout; case $with_password_timeout in
1.9       millert  3401:     yes)       ;;
                   3402:     no)                password_timeout=0
1.1       millert  3403:                ;;
1.9       millert  3404:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  3405:                ;;
1.16      millert  3406:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3407: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3408:    { (exit 1); exit 1; }; }
1.1       millert  3409:                ;;
                   3410: esac
1.27      millert  3411: fi
                   3412:
1.9       millert  3413:
1.16      millert  3414: cat >>confdefs.h <<_ACEOF
1.9       millert  3415: #define PASSWORD_TIMEOUT $password_timeout
1.16      millert  3416: _ACEOF
1.1       millert  3417:
1.27      millert  3418: { echo "$as_me:$LINENO: result: $password_timeout" >&5
                   3419: echo "${ECHO_T}$password_timeout" >&6; }
1.1       millert  3420:
1.27      millert  3421: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
                   3422: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1       millert  3423:
1.27      millert  3424: # Check whether --with-tty-tickets was given.
1.1       millert  3425: if test "${with_tty_tickets+set}" = set; then
1.27      millert  3426:   withval=$with_tty_tickets; case $with_tty_tickets in
1.9       millert  3427:     yes)       tty_tickets=on
1.1       millert  3428:                ;;
1.9       millert  3429:     no)                tty_tickets=off
1.1       millert  3430:                ;;
1.16      millert  3431:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  3432: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   3433:    { (exit 1); exit 1; }; }
1.1       millert  3434:                ;;
                   3435: esac
1.27      millert  3436: fi
                   3437:
1.9       millert  3438: if test "$tty_tickets" = "on"; then
1.23      millert  3439:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3440: #define USE_TTY_TICKETS 1
1.16      millert  3441: _ACEOF
1.9       millert  3442:
1.27      millert  3443:     { echo "$as_me:$LINENO: result: yes" >&5
                   3444: echo "${ECHO_T}yes" >&6; }
1.1       millert  3445: else
1.27      millert  3446:     { echo "$as_me:$LINENO: result: no" >&5
                   3447: echo "${ECHO_T}no" >&6; }
1.1       millert  3448: fi
                   3449:
1.27      millert  3450: { echo "$as_me:$LINENO: checking whether to include insults" >&5
                   3451: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1       millert  3452:
1.27      millert  3453: # Check whether --with-insults was given.
1.1       millert  3454: if test "${with_insults+set}" = set; then
1.27      millert  3455:   withval=$with_insults; case $with_insults in
1.9       millert  3456:     yes)       insults=on
1.1       millert  3457:                with_classic_insults=yes
                   3458:                with_csops_insults=yes
                   3459:                ;;
1.9       millert  3460:     no)                insults=off
1.1       millert  3461:                ;;
1.16      millert  3462:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  3463: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   3464:    { (exit 1); exit 1; }; }
1.1       millert  3465:                ;;
                   3466: esac
1.27      millert  3467: fi
                   3468:
1.9       millert  3469: if test "$insults" = "on"; then
1.23      millert  3470:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3471: #define USE_INSULTS 1
1.16      millert  3472: _ACEOF
1.9       millert  3473:
1.27      millert  3474:     { echo "$as_me:$LINENO: result: yes" >&5
                   3475: echo "${ECHO_T}yes" >&6; }
1.1       millert  3476: else
1.27      millert  3477:     { echo "$as_me:$LINENO: result: no" >&5
                   3478: echo "${ECHO_T}no" >&6; }
1.1       millert  3479: fi
                   3480:
1.16      millert  3481:
1.27      millert  3482: # Check whether --with-all-insults was given.
1.1       millert  3483: if test "${with_all_insults+set}" = set; then
1.27      millert  3484:   withval=$with_all_insults; case $with_all_insults in
1.1       millert  3485:     yes)       with_classic_insults=yes
                   3486:                with_csops_insults=yes
                   3487:                with_hal_insults=yes
                   3488:                with_goons_insults=yes
                   3489:                ;;
                   3490:     no)                ;;
1.16      millert  3491:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  3492: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   3493:    { (exit 1); exit 1; }; }
1.1       millert  3494:                ;;
                   3495: esac
1.27      millert  3496: fi
                   3497:
1.1       millert  3498:
1.16      millert  3499:
1.27      millert  3500: # Check whether --with-classic-insults was given.
1.1       millert  3501: if test "${with_classic_insults+set}" = set; then
1.27      millert  3502:   withval=$with_classic_insults; case $with_classic_insults in
1.23      millert  3503:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3504: #define CLASSIC_INSULTS 1
1.16      millert  3505: _ACEOF
1.1       millert  3506:
                   3507:                ;;
                   3508:     no)                ;;
1.16      millert  3509:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  3510: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   3511:    { (exit 1); exit 1; }; }
1.1       millert  3512:                ;;
                   3513: esac
1.27      millert  3514: fi
                   3515:
1.1       millert  3516:
1.16      millert  3517:
1.27      millert  3518: # Check whether --with-csops-insults was given.
1.1       millert  3519: if test "${with_csops_insults+set}" = set; then
1.27      millert  3520:   withval=$with_csops_insults; case $with_csops_insults in
1.23      millert  3521:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3522: #define CSOPS_INSULTS 1
1.16      millert  3523: _ACEOF
1.1       millert  3524:
                   3525:                ;;
                   3526:     no)                ;;
1.16      millert  3527:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  3528: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   3529:    { (exit 1); exit 1; }; }
1.1       millert  3530:                ;;
                   3531: esac
1.27      millert  3532: fi
                   3533:
1.1       millert  3534:
1.16      millert  3535:
1.27      millert  3536: # Check whether --with-hal-insults was given.
1.1       millert  3537: if test "${with_hal_insults+set}" = set; then
1.27      millert  3538:   withval=$with_hal_insults; case $with_hal_insults in
1.23      millert  3539:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3540: #define HAL_INSULTS 1
1.16      millert  3541: _ACEOF
1.1       millert  3542:
                   3543:                ;;
                   3544:     no)                ;;
1.16      millert  3545:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  3546: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
                   3547:    { (exit 1); exit 1; }; }
1.1       millert  3548:                ;;
                   3549: esac
1.27      millert  3550: fi
                   3551:
1.1       millert  3552:
1.16      millert  3553:
1.27      millert  3554: # Check whether --with-goons-insults was given.
1.1       millert  3555: if test "${with_goons_insults+set}" = set; then
1.27      millert  3556:   withval=$with_goons_insults; case $with_goons_insults in
1.23      millert  3557:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3558: #define GOONS_INSULTS 1
1.16      millert  3559: _ACEOF
1.1       millert  3560:
                   3561:                ;;
                   3562:     no)                ;;
1.16      millert  3563:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  3564: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   3565:    { (exit 1); exit 1; }; }
1.1       millert  3566:                ;;
                   3567: esac
1.27      millert  3568: fi
                   3569:
1.1       millert  3570:
1.23      millert  3571:
1.37    ! millert  3572: # Check whether --with-nsswitch was given.
        !          3573: if test "${with_nsswitch+set}" = set; then
        !          3574:   withval=$with_nsswitch; case $with_nsswitch in
        !          3575:     no)                ;;
        !          3576:     yes)       with_nsswitch="/etc/nsswitch.conf"
        !          3577:                ;;
        !          3578:     *)         ;;
        !          3579: esac
        !          3580: fi
        !          3581:
        !          3582: if test ${with_nsswitch-"yes"} != "no"; then
        !          3583:     cat >>confdefs.h <<EOF
        !          3584: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
        !          3585: EOF
        !          3586:
        !          3587:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
        !          3588: else
        !          3589:     nsswitch_conf='/etc/nsswitch.conf'
        !          3590: fi
        !          3591:
        !          3592:
1.27      millert  3593: # Check whether --with-ldap was given.
1.23      millert  3594: if test "${with_ldap+set}" = set; then
1.27      millert  3595:   withval=$with_ldap; case $with_ldap in
1.23      millert  3596:     no)                with_ldap="";;
                   3597:     *)         cat >>confdefs.h <<\_ACEOF
                   3598: #define HAVE_LDAP 1
                   3599: _ACEOF
                   3600:
1.27      millert  3601:                { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
                   3602: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
                   3603:                { echo "$as_me:$LINENO: result: yes" >&5
                   3604: echo "${ECHO_T}yes" >&6; }
1.23      millert  3605:                ;;
                   3606: esac
1.27      millert  3607: fi
                   3608:
1.23      millert  3609:
1.37    ! millert  3610:
1.27      millert  3611: # Check whether --with-ldap-conf-file was given.
1.23      millert  3612: if test "${with_ldap_conf_file+set}" = set; then
1.27      millert  3613:   withval=$with_ldap_conf_file;
1.37    ! millert  3614: fi
        !          3615:
        !          3616: cat >>confdefs.h <<EOF
        !          3617: #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
        !          3618: EOF
1.23      millert  3619:
1.37    ! millert  3620: ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
1.27      millert  3621:
1.23      millert  3622:
1.27      millert  3623: # Check whether --with-ldap-secret-file was given.
1.25      millert  3624: if test "${with_ldap_secret_file+set}" = set; then
1.27      millert  3625:   withval=$with_ldap_secret_file;
1.37    ! millert  3626: fi
1.25      millert  3627:
1.37    ! millert  3628: cat >>confdefs.h <<EOF
        !          3629: #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
        !          3630: EOF
1.27      millert  3631:
1.37    ! millert  3632: ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
1.25      millert  3633:
1.23      millert  3634:
1.27      millert  3635: # Check whether --with-pc-insults was given.
1.23      millert  3636: if test "${with_pc_insults+set}" = set; then
1.27      millert  3637:   withval=$with_pc_insults; case $with_pc_insults in
1.23      millert  3638:     yes)       cat >>confdefs.h <<\_ACEOF
                   3639: #define PC_INSULTS 1
                   3640: _ACEOF
                   3641:
                   3642:                ;;
                   3643:     no)                ;;
                   3644:     *)         { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
                   3645: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
                   3646:    { (exit 1); exit 1; }; }
                   3647:                ;;
                   3648: esac
1.27      millert  3649: fi
                   3650:
1.23      millert  3651:
1.9       millert  3652: if test "$insults" = "on"; then
1.27      millert  3653:     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
                   3654: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1       millert  3655:     i=""
                   3656:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   3657:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   3658:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   3659:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27      millert  3660:     { echo "$as_me:$LINENO: result: $i" >&5
                   3661: echo "${ECHO_T}$i" >&6; }
1.1       millert  3662: fi
                   3663:
1.27      millert  3664: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
                   3665: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9       millert  3666:
1.27      millert  3667: # Check whether --with-secure-path was given.
1.1       millert  3668: if test "${with_secure_path+set}" = set; then
1.27      millert  3669:   withval=$with_secure_path; case $with_secure_path in
1.23      millert  3670:     yes)       cat >>confdefs.h <<_ACEOF
1.1       millert  3671: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16      millert  3672: _ACEOF
1.1       millert  3673:
1.27      millert  3674:                { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
                   3675: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
1.1       millert  3676:                ;;
1.27      millert  3677:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3678: echo "${ECHO_T}no" >&6; }
1.1       millert  3679:                ;;
1.16      millert  3680:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  3681: #define SECURE_PATH "$with_secure_path"
1.16      millert  3682: _ACEOF
1.1       millert  3683:
1.27      millert  3684:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
                   3685: echo "${ECHO_T}$with_secure_path" >&6; }
1.1       millert  3686:                ;;
                   3687: esac
                   3688: else
1.27      millert  3689:   { echo "$as_me:$LINENO: result: no" >&5
                   3690: echo "${ECHO_T}no" >&6; }
                   3691: fi
                   3692:
1.1       millert  3693:
1.27      millert  3694: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
                   3695: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1       millert  3696:
1.27      millert  3697: # Check whether --with-interfaces was given.
1.1       millert  3698: if test "${with_interfaces+set}" = set; then
1.27      millert  3699:   withval=$with_interfaces; case $with_interfaces in
                   3700:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3701: echo "${ECHO_T}yes" >&6; }
1.1       millert  3702:                ;;
1.23      millert  3703:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3704: #define STUB_LOAD_INTERFACES 1
1.16      millert  3705: _ACEOF
1.1       millert  3706:
1.27      millert  3707:                { echo "$as_me:$LINENO: result: no" >&5
                   3708: echo "${ECHO_T}no" >&6; }
1.1       millert  3709:                ;;
1.16      millert  3710:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  3711: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   3712:    { (exit 1); exit 1; }; }
1.1       millert  3713:                ;;
                   3714: esac
                   3715: else
1.27      millert  3716:   { echo "$as_me:$LINENO: result: yes" >&5
                   3717: echo "${ECHO_T}yes" >&6; }
                   3718: fi
                   3719:
1.16      millert  3720:
1.27      millert  3721: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
                   3722: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16      millert  3723:
1.27      millert  3724: # Check whether --with-stow was given.
1.16      millert  3725: if test "${with_stow+set}" = set; then
1.27      millert  3726:   withval=$with_stow; case $with_stow in
                   3727:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3728: echo "${ECHO_T}yes" >&6; }
1.23      millert  3729:                cat >>confdefs.h <<\_ACEOF
1.16      millert  3730: #define USE_STOW 1
                   3731: _ACEOF
                   3732:
                   3733:                ;;
1.27      millert  3734:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3735: echo "${ECHO_T}no" >&6; }
1.16      millert  3736:                ;;
                   3737:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
                   3738: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
                   3739:    { (exit 1); exit 1; }; }
                   3740:                ;;
                   3741: esac
                   3742: else
1.27      millert  3743:   { echo "$as_me:$LINENO: result: no" >&5
                   3744: echo "${ECHO_T}no" >&6; }
                   3745: fi
                   3746:
1.1       millert  3747:
1.37    ! millert  3748: { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
        !          3749: echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
        !          3750:
        !          3751: # Check whether --with-askpass was given.
        !          3752: if test "${with_askpass+set}" = set; then
        !          3753:   withval=$with_askpass; case $with_askpass in
        !          3754:     yes)       { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
        !          3755: echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
        !          3756:    { (exit 1); exit 1; }; }
        !          3757:                ;;
        !          3758:     no)                ;;
        !          3759:     *)
        !          3760: cat >>confdefs.h <<_ACEOF
        !          3761: #define _PATH_SUDO_ASKPASS "$with_askpass"
        !          3762: _ACEOF
        !          3763:
        !          3764:                ;;
        !          3765: esac
        !          3766: else
        !          3767:   { echo "$as_me:$LINENO: result: no" >&5
        !          3768: echo "${ECHO_T}no" >&6; }
        !          3769: fi
        !          3770:
        !          3771:
1.16      millert  3772:
1.27      millert  3773: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
                   3774: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
                   3775: # Check whether --enable-authentication was given.
1.1       millert  3776: if test "${enable_authentication+set}" = set; then
1.27      millert  3777:   enableval=$enable_authentication;  case "$enableval" in
                   3778:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3779: echo "${ECHO_T}yes" >&6; }
1.1       millert  3780:                ;;
1.27      millert  3781:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3782: echo "${ECHO_T}no" >&6; }
1.23      millert  3783:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3784: #define NO_AUTHENTICATION 1
1.16      millert  3785: _ACEOF
1.1       millert  3786:
                   3787:                ;;
1.27      millert  3788:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3789: echo "${ECHO_T}no" >&6; }
1.17      millert  3790:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   3791: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1       millert  3792:                ;;
                   3793:   esac
                   3794:
                   3795: else
1.27      millert  3796:   { echo "$as_me:$LINENO: result: yes" >&5
                   3797: echo "${ECHO_T}yes" >&6; }
                   3798: fi
                   3799:
                   3800:
                   3801: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
                   3802: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
                   3803: # Check whether --enable-root-mailer was given.
1.12      millert  3804: if test "${enable_root_mailer+set}" = set; then
1.27      millert  3805:   enableval=$enable_root_mailer;  case "$enableval" in
                   3806:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3807: echo "${ECHO_T}no" >&6; }
1.12      millert  3808:                ;;
1.27      millert  3809:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3810: echo "${ECHO_T}yes" >&6; }
1.23      millert  3811:                cat >>confdefs.h <<\_ACEOF
1.12      millert  3812: #define NO_ROOT_MAILER 1
1.16      millert  3813: _ACEOF
1.12      millert  3814:
                   3815:                ;;
1.27      millert  3816:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3817: echo "${ECHO_T}no" >&6; }
1.17      millert  3818:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   3819: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12      millert  3820:                ;;
                   3821:   esac
                   3822:
                   3823: else
1.27      millert  3824:   { echo "$as_me:$LINENO: result: no" >&5
                   3825: echo "${ECHO_T}no" >&6; }
                   3826: fi
1.12      millert  3827:
1.27      millert  3828:
                   3829: # Check whether --enable-setreuid was given.
1.13      millert  3830: if test "${enable_setreuid+set}" = set; then
1.27      millert  3831:   enableval=$enable_setreuid;  case "$enableval" in
1.16      millert  3832:     no)                SKIP_SETREUID=yes
                   3833:                ;;
                   3834:     *)         ;;
                   3835:   esac
                   3836:
1.27      millert  3837: fi
                   3838:
1.16      millert  3839:
1.27      millert  3840: # Check whether --enable-setresuid was given.
1.16      millert  3841: if test "${enable_setresuid+set}" = set; then
1.27      millert  3842:   enableval=$enable_setresuid;  case "$enableval" in
1.16      millert  3843:     no)                SKIP_SETRESUID=yes
1.13      millert  3844:                ;;
                   3845:     *)         ;;
                   3846:   esac
                   3847:
1.27      millert  3848: fi
                   3849:
1.13      millert  3850:
1.27      millert  3851: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
                   3852: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
                   3853: # Check whether --enable-shadow was given.
1.1       millert  3854: if test "${enable_shadow+set}" = set; then
1.27      millert  3855:   enableval=$enable_shadow;  case "$enableval" in
                   3856:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3857: echo "${ECHO_T}no" >&6; }
1.1       millert  3858:                ;;
1.27      millert  3859:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3860: echo "${ECHO_T}yes" >&6; }
1.1       millert  3861:                CHECKSHADOW="false"
                   3862:                ;;
1.27      millert  3863:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3864: echo "${ECHO_T}no" >&6; }
1.17      millert  3865:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   3866: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1       millert  3867:                ;;
                   3868:   esac
                   3869:
                   3870: else
1.27      millert  3871:   { echo "$as_me:$LINENO: result: no" >&5
                   3872: echo "${ECHO_T}no" >&6; }
                   3873: fi
                   3874:
                   3875:
                   3876: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
                   3877: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
                   3878: # Check whether --enable-root-sudo was given.
1.1       millert  3879: if test "${enable_root_sudo+set}" = set; then
1.27      millert  3880:   enableval=$enable_root_sudo;  case "$enableval" in
                   3881:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3882: echo "${ECHO_T}yes" >&6; }
1.1       millert  3883:                ;;
1.23      millert  3884:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3885: #define NO_ROOT_SUDO 1
1.16      millert  3886: _ACEOF
1.1       millert  3887:
1.27      millert  3888:                { echo "$as_me:$LINENO: result: no" >&5
                   3889: echo "${ECHO_T}no" >&6; }
1.23      millert  3890:                root_sudo=off
1.1       millert  3891:                ;;
1.16      millert  3892:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9       millert  3893: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   3894:    { (exit 1); exit 1; }; }
1.1       millert  3895:                ;;
                   3896:   esac
                   3897:
                   3898: else
1.27      millert  3899:   { echo "$as_me:$LINENO: result: yes" >&5
                   3900: echo "${ECHO_T}yes" >&6; }
                   3901: fi
                   3902:
                   3903:
                   3904: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
                   3905: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
                   3906: # Check whether --enable-log-host was given.
1.1       millert  3907: if test "${enable_log_host+set}" = set; then
1.27      millert  3908:   enableval=$enable_log_host;  case "$enableval" in
                   3909:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3910: echo "${ECHO_T}yes" >&6; }
1.23      millert  3911:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3912: #define HOST_IN_LOG 1
1.16      millert  3913: _ACEOF
1.1       millert  3914:
                   3915:                ;;
1.27      millert  3916:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3917: echo "${ECHO_T}no" >&6; }
1.1       millert  3918:                ;;
1.27      millert  3919:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3920: echo "${ECHO_T}no" >&6; }
1.17      millert  3921:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   3922: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1       millert  3923:                ;;
                   3924:   esac
                   3925:
                   3926: else
1.27      millert  3927:   { echo "$as_me:$LINENO: result: no" >&5
                   3928: echo "${ECHO_T}no" >&6; }
                   3929: fi
                   3930:
                   3931:
                   3932: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
                   3933: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
                   3934: # Check whether --enable-noargs-shell was given.
1.1       millert  3935: if test "${enable_noargs_shell+set}" = set; then
1.27      millert  3936:   enableval=$enable_noargs_shell;  case "$enableval" in
                   3937:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3938: echo "${ECHO_T}yes" >&6; }
1.23      millert  3939:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3940: #define SHELL_IF_NO_ARGS 1
1.16      millert  3941: _ACEOF
1.1       millert  3942:
                   3943:                ;;
1.27      millert  3944:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3945: echo "${ECHO_T}no" >&6; }
1.1       millert  3946:                ;;
1.27      millert  3947:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3948: echo "${ECHO_T}no" >&6; }
1.17      millert  3949:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   3950: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1       millert  3951:                ;;
                   3952:   esac
                   3953:
                   3954: else
1.27      millert  3955:   { echo "$as_me:$LINENO: result: no" >&5
                   3956: echo "${ECHO_T}no" >&6; }
                   3957: fi
                   3958:
                   3959:
                   3960: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
                   3961: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
                   3962: # Check whether --enable-shell-sets-home was given.
1.1       millert  3963: if test "${enable_shell_sets_home+set}" = set; then
1.27      millert  3964:   enableval=$enable_shell_sets_home;  case "$enableval" in
                   3965:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3966: echo "${ECHO_T}yes" >&6; }
1.23      millert  3967:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3968: #define SHELL_SETS_HOME 1
1.16      millert  3969: _ACEOF
1.1       millert  3970:
                   3971:                ;;
1.27      millert  3972:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3973: echo "${ECHO_T}no" >&6; }
1.1       millert  3974:                ;;
1.27      millert  3975:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3976: echo "${ECHO_T}no" >&6; }
1.17      millert  3977:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   3978: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1       millert  3979:                ;;
                   3980:   esac
                   3981:
                   3982: else
1.27      millert  3983:   { echo "$as_me:$LINENO: result: no" >&5
                   3984: echo "${ECHO_T}no" >&6; }
                   3985: fi
                   3986:
                   3987:
                   3988: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
                   3989: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
                   3990: # Check whether --enable-path_info was given.
1.1       millert  3991: if test "${enable_path_info+set}" = set; then
1.27      millert  3992:   enableval=$enable_path_info;  case "$enableval" in
                   3993:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3994: echo "${ECHO_T}no" >&6; }
1.1       millert  3995:                ;;
1.27      millert  3996:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3997: echo "${ECHO_T}yes" >&6; }
1.23      millert  3998:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3999: #define DONT_LEAK_PATH_INFO 1
1.16      millert  4000: _ACEOF
1.1       millert  4001:
1.25      millert  4002:                path_info=off
1.1       millert  4003:                ;;
1.27      millert  4004:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4005: echo "${ECHO_T}no" >&6; }
1.17      millert  4006:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   4007: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1       millert  4008:                ;;
                   4009:   esac
                   4010:
                   4011: else
1.27      millert  4012:   { echo "$as_me:$LINENO: result: no" >&5
                   4013: echo "${ECHO_T}no" >&6; }
                   4014: fi
                   4015:
1.1       millert  4016:
1.36      millert  4017:
                   4018: # Check whether --with-selinux was given.
                   4019: if test "${with_selinux+set}" = set; then
                   4020:   withval=$with_selinux; case $with_selinux in
1.37    ! millert  4021:     yes)       SELINUX_USAGE="[-r role] [-t type] "
        !          4022:                cat >>confdefs.h <<\_ACEOF
1.36      millert  4023: #define HAVE_SELINUX 1
                   4024: _ACEOF
                   4025:
                   4026:                SUDO_LIBS="${SUDO_LIBS} -lselinux"
                   4027:                SUDO_OBJS="${SUDO_OBJS} selinux.o"
                   4028:                PROGS="${PROGS} sesh"
                   4029:                SELINUX=""
                   4030:                SEMAN=""
                   4031:                ;;
                   4032:     no)                ;;
                   4033:     *)         { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
                   4034: echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
                   4035:    { (exit 1); exit 1; }; }
                   4036:                ;;
                   4037: esac
                   4038: fi
                   4039:
                   4040:
1.37    ! millert  4041: # Check whether --enable-gss_krb5_ccache_name was given.
        !          4042: if test "${enable_gss_krb5_ccache_name+set}" = set; then
        !          4043:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
        !          4044: else
        !          4045:   check_gss_krb5_ccache_name=no
        !          4046: fi
        !          4047:
        !          4048:
1.1       millert  4049: # Extract the first word of "egrep", so it can be a program name with args.
                   4050: set dummy egrep; ac_word=$2
1.27      millert  4051: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4052: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4053: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   4054:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4055: else
                   4056:   if test -n "$EGREPPROG"; then
                   4057:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   4058: else
1.16      millert  4059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4060: for as_dir in $PATH
                   4061: do
                   4062:   IFS=$as_save_IFS
                   4063:   test -z "$as_dir" && as_dir=.
                   4064:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4065:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4066:     ac_cv_prog_EGREPPROG="egrep"
                   4067:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4068:     break 2
                   4069:   fi
                   4070: done
1.9       millert  4071: done
1.27      millert  4072: IFS=$as_save_IFS
1.9       millert  4073:
1.1       millert  4074: fi
                   4075: fi
1.9       millert  4076: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  4077: if test -n "$EGREPPROG"; then
1.27      millert  4078:   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
                   4079: echo "${ECHO_T}$EGREPPROG" >&6; }
1.1       millert  4080: else
1.27      millert  4081:   { echo "$as_me:$LINENO: result: no" >&5
                   4082: echo "${ECHO_T}no" >&6; }
1.1       millert  4083: fi
                   4084:
1.27      millert  4085:
1.1       millert  4086: if test -z "$EGREPPROG"; then
1.17      millert  4087:     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
                   4088: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
                   4089:    { (exit 1); exit 1; }; }
1.1       millert  4090: fi
                   4091:
1.9       millert  4092: if test "$with_devel" != "yes"; then
                   4093:     ac_cv_prog_cc_g=no
                   4094: fi
                   4095:
                   4096: ac_ext=c
                   4097: ac_cpp='$CPP $CPPFLAGS'
                   4098: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4099: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4100: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4101: if test -n "$ac_tool_prefix"; then
                   4102:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   4103: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.27      millert  4104: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4105: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4106: if test "${ac_cv_prog_CC+set}" = set; then
                   4107:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4108: else
                   4109:   if test -n "$CC"; then
                   4110:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4111: else
1.16      millert  4112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4113: for as_dir in $PATH
                   4114: do
                   4115:   IFS=$as_save_IFS
                   4116:   test -z "$as_dir" && as_dir=.
                   4117:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4118:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4119:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   4120:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4121:     break 2
                   4122:   fi
                   4123: done
1.9       millert  4124: done
1.27      millert  4125: IFS=$as_save_IFS
1.9       millert  4126:
1.1       millert  4127: fi
                   4128: fi
1.9       millert  4129: CC=$ac_cv_prog_CC
1.1       millert  4130: if test -n "$CC"; then
1.27      millert  4131:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4132: echo "${ECHO_T}$CC" >&6; }
1.1       millert  4133: else
1.27      millert  4134:   { echo "$as_me:$LINENO: result: no" >&5
                   4135: echo "${ECHO_T}no" >&6; }
1.9       millert  4136: fi
                   4137:
1.27      millert  4138:
1.9       millert  4139: fi
                   4140: if test -z "$ac_cv_prog_CC"; then
                   4141:   ac_ct_CC=$CC
                   4142:   # Extract the first word of "gcc", so it can be a program name with args.
                   4143: set dummy gcc; ac_word=$2
1.27      millert  4144: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4145: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4146: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4147:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4148: else
                   4149:   if test -n "$ac_ct_CC"; then
                   4150:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4151: else
1.16      millert  4152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4153: for as_dir in $PATH
                   4154: do
                   4155:   IFS=$as_save_IFS
                   4156:   test -z "$as_dir" && as_dir=.
                   4157:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4158:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4159:     ac_cv_prog_ac_ct_CC="gcc"
                   4160:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4161:     break 2
                   4162:   fi
                   4163: done
1.9       millert  4164: done
1.27      millert  4165: IFS=$as_save_IFS
1.9       millert  4166:
                   4167: fi
                   4168: fi
                   4169: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4170: if test -n "$ac_ct_CC"; then
1.27      millert  4171:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4172: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.9       millert  4173: else
1.27      millert  4174:   { echo "$as_me:$LINENO: result: no" >&5
                   4175: echo "${ECHO_T}no" >&6; }
1.9       millert  4176: fi
                   4177:
1.27      millert  4178:   if test "x$ac_ct_CC" = x; then
                   4179:     CC=""
                   4180:   else
                   4181:     case $cross_compiling:$ac_tool_warned in
                   4182: yes:)
                   4183: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4184: whose name does not start with the host triplet.  If you think this
                   4185: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4186: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4187: whose name does not start with the host triplet.  If you think this
                   4188: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4189: ac_tool_warned=yes ;;
                   4190: esac
                   4191:     CC=$ac_ct_CC
                   4192:   fi
1.9       millert  4193: else
                   4194:   CC="$ac_cv_prog_CC"
1.1       millert  4195: fi
                   4196:
                   4197: if test -z "$CC"; then
1.27      millert  4198:           if test -n "$ac_tool_prefix"; then
                   4199:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9       millert  4200: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.27      millert  4201: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4202: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4203: if test "${ac_cv_prog_CC+set}" = set; then
                   4204:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4205: else
                   4206:   if test -n "$CC"; then
                   4207:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4208: else
1.16      millert  4209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4210: for as_dir in $PATH
                   4211: do
                   4212:   IFS=$as_save_IFS
                   4213:   test -z "$as_dir" && as_dir=.
                   4214:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4215:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4216:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   4217:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4218:     break 2
                   4219:   fi
                   4220: done
1.9       millert  4221: done
1.27      millert  4222: IFS=$as_save_IFS
1.9       millert  4223:
                   4224: fi
                   4225: fi
                   4226: CC=$ac_cv_prog_CC
                   4227: if test -n "$CC"; then
1.27      millert  4228:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4229: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4230: else
1.27      millert  4231:   { echo "$as_me:$LINENO: result: no" >&5
                   4232: echo "${ECHO_T}no" >&6; }
1.9       millert  4233: fi
                   4234:
1.27      millert  4235:
1.16      millert  4236:   fi
1.9       millert  4237: fi
                   4238: if test -z "$CC"; then
                   4239:   # Extract the first word of "cc", so it can be a program name with args.
                   4240: set dummy cc; ac_word=$2
1.27      millert  4241: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4242: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4243: if test "${ac_cv_prog_CC+set}" = set; then
                   4244:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4245: else
                   4246:   if test -n "$CC"; then
                   4247:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4248: else
                   4249:   ac_prog_rejected=no
1.16      millert  4250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4251: for as_dir in $PATH
                   4252: do
                   4253:   IFS=$as_save_IFS
                   4254:   test -z "$as_dir" && as_dir=.
                   4255:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4256:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4257:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   4258:        ac_prog_rejected=yes
                   4259:        continue
                   4260:      fi
                   4261:     ac_cv_prog_CC="cc"
                   4262:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4263:     break 2
                   4264:   fi
                   4265: done
1.9       millert  4266: done
1.27      millert  4267: IFS=$as_save_IFS
1.9       millert  4268:
1.1       millert  4269: if test $ac_prog_rejected = yes; then
                   4270:   # We found a bogon in the path, so make sure we never use it.
                   4271:   set dummy $ac_cv_prog_CC
                   4272:   shift
1.9       millert  4273:   if test $# != 0; then
1.1       millert  4274:     # We chose a different compiler from the bogus one.
                   4275:     # However, it has the same basename, so the bogon will be chosen
                   4276:     # first if we set CC to just the basename; use the full file name.
                   4277:     shift
1.16      millert  4278:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       millert  4279:   fi
                   4280: fi
                   4281: fi
                   4282: fi
1.9       millert  4283: CC=$ac_cv_prog_CC
1.1       millert  4284: if test -n "$CC"; then
1.27      millert  4285:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4286: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4287: else
1.27      millert  4288:   { echo "$as_me:$LINENO: result: no" >&5
                   4289: echo "${ECHO_T}no" >&6; }
1.9       millert  4290: fi
                   4291:
1.27      millert  4292:
1.9       millert  4293: fi
                   4294: if test -z "$CC"; then
                   4295:   if test -n "$ac_tool_prefix"; then
1.27      millert  4296:   for ac_prog in cl.exe
1.9       millert  4297:   do
                   4298:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4299: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27      millert  4300: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4301: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4302: if test "${ac_cv_prog_CC+set}" = set; then
                   4303:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4304: else
                   4305:   if test -n "$CC"; then
                   4306:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4307: else
1.16      millert  4308: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4309: for as_dir in $PATH
                   4310: do
                   4311:   IFS=$as_save_IFS
                   4312:   test -z "$as_dir" && as_dir=.
                   4313:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4314:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4315:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   4316:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4317:     break 2
                   4318:   fi
                   4319: done
1.9       millert  4320: done
1.27      millert  4321: IFS=$as_save_IFS
1.9       millert  4322:
                   4323: fi
                   4324: fi
                   4325: CC=$ac_cv_prog_CC
                   4326: if test -n "$CC"; then
1.27      millert  4327:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4328: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4329: else
1.27      millert  4330:   { echo "$as_me:$LINENO: result: no" >&5
                   4331: echo "${ECHO_T}no" >&6; }
1.9       millert  4332: fi
                   4333:
1.27      millert  4334:
1.9       millert  4335:     test -n "$CC" && break
                   4336:   done
                   4337: fi
                   4338: if test -z "$CC"; then
                   4339:   ac_ct_CC=$CC
1.27      millert  4340:   for ac_prog in cl.exe
1.9       millert  4341: do
                   4342:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4343: set dummy $ac_prog; ac_word=$2
1.27      millert  4344: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4345: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4346: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4347:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4348: else
                   4349:   if test -n "$ac_ct_CC"; then
                   4350:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4351: else
1.16      millert  4352: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4353: for as_dir in $PATH
                   4354: do
                   4355:   IFS=$as_save_IFS
                   4356:   test -z "$as_dir" && as_dir=.
                   4357:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4358:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4359:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   4360:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4361:     break 2
                   4362:   fi
                   4363: done
1.9       millert  4364: done
1.27      millert  4365: IFS=$as_save_IFS
1.9       millert  4366:
                   4367: fi
                   4368: fi
                   4369: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4370: if test -n "$ac_ct_CC"; then
1.27      millert  4371:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4372: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       millert  4373: else
1.27      millert  4374:   { echo "$as_me:$LINENO: result: no" >&5
                   4375: echo "${ECHO_T}no" >&6; }
1.9       millert  4376: fi
                   4377:
1.27      millert  4378:
1.9       millert  4379:   test -n "$ac_ct_CC" && break
                   4380: done
                   4381:
1.27      millert  4382:   if test "x$ac_ct_CC" = x; then
                   4383:     CC=""
                   4384:   else
                   4385:     case $cross_compiling:$ac_tool_warned in
                   4386: yes:)
                   4387: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4388: whose name does not start with the host triplet.  If you think this
                   4389: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4390: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4391: whose name does not start with the host triplet.  If you think this
                   4392: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4393: ac_tool_warned=yes ;;
                   4394: esac
                   4395:     CC=$ac_ct_CC
                   4396:   fi
1.1       millert  4397: fi
                   4398:
                   4399: fi
                   4400:
1.16      millert  4401:
                   4402: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   4403: See \`config.log' for more details." >&5
                   4404: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   4405: See \`config.log' for more details." >&2;}
1.9       millert  4406:    { (exit 1); exit 1; }; }
                   4407:
                   4408: # Provide some information about the compiler.
1.27      millert  4409: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9       millert  4410: ac_compiler=`set X $ac_compile; echo $2`
1.27      millert  4411: { (ac_try="$ac_compiler --version >&5"
                   4412: case "(($ac_try" in
                   4413:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4414:   *) ac_try_echo=$ac_try;;
                   4415: esac
                   4416: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4417:   (eval "$ac_compiler --version >&5") 2>&5
1.9       millert  4418:   ac_status=$?
1.16      millert  4419:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4420:   (exit $ac_status); }
1.27      millert  4421: { (ac_try="$ac_compiler -v >&5"
                   4422: case "(($ac_try" in
                   4423:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4424:   *) ac_try_echo=$ac_try;;
                   4425: esac
                   4426: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4427:   (eval "$ac_compiler -v >&5") 2>&5
1.9       millert  4428:   ac_status=$?
1.16      millert  4429:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4430:   (exit $ac_status); }
1.27      millert  4431: { (ac_try="$ac_compiler -V >&5"
                   4432: case "(($ac_try" in
                   4433:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4434:   *) ac_try_echo=$ac_try;;
                   4435: esac
                   4436: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4437:   (eval "$ac_compiler -V >&5") 2>&5
1.9       millert  4438:   ac_status=$?
1.16      millert  4439:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4440:   (exit $ac_status); }
                   4441:
                   4442: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4443: /* confdefs.h.  */
                   4444: _ACEOF
                   4445: cat confdefs.h >>conftest.$ac_ext
                   4446: cat >>conftest.$ac_ext <<_ACEOF
                   4447: /* end confdefs.h.  */
1.9       millert  4448:
                   4449: int
                   4450: main ()
                   4451: {
1.1       millert  4452:
1.9       millert  4453:   ;
                   4454:   return 0;
                   4455: }
                   4456: _ACEOF
                   4457: ac_clean_files_save=$ac_clean_files
1.16      millert  4458: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  4459: # Try to create an executable without -o first, disregard a.out.
                   4460: # It will help us diagnose broken compilers, and finding out an intuition
                   4461: # of exeext.
1.27      millert  4462: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   4463: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9       millert  4464: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27      millert  4465: #
                   4466: # List of possible output files, starting from the most likely.
                   4467: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
                   4468: # only as a last resort.  b.out is created by i960 compilers.
                   4469: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
                   4470: #
                   4471: # The IRIX 6 linker writes into existing files which may not be
                   4472: # executable, retaining their permissions.  Remove them first so a
                   4473: # subsequent execution test works.
                   4474: ac_rmfiles=
                   4475: for ac_file in $ac_files
                   4476: do
                   4477:   case $ac_file in
                   4478:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
                   4479:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   4480:   esac
                   4481: done
                   4482: rm -f $ac_rmfiles
                   4483:
                   4484: if { (ac_try="$ac_link_default"
                   4485: case "(($ac_try" in
                   4486:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4487:   *) ac_try_echo=$ac_try;;
                   4488: esac
                   4489: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4490:   (eval "$ac_link_default") 2>&5
1.9       millert  4491:   ac_status=$?
1.16      millert  4492:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4493:   (exit $ac_status); }; then
1.27      millert  4494:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   4495: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   4496: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   4497: # so that the user can short-circuit this test for compilers unknown to
                   4498: # Autoconf.
                   4499: for ac_file in $ac_files ''
1.16      millert  4500: do
                   4501:   test -f "$ac_file" || continue
1.9       millert  4502:   case $ac_file in
1.27      millert  4503:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25      millert  4504:        ;;
1.16      millert  4505:     [ab].out )
1.25      millert  4506:        # We found the default executable, but exeext='' is most
                   4507:        # certainly right.
                   4508:        break;;
1.16      millert  4509:     *.* )
1.27      millert  4510:         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   4511:        then :; else
                   4512:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   4513:        fi
                   4514:        # We set ac_cv_exeext here because the later test for it is not
                   4515:        # safe: cross compilers may not add the suffix if given an `-o'
                   4516:        # argument, so we may need to know it at that point already.
                   4517:        # Even if this section looks crufty: it has the advantage of
                   4518:        # actually working.
1.25      millert  4519:        break;;
1.16      millert  4520:     * )
1.25      millert  4521:        break;;
1.9       millert  4522:   esac
                   4523: done
1.27      millert  4524: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   4525:
1.9       millert  4526: else
1.27      millert  4527:   ac_file=''
                   4528: fi
                   4529:
                   4530: { echo "$as_me:$LINENO: result: $ac_file" >&5
                   4531: echo "${ECHO_T}$ac_file" >&6; }
                   4532: if test -z "$ac_file"; then
1.9       millert  4533:   echo "$as_me: failed program was:" >&5
1.16      millert  4534: sed 's/^/| /' conftest.$ac_ext >&5
                   4535:
                   4536: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   4537: See \`config.log' for more details." >&5
                   4538: echo "$as_me: error: C compiler cannot create executables
                   4539: See \`config.log' for more details." >&2;}
1.9       millert  4540:    { (exit 77); exit 77; }; }
                   4541: fi
                   4542:
                   4543: ac_exeext=$ac_cv_exeext
                   4544:
1.27      millert  4545: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4546: # the compiler is broken, or we cross compile.
1.27      millert  4547: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   4548: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9       millert  4549: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   4550: # If not cross compiling, check that we can run a simple program.
                   4551: if test "$cross_compiling" != yes; then
                   4552:   if { ac_try='./$ac_file'
1.27      millert  4553:   { (case "(($ac_try" in
                   4554:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4555:   *) ac_try_echo=$ac_try;;
                   4556: esac
                   4557: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4558:   (eval "$ac_try") 2>&5
1.9       millert  4559:   ac_status=$?
1.16      millert  4560:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4561:   (exit $ac_status); }; }; then
                   4562:     cross_compiling=no
1.1       millert  4563:   else
1.9       millert  4564:     if test "$cross_compiling" = maybe; then
                   4565:        cross_compiling=yes
                   4566:     else
1.16      millert  4567:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   4568: If you meant to cross compile, use \`--host'.
                   4569: See \`config.log' for more details." >&5
1.9       millert  4570: echo "$as_me: error: cannot run C compiled programs.
1.16      millert  4571: If you meant to cross compile, use \`--host'.
                   4572: See \`config.log' for more details." >&2;}
1.9       millert  4573:    { (exit 1); exit 1; }; }
                   4574:     fi
1.1       millert  4575:   fi
1.9       millert  4576: fi
1.27      millert  4577: { echo "$as_me:$LINENO: result: yes" >&5
                   4578: echo "${ECHO_T}yes" >&6; }
1.9       millert  4579:
1.16      millert  4580: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  4581: ac_clean_files=$ac_clean_files_save
1.27      millert  4582: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4583: # the compiler is broken, or we cross compile.
1.27      millert  4584: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   4585: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
                   4586: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   4587: echo "${ECHO_T}$cross_compiling" >&6; }
                   4588:
                   4589: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   4590: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
                   4591: if { (ac_try="$ac_link"
                   4592: case "(($ac_try" in
                   4593:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4594:   *) ac_try_echo=$ac_try;;
                   4595: esac
                   4596: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4597:   (eval "$ac_link") 2>&5
1.9       millert  4598:   ac_status=$?
1.16      millert  4599:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4600:   (exit $ac_status); }; then
                   4601:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4602: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4603: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4604: # `rm'.
1.16      millert  4605: for ac_file in conftest.exe conftest conftest.*; do
                   4606:   test -f "$ac_file" || continue
1.9       millert  4607:   case $ac_file in
1.27      millert  4608:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9       millert  4609:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25      millert  4610:          break;;
1.9       millert  4611:     * ) break;;
                   4612:   esac
                   4613: done
1.1       millert  4614: else
1.16      millert  4615:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   4616: See \`config.log' for more details." >&5
                   4617: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   4618: See \`config.log' for more details." >&2;}
1.9       millert  4619:    { (exit 1); exit 1; }; }
1.1       millert  4620: fi
                   4621:
1.9       millert  4622: rm -f conftest$ac_cv_exeext
1.27      millert  4623: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   4624: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1       millert  4625:
1.9       millert  4626: rm -f conftest.$ac_ext
                   4627: EXEEXT=$ac_cv_exeext
                   4628: ac_exeext=$EXEEXT
1.27      millert  4629: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   4630: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9       millert  4631: if test "${ac_cv_objext+set}" = set; then
                   4632:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4633: else
1.9       millert  4634:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4635: /* confdefs.h.  */
                   4636: _ACEOF
                   4637: cat confdefs.h >>conftest.$ac_ext
                   4638: cat >>conftest.$ac_ext <<_ACEOF
                   4639: /* end confdefs.h.  */
1.9       millert  4640:
                   4641: int
                   4642: main ()
                   4643: {
                   4644:
                   4645:   ;
                   4646:   return 0;
                   4647: }
                   4648: _ACEOF
                   4649: rm -f conftest.o conftest.obj
1.27      millert  4650: if { (ac_try="$ac_compile"
                   4651: case "(($ac_try" in
                   4652:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4653:   *) ac_try_echo=$ac_try;;
                   4654: esac
                   4655: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4656:   (eval "$ac_compile") 2>&5
1.9       millert  4657:   ac_status=$?
1.16      millert  4658:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4659:   (exit $ac_status); }; then
1.27      millert  4660:   for ac_file in conftest.o conftest.obj conftest.*; do
                   4661:   test -f "$ac_file" || continue;
1.9       millert  4662:   case $ac_file in
1.27      millert  4663:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9       millert  4664:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4665:        break;;
                   4666:   esac
                   4667: done
1.1       millert  4668: else
1.9       millert  4669:   echo "$as_me: failed program was:" >&5
1.16      millert  4670: sed 's/^/| /' conftest.$ac_ext >&5
                   4671:
                   4672: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   4673: See \`config.log' for more details." >&5
                   4674: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   4675: See \`config.log' for more details." >&2;}
1.9       millert  4676:    { (exit 1); exit 1; }; }
1.1       millert  4677: fi
1.9       millert  4678:
                   4679: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  4680: fi
1.27      millert  4681: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   4682: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9       millert  4683: OBJEXT=$ac_cv_objext
                   4684: ac_objext=$OBJEXT
1.27      millert  4685: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   4686: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9       millert  4687: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   4688:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4689: else
                   4690:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4691: /* confdefs.h.  */
                   4692: _ACEOF
                   4693: cat confdefs.h >>conftest.$ac_ext
                   4694: cat >>conftest.$ac_ext <<_ACEOF
                   4695: /* end confdefs.h.  */
1.1       millert  4696:
1.9       millert  4697: int
                   4698: main ()
                   4699: {
                   4700: #ifndef __GNUC__
                   4701:        choke me
                   4702: #endif
1.1       millert  4703:
1.9       millert  4704:   ;
                   4705:   return 0;
                   4706: }
                   4707: _ACEOF
                   4708: rm -f conftest.$ac_objext
1.27      millert  4709: if { (ac_try="$ac_compile"
                   4710: case "(($ac_try" in
                   4711:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4712:   *) ac_try_echo=$ac_try;;
                   4713: esac
                   4714: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4715:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4716:   ac_status=$?
1.25      millert  4717:   grep -v '^ *+' conftest.er1 >conftest.err
                   4718:   rm -f conftest.er1
                   4719:   cat conftest.err >&5
1.16      millert  4720:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4721:   (exit $ac_status); } && {
                   4722:         test -z "$ac_c_werror_flag" ||
                   4723:         test ! -s conftest.err
                   4724:        } && test -s conftest.$ac_objext; then
1.9       millert  4725:   ac_compiler_gnu=yes
                   4726: else
                   4727:   echo "$as_me: failed program was:" >&5
1.16      millert  4728: sed 's/^/| /' conftest.$ac_ext >&5
                   4729:
1.27      millert  4730:        ac_compiler_gnu=no
1.9       millert  4731: fi
1.27      millert  4732:
                   4733: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4734: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4735:
                   4736: fi
1.27      millert  4737: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   4738: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9       millert  4739: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   4740: ac_test_CFLAGS=${CFLAGS+set}
                   4741: ac_save_CFLAGS=$CFLAGS
1.27      millert  4742: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   4743: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9       millert  4744: if test "${ac_cv_prog_cc_g+set}" = set; then
                   4745:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4746: else
1.27      millert  4747:   ac_save_c_werror_flag=$ac_c_werror_flag
                   4748:    ac_c_werror_flag=yes
                   4749:    ac_cv_prog_cc_g=no
                   4750:    CFLAGS="-g"
                   4751:    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4752: /* confdefs.h.  */
                   4753: _ACEOF
                   4754: cat confdefs.h >>conftest.$ac_ext
                   4755: cat >>conftest.$ac_ext <<_ACEOF
                   4756: /* end confdefs.h.  */
1.9       millert  4757:
                   4758: int
                   4759: main ()
                   4760: {
                   4761:
                   4762:   ;
                   4763:   return 0;
                   4764: }
                   4765: _ACEOF
                   4766: rm -f conftest.$ac_objext
1.27      millert  4767: if { (ac_try="$ac_compile"
                   4768: case "(($ac_try" in
                   4769:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4770:   *) ac_try_echo=$ac_try;;
                   4771: esac
                   4772: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4773:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4774:   ac_status=$?
1.25      millert  4775:   grep -v '^ *+' conftest.er1 >conftest.err
                   4776:   rm -f conftest.er1
                   4777:   cat conftest.err >&5
1.16      millert  4778:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4779:   (exit $ac_status); } && {
                   4780:         test -z "$ac_c_werror_flag" ||
                   4781:         test ! -s conftest.err
                   4782:        } && test -s conftest.$ac_objext; then
                   4783:   ac_cv_prog_cc_g=yes
                   4784: else
                   4785:   echo "$as_me: failed program was:" >&5
                   4786: sed 's/^/| /' conftest.$ac_ext >&5
                   4787:
                   4788:        CFLAGS=""
                   4789:       cat >conftest.$ac_ext <<_ACEOF
                   4790: /* confdefs.h.  */
                   4791: _ACEOF
                   4792: cat confdefs.h >>conftest.$ac_ext
                   4793: cat >>conftest.$ac_ext <<_ACEOF
                   4794: /* end confdefs.h.  */
                   4795:
                   4796: int
                   4797: main ()
                   4798: {
                   4799:
                   4800:   ;
                   4801:   return 0;
                   4802: }
                   4803: _ACEOF
                   4804: rm -f conftest.$ac_objext
                   4805: if { (ac_try="$ac_compile"
                   4806: case "(($ac_try" in
                   4807:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4808:   *) ac_try_echo=$ac_try;;
                   4809: esac
                   4810: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4811:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  4812:   ac_status=$?
1.27      millert  4813:   grep -v '^ *+' conftest.er1 >conftest.err
                   4814:   rm -f conftest.er1
                   4815:   cat conftest.err >&5
1.25      millert  4816:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4817:   (exit $ac_status); } && {
                   4818:         test -z "$ac_c_werror_flag" ||
                   4819:         test ! -s conftest.err
                   4820:        } && test -s conftest.$ac_objext; then
                   4821:   :
                   4822: else
                   4823:   echo "$as_me: failed program was:" >&5
                   4824: sed 's/^/| /' conftest.$ac_ext >&5
                   4825:
                   4826:        ac_c_werror_flag=$ac_save_c_werror_flag
                   4827:         CFLAGS="-g"
                   4828:         cat >conftest.$ac_ext <<_ACEOF
                   4829: /* confdefs.h.  */
                   4830: _ACEOF
                   4831: cat confdefs.h >>conftest.$ac_ext
                   4832: cat >>conftest.$ac_ext <<_ACEOF
                   4833: /* end confdefs.h.  */
                   4834:
                   4835: int
                   4836: main ()
                   4837: {
                   4838:
                   4839:   ;
                   4840:   return 0;
                   4841: }
                   4842: _ACEOF
                   4843: rm -f conftest.$ac_objext
                   4844: if { (ac_try="$ac_compile"
                   4845: case "(($ac_try" in
                   4846:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4847:   *) ac_try_echo=$ac_try;;
                   4848: esac
                   4849: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4850:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4851:   ac_status=$?
1.27      millert  4852:   grep -v '^ *+' conftest.er1 >conftest.err
                   4853:   rm -f conftest.er1
                   4854:   cat conftest.err >&5
1.16      millert  4855:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4856:   (exit $ac_status); } && {
                   4857:         test -z "$ac_c_werror_flag" ||
                   4858:         test ! -s conftest.err
                   4859:        } && test -s conftest.$ac_objext; then
1.1       millert  4860:   ac_cv_prog_cc_g=yes
                   4861: else
1.9       millert  4862:   echo "$as_me: failed program was:" >&5
1.16      millert  4863: sed 's/^/| /' conftest.$ac_ext >&5
                   4864:
1.27      millert  4865:
                   4866: fi
                   4867:
                   4868: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4869: fi
                   4870:
                   4871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4872: fi
1.27      millert  4873:
                   4874: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4875:    ac_c_werror_flag=$ac_save_c_werror_flag
1.9       millert  4876: fi
1.27      millert  4877: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   4878: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.9       millert  4879: if test "$ac_test_CFLAGS" = set; then
                   4880:   CFLAGS=$ac_save_CFLAGS
                   4881: elif test $ac_cv_prog_cc_g = yes; then
                   4882:   if test "$GCC" = yes; then
                   4883:     CFLAGS="-g -O2"
                   4884:   else
                   4885:     CFLAGS="-g"
                   4886:   fi
                   4887: else
                   4888:   if test "$GCC" = yes; then
                   4889:     CFLAGS="-O2"
                   4890:   else
                   4891:     CFLAGS=
                   4892:   fi
                   4893: fi
1.27      millert  4894: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
                   4895: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
                   4896: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.16      millert  4897:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4898: else
1.27      millert  4899:   ac_cv_prog_cc_c89=no
1.16      millert  4900: ac_save_CC=$CC
1.9       millert  4901: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4902: /* confdefs.h.  */
1.9       millert  4903: _ACEOF
1.16      millert  4904: cat confdefs.h >>conftest.$ac_ext
                   4905: cat >>conftest.$ac_ext <<_ACEOF
                   4906: /* end confdefs.h.  */
                   4907: #include <stdarg.h>
                   4908: #include <stdio.h>
                   4909: #include <sys/types.h>
                   4910: #include <sys/stat.h>
                   4911: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4912: struct buf { int x; };
                   4913: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4914: static char *e (p, i)
                   4915:      char **p;
                   4916:      int i;
1.9       millert  4917: {
1.16      millert  4918:   return p[i];
1.9       millert  4919: }
1.16      millert  4920: static char *f (char * (*g) (char **, int), char **p, ...)
                   4921: {
                   4922:   char *s;
                   4923:   va_list v;
                   4924:   va_start (v,p);
                   4925:   s = g (p, va_arg (v,int));
                   4926:   va_end (v);
                   4927:   return s;
                   4928: }
1.25      millert  4929:
                   4930: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4931:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4932:    These don't provoke an error unfortunately, instead are silently treated
1.27      millert  4933:    as 'x'.  The following induces an error, until -std is added to get
1.25      millert  4934:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4935:    array size at least.  It's necessary to write '\x00'==0 to get something
1.27      millert  4936:    that's true only with -std.  */
1.25      millert  4937: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4938:
1.27      millert  4939: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4940:    inside strings and character constants.  */
                   4941: #define FOO(x) 'x'
                   4942: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4943:
1.16      millert  4944: int test (int i, double x);
                   4945: struct s1 {int (*f) (int a);};
                   4946: struct s2 {int (*f) (double a);};
                   4947: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4948: int argc;
                   4949: char **argv;
                   4950: int
                   4951: main ()
                   4952: {
                   4953: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4954:   ;
                   4955:   return 0;
                   4956: }
                   4957: _ACEOF
1.27      millert  4958: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4959:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.16      millert  4960: do
                   4961:   CC="$ac_save_CC $ac_arg"
                   4962:   rm -f conftest.$ac_objext
1.27      millert  4963: if { (ac_try="$ac_compile"
                   4964: case "(($ac_try" in
                   4965:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4966:   *) ac_try_echo=$ac_try;;
                   4967: esac
                   4968: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4969:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  4970:   ac_status=$?
1.25      millert  4971:   grep -v '^ *+' conftest.er1 >conftest.err
                   4972:   rm -f conftest.er1
                   4973:   cat conftest.err >&5
1.16      millert  4974:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4975:   (exit $ac_status); } && {
                   4976:         test -z "$ac_c_werror_flag" ||
                   4977:         test ! -s conftest.err
                   4978:        } && test -s conftest.$ac_objext; then
                   4979:   ac_cv_prog_cc_c89=$ac_arg
1.16      millert  4980: else
                   4981:   echo "$as_me: failed program was:" >&5
                   4982: sed 's/^/| /' conftest.$ac_ext >&5
                   4983:
1.27      millert  4984:
1.16      millert  4985: fi
1.27      millert  4986:
                   4987: rm -f core conftest.err conftest.$ac_objext
                   4988:   test "x$ac_cv_prog_cc_c89" != "xno" && break
1.16      millert  4989: done
1.27      millert  4990: rm -f conftest.$ac_ext
1.16      millert  4991: CC=$ac_save_CC
                   4992:
                   4993: fi
1.27      millert  4994: # AC_CACHE_VAL
                   4995: case "x$ac_cv_prog_cc_c89" in
                   4996:   x)
                   4997:     { echo "$as_me:$LINENO: result: none needed" >&5
                   4998: echo "${ECHO_T}none needed" >&6; } ;;
                   4999:   xno)
                   5000:     { echo "$as_me:$LINENO: result: unsupported" >&5
                   5001: echo "${ECHO_T}unsupported" >&6; } ;;
1.16      millert  5002:   *)
1.27      millert  5003:     CC="$CC $ac_cv_prog_cc_c89"
                   5004:     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
                   5005: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.16      millert  5006: esac
                   5007:
1.27      millert  5008:
                   5009: ac_ext=c
                   5010: ac_cpp='$CPP $CPPFLAGS'
                   5011: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5012: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5013: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5014:
                   5015:
                   5016: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
                   5017: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
                   5018: if test "${ac_cv_search_strerror+set}" = set; then
                   5019:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5020: else
                   5021:   ac_func_search_save_LIBS=$LIBS
1.16      millert  5022: cat >conftest.$ac_ext <<_ACEOF
                   5023: /* confdefs.h.  */
                   5024: _ACEOF
                   5025: cat confdefs.h >>conftest.$ac_ext
                   5026: cat >>conftest.$ac_ext <<_ACEOF
                   5027: /* end confdefs.h.  */
1.27      millert  5028:
                   5029: /* Override any GCC internal prototype to avoid an error.
                   5030:    Use char because int might match the return type of a GCC
                   5031:    builtin and then its argument prototype would still apply.  */
                   5032: #ifdef __cplusplus
                   5033: extern "C"
                   5034: #endif
                   5035: char strerror ();
1.16      millert  5036: int
                   5037: main ()
                   5038: {
1.27      millert  5039: return strerror ();
1.16      millert  5040:   ;
                   5041:   return 0;
                   5042: }
                   5043: _ACEOF
1.27      millert  5044: for ac_lib in '' cposix; do
                   5045:   if test -z "$ac_lib"; then
                   5046:     ac_res="none required"
                   5047:   else
                   5048:     ac_res=-l$ac_lib
                   5049:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5050:   fi
                   5051:   rm -f conftest.$ac_objext conftest$ac_exeext
                   5052: if { (ac_try="$ac_link"
                   5053: case "(($ac_try" in
                   5054:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5055:   *) ac_try_echo=$ac_try;;
                   5056: esac
                   5057: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5058:   (eval "$ac_link") 2>conftest.er1
1.16      millert  5059:   ac_status=$?
1.25      millert  5060:   grep -v '^ *+' conftest.er1 >conftest.err
                   5061:   rm -f conftest.er1
                   5062:   cat conftest.err >&5
1.16      millert  5063:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5064:   (exit $ac_status); } && {
                   5065:         test -z "$ac_c_werror_flag" ||
                   5066:         test ! -s conftest.err
                   5067:        } && test -s conftest$ac_exeext &&
                   5068:        $as_test_x conftest$ac_exeext; then
                   5069:   ac_cv_search_strerror=$ac_res
1.9       millert  5070: else
                   5071:   echo "$as_me: failed program was:" >&5
1.16      millert  5072: sed 's/^/| /' conftest.$ac_ext >&5
                   5073:
1.27      millert  5074:
                   5075: fi
                   5076:
                   5077: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   5078:       conftest$ac_exeext
                   5079:   if test "${ac_cv_search_strerror+set}" = set; then
                   5080:   break
1.9       millert  5081: fi
1.27      millert  5082: done
1.16      millert  5083: if test "${ac_cv_search_strerror+set}" = set; then
1.27      millert  5084:   :
1.9       millert  5085: else
1.27      millert  5086:   ac_cv_search_strerror=no
1.16      millert  5087: fi
1.27      millert  5088: rm conftest.$ac_ext
1.16      millert  5089: LIBS=$ac_func_search_save_LIBS
1.9       millert  5090: fi
1.27      millert  5091: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
                   5092: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
                   5093: ac_res=$ac_cv_search_strerror
                   5094: if test "$ac_res" != no; then
                   5095:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9       millert  5096:
                   5097: fi
                   5098:
                   5099: ac_ext=c
                   5100: ac_cpp='$CPP $CPPFLAGS'
                   5101: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5102: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5103: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27      millert  5104: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   5105: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1       millert  5106: # On Suns, sometimes $CPP names a directory.
                   5107: if test -n "$CPP" && test -d "$CPP"; then
                   5108:   CPP=
                   5109: fi
                   5110: if test -z "$CPP"; then
1.9       millert  5111:   if test "${ac_cv_prog_CPP+set}" = set; then
                   5112:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5113: else
1.9       millert  5114:       # Double quotes because CPP needs to be expanded
                   5115:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5116:     do
                   5117:       ac_preproc_ok=false
                   5118: for ac_c_preproc_warn_flag in '' yes
                   5119: do
                   5120:   # Use a header file that comes with gcc, so configuring glibc
                   5121:   # with a fresh cross-compiler works.
1.16      millert  5122:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5123:   # <limits.h> exists even on freestanding compilers.
1.1       millert  5124:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  5125:   # not just through cpp. "Syntax error" is here to catch this case.
                   5126:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5127: /* confdefs.h.  */
                   5128: _ACEOF
                   5129: cat confdefs.h >>conftest.$ac_ext
                   5130: cat >>conftest.$ac_ext <<_ACEOF
                   5131: /* end confdefs.h.  */
                   5132: #ifdef __STDC__
                   5133: # include <limits.h>
                   5134: #else
                   5135: # include <assert.h>
                   5136: #endif
1.25      millert  5137:                     Syntax error
1.9       millert  5138: _ACEOF
1.27      millert  5139: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5140: case "(($ac_try" in
                   5141:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5142:   *) ac_try_echo=$ac_try;;
                   5143: esac
                   5144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5145:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5146:   ac_status=$?
1.16      millert  5147:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5148:   rm -f conftest.er1
                   5149:   cat conftest.err >&5
1.16      millert  5150:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5151:   (exit $ac_status); } >/dev/null && {
                   5152:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5153:         test ! -s conftest.err
                   5154:        }; then
1.1       millert  5155:   :
                   5156: else
1.9       millert  5157:   echo "$as_me: failed program was:" >&5
1.16      millert  5158: sed 's/^/| /' conftest.$ac_ext >&5
                   5159:
1.9       millert  5160:   # Broken: fails on valid input.
                   5161: continue
                   5162: fi
1.27      millert  5163:
1.9       millert  5164: rm -f conftest.err conftest.$ac_ext
                   5165:
1.27      millert  5166:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5167:   # can be detected and how.
                   5168:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5169: /* confdefs.h.  */
                   5170: _ACEOF
                   5171: cat confdefs.h >>conftest.$ac_ext
                   5172: cat >>conftest.$ac_ext <<_ACEOF
                   5173: /* end confdefs.h.  */
1.9       millert  5174: #include <ac_nonexistent.h>
                   5175: _ACEOF
1.27      millert  5176: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5177: case "(($ac_try" in
                   5178:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5179:   *) ac_try_echo=$ac_try;;
                   5180: esac
                   5181: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5182:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5183:   ac_status=$?
1.16      millert  5184:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5185:   rm -f conftest.er1
                   5186:   cat conftest.err >&5
1.16      millert  5187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5188:   (exit $ac_status); } >/dev/null && {
                   5189:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5190:         test ! -s conftest.err
                   5191:        }; then
1.9       millert  5192:   # Broken: success on invalid input.
                   5193: continue
                   5194: else
                   5195:   echo "$as_me: failed program was:" >&5
1.16      millert  5196: sed 's/^/| /' conftest.$ac_ext >&5
                   5197:
1.9       millert  5198:   # Passes both tests.
                   5199: ac_preproc_ok=:
                   5200: break
                   5201: fi
1.27      millert  5202:
1.9       millert  5203: rm -f conftest.err conftest.$ac_ext
                   5204:
                   5205: done
                   5206: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5207: rm -f conftest.err conftest.$ac_ext
                   5208: if $ac_preproc_ok; then
                   5209:   break
                   5210: fi
                   5211:
                   5212:     done
                   5213:     ac_cv_prog_CPP=$CPP
                   5214:
                   5215: fi
                   5216:   CPP=$ac_cv_prog_CPP
                   5217: else
                   5218:   ac_cv_prog_CPP=$CPP
                   5219: fi
1.27      millert  5220: { echo "$as_me:$LINENO: result: $CPP" >&5
                   5221: echo "${ECHO_T}$CPP" >&6; }
1.9       millert  5222: ac_preproc_ok=false
                   5223: for ac_c_preproc_warn_flag in '' yes
                   5224: do
                   5225:   # Use a header file that comes with gcc, so configuring glibc
                   5226:   # with a fresh cross-compiler works.
1.16      millert  5227:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5228:   # <limits.h> exists even on freestanding compilers.
1.9       millert  5229:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5230:   # not just through cpp. "Syntax error" is here to catch this case.
                   5231:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5232: /* confdefs.h.  */
                   5233: _ACEOF
                   5234: cat confdefs.h >>conftest.$ac_ext
                   5235: cat >>conftest.$ac_ext <<_ACEOF
                   5236: /* end confdefs.h.  */
                   5237: #ifdef __STDC__
                   5238: # include <limits.h>
                   5239: #else
                   5240: # include <assert.h>
                   5241: #endif
1.25      millert  5242:                     Syntax error
1.9       millert  5243: _ACEOF
1.27      millert  5244: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5245: case "(($ac_try" in
                   5246:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5247:   *) ac_try_echo=$ac_try;;
                   5248: esac
                   5249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5250:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5251:   ac_status=$?
1.16      millert  5252:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5253:   rm -f conftest.er1
                   5254:   cat conftest.err >&5
1.16      millert  5255:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5256:   (exit $ac_status); } >/dev/null && {
                   5257:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5258:         test ! -s conftest.err
                   5259:        }; then
1.1       millert  5260:   :
                   5261: else
1.9       millert  5262:   echo "$as_me: failed program was:" >&5
1.16      millert  5263: sed 's/^/| /' conftest.$ac_ext >&5
                   5264:
1.9       millert  5265:   # Broken: fails on valid input.
                   5266: continue
1.1       millert  5267: fi
1.27      millert  5268:
1.9       millert  5269: rm -f conftest.err conftest.$ac_ext
                   5270:
1.27      millert  5271:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5272:   # can be detected and how.
                   5273:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5274: /* confdefs.h.  */
                   5275: _ACEOF
                   5276: cat confdefs.h >>conftest.$ac_ext
                   5277: cat >>conftest.$ac_ext <<_ACEOF
                   5278: /* end confdefs.h.  */
1.9       millert  5279: #include <ac_nonexistent.h>
                   5280: _ACEOF
1.27      millert  5281: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5282: case "(($ac_try" in
                   5283:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5284:   *) ac_try_echo=$ac_try;;
                   5285: esac
                   5286: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5287:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5288:   ac_status=$?
1.16      millert  5289:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5290:   rm -f conftest.er1
                   5291:   cat conftest.err >&5
1.16      millert  5292:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5293:   (exit $ac_status); } >/dev/null && {
                   5294:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5295:         test ! -s conftest.err
                   5296:        }; then
1.9       millert  5297:   # Broken: success on invalid input.
                   5298: continue
1.1       millert  5299: else
1.9       millert  5300:   echo "$as_me: failed program was:" >&5
1.16      millert  5301: sed 's/^/| /' conftest.$ac_ext >&5
                   5302:
1.9       millert  5303:   # Passes both tests.
                   5304: ac_preproc_ok=:
                   5305: break
1.1       millert  5306: fi
1.27      millert  5307:
1.9       millert  5308: rm -f conftest.err conftest.$ac_ext
1.1       millert  5309:
1.9       millert  5310: done
                   5311: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5312: rm -f conftest.err conftest.$ac_ext
                   5313: if $ac_preproc_ok; then
                   5314:   :
1.1       millert  5315: else
1.16      millert  5316:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   5317: See \`config.log' for more details." >&5
                   5318: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   5319: See \`config.log' for more details." >&2;}
1.9       millert  5320:    { (exit 1); exit 1; }; }
1.1       millert  5321: fi
                   5322:
1.9       millert  5323: ac_ext=c
                   5324: ac_cpp='$CPP $CPPFLAGS'
                   5325: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5326: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5327: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  5328:
1.16      millert  5329:
1.23      millert  5330: ac_aux_dir=
1.27      millert  5331: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   5332:   if test -f "$ac_dir/install-sh"; then
1.23      millert  5333:     ac_aux_dir=$ac_dir
                   5334:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   5335:     break
1.27      millert  5336:   elif test -f "$ac_dir/install.sh"; then
1.23      millert  5337:     ac_aux_dir=$ac_dir
                   5338:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   5339:     break
1.27      millert  5340:   elif test -f "$ac_dir/shtool"; then
1.23      millert  5341:     ac_aux_dir=$ac_dir
                   5342:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   5343:     break
                   5344:   fi
                   5345: done
                   5346: if test -z "$ac_aux_dir"; then
1.27      millert  5347:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
                   5348: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23      millert  5349:    { (exit 1); exit 1; }; }
1.1       millert  5350: fi
1.27      millert  5351:
                   5352: # These three variables are undocumented and unsupported,
                   5353: # and are intended to be withdrawn in a future Autoconf release.
                   5354: # They can cause serious problems if a builder's source tree is in a directory
                   5355: # whose full name contains unusual characters.
                   5356: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   5357: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   5358: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   5359:
1.23      millert  5360:
                   5361: # Make sure we can run config.sub.
1.27      millert  5362: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   5363:   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
                   5364: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23      millert  5365:    { (exit 1); exit 1; }; }
1.1       millert  5366:
1.27      millert  5367: { echo "$as_me:$LINENO: checking build system type" >&5
                   5368: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23      millert  5369: if test "${ac_cv_build+set}" = set; then
1.9       millert  5370:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5371: else
1.27      millert  5372:   ac_build_alias=$build_alias
                   5373: test "x$ac_build_alias" = x &&
                   5374:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   5375: test "x$ac_build_alias" = x &&
1.23      millert  5376:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   5377: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   5378:    { (exit 1); exit 1; }; }
1.27      millert  5379: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   5380:   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
                   5381: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23      millert  5382:    { (exit 1); exit 1; }; }
1.9       millert  5383:
1.1       millert  5384: fi
1.27      millert  5385: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   5386: echo "${ECHO_T}$ac_cv_build" >&6; }
                   5387: case $ac_cv_build in
                   5388: *-*-*) ;;
                   5389: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
                   5390: echo "$as_me: error: invalid value of canonical build" >&2;}
                   5391:    { (exit 1); exit 1; }; };;
                   5392: esac
1.23      millert  5393: build=$ac_cv_build
1.27      millert  5394: ac_save_IFS=$IFS; IFS='-'
                   5395: set x $ac_cv_build
                   5396: shift
                   5397: build_cpu=$1
                   5398: build_vendor=$2
                   5399: shift; shift
                   5400: # Remember, the first character of IFS is used to create $*,
                   5401: # except with old shells:
                   5402: build_os=$*
                   5403: IFS=$ac_save_IFS
                   5404: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23      millert  5405:
                   5406:
1.27      millert  5407: { echo "$as_me:$LINENO: checking host system type" >&5
                   5408: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23      millert  5409: if test "${ac_cv_host+set}" = set; then
                   5410:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5411: else
1.27      millert  5412:   if test "x$host_alias" = x; then
                   5413:   ac_cv_host=$ac_cv_build
                   5414: else
                   5415:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   5416:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
                   5417: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23      millert  5418:    { (exit 1); exit 1; }; }
1.27      millert  5419: fi
1.23      millert  5420:
1.1       millert  5421: fi
1.27      millert  5422: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   5423: echo "${ECHO_T}$ac_cv_host" >&6; }
                   5424: case $ac_cv_host in
                   5425: *-*-*) ;;
                   5426: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
                   5427: echo "$as_me: error: invalid value of canonical host" >&2;}
                   5428:    { (exit 1); exit 1; }; };;
                   5429: esac
1.23      millert  5430: host=$ac_cv_host
1.27      millert  5431: ac_save_IFS=$IFS; IFS='-'
                   5432: set x $ac_cv_host
                   5433: shift
                   5434: host_cpu=$1
                   5435: host_vendor=$2
                   5436: shift; shift
                   5437: # Remember, the first character of IFS is used to create $*,
                   5438: # except with old shells:
                   5439: host_os=$*
                   5440: IFS=$ac_save_IFS
                   5441: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1       millert  5442:
1.23      millert  5443:
1.27      millert  5444: { echo "$as_me:$LINENO: checking target system type" >&5
                   5445: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.23      millert  5446: if test "${ac_cv_target+set}" = set; then
                   5447:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5448: else
1.27      millert  5449:   if test "x$target_alias" = x; then
                   5450:   ac_cv_target=$ac_cv_host
                   5451: else
                   5452:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   5453:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
                   5454: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.23      millert  5455:    { (exit 1); exit 1; }; }
1.27      millert  5456: fi
1.23      millert  5457:
                   5458: fi
1.27      millert  5459: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
                   5460: echo "${ECHO_T}$ac_cv_target" >&6; }
                   5461: case $ac_cv_target in
                   5462: *-*-*) ;;
                   5463: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
                   5464: echo "$as_me: error: invalid value of canonical target" >&2;}
                   5465:    { (exit 1); exit 1; }; };;
                   5466: esac
1.23      millert  5467: target=$ac_cv_target
1.27      millert  5468: ac_save_IFS=$IFS; IFS='-'
                   5469: set x $ac_cv_target
                   5470: shift
                   5471: target_cpu=$1
                   5472: target_vendor=$2
                   5473: shift; shift
                   5474: # Remember, the first character of IFS is used to create $*,
                   5475: # except with old shells:
                   5476: target_os=$*
                   5477: IFS=$ac_save_IFS
                   5478: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.23      millert  5479:
                   5480:
                   5481: # The aliases save the names the user supplied, while $host etc.
                   5482: # will get canonicalized.
                   5483: test -n "$target_alias" &&
                   5484:   test "$program_prefix$program_suffix$program_transform_name" = \
                   5485:     NONENONEs,x,x, &&
                   5486:   program_prefix=${target_alias}-
1.27      millert  5487: # Check whether --enable-static was given.
                   5488: if test "${enable_static+set}" = set; then
                   5489:   enableval=$enable_static; p=${PACKAGE-default}
                   5490:     case $enableval in
                   5491:     yes) enable_static=yes ;;
                   5492:     no) enable_static=no ;;
                   5493:     *)
                   5494:      enable_static=no
                   5495:       # Look at the argument we got.  We use all the common list separators.
                   5496:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5497:       for pkg in $enableval; do
                   5498:        IFS="$lt_save_ifs"
                   5499:        if test "X$pkg" = "X$p"; then
                   5500:          enable_static=yes
                   5501:        fi
                   5502:       done
                   5503:       IFS="$lt_save_ifs"
                   5504:       ;;
                   5505:     esac
                   5506: else
                   5507:   enable_static=no
                   5508: fi
1.23      millert  5509:
                   5510:
                   5511:
1.27      millert  5512: # Check whether --enable-shared was given.
                   5513: if test "${enable_shared+set}" = set; then
                   5514:   enableval=$enable_shared; p=${PACKAGE-default}
                   5515:     case $enableval in
                   5516:     yes) enable_shared=yes ;;
                   5517:     no) enable_shared=no ;;
                   5518:     *)
                   5519:       enable_shared=no
                   5520:       # Look at the argument we got.  We use all the common list separators.
                   5521:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5522:       for pkg in $enableval; do
                   5523:        IFS="$lt_save_ifs"
                   5524:        if test "X$pkg" = "X$p"; then
                   5525:          enable_shared=yes
                   5526:        fi
                   5527:       done
                   5528:       IFS="$lt_save_ifs"
                   5529:       ;;
                   5530:     esac
                   5531: else
                   5532:   enable_shared=yes
                   5533: fi
1.25      millert  5534:
                   5535:
1.27      millert  5536: # Check whether --enable-fast-install was given.
                   5537: if test "${enable_fast_install+set}" = set; then
                   5538:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   5539:     case $enableval in
                   5540:     yes) enable_fast_install=yes ;;
                   5541:     no) enable_fast_install=no ;;
                   5542:     *)
                   5543:       enable_fast_install=no
                   5544:       # Look at the argument we got.  We use all the common list separators.
                   5545:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5546:       for pkg in $enableval; do
                   5547:        IFS="$lt_save_ifs"
                   5548:        if test "X$pkg" = "X$p"; then
                   5549:          enable_fast_install=yes
                   5550:        fi
                   5551:       done
                   5552:       IFS="$lt_save_ifs"
                   5553:       ;;
                   5554:     esac
                   5555: else
                   5556:   enable_fast_install=yes
                   5557: fi
1.25      millert  5558:
                   5559:
1.27      millert  5560: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
                   5561: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23      millert  5562: if test "${lt_cv_path_SED+set}" = set; then
                   5563:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5564: else
                   5565:   # Loop through the user's path and test for sed and gsed.
                   5566: # Then use that list of sed's as ones to test for truncation.
                   5567: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5568: for as_dir in $PATH
                   5569: do
                   5570:   IFS=$as_save_IFS
                   5571:   test -z "$as_dir" && as_dir=.
                   5572:   for lt_ac_prog in sed gsed; do
                   5573:     for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  5574:       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  5575:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   5576:       fi
                   5577:     done
                   5578:   done
                   5579: done
1.27      millert  5580: IFS=$as_save_IFS
1.23      millert  5581: lt_ac_max=0
                   5582: lt_ac_count=0
                   5583: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   5584: # along with /bin/sed that truncates output.
                   5585: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27      millert  5586:   test ! -f $lt_ac_sed && continue
1.23      millert  5587:   cat /dev/null > conftest.in
                   5588:   lt_ac_count=0
1.27      millert  5589:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23      millert  5590:   # Check for GNU sed and select it if it is found.
                   5591:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   5592:     lt_cv_path_SED=$lt_ac_sed
                   5593:     break
                   5594:   fi
                   5595:   while true; do
                   5596:     cat conftest.in conftest.in >conftest.tmp
                   5597:     mv conftest.tmp conftest.in
                   5598:     cp conftest.in conftest.nl
1.27      millert  5599:     echo >>conftest.nl
1.23      millert  5600:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   5601:     cmp -s conftest.out conftest.nl || break
                   5602:     # 10000 chars as input seems more than enough
                   5603:     test $lt_ac_count -gt 10 && break
                   5604:     lt_ac_count=`expr $lt_ac_count + 1`
                   5605:     if test $lt_ac_count -gt $lt_ac_max; then
                   5606:       lt_ac_max=$lt_ac_count
                   5607:       lt_cv_path_SED=$lt_ac_sed
                   5608:     fi
                   5609:   done
                   5610: done
                   5611:
                   5612: fi
                   5613:
1.25      millert  5614: SED=$lt_cv_path_SED
                   5615:
1.27      millert  5616: { echo "$as_me:$LINENO: result: $SED" >&5
                   5617: echo "${ECHO_T}$SED" >&6; }
1.23      millert  5618:
1.27      millert  5619: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
                   5620: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
                   5621: if test "${ac_cv_path_GREP+set}" = set; then
                   5622:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5623: else
                   5624:   # Extract the first word of "grep ggrep" to use in msg output
                   5625: if test -z "$GREP"; then
                   5626: set dummy grep ggrep; ac_prog_name=$2
                   5627: if test "${ac_cv_path_GREP+set}" = set; then
                   5628:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5629: else
                   5630:   ac_path_GREP_found=false
                   5631: # Loop through the user's path and test for each of PROGNAME-LIST
                   5632: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5633: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5634: do
                   5635:   IFS=$as_save_IFS
                   5636:   test -z "$as_dir" && as_dir=.
                   5637:   for ac_prog in grep ggrep; do
                   5638:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5639:     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   5640:     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   5641:     # Check for GNU ac_path_GREP and select it if it is found.
                   5642:   # Check for GNU $ac_path_GREP
                   5643: case `"$ac_path_GREP" --version 2>&1` in
                   5644: *GNU*)
                   5645:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   5646: *)
                   5647:   ac_count=0
                   5648:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5649:   while :
                   5650:   do
                   5651:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5652:     mv "conftest.tmp" "conftest.in"
                   5653:     cp "conftest.in" "conftest.nl"
                   5654:     echo 'GREP' >> "conftest.nl"
                   5655:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5656:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5657:     ac_count=`expr $ac_count + 1`
                   5658:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   5659:       # Best one so far, save it but keep looking for a better one
                   5660:       ac_cv_path_GREP="$ac_path_GREP"
                   5661:       ac_path_GREP_max=$ac_count
                   5662:     fi
                   5663:     # 10*(2^10) chars as input seems more than enough
                   5664:     test $ac_count -gt 10 && break
                   5665:   done
                   5666:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5667: esac
1.25      millert  5668:
                   5669:
1.27      millert  5670:     $ac_path_GREP_found && break 3
                   5671:   done
                   5672: done
1.25      millert  5673:
1.27      millert  5674: done
                   5675: IFS=$as_save_IFS
1.25      millert  5676:
                   5677:
1.27      millert  5678: fi
1.25      millert  5679:
1.27      millert  5680: GREP="$ac_cv_path_GREP"
                   5681: if test -z "$GREP"; then
                   5682:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5683: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5684:    { (exit 1); exit 1; }; }
                   5685: fi
1.25      millert  5686:
1.27      millert  5687: else
                   5688:   ac_cv_path_GREP=$GREP
                   5689: fi
1.25      millert  5690:
                   5691:
1.27      millert  5692: fi
                   5693: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
                   5694: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
                   5695:  GREP="$ac_cv_path_GREP"
1.25      millert  5696:
                   5697:
1.27      millert  5698: { echo "$as_me:$LINENO: checking for egrep" >&5
                   5699: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
                   5700: if test "${ac_cv_path_EGREP+set}" = set; then
                   5701:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5702: else
                   5703:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   5704:    then ac_cv_path_EGREP="$GREP -E"
                   5705:    else
                   5706:      # Extract the first word of "egrep" to use in msg output
                   5707: if test -z "$EGREP"; then
                   5708: set dummy egrep; ac_prog_name=$2
                   5709: if test "${ac_cv_path_EGREP+set}" = set; then
1.23      millert  5710:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5711: else
1.27      millert  5712:   ac_path_EGREP_found=false
                   5713: # Loop through the user's path and test for each of PROGNAME-LIST
                   5714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5715: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5716: do
                   5717:   IFS=$as_save_IFS
                   5718:   test -z "$as_dir" && as_dir=.
                   5719:   for ac_prog in egrep; do
                   5720:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5721:     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   5722:     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   5723:     # Check for GNU ac_path_EGREP and select it if it is found.
                   5724:   # Check for GNU $ac_path_EGREP
                   5725: case `"$ac_path_EGREP" --version 2>&1` in
                   5726: *GNU*)
                   5727:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   5728: *)
                   5729:   ac_count=0
                   5730:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5731:   while :
                   5732:   do
                   5733:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5734:     mv "conftest.tmp" "conftest.in"
                   5735:     cp "conftest.in" "conftest.nl"
                   5736:     echo 'EGREP' >> "conftest.nl"
                   5737:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5738:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5739:     ac_count=`expr $ac_count + 1`
                   5740:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   5741:       # Best one so far, save it but keep looking for a better one
                   5742:       ac_cv_path_EGREP="$ac_path_EGREP"
                   5743:       ac_path_EGREP_max=$ac_count
1.23      millert  5744:     fi
1.27      millert  5745:     # 10*(2^10) chars as input seems more than enough
                   5746:     test $ac_count -gt 10 && break
                   5747:   done
                   5748:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5749: esac
1.25      millert  5750:
                   5751:
1.27      millert  5752:     $ac_path_EGREP_found && break 3
                   5753:   done
                   5754: done
1.25      millert  5755:
1.27      millert  5756: done
                   5757: IFS=$as_save_IFS
1.25      millert  5758:
                   5759:
1.27      millert  5760: fi
1.25      millert  5761:
1.27      millert  5762: EGREP="$ac_cv_path_EGREP"
                   5763: if test -z "$EGREP"; then
                   5764:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5765: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5766:    { (exit 1); exit 1; }; }
                   5767: fi
1.25      millert  5768:
1.27      millert  5769: else
                   5770:   ac_cv_path_EGREP=$EGREP
                   5771: fi
1.25      millert  5772:
                   5773:
1.27      millert  5774:    fi
                   5775: fi
                   5776: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
                   5777: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
                   5778:  EGREP="$ac_cv_path_EGREP"
1.25      millert  5779:
                   5780:
                   5781:
1.27      millert  5782: # Check whether --with-gnu-ld was given.
1.23      millert  5783: if test "${with_gnu_ld+set}" = set; then
1.27      millert  5784:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23      millert  5785: else
                   5786:   with_gnu_ld=no
1.27      millert  5787: fi
                   5788:
1.23      millert  5789: ac_prog=ld
                   5790: if test "$GCC" = yes; then
                   5791:   # Check if gcc -print-prog-name=ld gives a path.
1.27      millert  5792:   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
                   5793: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23      millert  5794:   case $host in
                   5795:   *-*-mingw*)
                   5796:     # gcc leaves a trailing carriage return which upsets mingw
                   5797:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5798:   *)
                   5799:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5800:   esac
                   5801:   case $ac_prog in
                   5802:     # Accept absolute paths.
                   5803:     [\\/]* | ?:[\\/]*)
                   5804:       re_direlt='/[^/][^/]*/\.\./'
1.25      millert  5805:       # Canonicalize the pathname of ld
1.27      millert  5806:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   5807:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   5808:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23      millert  5809:       done
                   5810:       test -z "$LD" && LD="$ac_prog"
                   5811:       ;;
                   5812:   "")
                   5813:     # If it fails, then pretend we aren't using GCC.
                   5814:     ac_prog=ld
                   5815:     ;;
                   5816:   *)
                   5817:     # If it is relative, then search for the first ld in PATH.
                   5818:     with_gnu_ld=unknown
                   5819:     ;;
                   5820:   esac
                   5821: elif test "$with_gnu_ld" = yes; then
1.27      millert  5822:   { echo "$as_me:$LINENO: checking for GNU ld" >&5
                   5823: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23      millert  5824: else
1.27      millert  5825:   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   5826: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23      millert  5827: fi
                   5828: if test "${lt_cv_path_LD+set}" = set; then
                   5829:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5830: else
                   5831:   if test -z "$LD"; then
                   5832:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5833:   for ac_dir in $PATH; do
                   5834:     IFS="$lt_save_ifs"
                   5835:     test -z "$ac_dir" && ac_dir=.
                   5836:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5837:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5838:       # Check to see if the program is GNU ld.  I'd rather use --version,
1.27      millert  5839:       # but apparently some variants of GNU ld only accept -v.
1.23      millert  5840:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5841:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5842:       *GNU* | *'with BFD'*)
                   5843:        test "$with_gnu_ld" != no && break
                   5844:        ;;
                   5845:       *)
                   5846:        test "$with_gnu_ld" != yes && break
                   5847:        ;;
                   5848:       esac
                   5849:     fi
                   5850:   done
                   5851:   IFS="$lt_save_ifs"
                   5852: else
                   5853:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5854: fi
                   5855: fi
                   5856:
                   5857: LD="$lt_cv_path_LD"
                   5858: if test -n "$LD"; then
1.27      millert  5859:   { echo "$as_me:$LINENO: result: $LD" >&5
                   5860: echo "${ECHO_T}$LD" >&6; }
1.23      millert  5861: else
1.27      millert  5862:   { echo "$as_me:$LINENO: result: no" >&5
                   5863: echo "${ECHO_T}no" >&6; }
1.23      millert  5864: fi
                   5865: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   5866: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   5867:    { (exit 1); exit 1; }; }
1.27      millert  5868: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   5869: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23      millert  5870: if test "${lt_cv_prog_gnu_ld+set}" = set; then
                   5871:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5872: else
1.27      millert  5873:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25      millert  5874: case `$LD -v 2>&1 </dev/null` in
1.23      millert  5875: *GNU* | *'with BFD'*)
                   5876:   lt_cv_prog_gnu_ld=yes
                   5877:   ;;
                   5878: *)
                   5879:   lt_cv_prog_gnu_ld=no
                   5880:   ;;
                   5881: esac
                   5882: fi
1.27      millert  5883: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
                   5884: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23      millert  5885: with_gnu_ld=$lt_cv_prog_gnu_ld
                   5886:
                   5887:
1.27      millert  5888: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
                   5889: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
                   5890: if test "${lt_cv_ld_reload_flag+set}" = set; then
                   5891:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5892: else
                   5893:   lt_cv_ld_reload_flag='-r'
                   5894: fi
                   5895: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
                   5896: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
                   5897: reload_flag=$lt_cv_ld_reload_flag
                   5898: case $reload_flag in
                   5899: "" | " "*) ;;
                   5900: *) reload_flag=" $reload_flag" ;;
                   5901: esac
                   5902: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5903: case $host_os in
                   5904:   darwin*)
                   5905:     if test "$GCC" = yes; then
                   5906:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   5907:     else
                   5908:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5909:     fi
                   5910:     ;;
                   5911: esac
1.25      millert  5912:
1.27      millert  5913: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   5914: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23      millert  5915: if test "${lt_cv_path_NM+set}" = set; then
                   5916:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5917: else
                   5918:   if test -n "$NM"; then
                   5919:   # Let the user override the test.
                   5920:   lt_cv_path_NM="$NM"
                   5921: else
1.27      millert  5922:   lt_nm_to_check="${ac_tool_prefix}nm"
                   5923:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   5924:     lt_nm_to_check="$lt_nm_to_check nm"
                   5925:   fi
                   5926:   for lt_tmp_nm in $lt_nm_to_check; do
                   5927:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5928:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   5929:       IFS="$lt_save_ifs"
                   5930:       test -z "$ac_dir" && ac_dir=.
                   5931:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   5932:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   5933:        # Check to see if the nm accepts a BSD-compat flag.
                   5934:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   5935:        #   nm: unknown option "B" ignored
                   5936:        # Tru64's nm complains that /dev/null is an invalid object file
                   5937:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   5938:        */dev/null* | *'Invalid file or object type'*)
                   5939:          lt_cv_path_NM="$tmp_nm -B"
1.23      millert  5940:          break
                   5941:          ;;
                   5942:        *)
1.27      millert  5943:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   5944:          */dev/null*)
                   5945:            lt_cv_path_NM="$tmp_nm -p"
                   5946:            break
                   5947:            ;;
                   5948:          *)
                   5949:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   5950:            continue # so that we can try to find one that supports BSD flags
                   5951:            ;;
                   5952:          esac
1.23      millert  5953:          ;;
                   5954:        esac
1.27      millert  5955:       fi
                   5956:     done
                   5957:     IFS="$lt_save_ifs"
1.23      millert  5958:   done
                   5959:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   5960: fi
                   5961: fi
1.27      millert  5962: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
                   5963: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23      millert  5964: NM="$lt_cv_path_NM"
1.25      millert  5965:
1.27      millert  5966: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   5967: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23      millert  5968: LN_S=$as_ln_s
                   5969: if test "$LN_S" = "ln -s"; then
1.27      millert  5970:   { echo "$as_me:$LINENO: result: yes" >&5
                   5971: echo "${ECHO_T}yes" >&6; }
1.25      millert  5972: else
1.27      millert  5973:   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   5974: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25      millert  5975: fi
                   5976:
1.27      millert  5977: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
                   5978: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23      millert  5979: if test "${lt_cv_deplibs_check_method+set}" = set; then
                   5980:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5981: else
                   5982:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   5983: lt_cv_file_magic_test_file=
                   5984: lt_cv_deplibs_check_method='unknown'
                   5985: # Need to set the preceding variable on all platforms that support
                   5986: # interlibrary dependencies.
                   5987: # 'none' -- dependencies not supported.
                   5988: # `unknown' -- same as none, but documents that we really don't know.
                   5989: # 'pass_all' -- all dependencies passed with no checks.
                   5990: # 'test_compile' -- check by making test program.
                   5991: # 'file_magic [[regex]]' -- check by looking for files in library path
                   5992: # which responds to the $file_magic_cmd with a given extended regex.
                   5993: # If you have `file' or equivalent on your system and you're not sure
                   5994: # whether `pass_all' will *always* work, you probably want this one.
                   5995:
                   5996: case $host_os in
1.36      millert  5997: aix[4-9]*)
1.23      millert  5998:   lt_cv_deplibs_check_method=pass_all
                   5999:   ;;
                   6000:
                   6001: beos*)
                   6002:   lt_cv_deplibs_check_method=pass_all
                   6003:   ;;
                   6004:
1.25      millert  6005: bsdi[45]*)
1.23      millert  6006:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   6007:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   6008:   lt_cv_file_magic_test_file=/shlib/libc.so
                   6009:   ;;
                   6010:
1.25      millert  6011: cygwin*)
                   6012:   # func_win32_libid is a shell function defined in ltmain.sh
1.23      millert  6013:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25      millert  6014:   lt_cv_file_magic_cmd='func_win32_libid'
                   6015:   ;;
                   6016:
1.27      millert  6017: mingw* | pw32*)
1.25      millert  6018:   # Base MSYS/MinGW do not provide the 'file' command needed by
1.27      millert  6019:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   6020:   # unless we find 'file', for example because we are cross-compiling.
                   6021:   if ( file / ) >/dev/null 2>&1; then
                   6022:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   6023:     lt_cv_file_magic_cmd='func_win32_libid'
                   6024:   else
                   6025:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   6026:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   6027:   fi
1.23      millert  6028:   ;;
                   6029:
                   6030: darwin* | rhapsody*)
1.25      millert  6031:   lt_cv_deplibs_check_method=pass_all
                   6032:   ;;
1.23      millert  6033:
1.27      millert  6034: freebsd* | dragonfly*)
                   6035:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6036:     case $host_cpu in
                   6037:     i*86 )
                   6038:       # Not sure whether the presence of OpenBSD here was a mistake.
                   6039:       # Let's accept both of them until this is cleared up.
1.27      millert  6040:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23      millert  6041:       lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6042:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23      millert  6043:       ;;
                   6044:     esac
                   6045:   else
                   6046:     lt_cv_deplibs_check_method=pass_all
                   6047:   fi
                   6048:   ;;
                   6049:
                   6050: gnu*)
                   6051:   lt_cv_deplibs_check_method=pass_all
                   6052:   ;;
                   6053:
                   6054: hpux10.20* | hpux11*)
                   6055:   lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6056:   case $host_cpu in
1.23      millert  6057:   ia64*)
                   6058:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   6059:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   6060:     ;;
                   6061:   hppa*64*)
                   6062:     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]'
                   6063:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   6064:     ;;
                   6065:   *)
                   6066:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   6067:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   6068:     ;;
                   6069:   esac
                   6070:   ;;
                   6071:
1.27      millert  6072: interix[3-9]*)
                   6073:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   6074:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   6075:   ;;
                   6076:
1.23      millert  6077: irix5* | irix6* | nonstopux*)
1.25      millert  6078:   case $LD in
                   6079:   *-32|*"-32 ") libmagic=32-bit;;
                   6080:   *-n32|*"-n32 ") libmagic=N32;;
                   6081:   *-64|*"-64 ") libmagic=64-bit;;
                   6082:   *) libmagic=never-match;;
1.23      millert  6083:   esac
                   6084:   lt_cv_deplibs_check_method=pass_all
                   6085:   ;;
                   6086:
                   6087: # This must be Linux ELF.
1.27      millert  6088: linux* | k*bsd*-gnu)
1.25      millert  6089:   lt_cv_deplibs_check_method=pass_all
1.23      millert  6090:   ;;
                   6091:
1.27      millert  6092: netbsd*)
                   6093:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6094:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   6095:   else
                   6096:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   6097:   fi
                   6098:   ;;
                   6099:
                   6100: newos6*)
                   6101:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   6102:   lt_cv_file_magic_cmd=/usr/bin/file
                   6103:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   6104:   ;;
                   6105:
1.27      millert  6106: nto-qnx*)
                   6107:   lt_cv_deplibs_check_method=unknown
1.23      millert  6108:   ;;
                   6109:
                   6110: openbsd*)
1.27      millert  6111:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25      millert  6112:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23      millert  6113:   else
1.25      millert  6114:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23      millert  6115:   fi
                   6116:   ;;
                   6117:
                   6118: osf3* | osf4* | osf5*)
                   6119:   lt_cv_deplibs_check_method=pass_all
                   6120:   ;;
                   6121:
1.27      millert  6122: rdos*)
1.23      millert  6123:   lt_cv_deplibs_check_method=pass_all
                   6124:   ;;
                   6125:
                   6126: solaris*)
                   6127:   lt_cv_deplibs_check_method=pass_all
                   6128:   ;;
                   6129:
1.27      millert  6130: sysv4 | sysv4.3*)
1.23      millert  6131:   case $host_vendor in
                   6132:   motorola)
                   6133:     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  6134:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23      millert  6135:     ;;
                   6136:   ncr)
                   6137:     lt_cv_deplibs_check_method=pass_all
                   6138:     ;;
                   6139:   sequent)
                   6140:     lt_cv_file_magic_cmd='/bin/file'
                   6141:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   6142:     ;;
                   6143:   sni)
                   6144:     lt_cv_file_magic_cmd='/bin/file'
                   6145:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   6146:     lt_cv_file_magic_test_file=/lib/libc.so
                   6147:     ;;
                   6148:   siemens)
                   6149:     lt_cv_deplibs_check_method=pass_all
                   6150:     ;;
1.27      millert  6151:   pc)
                   6152:     lt_cv_deplibs_check_method=pass_all
                   6153:     ;;
1.23      millert  6154:   esac
                   6155:   ;;
                   6156:
1.27      millert  6157: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25      millert  6158:   lt_cv_deplibs_check_method=pass_all
                   6159:   ;;
1.23      millert  6160: esac
                   6161:
                   6162: fi
1.27      millert  6163: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
                   6164: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23      millert  6165: file_magic_cmd=$lt_cv_file_magic_cmd
                   6166: deplibs_check_method=$lt_cv_deplibs_check_method
                   6167: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   6168:
                   6169:
                   6170:
                   6171:
1.27      millert  6172: # If no C compiler was specified, use CC.
                   6173: LTCC=${LTCC-"$CC"}
1.23      millert  6174:
1.27      millert  6175: # If no C compiler flags were specified, use CFLAGS.
                   6176: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  6177:
1.27      millert  6178: # Allow CC to be a program name with arguments.
                   6179: compiler=$CC
1.23      millert  6180:
1.27      millert  6181: # Check whether --enable-libtool-lock was given.
                   6182: if test "${enable_libtool_lock+set}" = set; then
                   6183:   enableval=$enable_libtool_lock;
                   6184: fi
1.23      millert  6185:
1.27      millert  6186: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23      millert  6187:
1.27      millert  6188: # Some flags need to be propagated to the compiler or linker for good
                   6189: # libtool support.
                   6190: case $host in
                   6191: ia64-*-hpux*)
                   6192:   # Find out which ABI we are using.
                   6193:   echo 'int i;' > conftest.$ac_ext
                   6194:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6195:   (eval $ac_compile) 2>&5
                   6196:   ac_status=$?
                   6197:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6198:   (exit $ac_status); }; then
                   6199:     case `/usr/bin/file conftest.$ac_objext` in
                   6200:     *ELF-32*)
                   6201:       HPUX_IA64_MODE="32"
                   6202:       ;;
                   6203:     *ELF-64*)
                   6204:       HPUX_IA64_MODE="64"
                   6205:       ;;
                   6206:     esac
                   6207:   fi
                   6208:   rm -rf conftest*
                   6209:   ;;
                   6210: *-*-irix6*)
                   6211:   # Find out which ABI we are using.
1.37    ! millert  6212:   echo '#line 6212 "configure"' > conftest.$ac_ext
1.27      millert  6213:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6214:   (eval $ac_compile) 2>&5
                   6215:   ac_status=$?
                   6216:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6217:   (exit $ac_status); }; then
                   6218:    if test "$lt_cv_prog_gnu_ld" = yes; then
                   6219:     case `/usr/bin/file conftest.$ac_objext` in
                   6220:     *32-bit*)
                   6221:       LD="${LD-ld} -melf32bsmip"
                   6222:       ;;
                   6223:     *N32*)
                   6224:       LD="${LD-ld} -melf32bmipn32"
                   6225:       ;;
                   6226:     *64-bit*)
                   6227:       LD="${LD-ld} -melf64bmip"
                   6228:       ;;
                   6229:     esac
                   6230:    else
                   6231:     case `/usr/bin/file conftest.$ac_objext` in
                   6232:     *32-bit*)
                   6233:       LD="${LD-ld} -32"
                   6234:       ;;
                   6235:     *N32*)
                   6236:       LD="${LD-ld} -n32"
                   6237:       ;;
                   6238:     *64-bit*)
                   6239:       LD="${LD-ld} -64"
                   6240:       ;;
                   6241:     esac
                   6242:    fi
                   6243:   fi
                   6244:   rm -rf conftest*
                   6245:   ;;
1.23      millert  6246:
1.27      millert  6247: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   6248: s390*-*linux*|sparc*-*linux*)
                   6249:   # Find out which ABI we are using.
                   6250:   echo 'int i;' > conftest.$ac_ext
                   6251:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6252:   (eval $ac_compile) 2>&5
                   6253:   ac_status=$?
                   6254:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6255:   (exit $ac_status); }; then
                   6256:     case `/usr/bin/file conftest.o` in
                   6257:     *32-bit*)
                   6258:       case $host in
                   6259:         x86_64-*kfreebsd*-gnu)
                   6260:           LD="${LD-ld} -m elf_i386_fbsd"
                   6261:           ;;
                   6262:         x86_64-*linux*)
                   6263:           LD="${LD-ld} -m elf_i386"
                   6264:           ;;
                   6265:         ppc64-*linux*|powerpc64-*linux*)
                   6266:           LD="${LD-ld} -m elf32ppclinux"
                   6267:           ;;
                   6268:         s390x-*linux*)
                   6269:           LD="${LD-ld} -m elf_s390"
                   6270:           ;;
                   6271:         sparc64-*linux*)
                   6272:           LD="${LD-ld} -m elf32_sparc"
                   6273:           ;;
                   6274:       esac
                   6275:       ;;
                   6276:     *64-bit*)
                   6277:       case $host in
                   6278:         x86_64-*kfreebsd*-gnu)
                   6279:           LD="${LD-ld} -m elf_x86_64_fbsd"
                   6280:           ;;
                   6281:         x86_64-*linux*)
                   6282:           LD="${LD-ld} -m elf_x86_64"
                   6283:           ;;
                   6284:         ppc*-*linux*|powerpc*-*linux*)
                   6285:           LD="${LD-ld} -m elf64ppc"
                   6286:           ;;
                   6287:         s390*-*linux*)
                   6288:           LD="${LD-ld} -m elf64_s390"
                   6289:           ;;
                   6290:         sparc*-*linux*)
                   6291:           LD="${LD-ld} -m elf64_sparc"
                   6292:           ;;
                   6293:       esac
                   6294:       ;;
                   6295:     esac
                   6296:   fi
                   6297:   rm -rf conftest*
                   6298:   ;;
1.25      millert  6299:
1.27      millert  6300: *-*-sco3.2v5*)
                   6301:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   6302:   SAVE_CFLAGS="$CFLAGS"
                   6303:   CFLAGS="$CFLAGS -belf"
                   6304:   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   6305: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
                   6306: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23      millert  6307:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6308: else
1.27      millert  6309:   ac_ext=c
                   6310: ac_cpp='$CPP $CPPFLAGS'
                   6311: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6312: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6313: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   6314:
                   6315:      cat >conftest.$ac_ext <<_ACEOF
                   6316: /* confdefs.h.  */
                   6317: _ACEOF
                   6318: cat confdefs.h >>conftest.$ac_ext
                   6319: cat >>conftest.$ac_ext <<_ACEOF
                   6320: /* end confdefs.h.  */
                   6321:
                   6322: int
                   6323: main ()
                   6324: {
1.23      millert  6325:
1.27      millert  6326:   ;
                   6327:   return 0;
                   6328: }
                   6329: _ACEOF
                   6330: rm -f conftest.$ac_objext conftest$ac_exeext
                   6331: if { (ac_try="$ac_link"
                   6332: case "(($ac_try" in
                   6333:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6334:   *) ac_try_echo=$ac_try;;
                   6335: esac
                   6336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6337:   (eval "$ac_link") 2>conftest.er1
                   6338:   ac_status=$?
                   6339:   grep -v '^ *+' conftest.er1 >conftest.err
                   6340:   rm -f conftest.er1
                   6341:   cat conftest.err >&5
                   6342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6343:   (exit $ac_status); } && {
                   6344:         test -z "$ac_c_werror_flag" ||
                   6345:         test ! -s conftest.err
                   6346:        } && test -s conftest$ac_exeext &&
                   6347:        $as_test_x conftest$ac_exeext; then
                   6348:   lt_cv_cc_needs_belf=yes
1.25      millert  6349: else
1.27      millert  6350:   echo "$as_me: failed program was:" >&5
                   6351: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6352:
1.27      millert  6353:        lt_cv_cc_needs_belf=no
1.25      millert  6354: fi
1.23      millert  6355:
1.27      millert  6356: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   6357:       conftest$ac_exeext conftest.$ac_ext
                   6358:      ac_ext=c
                   6359: ac_cpp='$CPP $CPPFLAGS'
                   6360: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6361: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6362: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  6363:
                   6364: fi
1.27      millert  6365: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   6366: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
                   6367:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   6368:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   6369:     CFLAGS="$SAVE_CFLAGS"
                   6370:   fi
                   6371:   ;;
                   6372: sparc*-*solaris*)
                   6373:   # Find out which ABI we are using.
                   6374:   echo 'int i;' > conftest.$ac_ext
                   6375:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6376:   (eval $ac_compile) 2>&5
                   6377:   ac_status=$?
                   6378:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6379:   (exit $ac_status); }; then
                   6380:     case `/usr/bin/file conftest.o` in
                   6381:     *64-bit*)
                   6382:       case $lt_cv_prog_gnu_ld in
                   6383:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.36      millert  6384:       *)
                   6385:         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   6386:          LD="${LD-ld} -64"
                   6387:        fi
                   6388:        ;;
1.27      millert  6389:       esac
                   6390:       ;;
                   6391:     esac
                   6392:   fi
                   6393:   rm -rf conftest*
                   6394:   ;;
1.25      millert  6395:
                   6396:
1.27      millert  6397: esac
1.25      millert  6398:
1.27      millert  6399: need_locks="$enable_libtool_lock"
1.25      millert  6400:
                   6401:
                   6402:
1.27      millert  6403: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6404: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
                   6405: if test "${ac_cv_header_stdc+set}" = set; then
                   6406:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6407: else
                   6408:   cat >conftest.$ac_ext <<_ACEOF
                   6409: /* confdefs.h.  */
                   6410: _ACEOF
                   6411: cat confdefs.h >>conftest.$ac_ext
                   6412: cat >>conftest.$ac_ext <<_ACEOF
                   6413: /* end confdefs.h.  */
                   6414: #include <stdlib.h>
                   6415: #include <stdarg.h>
                   6416: #include <string.h>
                   6417: #include <float.h>
1.23      millert  6418:
1.27      millert  6419: int
                   6420: main ()
                   6421: {
1.23      millert  6422:
1.27      millert  6423:   ;
                   6424:   return 0;
                   6425: }
                   6426: _ACEOF
                   6427: rm -f conftest.$ac_objext
                   6428: if { (ac_try="$ac_compile"
                   6429: case "(($ac_try" in
                   6430:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6431:   *) ac_try_echo=$ac_try;;
                   6432: esac
                   6433: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6434:   (eval "$ac_compile") 2>conftest.er1
                   6435:   ac_status=$?
                   6436:   grep -v '^ *+' conftest.er1 >conftest.err
                   6437:   rm -f conftest.er1
                   6438:   cat conftest.err >&5
                   6439:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6440:   (exit $ac_status); } && {
                   6441:         test -z "$ac_c_werror_flag" ||
                   6442:         test ! -s conftest.err
                   6443:        } && test -s conftest.$ac_objext; then
                   6444:   ac_cv_header_stdc=yes
                   6445: else
                   6446:   echo "$as_me: failed program was:" >&5
                   6447: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6448:
1.27      millert  6449:        ac_cv_header_stdc=no
                   6450: fi
1.23      millert  6451:
1.27      millert  6452: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  6453:
1.27      millert  6454: if test $ac_cv_header_stdc = yes; then
                   6455:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   6456:   cat >conftest.$ac_ext <<_ACEOF
                   6457: /* confdefs.h.  */
                   6458: _ACEOF
                   6459: cat confdefs.h >>conftest.$ac_ext
                   6460: cat >>conftest.$ac_ext <<_ACEOF
                   6461: /* end confdefs.h.  */
                   6462: #include <string.h>
1.23      millert  6463:
1.27      millert  6464: _ACEOF
                   6465: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6466:   $EGREP "memchr" >/dev/null 2>&1; then
                   6467:   :
1.25      millert  6468: else
1.27      millert  6469:   ac_cv_header_stdc=no
1.25      millert  6470: fi
1.27      millert  6471: rm -f conftest*
1.23      millert  6472:
1.25      millert  6473: fi
1.23      millert  6474:
1.27      millert  6475: if test $ac_cv_header_stdc = yes; then
                   6476:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   6477:   cat >conftest.$ac_ext <<_ACEOF
                   6478: /* confdefs.h.  */
                   6479: _ACEOF
                   6480: cat confdefs.h >>conftest.$ac_ext
                   6481: cat >>conftest.$ac_ext <<_ACEOF
                   6482: /* end confdefs.h.  */
                   6483: #include <stdlib.h>
                   6484:
                   6485: _ACEOF
                   6486: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6487:   $EGREP "free" >/dev/null 2>&1; then
                   6488:   :
1.25      millert  6489: else
1.27      millert  6490:   ac_cv_header_stdc=no
1.23      millert  6491: fi
1.27      millert  6492: rm -f conftest*
1.23      millert  6493:
                   6494: fi
                   6495:
1.27      millert  6496: if test $ac_cv_header_stdc = yes; then
                   6497:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6498:   if test "$cross_compiling" = yes; then
                   6499:   :
                   6500: else
                   6501:   cat >conftest.$ac_ext <<_ACEOF
                   6502: /* confdefs.h.  */
                   6503: _ACEOF
                   6504: cat confdefs.h >>conftest.$ac_ext
                   6505: cat >>conftest.$ac_ext <<_ACEOF
                   6506: /* end confdefs.h.  */
                   6507: #include <ctype.h>
                   6508: #include <stdlib.h>
                   6509: #if ((' ' & 0x0FF) == 0x020)
                   6510: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6511: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6512: #else
                   6513: # define ISLOWER(c) \
                   6514:                   (('a' <= (c) && (c) <= 'i') \
                   6515:                     || ('j' <= (c) && (c) <= 'r') \
                   6516:                     || ('s' <= (c) && (c) <= 'z'))
                   6517: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6518: #endif
1.25      millert  6519:
1.27      millert  6520: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   6521: int
                   6522: main ()
                   6523: {
                   6524:   int i;
                   6525:   for (i = 0; i < 256; i++)
                   6526:     if (XOR (islower (i), ISLOWER (i))
                   6527:        || toupper (i) != TOUPPER (i))
                   6528:       return 2;
                   6529:   return 0;
                   6530: }
                   6531: _ACEOF
                   6532: rm -f conftest$ac_exeext
                   6533: if { (ac_try="$ac_link"
                   6534: case "(($ac_try" in
                   6535:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6536:   *) ac_try_echo=$ac_try;;
                   6537: esac
                   6538: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6539:   (eval "$ac_link") 2>&5
                   6540:   ac_status=$?
                   6541:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6542:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   6543:   { (case "(($ac_try" in
                   6544:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6545:   *) ac_try_echo=$ac_try;;
                   6546: esac
                   6547: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6548:   (eval "$ac_try") 2>&5
                   6549:   ac_status=$?
                   6550:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6551:   (exit $ac_status); }; }; then
                   6552:   :
1.25      millert  6553: else
1.27      millert  6554:   echo "$as_me: program exited with status $ac_status" >&5
                   6555: echo "$as_me: failed program was:" >&5
                   6556: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6557:
1.27      millert  6558: ( exit $ac_status )
                   6559: ac_cv_header_stdc=no
1.25      millert  6560: fi
1.27      millert  6561: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23      millert  6562: fi
                   6563:
                   6564:
                   6565: fi
                   6566: fi
1.27      millert  6567: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   6568: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
                   6569: if test $ac_cv_header_stdc = yes; then
                   6570:
                   6571: cat >>confdefs.h <<\_ACEOF
                   6572: #define STDC_HEADERS 1
                   6573: _ACEOF
1.23      millert  6574:
                   6575: fi
                   6576:
1.27      millert  6577: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23      millert  6578:
                   6579:
                   6580:
                   6581:
                   6582:
                   6583:
                   6584:
                   6585:
                   6586:
1.27      millert  6587: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   6588:                  inttypes.h stdint.h unistd.h
                   6589: do
                   6590: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6591: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6592: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6593: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6594:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6595: else
                   6596:   cat >conftest.$ac_ext <<_ACEOF
                   6597: /* confdefs.h.  */
                   6598: _ACEOF
                   6599: cat confdefs.h >>conftest.$ac_ext
                   6600: cat >>conftest.$ac_ext <<_ACEOF
                   6601: /* end confdefs.h.  */
                   6602: $ac_includes_default
1.23      millert  6603:
1.27      millert  6604: #include <$ac_header>
                   6605: _ACEOF
                   6606: rm -f conftest.$ac_objext
                   6607: if { (ac_try="$ac_compile"
                   6608: case "(($ac_try" in
                   6609:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6610:   *) ac_try_echo=$ac_try;;
                   6611: esac
                   6612: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6613:   (eval "$ac_compile") 2>conftest.er1
                   6614:   ac_status=$?
                   6615:   grep -v '^ *+' conftest.er1 >conftest.err
                   6616:   rm -f conftest.er1
                   6617:   cat conftest.err >&5
                   6618:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6619:   (exit $ac_status); } && {
                   6620:         test -z "$ac_c_werror_flag" ||
                   6621:         test ! -s conftest.err
                   6622:        } && test -s conftest.$ac_objext; then
                   6623:   eval "$as_ac_Header=yes"
                   6624: else
                   6625:   echo "$as_me: failed program was:" >&5
                   6626: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6627:
1.27      millert  6628:        eval "$as_ac_Header=no"
                   6629: fi
1.23      millert  6630:
1.27      millert  6631: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6632: fi
                   6633: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6634:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6635: echo "${ECHO_T}$ac_res" >&6; }
                   6636: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6637:   cat >>confdefs.h <<_ACEOF
                   6638: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6639: _ACEOF
1.23      millert  6640:
1.27      millert  6641: fi
1.23      millert  6642:
1.27      millert  6643: done
1.23      millert  6644:
                   6645:
                   6646:
1.27      millert  6647: for ac_header in dlfcn.h
                   6648: do
                   6649: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6650: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6651:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6652: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6653: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6654:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6655: fi
                   6656: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6657:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6658: echo "${ECHO_T}$ac_res" >&6; }
                   6659: else
                   6660:   # Is the header compilable?
                   6661: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   6662: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   6663: cat >conftest.$ac_ext <<_ACEOF
                   6664: /* confdefs.h.  */
                   6665: _ACEOF
                   6666: cat confdefs.h >>conftest.$ac_ext
                   6667: cat >>conftest.$ac_ext <<_ACEOF
                   6668: /* end confdefs.h.  */
                   6669: $ac_includes_default
                   6670: #include <$ac_header>
                   6671: _ACEOF
                   6672: rm -f conftest.$ac_objext
                   6673: if { (ac_try="$ac_compile"
                   6674: case "(($ac_try" in
                   6675:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6676:   *) ac_try_echo=$ac_try;;
                   6677: esac
                   6678: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6679:   (eval "$ac_compile") 2>conftest.er1
                   6680:   ac_status=$?
                   6681:   grep -v '^ *+' conftest.er1 >conftest.err
                   6682:   rm -f conftest.er1
                   6683:   cat conftest.err >&5
                   6684:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6685:   (exit $ac_status); } && {
                   6686:         test -z "$ac_c_werror_flag" ||
                   6687:         test ! -s conftest.err
                   6688:        } && test -s conftest.$ac_objext; then
                   6689:   ac_header_compiler=yes
                   6690: else
                   6691:   echo "$as_me: failed program was:" >&5
                   6692: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6693:
1.27      millert  6694:        ac_header_compiler=no
                   6695: fi
1.23      millert  6696:
1.27      millert  6697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6698: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   6699: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  6700:
1.27      millert  6701: # Is the header present?
                   6702: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   6703: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   6704: cat >conftest.$ac_ext <<_ACEOF
                   6705: /* confdefs.h.  */
                   6706: _ACEOF
                   6707: cat confdefs.h >>conftest.$ac_ext
                   6708: cat >>conftest.$ac_ext <<_ACEOF
                   6709: /* end confdefs.h.  */
                   6710: #include <$ac_header>
                   6711: _ACEOF
                   6712: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   6713: case "(($ac_try" in
                   6714:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6715:   *) ac_try_echo=$ac_try;;
                   6716: esac
                   6717: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6718:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   6719:   ac_status=$?
                   6720:   grep -v '^ *+' conftest.er1 >conftest.err
                   6721:   rm -f conftest.er1
                   6722:   cat conftest.err >&5
                   6723:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6724:   (exit $ac_status); } >/dev/null && {
                   6725:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   6726:         test ! -s conftest.err
                   6727:        }; then
                   6728:   ac_header_preproc=yes
                   6729: else
                   6730:   echo "$as_me: failed program was:" >&5
                   6731: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6732:
1.27      millert  6733:   ac_header_preproc=no
                   6734: fi
1.23      millert  6735:
1.27      millert  6736: rm -f conftest.err conftest.$ac_ext
                   6737: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   6738: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  6739:
1.27      millert  6740: # So?  What about this header?
                   6741: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   6742:   yes:no: )
                   6743:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   6744: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   6745:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   6746: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   6747:     ac_header_preproc=yes
                   6748:     ;;
                   6749:   no:yes:* )
                   6750:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   6751: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   6752:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   6753: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   6754:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   6755: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   6756:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   6757: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   6758:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   6759: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   6760:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   6761: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.23      millert  6762:
1.27      millert  6763:     ;;
                   6764: esac
                   6765: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6766: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6767: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  6768:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6769: else
1.27      millert  6770:   eval "$as_ac_Header=\$ac_header_preproc"
                   6771: fi
                   6772: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6773:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6774: echo "${ECHO_T}$ac_res" >&6; }
                   6775:
                   6776: fi
                   6777: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6778:   cat >>confdefs.h <<_ACEOF
                   6779: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6780: _ACEOF
                   6781:
                   6782: fi
1.23      millert  6783:
1.27      millert  6784: done
1.23      millert  6785:
                   6786:
1.27      millert  6787: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
                   6788: # find the maximum length of command line arguments
                   6789: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
                   6790: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
                   6791: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
                   6792:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6793: else
                   6794:     i=0
                   6795:   teststring="ABCD"
                   6796:
                   6797:   case $build_os in
                   6798:   msdosdjgpp*)
                   6799:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   6800:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   6801:     # during glob expansion).  Even if it were fixed, the result of this
                   6802:     # check would be larger than it should be.
                   6803:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   6804:     ;;
                   6805:
                   6806:   gnu*)
                   6807:     # Under GNU Hurd, this test is not required because there is
                   6808:     # no limit to the length of command line arguments.
                   6809:     # Libtool will interpret -1 as no limit whatsoever
                   6810:     lt_cv_sys_max_cmd_len=-1;
                   6811:     ;;
                   6812:
                   6813:   cygwin* | mingw*)
                   6814:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   6815:     # about 5 minutes as the teststring grows exponentially.
                   6816:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   6817:     # you end up with a "frozen" computer, even though with patience
                   6818:     # the test eventually succeeds (with a max line length of 256k).
                   6819:     # Instead, let's just punt: use the minimum linelength reported by
                   6820:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   6821:     lt_cv_sys_max_cmd_len=8192;
                   6822:     ;;
                   6823:
                   6824:   amigaos*)
                   6825:     # On AmigaOS with pdksh, this test takes hours, literally.
                   6826:     # So we just punt and use a minimum line length of 8192.
                   6827:     lt_cv_sys_max_cmd_len=8192;
                   6828:     ;;
                   6829:
                   6830:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   6831:     # This has been around since 386BSD, at least.  Likely further.
                   6832:     if test -x /sbin/sysctl; then
                   6833:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   6834:     elif test -x /usr/sbin/sysctl; then
                   6835:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   6836:     else
                   6837:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   6838:     fi
                   6839:     # And add a safety zone
                   6840:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6841:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6842:     ;;
                   6843:
                   6844:   interix*)
                   6845:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   6846:     lt_cv_sys_max_cmd_len=196608
                   6847:     ;;
                   6848:
                   6849:   osf*)
                   6850:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   6851:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   6852:     # nice to cause kernel panics so lets avoid the loop below.
                   6853:     # First set a reasonable default.
                   6854:     lt_cv_sys_max_cmd_len=16384
                   6855:     #
                   6856:     if test -x /sbin/sysconfig; then
                   6857:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   6858:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   6859:       esac
                   6860:     fi
                   6861:     ;;
                   6862:   sco3.2v5*)
                   6863:     lt_cv_sys_max_cmd_len=102400
                   6864:     ;;
                   6865:   sysv5* | sco5v6* | sysv4.2uw2*)
                   6866:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   6867:     if test -n "$kargmax"; then
                   6868:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
                   6869:     else
                   6870:       lt_cv_sys_max_cmd_len=32768
                   6871:     fi
                   6872:     ;;
                   6873:   *)
                   6874:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   6875:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   6876:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6877:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6878:     else
                   6879:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   6880:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
                   6881:               = "XX$teststring") >/dev/null 2>&1 &&
                   6882:              new_result=`expr "X$teststring" : ".*" 2>&1` &&
                   6883:              lt_cv_sys_max_cmd_len=$new_result &&
                   6884:              test $i != 17 # 1/2 MB should be enough
                   6885:       do
                   6886:         i=`expr $i + 1`
                   6887:         teststring=$teststring$teststring
                   6888:       done
                   6889:       teststring=
                   6890:       # Add a significant safety factor because C++ compilers can tack on massive
                   6891:       # amounts of additional arguments before passing them to the linker.
                   6892:       # It appears as though 1/2 is a usable value.
                   6893:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   6894:     fi
                   6895:     ;;
                   6896:   esac
                   6897:
                   6898: fi
                   6899:
                   6900: if test -n $lt_cv_sys_max_cmd_len ; then
                   6901:   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
                   6902: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
                   6903: else
                   6904:   { echo "$as_me:$LINENO: result: none" >&5
                   6905: echo "${ECHO_T}none" >&6; }
                   6906: fi
                   6907:
                   6908:
                   6909:
                   6910:
                   6911:
                   6912: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   6913: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
                   6914: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
                   6915: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
                   6916:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6917: else
                   6918:
                   6919: # These are sane defaults that work on at least a few old systems.
                   6920: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   6921:
                   6922: # Character class describing NM global symbol codes.
                   6923: symcode='[BCDEGRST]'
                   6924:
                   6925: # Regexp to match symbols that can be accessed directly from C.
                   6926: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   6927:
                   6928: # Transform an extracted symbol line into a proper C declaration
                   6929: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
                   6930:
                   6931: # Transform an extracted symbol line into symbol name and symbol address
                   6932: 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  6933:
1.25      millert  6934: # Define system-specific variables.
                   6935: case $host_os in
                   6936: aix*)
                   6937:   symcode='[BCDT]'
                   6938:   ;;
                   6939: cygwin* | mingw* | pw32*)
                   6940:   symcode='[ABCDGISTW]'
                   6941:   ;;
1.27      millert  6942: hpux*) # Its linker distinguishes data from code symbols
1.25      millert  6943:   if test "$host_cpu" = ia64; then
                   6944:     symcode='[ABCDEGRST]'
                   6945:   fi
1.27      millert  6946:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   6947:   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'"
                   6948:   ;;
                   6949: linux* | k*bsd*-gnu)
                   6950:   if test "$host_cpu" = ia64; then
                   6951:     symcode='[ABCDGIRSTW]'
                   6952:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   6953:     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'"
                   6954:   fi
1.25      millert  6955:   ;;
                   6956: irix* | nonstopux*)
                   6957:   symcode='[BCDEGRST]'
                   6958:   ;;
                   6959: osf*)
                   6960:   symcode='[BCDEGQRST]'
                   6961:   ;;
1.27      millert  6962: solaris*)
1.25      millert  6963:   symcode='[BDRT]'
                   6964:   ;;
1.27      millert  6965: sco3.2v5*)
                   6966:   symcode='[DT]'
                   6967:   ;;
                   6968: sysv4.2uw2*)
                   6969:   symcode='[DT]'
                   6970:   ;;
                   6971: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   6972:   symcode='[ABDT]'
                   6973:   ;;
1.25      millert  6974: sysv4)
                   6975:   symcode='[DFNSTU]'
                   6976:   ;;
                   6977: esac
1.23      millert  6978:
1.25      millert  6979: # Handle CRLF in mingw tool chain
                   6980: opt_cr=
                   6981: case $build_os in
                   6982: mingw*)
1.27      millert  6983:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25      millert  6984:   ;;
                   6985: esac
                   6986:
1.27      millert  6987: # If we're using GNU nm, then use its standard symbol codes.
                   6988: case `$NM -V 2>&1` in
                   6989: *GNU* | *'with BFD'*)
                   6990:   symcode='[ABCDGIRSTW]' ;;
                   6991: esac
                   6992:
                   6993: # Try without a prefix undercore, then with it.
1.25      millert  6994: for ac_symprfx in "" "_"; do
                   6995:
1.27      millert  6996:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   6997:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   6998:
1.25      millert  6999:   # Write the raw and C identifiers.
1.27      millert  7000:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23      millert  7001:
1.25      millert  7002:   # Check to see that the pipe works correctly.
                   7003:   pipe_works=no
                   7004:
                   7005:   rm -f conftest*
1.27      millert  7006:   cat > conftest.$ac_ext <<EOF
1.25      millert  7007: #ifdef __cplusplus
                   7008: extern "C" {
                   7009: #endif
                   7010: char nm_test_var;
                   7011: void nm_test_func(){}
                   7012: #ifdef __cplusplus
                   7013: }
                   7014: #endif
                   7015: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27      millert  7016: EOF
1.25      millert  7017:
                   7018:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7019:   (eval $ac_compile) 2>&5
1.23      millert  7020:   ac_status=$?
                   7021:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7022:   (exit $ac_status); }; then
                   7023:     # Now try to grab the symbols.
                   7024:     nlist=conftest.nm
                   7025:     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
                   7026:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23      millert  7027:   ac_status=$?
                   7028:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7029:   (exit $ac_status); } && test -s "$nlist"; then
                   7030:       # Try sorting and uniquifying the output.
                   7031:       if sort "$nlist" | uniq > "$nlist"T; then
                   7032:        mv -f "$nlist"T "$nlist"
                   7033:       else
                   7034:        rm -f "$nlist"T
                   7035:       fi
                   7036:
                   7037:       # Make sure that we snagged all the symbols we need.
1.27      millert  7038:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
                   7039:        if grep ' nm_test_func$' "$nlist" >/dev/null; then
                   7040:          cat <<EOF > conftest.$ac_ext
1.25      millert  7041: #ifdef __cplusplus
                   7042: extern "C" {
                   7043: #endif
                   7044:
1.27      millert  7045: EOF
1.25      millert  7046:          # Now generate the symbol file.
1.27      millert  7047:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23      millert  7048:
1.27      millert  7049:          cat <<EOF >> conftest.$ac_ext
                   7050: #if defined (__STDC__) && __STDC__
                   7051: # define lt_ptr_t void *
                   7052: #else
                   7053: # define lt_ptr_t char *
                   7054: # define const
                   7055: #endif
1.23      millert  7056:
1.27      millert  7057: /* The mapping between symbol names and symbols. */
1.25      millert  7058: const struct {
                   7059:   const char *name;
1.27      millert  7060:   lt_ptr_t address;
1.25      millert  7061: }
1.27      millert  7062: lt_preloaded_symbols[] =
1.23      millert  7063: {
1.27      millert  7064: EOF
                   7065:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
                   7066:          cat <<\EOF >> conftest.$ac_ext
                   7067:   {0, (lt_ptr_t) 0}
1.25      millert  7068: };
                   7069:
                   7070: #ifdef __cplusplus
1.23      millert  7071: }
1.25      millert  7072: #endif
1.27      millert  7073: EOF
1.25      millert  7074:          # Now try linking the two files.
                   7075:          mv conftest.$ac_objext conftstm.$ac_objext
                   7076:          lt_save_LIBS="$LIBS"
                   7077:          lt_save_CFLAGS="$CFLAGS"
                   7078:          LIBS="conftstm.$ac_objext"
                   7079:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   7080:          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7081:   (eval $ac_link) 2>&5
1.23      millert  7082:   ac_status=$?
                   7083:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7084:   (exit $ac_status); } && test -s conftest${ac_exeext}; then
                   7085:            pipe_works=yes
                   7086:          fi
                   7087:          LIBS="$lt_save_LIBS"
                   7088:          CFLAGS="$lt_save_CFLAGS"
                   7089:        else
                   7090:          echo "cannot find nm_test_func in $nlist" >&5
                   7091:        fi
                   7092:       else
                   7093:        echo "cannot find nm_test_var in $nlist" >&5
                   7094:       fi
                   7095:     else
                   7096:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   7097:     fi
                   7098:   else
                   7099:     echo "$progname: failed program was:" >&5
                   7100:     cat conftest.$ac_ext >&5
                   7101:   fi
1.36      millert  7102:   rm -rf conftest* conftst*
1.25      millert  7103:
                   7104:   # Do not use the global_symbol_pipe unless it works.
                   7105:   if test "$pipe_works" = yes; then
                   7106:     break
                   7107:   else
                   7108:     lt_cv_sys_global_symbol_pipe=
                   7109:   fi
                   7110: done
1.23      millert  7111:
                   7112: fi
                   7113:
1.25      millert  7114: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   7115:   lt_cv_sys_global_symbol_to_cdecl=
                   7116: fi
                   7117: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27      millert  7118:   { echo "$as_me:$LINENO: result: failed" >&5
                   7119: echo "${ECHO_T}failed" >&6; }
1.25      millert  7120: else
1.27      millert  7121:   { echo "$as_me:$LINENO: result: ok" >&5
                   7122: echo "${ECHO_T}ok" >&6; }
1.23      millert  7123: fi
1.25      millert  7124:
1.27      millert  7125: { echo "$as_me:$LINENO: checking for objdir" >&5
                   7126: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
                   7127: if test "${lt_cv_objdir+set}" = set; then
                   7128:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7129: else
                   7130:   rm -f .libs 2>/dev/null
                   7131: mkdir .libs 2>/dev/null
                   7132: if test -d .libs; then
                   7133:   lt_cv_objdir=.libs
                   7134: else
                   7135:   # MS-DOS does not allow filenames that begin with a dot.
                   7136:   lt_cv_objdir=_libs
                   7137: fi
                   7138: rmdir .libs 2>/dev/null
                   7139: fi
                   7140: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
                   7141: echo "${ECHO_T}$lt_cv_objdir" >&6; }
                   7142: objdir=$lt_cv_objdir
1.25      millert  7143:
                   7144:
                   7145:
                   7146:
                   7147:
1.27      millert  7148: case $host_os in
                   7149: aix3*)
                   7150:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   7151:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   7152:   # vanish in a puff of smoke.
                   7153:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   7154:     COLLECT_NAMES=
                   7155:     export COLLECT_NAMES
                   7156:   fi
                   7157:   ;;
                   7158: esac
1.25      millert  7159:
1.27      millert  7160: # Sed substitution that helps us do robust quoting.  It backslashifies
                   7161: # metacharacters that are still active within double-quoted strings.
                   7162: Xsed='sed -e 1s/^X//'
                   7163: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25      millert  7164:
1.27      millert  7165: # Same as above, but do not quote variable references.
                   7166: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25      millert  7167:
1.27      millert  7168: # Sed substitution to delay expansion of an escaped shell variable in a
                   7169: # double_quote_subst'ed string.
                   7170: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25      millert  7171:
1.27      millert  7172: # Sed substitution to avoid accidental globbing in evaled expressions
                   7173: no_glob_subst='s/\*/\\\*/g'
1.25      millert  7174:
1.27      millert  7175: # Constants:
                   7176: rm="rm -f"
1.25      millert  7177:
1.27      millert  7178: # Global variables:
                   7179: default_ofile=libtool
                   7180: can_build_shared=yes
1.25      millert  7181:
1.27      millert  7182: # All known linkers require a `.a' archive for static linking (except MSVC,
                   7183: # which needs '.lib').
                   7184: libext=a
                   7185: ltmain="$ac_aux_dir/ltmain.sh"
                   7186: ofile="$default_ofile"
                   7187: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25      millert  7188:
1.27      millert  7189: if test -n "$ac_tool_prefix"; then
                   7190:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   7191: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   7192: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7193: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7194: if test "${ac_cv_prog_AR+set}" = set; then
                   7195:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7196: else
                   7197:   if test -n "$AR"; then
                   7198:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   7199: else
                   7200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7201: for as_dir in $PATH
                   7202: do
                   7203:   IFS=$as_save_IFS
                   7204:   test -z "$as_dir" && as_dir=.
                   7205:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7206:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7207:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   7208:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7209:     break 2
                   7210:   fi
                   7211: done
                   7212: done
                   7213: IFS=$as_save_IFS
1.25      millert  7214:
1.27      millert  7215: fi
                   7216: fi
                   7217: AR=$ac_cv_prog_AR
                   7218: if test -n "$AR"; then
                   7219:   { echo "$as_me:$LINENO: result: $AR" >&5
                   7220: echo "${ECHO_T}$AR" >&6; }
                   7221: else
                   7222:   { echo "$as_me:$LINENO: result: no" >&5
                   7223: echo "${ECHO_T}no" >&6; }
                   7224: fi
1.25      millert  7225:
                   7226:
1.27      millert  7227: fi
                   7228: if test -z "$ac_cv_prog_AR"; then
                   7229:   ac_ct_AR=$AR
                   7230:   # Extract the first word of "ar", so it can be a program name with args.
                   7231: set dummy ar; ac_word=$2
                   7232: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7233: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7234: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
                   7235:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7236: else
                   7237:   if test -n "$ac_ct_AR"; then
                   7238:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   7239: else
                   7240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7241: for as_dir in $PATH
                   7242: do
                   7243:   IFS=$as_save_IFS
                   7244:   test -z "$as_dir" && as_dir=.
                   7245:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7246:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7247:     ac_cv_prog_ac_ct_AR="ar"
                   7248:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7249:     break 2
                   7250:   fi
                   7251: done
                   7252: done
                   7253: IFS=$as_save_IFS
1.25      millert  7254:
1.27      millert  7255: fi
                   7256: fi
                   7257: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   7258: if test -n "$ac_ct_AR"; then
                   7259:   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
                   7260: echo "${ECHO_T}$ac_ct_AR" >&6; }
                   7261: else
                   7262:   { echo "$as_me:$LINENO: result: no" >&5
                   7263: echo "${ECHO_T}no" >&6; }
                   7264: fi
1.25      millert  7265:
1.27      millert  7266:   if test "x$ac_ct_AR" = x; then
                   7267:     AR="false"
                   7268:   else
                   7269:     case $cross_compiling:$ac_tool_warned in
                   7270: yes:)
                   7271: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7272: whose name does not start with the host triplet.  If you think this
                   7273: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7274: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7275: whose name does not start with the host triplet.  If you think this
                   7276: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7277: ac_tool_warned=yes ;;
                   7278: esac
                   7279:     AR=$ac_ct_AR
                   7280:   fi
                   7281: else
                   7282:   AR="$ac_cv_prog_AR"
                   7283: fi
1.25      millert  7284:
1.27      millert  7285: if test -n "$ac_tool_prefix"; then
                   7286:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   7287: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   7288: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7289: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7290: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   7291:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7292: else
                   7293:   if test -n "$RANLIB"; then
                   7294:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   7295: else
                   7296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7297: for as_dir in $PATH
                   7298: do
                   7299:   IFS=$as_save_IFS
                   7300:   test -z "$as_dir" && as_dir=.
                   7301:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7302:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7303:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   7304:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7305:     break 2
                   7306:   fi
                   7307: done
                   7308: done
                   7309: IFS=$as_save_IFS
1.25      millert  7310:
1.27      millert  7311: fi
                   7312: fi
                   7313: RANLIB=$ac_cv_prog_RANLIB
                   7314: if test -n "$RANLIB"; then
                   7315:   { echo "$as_me:$LINENO: result: $RANLIB" >&5
                   7316: echo "${ECHO_T}$RANLIB" >&6; }
                   7317: else
                   7318:   { echo "$as_me:$LINENO: result: no" >&5
                   7319: echo "${ECHO_T}no" >&6; }
                   7320: fi
1.25      millert  7321:
                   7322:
1.27      millert  7323: fi
                   7324: if test -z "$ac_cv_prog_RANLIB"; then
                   7325:   ac_ct_RANLIB=$RANLIB
                   7326:   # Extract the first word of "ranlib", so it can be a program name with args.
                   7327: set dummy ranlib; ac_word=$2
                   7328: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7329: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7330: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23      millert  7331:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7332: else
1.27      millert  7333:   if test -n "$ac_ct_RANLIB"; then
                   7334:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23      millert  7335: else
1.27      millert  7336: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7337: for as_dir in $PATH
                   7338: do
                   7339:   IFS=$as_save_IFS
                   7340:   test -z "$as_dir" && as_dir=.
                   7341:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7342:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7343:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   7344:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7345:     break 2
                   7346:   fi
                   7347: done
                   7348: done
                   7349: IFS=$as_save_IFS
1.23      millert  7350:
                   7351: fi
1.27      millert  7352: fi
                   7353: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   7354: if test -n "$ac_ct_RANLIB"; then
                   7355:   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   7356: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23      millert  7357: else
1.27      millert  7358:   { echo "$as_me:$LINENO: result: no" >&5
                   7359: echo "${ECHO_T}no" >&6; }
1.25      millert  7360: fi
1.23      millert  7361:
1.27      millert  7362:   if test "x$ac_ct_RANLIB" = x; then
                   7363:     RANLIB=":"
                   7364:   else
                   7365:     case $cross_compiling:$ac_tool_warned in
                   7366: yes:)
                   7367: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7368: whose name does not start with the host triplet.  If you think this
                   7369: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7370: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7371: whose name does not start with the host triplet.  If you think this
                   7372: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7373: ac_tool_warned=yes ;;
                   7374: esac
                   7375:     RANLIB=$ac_ct_RANLIB
                   7376:   fi
                   7377: else
                   7378:   RANLIB="$ac_cv_prog_RANLIB"
1.23      millert  7379: fi
1.25      millert  7380:
1.27      millert  7381: if test -n "$ac_tool_prefix"; then
                   7382:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   7383: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   7384: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7385: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7386: if test "${ac_cv_prog_STRIP+set}" = set; then
                   7387:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7388: else
                   7389:   if test -n "$STRIP"; then
                   7390:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   7391: else
                   7392: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7393: for as_dir in $PATH
                   7394: do
                   7395:   IFS=$as_save_IFS
                   7396:   test -z "$as_dir" && as_dir=.
                   7397:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7398:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7399:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   7400:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7401:     break 2
                   7402:   fi
                   7403: done
                   7404: done
                   7405: IFS=$as_save_IFS
1.25      millert  7406:
1.27      millert  7407: fi
                   7408: fi
                   7409: STRIP=$ac_cv_prog_STRIP
                   7410: if test -n "$STRIP"; then
                   7411:   { echo "$as_me:$LINENO: result: $STRIP" >&5
                   7412: echo "${ECHO_T}$STRIP" >&6; }
1.25      millert  7413: else
1.27      millert  7414:   { echo "$as_me:$LINENO: result: no" >&5
                   7415: echo "${ECHO_T}no" >&6; }
1.25      millert  7416: fi
1.27      millert  7417:
1.25      millert  7418:
                   7419: fi
1.27      millert  7420: if test -z "$ac_cv_prog_STRIP"; then
                   7421:   ac_ct_STRIP=$STRIP
                   7422:   # Extract the first word of "strip", so it can be a program name with args.
                   7423: set dummy strip; ac_word=$2
                   7424: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7425: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7426: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
                   7427:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  7428: else
1.27      millert  7429:   if test -n "$ac_ct_STRIP"; then
                   7430:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23      millert  7431: else
1.27      millert  7432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7433: for as_dir in $PATH
                   7434: do
                   7435:   IFS=$as_save_IFS
                   7436:   test -z "$as_dir" && as_dir=.
                   7437:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7438:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7439:     ac_cv_prog_ac_ct_STRIP="strip"
                   7440:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7441:     break 2
                   7442:   fi
                   7443: done
                   7444: done
                   7445: IFS=$as_save_IFS
1.23      millert  7446:
1.25      millert  7447: fi
                   7448: fi
1.27      millert  7449: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   7450: if test -n "$ac_ct_STRIP"; then
                   7451:   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
                   7452: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
                   7453: else
                   7454:   { echo "$as_me:$LINENO: result: no" >&5
                   7455: echo "${ECHO_T}no" >&6; }
1.23      millert  7456: fi
1.25      millert  7457:
1.27      millert  7458:   if test "x$ac_ct_STRIP" = x; then
                   7459:     STRIP=":"
                   7460:   else
                   7461:     case $cross_compiling:$ac_tool_warned in
                   7462: yes:)
                   7463: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7464: whose name does not start with the host triplet.  If you think this
                   7465: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7466: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7467: whose name does not start with the host triplet.  If you think this
                   7468: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7469: ac_tool_warned=yes ;;
                   7470: esac
                   7471:     STRIP=$ac_ct_STRIP
                   7472:   fi
                   7473: else
                   7474:   STRIP="$ac_cv_prog_STRIP"
1.23      millert  7475: fi
                   7476:
1.25      millert  7477:
1.27      millert  7478: old_CC="$CC"
                   7479: old_CFLAGS="$CFLAGS"
1.25      millert  7480:
1.27      millert  7481: # Set sane defaults for various variables
                   7482: test -z "$AR" && AR=ar
                   7483: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   7484: test -z "$AS" && AS=as
                   7485: test -z "$CC" && CC=cc
                   7486: test -z "$LTCC" && LTCC=$CC
                   7487: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   7488: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   7489: test -z "$LD" && LD=ld
                   7490: test -z "$LN_S" && LN_S="ln -s"
                   7491: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   7492: test -z "$NM" && NM=nm
                   7493: test -z "$SED" && SED=sed
                   7494: test -z "$OBJDUMP" && OBJDUMP=objdump
                   7495: test -z "$RANLIB" && RANLIB=:
                   7496: test -z "$STRIP" && STRIP=:
                   7497: test -z "$ac_objext" && ac_objext=o
1.25      millert  7498:
1.27      millert  7499: # Determine commands to create old-style static archives.
                   7500: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   7501: old_postinstall_cmds='chmod 644 $oldlib'
                   7502: old_postuninstall_cmds=
1.25      millert  7503:
1.27      millert  7504: if test -n "$RANLIB"; then
                   7505:   case $host_os in
                   7506:   openbsd*)
                   7507:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
                   7508:     ;;
                   7509:   *)
                   7510:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
                   7511:     ;;
                   7512:   esac
                   7513:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   7514: fi
1.25      millert  7515:
1.27      millert  7516: for cc_temp in $compiler""; do
                   7517:   case $cc_temp in
                   7518:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   7519:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   7520:     \-*) ;;
                   7521:     *) break;;
                   7522:   esac
                   7523: done
                   7524: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25      millert  7525:
                   7526:
1.27      millert  7527: # Only perform the check for file, if the check method requires it
                   7528: case $deplibs_check_method in
                   7529: file_magic*)
                   7530:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   7531:     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
                   7532: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
                   7533: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23      millert  7534:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7535: else
1.27      millert  7536:   case $MAGIC_CMD in
                   7537: [\\/*] |  ?:[\\/]*)
                   7538:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7539:   ;;
                   7540: *)
                   7541:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7542:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7543:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7544:   for ac_dir in $ac_dummy; do
                   7545:     IFS="$lt_save_ifs"
                   7546:     test -z "$ac_dir" && ac_dir=.
                   7547:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   7548:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   7549:       if test -n "$file_magic_test_file"; then
                   7550:        case $deplibs_check_method in
                   7551:        "file_magic "*)
                   7552:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7553:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7554:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7555:            $EGREP "$file_magic_regex" > /dev/null; then
                   7556:            :
                   7557:          else
                   7558:            cat <<EOF 1>&2
1.25      millert  7559:
1.27      millert  7560: *** Warning: the command libtool uses to detect shared libraries,
                   7561: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7562: *** The result is that libtool may fail to recognize shared libraries
                   7563: *** as such.  This will affect the creation of libtool libraries that
                   7564: *** depend on shared libraries, but programs linked with such libtool
                   7565: *** libraries will work regardless of this problem.  Nevertheless, you
                   7566: *** may want to report the problem to your system manager and/or to
                   7567: *** bug-libtool@gnu.org
1.23      millert  7568:
1.27      millert  7569: EOF
                   7570:          fi ;;
                   7571:        esac
                   7572:       fi
                   7573:       break
                   7574:     fi
                   7575:   done
                   7576:   IFS="$lt_save_ifs"
                   7577:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7578:   ;;
                   7579: esac
1.25      millert  7580: fi
                   7581:
1.27      millert  7582: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7583: if test -n "$MAGIC_CMD"; then
                   7584:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7585: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7586: else
                   7587:   { echo "$as_me:$LINENO: result: no" >&5
                   7588: echo "${ECHO_T}no" >&6; }
1.23      millert  7589: fi
                   7590:
1.27      millert  7591: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   7592:   if test -n "$ac_tool_prefix"; then
                   7593:     { echo "$as_me:$LINENO: checking for file" >&5
                   7594: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
                   7595: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25      millert  7596:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7597: else
1.27      millert  7598:   case $MAGIC_CMD in
                   7599: [\\/*] |  ?:[\\/]*)
                   7600:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7601:   ;;
                   7602: *)
                   7603:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7604:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7605:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7606:   for ac_dir in $ac_dummy; do
                   7607:     IFS="$lt_save_ifs"
                   7608:     test -z "$ac_dir" && ac_dir=.
                   7609:     if test -f $ac_dir/file; then
                   7610:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   7611:       if test -n "$file_magic_test_file"; then
                   7612:        case $deplibs_check_method in
                   7613:        "file_magic "*)
                   7614:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7615:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7616:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7617:            $EGREP "$file_magic_regex" > /dev/null; then
                   7618:            :
                   7619:          else
                   7620:            cat <<EOF 1>&2
1.25      millert  7621:
1.27      millert  7622: *** Warning: the command libtool uses to detect shared libraries,
                   7623: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7624: *** The result is that libtool may fail to recognize shared libraries
                   7625: *** as such.  This will affect the creation of libtool libraries that
                   7626: *** depend on shared libraries, but programs linked with such libtool
                   7627: *** libraries will work regardless of this problem.  Nevertheless, you
                   7628: *** may want to report the problem to your system manager and/or to
                   7629: *** bug-libtool@gnu.org
1.23      millert  7630:
1.27      millert  7631: EOF
                   7632:          fi ;;
                   7633:        esac
                   7634:       fi
                   7635:       break
                   7636:     fi
                   7637:   done
                   7638:   IFS="$lt_save_ifs"
                   7639:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7640:   ;;
                   7641: esac
1.25      millert  7642: fi
1.27      millert  7643:
                   7644: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7645: if test -n "$MAGIC_CMD"; then
                   7646:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7647: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7648: else
                   7649:   { echo "$as_me:$LINENO: result: no" >&5
                   7650: echo "${ECHO_T}no" >&6; }
1.25      millert  7651: fi
                   7652:
1.27      millert  7653:   else
                   7654:     MAGIC_CMD=:
                   7655:   fi
1.23      millert  7656: fi
                   7657:
1.27      millert  7658:   fi
                   7659:   ;;
                   7660: esac
1.23      millert  7661:
1.36      millert  7662:
                   7663:   case $host_os in
                   7664:     rhapsody* | darwin*)
                   7665:     if test -n "$ac_tool_prefix"; then
                   7666:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   7667: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   7668: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7669: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7670: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
                   7671:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7672: else
                   7673:   if test -n "$DSYMUTIL"; then
                   7674:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   7675: else
                   7676: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7677: for as_dir in $PATH
                   7678: do
                   7679:   IFS=$as_save_IFS
                   7680:   test -z "$as_dir" && as_dir=.
                   7681:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7682:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7683:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   7684:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7685:     break 2
                   7686:   fi
                   7687: done
                   7688: done
                   7689: IFS=$as_save_IFS
                   7690:
                   7691: fi
                   7692: fi
                   7693: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   7694: if test -n "$DSYMUTIL"; then
                   7695:   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
                   7696: echo "${ECHO_T}$DSYMUTIL" >&6; }
                   7697: else
                   7698:   { echo "$as_me:$LINENO: result: no" >&5
                   7699: echo "${ECHO_T}no" >&6; }
                   7700: fi
                   7701:
                   7702:
                   7703: fi
                   7704: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   7705:   ac_ct_DSYMUTIL=$DSYMUTIL
                   7706:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   7707: set dummy dsymutil; ac_word=$2
                   7708: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7709: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7710: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
                   7711:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7712: else
                   7713:   if test -n "$ac_ct_DSYMUTIL"; then
                   7714:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   7715: else
                   7716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7717: for as_dir in $PATH
                   7718: do
                   7719:   IFS=$as_save_IFS
                   7720:   test -z "$as_dir" && as_dir=.
                   7721:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7722:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7723:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   7724:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7725:     break 2
                   7726:   fi
                   7727: done
                   7728: done
                   7729: IFS=$as_save_IFS
                   7730:
                   7731: fi
                   7732: fi
                   7733: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   7734: if test -n "$ac_ct_DSYMUTIL"; then
                   7735:   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
                   7736: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
                   7737: else
                   7738:   { echo "$as_me:$LINENO: result: no" >&5
                   7739: echo "${ECHO_T}no" >&6; }
                   7740: fi
                   7741:
                   7742:   if test "x$ac_ct_DSYMUTIL" = x; then
                   7743:     DSYMUTIL=":"
                   7744:   else
                   7745:     case $cross_compiling:$ac_tool_warned in
                   7746: yes:)
                   7747: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7748: whose name does not start with the host triplet.  If you think this
                   7749: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7750: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7751: whose name does not start with the host triplet.  If you think this
                   7752: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7753: ac_tool_warned=yes ;;
                   7754: esac
                   7755:     DSYMUTIL=$ac_ct_DSYMUTIL
                   7756:   fi
                   7757: else
                   7758:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   7759: fi
                   7760:
                   7761:     if test -n "$ac_tool_prefix"; then
                   7762:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   7763: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   7764: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7765: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7766: if test "${ac_cv_prog_NMEDIT+set}" = set; then
                   7767:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7768: else
                   7769:   if test -n "$NMEDIT"; then
                   7770:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   7771: else
                   7772: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7773: for as_dir in $PATH
                   7774: do
                   7775:   IFS=$as_save_IFS
                   7776:   test -z "$as_dir" && as_dir=.
                   7777:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7778:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7779:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   7780:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7781:     break 2
                   7782:   fi
                   7783: done
                   7784: done
                   7785: IFS=$as_save_IFS
                   7786:
                   7787: fi
                   7788: fi
                   7789: NMEDIT=$ac_cv_prog_NMEDIT
                   7790: if test -n "$NMEDIT"; then
                   7791:   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
                   7792: echo "${ECHO_T}$NMEDIT" >&6; }
                   7793: else
                   7794:   { echo "$as_me:$LINENO: result: no" >&5
                   7795: echo "${ECHO_T}no" >&6; }
                   7796: fi
                   7797:
                   7798:
                   7799: fi
                   7800: if test -z "$ac_cv_prog_NMEDIT"; then
                   7801:   ac_ct_NMEDIT=$NMEDIT
                   7802:   # Extract the first word of "nmedit", so it can be a program name with args.
                   7803: set dummy nmedit; ac_word=$2
                   7804: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7805: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7806: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
                   7807:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7808: else
                   7809:   if test -n "$ac_ct_NMEDIT"; then
                   7810:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   7811: else
                   7812: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7813: for as_dir in $PATH
                   7814: do
                   7815:   IFS=$as_save_IFS
                   7816:   test -z "$as_dir" && as_dir=.
                   7817:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7818:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7819:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   7820:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7821:     break 2
                   7822:   fi
                   7823: done
                   7824: done
                   7825: IFS=$as_save_IFS
                   7826:
                   7827: fi
                   7828: fi
                   7829: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   7830: if test -n "$ac_ct_NMEDIT"; then
                   7831:   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
                   7832: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
                   7833: else
                   7834:   { echo "$as_me:$LINENO: result: no" >&5
                   7835: echo "${ECHO_T}no" >&6; }
                   7836: fi
                   7837:
                   7838:   if test "x$ac_ct_NMEDIT" = x; then
                   7839:     NMEDIT=":"
                   7840:   else
                   7841:     case $cross_compiling:$ac_tool_warned in
                   7842: yes:)
                   7843: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7844: whose name does not start with the host triplet.  If you think this
                   7845: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7846: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7847: whose name does not start with the host triplet.  If you think this
                   7848: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7849: ac_tool_warned=yes ;;
                   7850: esac
                   7851:     NMEDIT=$ac_ct_NMEDIT
                   7852:   fi
                   7853: else
                   7854:   NMEDIT="$ac_cv_prog_NMEDIT"
                   7855: fi
                   7856:
                   7857:
                   7858:     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
                   7859: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
                   7860: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
                   7861:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7862: else
                   7863:   lt_cv_apple_cc_single_mod=no
                   7864:       if test -z "${LT_MULTI_MODULE}"; then
                   7865:    # By default we will add the -single_module flag. You can override
                   7866:    # by either setting the environment variable LT_MULTI_MODULE
                   7867:    # non-empty at configure time, or by adding -multi_module to the
                   7868:    # link flags.
                   7869:    echo "int foo(void){return 1;}" > conftest.c
                   7870:    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   7871:      -dynamiclib ${wl}-single_module conftest.c
                   7872:    if test -f libconftest.dylib; then
                   7873:      lt_cv_apple_cc_single_mod=yes
                   7874:      rm -rf libconftest.dylib*
                   7875:    fi
                   7876:    rm conftest.c
                   7877:       fi
                   7878: fi
                   7879: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
                   7880: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
                   7881:     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
                   7882: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
                   7883: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
                   7884:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7885: else
                   7886:   lt_cv_ld_exported_symbols_list=no
                   7887:       save_LDFLAGS=$LDFLAGS
                   7888:       echo "_main" > conftest.sym
                   7889:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   7890:       cat >conftest.$ac_ext <<_ACEOF
                   7891: /* confdefs.h.  */
                   7892: _ACEOF
                   7893: cat confdefs.h >>conftest.$ac_ext
                   7894: cat >>conftest.$ac_ext <<_ACEOF
                   7895: /* end confdefs.h.  */
                   7896:
                   7897: int
                   7898: main ()
                   7899: {
                   7900:
                   7901:   ;
                   7902:   return 0;
                   7903: }
                   7904: _ACEOF
                   7905: rm -f conftest.$ac_objext conftest$ac_exeext
                   7906: if { (ac_try="$ac_link"
                   7907: case "(($ac_try" in
                   7908:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7909:   *) ac_try_echo=$ac_try;;
                   7910: esac
                   7911: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7912:   (eval "$ac_link") 2>conftest.er1
                   7913:   ac_status=$?
                   7914:   grep -v '^ *+' conftest.er1 >conftest.err
                   7915:   rm -f conftest.er1
                   7916:   cat conftest.err >&5
                   7917:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7918:   (exit $ac_status); } && {
                   7919:         test -z "$ac_c_werror_flag" ||
                   7920:         test ! -s conftest.err
                   7921:        } && test -s conftest$ac_exeext &&
                   7922:        $as_test_x conftest$ac_exeext; then
                   7923:   lt_cv_ld_exported_symbols_list=yes
                   7924: else
                   7925:   echo "$as_me: failed program was:" >&5
                   7926: sed 's/^/| /' conftest.$ac_ext >&5
                   7927:
                   7928:        lt_cv_ld_exported_symbols_list=no
                   7929: fi
                   7930:
                   7931: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   7932:       conftest$ac_exeext conftest.$ac_ext
                   7933:    LDFLAGS="$save_LDFLAGS"
                   7934:
                   7935: fi
                   7936: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
                   7937: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
                   7938:     case $host_os in
                   7939:     rhapsody* | darwin1.[0123])
                   7940:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
                   7941:     darwin1.*)
                   7942:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   7943:     darwin*)
                   7944:       # if running on 10.5 or later, the deployment target defaults
                   7945:       # to the OS version, if on x86, and 10.4, the deployment
                   7946:       # target defaults to 10.4. Don't you love it?
                   7947:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   7948:    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
                   7949:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   7950:    10.[012]*)
                   7951:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   7952:    10.*)
                   7953:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   7954:       esac
                   7955:     ;;
                   7956:   esac
                   7957:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
                   7958:       _lt_dar_single_mod='$single_module'
                   7959:     fi
                   7960:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
                   7961:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
                   7962:     else
                   7963:       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
                   7964:     fi
                   7965:     if test "$DSYMUTIL" != ":"; then
                   7966:       _lt_dsymutil="~$DSYMUTIL \$lib || :"
                   7967:     else
                   7968:       _lt_dsymutil=
                   7969:     fi
                   7970:     ;;
                   7971:   esac
                   7972:
                   7973:
1.27      millert  7974: enable_dlopen=no
                   7975: enable_win32_dll=no
1.25      millert  7976:
1.27      millert  7977: # Check whether --enable-libtool-lock was given.
                   7978: if test "${enable_libtool_lock+set}" = set; then
                   7979:   enableval=$enable_libtool_lock;
                   7980: fi
1.25      millert  7981:
1.27      millert  7982: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25      millert  7983:
1.23      millert  7984:
1.27      millert  7985: # Check whether --with-pic was given.
                   7986: if test "${with_pic+set}" = set; then
                   7987:   withval=$with_pic; pic_mode="$withval"
1.23      millert  7988: else
1.27      millert  7989:   pic_mode=default
                   7990: fi
1.25      millert  7991:
1.27      millert  7992: test -z "$pic_mode" && pic_mode=default
1.23      millert  7993:
1.27      millert  7994: # Use C for the default configuration in the libtool script
                   7995: tagname=
                   7996: lt_save_CC="$CC"
                   7997: ac_ext=c
                   7998: ac_cpp='$CPP $CPPFLAGS'
                   7999: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8000: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8001: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  8002:
                   8003:
1.27      millert  8004: # Source file extension for C test sources.
                   8005: ac_ext=c
1.23      millert  8006:
1.27      millert  8007: # Object file extension for compiled C test sources.
                   8008: objext=o
                   8009: objext=$objext
1.23      millert  8010:
1.27      millert  8011: # Code to be used in simple compile tests
                   8012: lt_simple_compile_test_code="int some_variable = 0;"
1.23      millert  8013:
1.27      millert  8014: # Code to be used in simple link tests
                   8015: lt_simple_link_test_code='int main(){return(0);}'
1.23      millert  8016:
                   8017:
1.27      millert  8018: # If no C compiler was specified, use CC.
                   8019: LTCC=${LTCC-"$CC"}
1.23      millert  8020:
1.27      millert  8021: # If no C compiler flags were specified, use CFLAGS.
                   8022: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  8023:
1.27      millert  8024: # Allow CC to be a program name with arguments.
                   8025: compiler=$CC
1.23      millert  8026:
                   8027:
1.27      millert  8028: # save warnings/boilerplate of simple test code
                   8029: ac_outfile=conftest.$ac_objext
                   8030: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   8031: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8032: _lt_compiler_boilerplate=`cat conftest.err`
                   8033: $rm conftest*
                   8034:
                   8035: ac_outfile=conftest.$ac_objext
                   8036: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   8037: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8038: _lt_linker_boilerplate=`cat conftest.err`
1.36      millert  8039: $rm -r conftest*
1.23      millert  8040:
                   8041:
1.27      millert  8042: ## CAVEAT EMPTOR:
                   8043: ## There is no encapsulation within the following macros, do not change
                   8044: ## the running order or otherwise move them around unless you know exactly
                   8045: ## what you are doing...
1.23      millert  8046:
1.27      millert  8047: lt_prog_compiler_no_builtin_flag=
1.23      millert  8048:
1.27      millert  8049: if test "$GCC" = yes; then
                   8050:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23      millert  8051:
                   8052:
1.27      millert  8053: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   8054: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
                   8055: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
                   8056:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  8057: else
1.27      millert  8058:   lt_cv_prog_compiler_rtti_exceptions=no
                   8059:   ac_outfile=conftest.$ac_objext
                   8060:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8061:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   8062:    # Insert the option either (1) after the last *FLAGS variable, or
                   8063:    # (2) before a word containing "conftest.", or (3) at the end.
                   8064:    # Note that $ac_compile itself does not contain backslashes and begins
                   8065:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8066:    # The option is referenced via a variable to avoid confusing sed.
                   8067:    lt_compile=`echo "$ac_compile" | $SED \
                   8068:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8069:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8070:    -e 's:$: $lt_compiler_flag:'`
1.37    ! millert  8071:    (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
1.27      millert  8072:    (eval "$lt_compile" 2>conftest.err)
                   8073:    ac_status=$?
                   8074:    cat conftest.err >&5
1.37    ! millert  8075:    echo "$as_me:8075: \$? = $ac_status" >&5
1.27      millert  8076:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8077:      # The compiler can only warn and ignore the option if not recognized
                   8078:      # So say no if there are warnings other than the usual output.
                   8079:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8080:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8081:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   8082:        lt_cv_prog_compiler_rtti_exceptions=yes
                   8083:      fi
                   8084:    fi
                   8085:    $rm conftest*
1.23      millert  8086:
1.25      millert  8087: fi
1.27      millert  8088: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   8089: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25      millert  8090:
1.27      millert  8091: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   8092:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25      millert  8093: else
1.27      millert  8094:     :
                   8095: fi
1.23      millert  8096:
1.25      millert  8097: fi
1.23      millert  8098:
1.27      millert  8099: lt_prog_compiler_wl=
                   8100: lt_prog_compiler_pic=
                   8101: lt_prog_compiler_static=
1.23      millert  8102:
1.27      millert  8103: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
                   8104: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25      millert  8105:
1.27      millert  8106:   if test "$GCC" = yes; then
                   8107:     lt_prog_compiler_wl='-Wl,'
                   8108:     lt_prog_compiler_static='-static'
1.25      millert  8109:
1.27      millert  8110:     case $host_os in
                   8111:       aix*)
                   8112:       # All AIX code is PIC.
                   8113:       if test "$host_cpu" = ia64; then
                   8114:        # AIX 5 now supports IA64 processor
                   8115:        lt_prog_compiler_static='-Bstatic'
                   8116:       fi
                   8117:       ;;
1.25      millert  8118:
1.27      millert  8119:     amigaos*)
                   8120:       # FIXME: we need at least 68020 code to build shared libraries, but
                   8121:       # adding the `-m68020' flag to GCC prevents building anything better,
                   8122:       # like `-m68040'.
                   8123:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   8124:       ;;
1.25      millert  8125:
1.27      millert  8126:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   8127:       # PIC is the default for these OSes.
                   8128:       ;;
1.23      millert  8129:
1.27      millert  8130:     mingw* | cygwin* | pw32* | os2*)
                   8131:       # This hack is so that the source file can tell whether it is being
                   8132:       # built for inclusion in a dll (and should export symbols for example).
                   8133:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   8134:       # (--disable-auto-import) libraries
                   8135:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8136:       ;;
1.23      millert  8137:
1.27      millert  8138:     darwin* | rhapsody*)
                   8139:       # PIC is the default on this platform
                   8140:       # Common symbols not allowed in MH_DYLIB files
                   8141:       lt_prog_compiler_pic='-fno-common'
                   8142:       ;;
1.23      millert  8143:
1.27      millert  8144:     interix[3-9]*)
                   8145:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   8146:       # Instead, we relocate shared libraries at runtime.
                   8147:       ;;
1.23      millert  8148:
1.27      millert  8149:     msdosdjgpp*)
                   8150:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   8151:       # on systems that don't support them.
                   8152:       lt_prog_compiler_can_build_shared=no
                   8153:       enable_shared=no
                   8154:       ;;
1.23      millert  8155:
1.27      millert  8156:     sysv4*MP*)
                   8157:       if test -d /usr/nec; then
                   8158:        lt_prog_compiler_pic=-Kconform_pic
                   8159:       fi
                   8160:       ;;
1.23      millert  8161:
1.27      millert  8162:     hpux*)
                   8163:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8164:       # not for PA HP-UX.
                   8165:       case $host_cpu in
                   8166:       hppa*64*|ia64*)
                   8167:        # +Z the default
                   8168:        ;;
                   8169:       *)
                   8170:        lt_prog_compiler_pic='-fPIC'
                   8171:        ;;
                   8172:       esac
                   8173:       ;;
1.23      millert  8174:
1.27      millert  8175:     *)
                   8176:       lt_prog_compiler_pic='-fPIC'
                   8177:       ;;
                   8178:     esac
                   8179:   else
                   8180:     # PORTME Check for flag to pass linker flags through the system compiler.
                   8181:     case $host_os in
                   8182:     aix*)
                   8183:       lt_prog_compiler_wl='-Wl,'
                   8184:       if test "$host_cpu" = ia64; then
                   8185:        # AIX 5 now supports IA64 processor
                   8186:        lt_prog_compiler_static='-Bstatic'
                   8187:       else
                   8188:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   8189:       fi
                   8190:       ;;
                   8191:       darwin*)
                   8192:         # PIC is the default on this platform
                   8193:         # Common symbols not allowed in MH_DYLIB files
                   8194:        case $cc_basename in
                   8195:          xlc*)
                   8196:          lt_prog_compiler_pic='-qnocommon'
                   8197:          lt_prog_compiler_wl='-Wl,'
                   8198:          ;;
                   8199:        esac
                   8200:        ;;
1.23      millert  8201:
1.27      millert  8202:     mingw* | cygwin* | pw32* | os2*)
                   8203:       # This hack is so that the source file can tell whether it is being
                   8204:       # built for inclusion in a dll (and should export symbols for example).
                   8205:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8206:       ;;
1.25      millert  8207:
1.27      millert  8208:     hpux9* | hpux10* | hpux11*)
                   8209:       lt_prog_compiler_wl='-Wl,'
                   8210:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8211:       # not for PA HP-UX.
                   8212:       case $host_cpu in
                   8213:       hppa*64*|ia64*)
                   8214:        # +Z the default
                   8215:        ;;
                   8216:       *)
                   8217:        lt_prog_compiler_pic='+Z'
                   8218:        ;;
                   8219:       esac
                   8220:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   8221:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   8222:       ;;
1.23      millert  8223:
1.27      millert  8224:     irix5* | irix6* | nonstopux*)
                   8225:       lt_prog_compiler_wl='-Wl,'
                   8226:       # PIC (with -KPIC) is the default.
                   8227:       lt_prog_compiler_static='-non_shared'
                   8228:       ;;
1.23      millert  8229:
1.27      millert  8230:     newsos6)
                   8231:       lt_prog_compiler_pic='-KPIC'
                   8232:       lt_prog_compiler_static='-Bstatic'
                   8233:       ;;
1.23      millert  8234:
1.27      millert  8235:     linux* | k*bsd*-gnu)
                   8236:       case $cc_basename in
                   8237:       icc* | ecc*)
                   8238:        lt_prog_compiler_wl='-Wl,'
                   8239:        lt_prog_compiler_pic='-KPIC'
                   8240:        lt_prog_compiler_static='-static'
                   8241:         ;;
                   8242:       pgcc* | pgf77* | pgf90* | pgf95*)
                   8243:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   8244:        # which looks to be a dead project)
                   8245:        lt_prog_compiler_wl='-Wl,'
                   8246:        lt_prog_compiler_pic='-fpic'
                   8247:        lt_prog_compiler_static='-Bstatic'
                   8248:         ;;
                   8249:       ccc*)
                   8250:         lt_prog_compiler_wl='-Wl,'
                   8251:         # All Alpha code is PIC.
                   8252:         lt_prog_compiler_static='-non_shared'
                   8253:         ;;
                   8254:       *)
                   8255:         case `$CC -V 2>&1 | sed 5q` in
                   8256:        *Sun\ C*)
                   8257:          # Sun C 5.9
                   8258:          lt_prog_compiler_pic='-KPIC'
                   8259:          lt_prog_compiler_static='-Bstatic'
                   8260:          lt_prog_compiler_wl='-Wl,'
                   8261:          ;;
                   8262:        *Sun\ F*)
                   8263:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   8264:          lt_prog_compiler_pic='-KPIC'
                   8265:          lt_prog_compiler_static='-Bstatic'
                   8266:          lt_prog_compiler_wl=''
                   8267:          ;;
                   8268:        esac
                   8269:        ;;
                   8270:       esac
                   8271:       ;;
1.23      millert  8272:
1.27      millert  8273:     osf3* | osf4* | osf5*)
                   8274:       lt_prog_compiler_wl='-Wl,'
                   8275:       # All OSF/1 code is PIC.
                   8276:       lt_prog_compiler_static='-non_shared'
                   8277:       ;;
1.23      millert  8278:
1.27      millert  8279:     rdos*)
                   8280:       lt_prog_compiler_static='-non_shared'
                   8281:       ;;
1.25      millert  8282:
1.27      millert  8283:     solaris*)
                   8284:       lt_prog_compiler_pic='-KPIC'
                   8285:       lt_prog_compiler_static='-Bstatic'
                   8286:       case $cc_basename in
                   8287:       f77* | f90* | f95*)
                   8288:        lt_prog_compiler_wl='-Qoption ld ';;
                   8289:       *)
                   8290:        lt_prog_compiler_wl='-Wl,';;
                   8291:       esac
                   8292:       ;;
1.25      millert  8293:
1.27      millert  8294:     sunos4*)
                   8295:       lt_prog_compiler_wl='-Qoption ld '
                   8296:       lt_prog_compiler_pic='-PIC'
                   8297:       lt_prog_compiler_static='-Bstatic'
                   8298:       ;;
1.25      millert  8299:
1.27      millert  8300:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   8301:       lt_prog_compiler_wl='-Wl,'
                   8302:       lt_prog_compiler_pic='-KPIC'
                   8303:       lt_prog_compiler_static='-Bstatic'
                   8304:       ;;
1.25      millert  8305:
1.27      millert  8306:     sysv4*MP*)
                   8307:       if test -d /usr/nec ;then
                   8308:        lt_prog_compiler_pic='-Kconform_pic'
                   8309:        lt_prog_compiler_static='-Bstatic'
                   8310:       fi
                   8311:       ;;
1.25      millert  8312:
1.27      millert  8313:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   8314:       lt_prog_compiler_wl='-Wl,'
                   8315:       lt_prog_compiler_pic='-KPIC'
                   8316:       lt_prog_compiler_static='-Bstatic'
                   8317:       ;;
1.25      millert  8318:
1.27      millert  8319:     unicos*)
                   8320:       lt_prog_compiler_wl='-Wl,'
                   8321:       lt_prog_compiler_can_build_shared=no
                   8322:       ;;
1.23      millert  8323:
1.27      millert  8324:     uts4*)
                   8325:       lt_prog_compiler_pic='-pic'
                   8326:       lt_prog_compiler_static='-Bstatic'
                   8327:       ;;
1.23      millert  8328:
1.27      millert  8329:     *)
                   8330:       lt_prog_compiler_can_build_shared=no
                   8331:       ;;
1.25      millert  8332:     esac
                   8333:   fi
1.23      millert  8334:
1.27      millert  8335: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
                   8336: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23      millert  8337:
1.27      millert  8338: #
                   8339: # Check to make sure the PIC flag actually works.
                   8340: #
                   8341: if test -n "$lt_prog_compiler_pic"; then
1.23      millert  8342:
1.27      millert  8343: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   8344: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.36      millert  8345: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.23      millert  8346:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8347: else
1.36      millert  8348:   lt_cv_prog_compiler_pic_works=no
1.27      millert  8349:   ac_outfile=conftest.$ac_objext
                   8350:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8351:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   8352:    # Insert the option either (1) after the last *FLAGS variable, or
                   8353:    # (2) before a word containing "conftest.", or (3) at the end.
                   8354:    # Note that $ac_compile itself does not contain backslashes and begins
                   8355:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8356:    # The option is referenced via a variable to avoid confusing sed.
                   8357:    lt_compile=`echo "$ac_compile" | $SED \
                   8358:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8359:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8360:    -e 's:$: $lt_compiler_flag:'`
1.37    ! millert  8361:    (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
1.27      millert  8362:    (eval "$lt_compile" 2>conftest.err)
                   8363:    ac_status=$?
                   8364:    cat conftest.err >&5
1.37    ! millert  8365:    echo "$as_me:8365: \$? = $ac_status" >&5
1.27      millert  8366:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8367:      # The compiler can only warn and ignore the option if not recognized
                   8368:      # So say no if there are warnings other than the usual output.
                   8369:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8370:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8371:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8372:        lt_cv_prog_compiler_pic_works=yes
1.27      millert  8373:      fi
                   8374:    fi
                   8375:    $rm conftest*
1.23      millert  8376:
1.27      millert  8377: fi
1.36      millert  8378: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
                   8379: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
1.23      millert  8380:
1.36      millert  8381: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.27      millert  8382:     case $lt_prog_compiler_pic in
                   8383:      "" | " "*) ;;
                   8384:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   8385:      esac
                   8386: else
                   8387:     lt_prog_compiler_pic=
                   8388:      lt_prog_compiler_can_build_shared=no
1.23      millert  8389: fi
1.25      millert  8390:
1.23      millert  8391: fi
1.27      millert  8392: case $host_os in
                   8393:   # For platforms which do not support PIC, -DPIC is meaningless:
                   8394:   *djgpp*)
                   8395:     lt_prog_compiler_pic=
                   8396:     ;;
                   8397:   *)
                   8398:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25      millert  8399:     ;;
1.27      millert  8400: esac
1.25      millert  8401:
1.27      millert  8402: #
                   8403: # Check to make sure the static flag actually works.
                   8404: #
                   8405: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   8406: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   8407: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1.36      millert  8408: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1.27      millert  8409:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8410: else
1.36      millert  8411:   lt_cv_prog_compiler_static_works=no
1.27      millert  8412:    save_LDFLAGS="$LDFLAGS"
                   8413:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   8414:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   8415:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   8416:      # The linker can only warn and ignore the option if not recognized
                   8417:      # So say no if there are warnings
                   8418:      if test -s conftest.err; then
                   8419:        # Append any errors to the config.log.
                   8420:        cat conftest.err 1>&5
                   8421:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   8422:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8423:        if diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8424:          lt_cv_prog_compiler_static_works=yes
1.27      millert  8425:        fi
                   8426:      else
1.36      millert  8427:        lt_cv_prog_compiler_static_works=yes
1.27      millert  8428:      fi
                   8429:    fi
1.36      millert  8430:    $rm -r conftest*
1.27      millert  8431:    LDFLAGS="$save_LDFLAGS"
1.25      millert  8432:
1.23      millert  8433: fi
1.36      millert  8434: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
                   8435: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
1.23      millert  8436:
1.36      millert  8437: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.27      millert  8438:     :
                   8439: else
                   8440:     lt_prog_compiler_static=
                   8441: fi
1.23      millert  8442:
                   8443:
1.27      millert  8444: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8445: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
                   8446: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8447:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8448: else
                   8449:   lt_cv_prog_compiler_c_o=no
                   8450:    $rm -r conftest 2>/dev/null
                   8451:    mkdir conftest
                   8452:    cd conftest
                   8453:    mkdir out
                   8454:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8455:
                   8456:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8457:    # Insert the option either (1) after the last *FLAGS variable, or
                   8458:    # (2) before a word containing "conftest.", or (3) at the end.
                   8459:    # Note that $ac_compile itself does not contain backslashes and begins
                   8460:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8461:    lt_compile=`echo "$ac_compile" | $SED \
                   8462:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8463:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8464:    -e 's:$: $lt_compiler_flag:'`
1.37    ! millert  8465:    (eval echo "\"\$as_me:8465: $lt_compile\"" >&5)
1.27      millert  8466:    (eval "$lt_compile" 2>out/conftest.err)
                   8467:    ac_status=$?
                   8468:    cat out/conftest.err >&5
1.37    ! millert  8469:    echo "$as_me:8469: \$? = $ac_status" >&5
1.27      millert  8470:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8471:    then
                   8472:      # The compiler can only warn and ignore the option if not recognized
                   8473:      # So say no if there are warnings
                   8474:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   8475:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   8476:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   8477:        lt_cv_prog_compiler_c_o=yes
                   8478:      fi
                   8479:    fi
                   8480:    chmod u+w . 2>&5
                   8481:    $rm conftest*
                   8482:    # SGI C++ compiler will create directory out/ii_files/ for
                   8483:    # template instantiation
                   8484:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   8485:    $rm out/* && rmdir out
                   8486:    cd ..
                   8487:    rmdir conftest
                   8488:    $rm conftest*
1.23      millert  8489:
1.27      millert  8490: fi
                   8491: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8492: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
                   8493:
                   8494:
                   8495: hard_links="nottested"
                   8496: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   8497:   # do not overwrite the value of need_locks provided by the user
                   8498:   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
                   8499: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
                   8500:   hard_links=yes
                   8501:   $rm conftest*
                   8502:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8503:   touch conftest.a
                   8504:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   8505:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8506:   { echo "$as_me:$LINENO: result: $hard_links" >&5
                   8507: echo "${ECHO_T}$hard_links" >&6; }
                   8508:   if test "$hard_links" = no; then
                   8509:     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   8510: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   8511:     need_locks=warn
                   8512:   fi
                   8513: else
                   8514:   need_locks=no
                   8515: fi
1.23      millert  8516:
1.27      millert  8517: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   8518: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23      millert  8519:
1.27      millert  8520:   runpath_var=
                   8521:   allow_undefined_flag=
                   8522:   enable_shared_with_static_runtimes=no
                   8523:   archive_cmds=
                   8524:   archive_expsym_cmds=
                   8525:   old_archive_From_new_cmds=
                   8526:   old_archive_from_expsyms_cmds=
                   8527:   export_dynamic_flag_spec=
                   8528:   whole_archive_flag_spec=
                   8529:   thread_safe_flag_spec=
                   8530:   hardcode_libdir_flag_spec=
                   8531:   hardcode_libdir_flag_spec_ld=
                   8532:   hardcode_libdir_separator=
                   8533:   hardcode_direct=no
                   8534:   hardcode_minus_L=no
                   8535:   hardcode_shlibpath_var=unsupported
                   8536:   link_all_deplibs=unknown
                   8537:   hardcode_automatic=no
                   8538:   module_cmds=
                   8539:   module_expsym_cmds=
                   8540:   always_export_symbols=no
                   8541:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   8542:   # include_expsyms should be a list of space-separated symbols to be *always*
                   8543:   # included in the symbol list
                   8544:   include_expsyms=
                   8545:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   8546:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   8547:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   8548:   # as well as any symbol that contains `d'.
1.36      millert  8549:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.27      millert  8550:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   8551:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   8552:   # the symbol is explicitly referenced.  Since portable code cannot
                   8553:   # rely on this symbol name, it's probably fine to never include it in
                   8554:   # preloaded symbol tables.
1.36      millert  8555:   # Exclude shared library initialization/finalization symbols.
1.27      millert  8556:   extract_expsyms_cmds=
                   8557:   # Just being paranoid about ensuring that cc_basename is set.
                   8558:   for cc_temp in $compiler""; do
                   8559:   case $cc_temp in
                   8560:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   8561:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   8562:     \-*) ;;
                   8563:     *) break;;
                   8564:   esac
                   8565: done
                   8566: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23      millert  8567:
1.27      millert  8568:   case $host_os in
                   8569:   cygwin* | mingw* | pw32*)
                   8570:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   8571:     # When not using gcc, we currently assume that we are using
                   8572:     # Microsoft Visual C++.
                   8573:     if test "$GCC" != yes; then
                   8574:       with_gnu_ld=no
                   8575:     fi
                   8576:     ;;
                   8577:   interix*)
                   8578:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   8579:     with_gnu_ld=yes
                   8580:     ;;
                   8581:   openbsd*)
                   8582:     with_gnu_ld=no
                   8583:     ;;
                   8584:   esac
1.23      millert  8585:
1.27      millert  8586:   ld_shlibs=yes
                   8587:   if test "$with_gnu_ld" = yes; then
                   8588:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   8589:     wlarc='${wl}'
1.23      millert  8590:
1.27      millert  8591:     # Set some defaults for GNU ld with shared library support. These
                   8592:     # are reset later if shared libraries are not supported. Putting them
                   8593:     # here allows them to be overridden if necessary.
                   8594:     runpath_var=LD_RUN_PATH
                   8595:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   8596:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   8597:     # ancient GNU ld didn't support --whole-archive et. al.
                   8598:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
                   8599:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   8600:       else
                   8601:        whole_archive_flag_spec=
                   8602:     fi
                   8603:     supports_anon_versioning=no
                   8604:     case `$LD -v 2>/dev/null` in
                   8605:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   8606:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   8607:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   8608:       *\ 2.11.*) ;; # other 2.11 versions
                   8609:       *) supports_anon_versioning=yes ;;
                   8610:     esac
1.23      millert  8611:
1.27      millert  8612:     # See if GNU ld supports shared libraries.
                   8613:     case $host_os in
1.36      millert  8614:     aix[3-9]*)
1.27      millert  8615:       # On AIX/PPC, the GNU linker is very broken
                   8616:       if test "$host_cpu" != ia64; then
                   8617:        ld_shlibs=no
                   8618:        cat <<EOF 1>&2
1.23      millert  8619:
1.27      millert  8620: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   8621: *** to be unable to reliably create shared libraries on AIX.
                   8622: *** Therefore, libtool is disabling shared libraries support.  If you
                   8623: *** really care for shared libraries, you may want to modify your PATH
                   8624: *** so that a non-GNU linker is found, and then restart.
1.23      millert  8625:
1.27      millert  8626: EOF
                   8627:       fi
                   8628:       ;;
1.23      millert  8629:
1.27      millert  8630:     amigaos*)
                   8631:       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)'
                   8632:       hardcode_libdir_flag_spec='-L$libdir'
                   8633:       hardcode_minus_L=yes
1.23      millert  8634:
1.27      millert  8635:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   8636:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   8637:       # to version 4, is to share data among multiple programs linked
                   8638:       # with the same dynamic library.  Since this doesn't match the
                   8639:       # behavior of shared libraries on other platforms, we can't use
                   8640:       # them.
                   8641:       ld_shlibs=no
                   8642:       ;;
1.23      millert  8643:
1.27      millert  8644:     beos*)
                   8645:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8646:        allow_undefined_flag=unsupported
                   8647:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   8648:        # support --undefined.  This deserves some investigation.  FIXME
                   8649:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8650:       else
                   8651:        ld_shlibs=no
                   8652:       fi
                   8653:       ;;
1.23      millert  8654:
1.27      millert  8655:     cygwin* | mingw* | pw32*)
                   8656:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   8657:       # as there is no search path for DLLs.
                   8658:       hardcode_libdir_flag_spec='-L$libdir'
                   8659:       allow_undefined_flag=unsupported
                   8660:       always_export_symbols=no
                   8661:       enable_shared_with_static_runtimes=yes
                   8662:       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  8663:
1.27      millert  8664:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   8665:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8666:        # If the export-symbols file already is a .def file (1st line
                   8667:        # is EXPORTS), use it as is; otherwise, prepend...
                   8668:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   8669:          cp $export_symbols $output_objdir/$soname.def;
                   8670:        else
                   8671:          echo EXPORTS > $output_objdir/$soname.def;
                   8672:          cat $export_symbols >> $output_objdir/$soname.def;
                   8673:        fi~
                   8674:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8675:       else
                   8676:        ld_shlibs=no
                   8677:       fi
                   8678:       ;;
1.25      millert  8679:
1.27      millert  8680:     interix[3-9]*)
                   8681:       hardcode_direct=no
                   8682:       hardcode_shlibpath_var=no
                   8683:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8684:       export_dynamic_flag_spec='${wl}-E'
                   8685:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   8686:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   8687:       # default) and relocated if they conflict, which is a slow very memory
                   8688:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   8689:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   8690:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   8691:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   8692:       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'
                   8693:       ;;
                   8694:
                   8695:     gnu* | linux* | k*bsd*-gnu)
                   8696:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8697:        tmp_addflag=
                   8698:        case $cc_basename,$host_cpu in
                   8699:        pgcc*)                          # Portland Group C compiler
                   8700:          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'
                   8701:          tmp_addflag=' $pic_flag'
1.25      millert  8702:          ;;
1.27      millert  8703:        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
                   8704:          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'
                   8705:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   8706:        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
                   8707:          tmp_addflag=' -i_dynamic' ;;
                   8708:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   8709:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   8710:        ifc* | ifort*)                  # Intel Fortran compiler
                   8711:          tmp_addflag=' -nofor_main' ;;
1.25      millert  8712:        esac
1.27      millert  8713:        case `$CC -V 2>&1 | sed 5q` in
                   8714:        *Sun\ C*)                       # Sun C 5.9
                   8715:          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'
                   8716:          tmp_sharedflag='-G' ;;
                   8717:        *Sun\ F*)                       # Sun Fortran 8.3
                   8718:          tmp_sharedflag='-G' ;;
                   8719:        *)
                   8720:          tmp_sharedflag='-shared' ;;
1.25      millert  8721:        esac
1.27      millert  8722:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25      millert  8723:
1.27      millert  8724:        if test $supports_anon_versioning = yes; then
                   8725:          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
                   8726:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   8727:   $echo "local: *; };" >> $output_objdir/$libname.ver~
                   8728:          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   8729:        fi
                   8730:       else
                   8731:        ld_shlibs=no
                   8732:       fi
                   8733:       ;;
1.23      millert  8734:
1.27      millert  8735:     netbsd*)
                   8736:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   8737:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   8738:        wlarc=
                   8739:       else
                   8740:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8741:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8742:       fi
                   8743:       ;;
1.23      millert  8744:
1.27      millert  8745:     solaris*)
                   8746:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
                   8747:        ld_shlibs=no
                   8748:        cat <<EOF 1>&2
                   8749:
                   8750: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   8751: *** create shared libraries on Solaris systems.  Therefore, libtool
                   8752: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8753: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   8754: *** your PATH or compiler configuration so that the native linker is
                   8755: *** used, and then restart.
                   8756:
                   8757: EOF
                   8758:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8759:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8760:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8761:       else
                   8762:        ld_shlibs=no
                   8763:       fi
                   8764:       ;;
                   8765:
                   8766:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   8767:       case `$LD -v 2>&1` in
                   8768:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   8769:        ld_shlibs=no
                   8770:        cat <<_LT_EOF 1>&2
                   8771:
                   8772: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   8773: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   8774: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8775: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   8776: *** your PATH or compiler configuration so that the native linker is
                   8777: *** used, and then restart.
                   8778:
                   8779: _LT_EOF
                   8780:        ;;
                   8781:        *)
                   8782:          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8783:            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
                   8784:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
                   8785:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
                   8786:          else
                   8787:            ld_shlibs=no
                   8788:          fi
                   8789:        ;;
                   8790:       esac
                   8791:       ;;
                   8792:
                   8793:     sunos4*)
                   8794:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8795:       wlarc=
                   8796:       hardcode_direct=yes
                   8797:       hardcode_shlibpath_var=no
                   8798:       ;;
                   8799:
                   8800:     *)
                   8801:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8802:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8803:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8804:       else
                   8805:        ld_shlibs=no
                   8806:       fi
                   8807:       ;;
                   8808:     esac
                   8809:
                   8810:     if test "$ld_shlibs" = no; then
                   8811:       runpath_var=
                   8812:       hardcode_libdir_flag_spec=
                   8813:       export_dynamic_flag_spec=
                   8814:       whole_archive_flag_spec=
                   8815:     fi
                   8816:   else
                   8817:     # PORTME fill in a description of your system's linker (not GNU ld)
                   8818:     case $host_os in
                   8819:     aix3*)
                   8820:       allow_undefined_flag=unsupported
                   8821:       always_export_symbols=yes
                   8822:       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'
                   8823:       # Note: this linker hardcodes the directories in LIBPATH if there
                   8824:       # are no directories specified by -L.
                   8825:       hardcode_minus_L=yes
                   8826:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   8827:        # Neither direct hardcoding nor static linking is supported with a
                   8828:        # broken collect2.
                   8829:        hardcode_direct=unsupported
                   8830:       fi
                   8831:       ;;
                   8832:
1.36      millert  8833:     aix[4-9]*)
1.27      millert  8834:       if test "$host_cpu" = ia64; then
                   8835:        # On IA64, the linker does run time linking by default, so we don't
                   8836:        # have to do anything special.
                   8837:        aix_use_runtimelinking=no
                   8838:        exp_sym_flag='-Bexport'
                   8839:        no_entry_flag=""
                   8840:       else
                   8841:        # If we're using GNU nm, then we don't want the "-C" option.
                   8842:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   8843:        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   8844:          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'
                   8845:        else
                   8846:          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'
                   8847:        fi
                   8848:        aix_use_runtimelinking=no
                   8849:
                   8850:        # Test if we are trying to use run time linking or normal
                   8851:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   8852:        # need to do runtime linking.
1.36      millert  8853:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.27      millert  8854:          for ld_flag in $LDFLAGS; do
                   8855:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   8856:            aix_use_runtimelinking=yes
                   8857:            break
                   8858:          fi
                   8859:          done
                   8860:          ;;
                   8861:        esac
                   8862:
                   8863:        exp_sym_flag='-bexport'
                   8864:        no_entry_flag='-bnoentry'
                   8865:       fi
                   8866:
                   8867:       # When large executables or shared objects are built, AIX ld can
                   8868:       # have problems creating the table of contents.  If linking a library
                   8869:       # or program results in "error TOC overflow" add -mminimal-toc to
                   8870:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   8871:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   8872:
                   8873:       archive_cmds=''
                   8874:       hardcode_direct=yes
                   8875:       hardcode_libdir_separator=':'
                   8876:       link_all_deplibs=yes
                   8877:
                   8878:       if test "$GCC" = yes; then
                   8879:        case $host_os in aix4.[012]|aix4.[012].*)
                   8880:        # We only want to do this on AIX 4.2 and lower, the check
                   8881:        # below for broken collect2 doesn't work under 4.3+
                   8882:          collect2name=`${CC} -print-prog-name=collect2`
                   8883:          if test -f "$collect2name" && \
                   8884:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   8885:          then
                   8886:          # We have reworked collect2
                   8887:          :
                   8888:          else
                   8889:          # We have old collect2
                   8890:          hardcode_direct=unsupported
                   8891:          # It fails to find uninstalled libraries when the uninstalled
                   8892:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   8893:          # to unsupported forces relinking
                   8894:          hardcode_minus_L=yes
                   8895:          hardcode_libdir_flag_spec='-L$libdir'
                   8896:          hardcode_libdir_separator=
                   8897:          fi
                   8898:          ;;
                   8899:        esac
                   8900:        shared_flag='-shared'
                   8901:        if test "$aix_use_runtimelinking" = yes; then
                   8902:          shared_flag="$shared_flag "'${wl}-G'
                   8903:        fi
                   8904:       else
                   8905:        # not using gcc
                   8906:        if test "$host_cpu" = ia64; then
                   8907:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   8908:        # chokes on -Wl,-G. The following line is correct:
                   8909:          shared_flag='-G'
                   8910:        else
                   8911:          if test "$aix_use_runtimelinking" = yes; then
                   8912:            shared_flag='${wl}-G'
                   8913:          else
                   8914:            shared_flag='${wl}-bM:SRE'
                   8915:          fi
                   8916:        fi
                   8917:       fi
                   8918:
                   8919:       # It seems that -bexpall does not export symbols beginning with
                   8920:       # underscore (_), so it is better to generate a list of symbols to export.
                   8921:       always_export_symbols=yes
                   8922:       if test "$aix_use_runtimelinking" = yes; then
                   8923:        # Warning - without using the other runtime loading flags (-brtl),
                   8924:        # -berok will link without error, but may produce a broken library.
                   8925:        allow_undefined_flag='-berok'
                   8926:        # Determine the default libpath from the value encoded in an empty executable.
                   8927:        cat >conftest.$ac_ext <<_ACEOF
                   8928: /* confdefs.h.  */
                   8929: _ACEOF
                   8930: cat confdefs.h >>conftest.$ac_ext
                   8931: cat >>conftest.$ac_ext <<_ACEOF
                   8932: /* end confdefs.h.  */
                   8933:
                   8934: int
                   8935: main ()
                   8936: {
1.23      millert  8937:
1.25      millert  8938:   ;
                   8939:   return 0;
                   8940: }
                   8941: _ACEOF
                   8942: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  8943: if { (ac_try="$ac_link"
                   8944: case "(($ac_try" in
                   8945:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8946:   *) ac_try_echo=$ac_try;;
                   8947: esac
                   8948: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8949:   (eval "$ac_link") 2>conftest.er1
1.25      millert  8950:   ac_status=$?
                   8951:   grep -v '^ *+' conftest.er1 >conftest.err
                   8952:   rm -f conftest.er1
                   8953:   cat conftest.err >&5
                   8954:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  8955:   (exit $ac_status); } && {
                   8956:         test -z "$ac_c_werror_flag" ||
                   8957:         test ! -s conftest.err
                   8958:        } && test -s conftest$ac_exeext &&
                   8959:        $as_test_x conftest$ac_exeext; then
                   8960:
                   8961: lt_aix_libpath_sed='
                   8962:     /Import File Strings/,/^$/ {
                   8963:        /^0/ {
                   8964:            s/^0  *\(.*\)$/\1/
                   8965:            p
                   8966:        }
                   8967:     }'
                   8968: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8969: # Check for a 64-bit object if we didn't find anything.
                   8970: if test -z "$aix_libpath"; then
                   8971:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   8972: fi
1.23      millert  8973: else
1.25      millert  8974:   echo "$as_me: failed program was:" >&5
                   8975: sed 's/^/| /' conftest.$ac_ext >&5
                   8976:
1.23      millert  8977:
                   8978: fi
                   8979:
1.27      millert  8980: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   8981:       conftest$ac_exeext conftest.$ac_ext
                   8982: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25      millert  8983:
1.27      millert  8984:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   8985:        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"
                   8986:        else
                   8987:        if test "$host_cpu" = ia64; then
                   8988:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   8989:          allow_undefined_flag="-z nodefs"
                   8990:          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"
                   8991:        else
                   8992:         # Determine the default libpath from the value encoded in an empty executable.
                   8993:         cat >conftest.$ac_ext <<_ACEOF
                   8994: /* confdefs.h.  */
                   8995: _ACEOF
                   8996: cat confdefs.h >>conftest.$ac_ext
                   8997: cat >>conftest.$ac_ext <<_ACEOF
                   8998: /* end confdefs.h.  */
1.23      millert  8999:
1.27      millert  9000: int
                   9001: main ()
                   9002: {
1.23      millert  9003:
1.27      millert  9004:   ;
                   9005:   return 0;
                   9006: }
                   9007: _ACEOF
                   9008: rm -f conftest.$ac_objext conftest$ac_exeext
                   9009: if { (ac_try="$ac_link"
                   9010: case "(($ac_try" in
                   9011:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9012:   *) ac_try_echo=$ac_try;;
                   9013: esac
                   9014: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9015:   (eval "$ac_link") 2>conftest.er1
                   9016:   ac_status=$?
                   9017:   grep -v '^ *+' conftest.er1 >conftest.err
                   9018:   rm -f conftest.er1
                   9019:   cat conftest.err >&5
                   9020:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9021:   (exit $ac_status); } && {
                   9022:         test -z "$ac_c_werror_flag" ||
                   9023:         test ! -s conftest.err
                   9024:        } && test -s conftest$ac_exeext &&
                   9025:        $as_test_x conftest$ac_exeext; then
1.23      millert  9026:
1.27      millert  9027: lt_aix_libpath_sed='
                   9028:     /Import File Strings/,/^$/ {
                   9029:        /^0/ {
                   9030:            s/^0  *\(.*\)$/\1/
                   9031:            p
                   9032:        }
                   9033:     }'
                   9034: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9035: # Check for a 64-bit object if we didn't find anything.
                   9036: if test -z "$aix_libpath"; then
                   9037:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9038: fi
1.23      millert  9039: else
1.27      millert  9040:   echo "$as_me: failed program was:" >&5
                   9041: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  9042:
                   9043:
1.27      millert  9044: fi
1.23      millert  9045:
1.27      millert  9046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9047:       conftest$ac_exeext conftest.$ac_ext
                   9048: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23      millert  9049:
1.27      millert  9050:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9051:          # Warning - without using the other run time loading flags,
                   9052:          # -berok will link without error, but may produce a broken library.
                   9053:          no_undefined_flag=' ${wl}-bernotok'
                   9054:          allow_undefined_flag=' ${wl}-berok'
                   9055:          # Exported symbols can be pulled into shared objects from archives
                   9056:          whole_archive_flag_spec='$convenience'
                   9057:          archive_cmds_need_lc=yes
                   9058:          # This is similar to how AIX traditionally builds its shared libraries.
                   9059:          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'
                   9060:        fi
                   9061:       fi
                   9062:       ;;
1.23      millert  9063:
1.27      millert  9064:     amigaos*)
                   9065:       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)'
                   9066:       hardcode_libdir_flag_spec='-L$libdir'
                   9067:       hardcode_minus_L=yes
                   9068:       # see comment about different semantics on the GNU ld section
                   9069:       ld_shlibs=no
                   9070:       ;;
1.23      millert  9071:
1.27      millert  9072:     bsdi[45]*)
                   9073:       export_dynamic_flag_spec=-rdynamic
                   9074:       ;;
1.25      millert  9075:
1.27      millert  9076:     cygwin* | mingw* | pw32*)
                   9077:       # When not using gcc, we currently assume that we are using
                   9078:       # Microsoft Visual C++.
                   9079:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   9080:       # no search path for DLLs.
                   9081:       hardcode_libdir_flag_spec=' '
                   9082:       allow_undefined_flag=unsupported
                   9083:       # Tell ltmain to make .lib files, not .a files.
                   9084:       libext=lib
                   9085:       # Tell ltmain to make .dll files, not .so files.
                   9086:       shrext_cmds=".dll"
                   9087:       # FIXME: Setting linknames here is a bad hack.
                   9088:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
                   9089:       # The linker will automatically build a .lib file if we build a DLL.
                   9090:       old_archive_From_new_cmds='true'
                   9091:       # FIXME: Should let the user specify the lib program.
                   9092:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   9093:       fix_srcfile_path='`cygpath -w "$srcfile"`'
                   9094:       enable_shared_with_static_runtimes=yes
                   9095:       ;;
1.25      millert  9096:
1.27      millert  9097:     darwin* | rhapsody*)
                   9098:       case $host_os in
                   9099:         rhapsody* | darwin1.[012])
                   9100:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   9101:          ;;
                   9102:        *) # Darwin 1.3 on
                   9103:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
                   9104:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9105:          else
                   9106:            case ${MACOSX_DEPLOYMENT_TARGET} in
                   9107:              10.[012])
                   9108:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9109:                ;;
                   9110:              10.*)
                   9111:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   9112:                ;;
                   9113:            esac
                   9114:          fi
                   9115:          ;;
                   9116:       esac
                   9117:       archive_cmds_need_lc=no
                   9118:       hardcode_direct=no
                   9119:       hardcode_automatic=yes
                   9120:       hardcode_shlibpath_var=unsupported
                   9121:       whole_archive_flag_spec=''
                   9122:       link_all_deplibs=yes
                   9123:     if test "$GCC" = yes ; then
                   9124:        output_verbose_link_cmd='echo'
1.36      millert  9125:         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
                   9126:         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   9127:         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}"
                   9128:         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  9129:     else
                   9130:       case $cc_basename in
                   9131:         xlc*)
                   9132:          output_verbose_link_cmd='echo'
                   9133:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   9134:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   9135:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   9136:          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}'
                   9137:           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}'
                   9138:           ;;
                   9139:        *)
                   9140:          ld_shlibs=no
                   9141:           ;;
                   9142:       esac
                   9143:     fi
                   9144:       ;;
1.25      millert  9145:
1.27      millert  9146:     dgux*)
                   9147:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9148:       hardcode_libdir_flag_spec='-L$libdir'
                   9149:       hardcode_shlibpath_var=no
1.25      millert  9150:       ;;
                   9151:
1.27      millert  9152:     freebsd1*)
                   9153:       ld_shlibs=no
                   9154:       ;;
1.23      millert  9155:
1.27      millert  9156:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   9157:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   9158:     # does not break anything, and helps significantly (at the cost of a little
                   9159:     # extra space).
                   9160:     freebsd2.2*)
                   9161:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   9162:       hardcode_libdir_flag_spec='-R$libdir'
                   9163:       hardcode_direct=yes
                   9164:       hardcode_shlibpath_var=no
                   9165:       ;;
1.23      millert  9166:
1.27      millert  9167:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   9168:     freebsd2*)
                   9169:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9170:       hardcode_direct=yes
                   9171:       hardcode_minus_L=yes
                   9172:       hardcode_shlibpath_var=no
                   9173:       ;;
1.23      millert  9174:
1.27      millert  9175:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   9176:     freebsd* | dragonfly*)
                   9177:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   9178:       hardcode_libdir_flag_spec='-R$libdir'
                   9179:       hardcode_direct=yes
                   9180:       hardcode_shlibpath_var=no
                   9181:       ;;
1.23      millert  9182:
1.27      millert  9183:     hpux9*)
                   9184:       if test "$GCC" = yes; then
                   9185:        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'
                   9186:       else
                   9187:        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'
                   9188:       fi
                   9189:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9190:       hardcode_libdir_separator=:
                   9191:       hardcode_direct=yes
1.23      millert  9192:
1.27      millert  9193:       # hardcode_minus_L: Not really in the search PATH,
                   9194:       # but as the default location of the library.
                   9195:       hardcode_minus_L=yes
                   9196:       export_dynamic_flag_spec='${wl}-E'
                   9197:       ;;
1.23      millert  9198:
1.27      millert  9199:     hpux10*)
                   9200:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9201:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9202:       else
                   9203:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   9204:       fi
                   9205:       if test "$with_gnu_ld" = no; then
                   9206:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9207:        hardcode_libdir_separator=:
1.23      millert  9208:
1.27      millert  9209:        hardcode_direct=yes
                   9210:        export_dynamic_flag_spec='${wl}-E'
1.23      millert  9211:
1.27      millert  9212:        # hardcode_minus_L: Not really in the search PATH,
                   9213:        # but as the default location of the library.
                   9214:        hardcode_minus_L=yes
                   9215:       fi
                   9216:       ;;
1.23      millert  9217:
1.27      millert  9218:     hpux11*)
                   9219:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9220:        case $host_cpu in
                   9221:        hppa*64*)
                   9222:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9223:          ;;
                   9224:        ia64*)
                   9225:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9226:          ;;
                   9227:        *)
                   9228:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9229:          ;;
                   9230:        esac
                   9231:       else
                   9232:        case $host_cpu in
                   9233:        hppa*64*)
                   9234:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9235:          ;;
                   9236:        ia64*)
                   9237:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9238:          ;;
                   9239:        *)
                   9240:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9241:          ;;
                   9242:        esac
                   9243:       fi
                   9244:       if test "$with_gnu_ld" = no; then
                   9245:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9246:        hardcode_libdir_separator=:
1.23      millert  9247:
1.27      millert  9248:        case $host_cpu in
                   9249:        hppa*64*|ia64*)
                   9250:          hardcode_libdir_flag_spec_ld='+b $libdir'
                   9251:          hardcode_direct=no
                   9252:          hardcode_shlibpath_var=no
                   9253:          ;;
                   9254:        *)
                   9255:          hardcode_direct=yes
                   9256:          export_dynamic_flag_spec='${wl}-E'
1.23      millert  9257:
1.27      millert  9258:          # hardcode_minus_L: Not really in the search PATH,
                   9259:          # but as the default location of the library.
                   9260:          hardcode_minus_L=yes
                   9261:          ;;
                   9262:        esac
                   9263:       fi
                   9264:       ;;
1.23      millert  9265:
1.27      millert  9266:     irix5* | irix6* | nonstopux*)
                   9267:       if test "$GCC" = yes; then
                   9268:        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'
                   9269:       else
                   9270:        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'
                   9271:        hardcode_libdir_flag_spec_ld='-rpath $libdir'
                   9272:       fi
                   9273:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9274:       hardcode_libdir_separator=:
                   9275:       link_all_deplibs=yes
                   9276:       ;;
1.23      millert  9277:
1.27      millert  9278:     netbsd*)
                   9279:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   9280:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   9281:       else
                   9282:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   9283:       fi
                   9284:       hardcode_libdir_flag_spec='-R$libdir'
                   9285:       hardcode_direct=yes
                   9286:       hardcode_shlibpath_var=no
                   9287:       ;;
1.23      millert  9288:
1.27      millert  9289:     newsos6)
                   9290:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9291:       hardcode_direct=yes
                   9292:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9293:       hardcode_libdir_separator=:
                   9294:       hardcode_shlibpath_var=no
                   9295:       ;;
1.23      millert  9296:
1.27      millert  9297:     openbsd*)
                   9298:       if test -f /usr/libexec/ld.so; then
                   9299:        hardcode_direct=yes
                   9300:        hardcode_shlibpath_var=no
                   9301:        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   9302:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9303:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   9304:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9305:          export_dynamic_flag_spec='${wl}-E'
                   9306:        else
                   9307:          case $host_os in
                   9308:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   9309:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9310:             hardcode_libdir_flag_spec='-R$libdir'
                   9311:             ;;
                   9312:           *)
                   9313:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9314:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9315:             ;;
                   9316:          esac
                   9317:         fi
                   9318:       else
                   9319:        ld_shlibs=no
                   9320:       fi
                   9321:       ;;
1.23      millert  9322:
1.27      millert  9323:     os2*)
                   9324:       hardcode_libdir_flag_spec='-L$libdir'
                   9325:       hardcode_minus_L=yes
                   9326:       allow_undefined_flag=unsupported
                   9327:       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'
                   9328:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   9329:       ;;
1.23      millert  9330:
1.27      millert  9331:     osf3*)
                   9332:       if test "$GCC" = yes; then
                   9333:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9334:        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'
                   9335:       else
                   9336:        allow_undefined_flag=' -expect_unresolved \*'
                   9337:        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'
                   9338:       fi
                   9339:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9340:       hardcode_libdir_separator=:
1.25      millert  9341:       ;;
1.23      millert  9342:
1.27      millert  9343:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   9344:       if test "$GCC" = yes; then
                   9345:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9346:        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'
                   9347:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9348:       else
                   9349:        allow_undefined_flag=' -expect_unresolved \*'
                   9350:        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'
                   9351:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
                   9352:        $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  9353:
1.27      millert  9354:        # Both c and cxx compiler support -rpath directly
                   9355:        hardcode_libdir_flag_spec='-rpath $libdir'
                   9356:       fi
                   9357:       hardcode_libdir_separator=:
                   9358:       ;;
1.23      millert  9359:
1.27      millert  9360:     solaris*)
                   9361:       no_undefined_flag=' -z text'
                   9362:       if test "$GCC" = yes; then
                   9363:        wlarc='${wl}'
                   9364:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9365:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9366:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
                   9367:       else
                   9368:        wlarc=''
                   9369:        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9370:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9371:        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
                   9372:       fi
                   9373:       hardcode_libdir_flag_spec='-R$libdir'
                   9374:       hardcode_shlibpath_var=no
                   9375:       case $host_os in
                   9376:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   9377:       *)
                   9378:        # The compiler driver will combine and reorder linker options,
                   9379:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   9380:        # but is careful enough not to reorder.
                   9381:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   9382:        if test "$GCC" = yes; then
                   9383:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   9384:        else
                   9385:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   9386:        fi
                   9387:        ;;
                   9388:       esac
                   9389:       link_all_deplibs=yes
                   9390:       ;;
1.23      millert  9391:
1.27      millert  9392:     sunos4*)
                   9393:       if test "x$host_vendor" = xsequent; then
                   9394:        # Use $CC to link under sequent, because it throws in some extra .o
                   9395:        # files that make .init and .fini sections work.
                   9396:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   9397:       else
                   9398:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   9399:       fi
                   9400:       hardcode_libdir_flag_spec='-L$libdir'
                   9401:       hardcode_direct=yes
                   9402:       hardcode_minus_L=yes
                   9403:       hardcode_shlibpath_var=no
                   9404:       ;;
1.23      millert  9405:
1.27      millert  9406:     sysv4)
                   9407:       case $host_vendor in
                   9408:        sni)
                   9409:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9410:          hardcode_direct=yes # is this really true???
                   9411:        ;;
                   9412:        siemens)
                   9413:          ## LD is ld it makes a PLAMLIB
                   9414:          ## CC just makes a GrossModule.
                   9415:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   9416:          reload_cmds='$CC -r -o $output$reload_objs'
                   9417:          hardcode_direct=no
                   9418:         ;;
                   9419:        motorola)
                   9420:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9421:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   9422:        ;;
                   9423:       esac
                   9424:       runpath_var='LD_RUN_PATH'
                   9425:       hardcode_shlibpath_var=no
                   9426:       ;;
1.23      millert  9427:
1.27      millert  9428:     sysv4.3*)
                   9429:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9430:       hardcode_shlibpath_var=no
                   9431:       export_dynamic_flag_spec='-Bexport'
                   9432:       ;;
1.23      millert  9433:
1.27      millert  9434:     sysv4*MP*)
                   9435:       if test -d /usr/nec; then
                   9436:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9437:        hardcode_shlibpath_var=no
                   9438:        runpath_var=LD_RUN_PATH
                   9439:        hardcode_runpath_var=yes
                   9440:        ld_shlibs=yes
                   9441:       fi
                   9442:       ;;
1.23      millert  9443:
1.27      millert  9444:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   9445:       no_undefined_flag='${wl}-z,text'
                   9446:       archive_cmds_need_lc=no
                   9447:       hardcode_shlibpath_var=no
                   9448:       runpath_var='LD_RUN_PATH'
1.23      millert  9449:
1.27      millert  9450:       if test "$GCC" = yes; then
                   9451:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9452:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9453:       else
                   9454:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9455:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9456:       fi
                   9457:       ;;
1.23      millert  9458:
1.27      millert  9459:     sysv5* | sco3.2v5* | sco5v6*)
                   9460:       # Note: We can NOT use -z defs as we might desire, because we do not
                   9461:       # link with -lc, and that would cause any symbols used from libc to
                   9462:       # always be unresolved, which means just about no library would
                   9463:       # ever link correctly.  If we're not using GNU ld we use -z text
                   9464:       # though, which does catch some bad symbols but isn't as heavy-handed
                   9465:       # as -z defs.
                   9466:       no_undefined_flag='${wl}-z,text'
                   9467:       allow_undefined_flag='${wl}-z,nodefs'
                   9468:       archive_cmds_need_lc=no
                   9469:       hardcode_shlibpath_var=no
                   9470:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   9471:       hardcode_libdir_separator=':'
                   9472:       link_all_deplibs=yes
                   9473:       export_dynamic_flag_spec='${wl}-Bexport'
                   9474:       runpath_var='LD_RUN_PATH'
1.23      millert  9475:
1.27      millert  9476:       if test "$GCC" = yes; then
                   9477:        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9478:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9479:       else
                   9480:        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9481:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9482:       fi
                   9483:       ;;
1.23      millert  9484:
1.27      millert  9485:     uts4*)
                   9486:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9487:       hardcode_libdir_flag_spec='-L$libdir'
                   9488:       hardcode_shlibpath_var=no
                   9489:       ;;
1.23      millert  9490:
1.27      millert  9491:     *)
                   9492:       ld_shlibs=no
                   9493:       ;;
                   9494:     esac
                   9495:   fi
1.23      millert  9496:
1.27      millert  9497: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
                   9498: echo "${ECHO_T}$ld_shlibs" >&6; }
                   9499: test "$ld_shlibs" = no && can_build_shared=no
1.23      millert  9500:
1.27      millert  9501: #
                   9502: # Do we need to explicitly link libc?
                   9503: #
                   9504: case "x$archive_cmds_need_lc" in
                   9505: x|xyes)
                   9506:   # Assume -lc should be added
                   9507:   archive_cmds_need_lc=yes
1.23      millert  9508:
1.27      millert  9509:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   9510:     case $archive_cmds in
                   9511:     *'~'*)
                   9512:       # FIXME: we may have to deal with multi-command sequences.
                   9513:       ;;
                   9514:     '$CC '*)
                   9515:       # Test whether the compiler implicitly links with -lc since on some
                   9516:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   9517:       # to ld, don't add -lc before -lgcc.
                   9518:       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
                   9519: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
                   9520:       $rm conftest*
                   9521:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25      millert  9522:
1.27      millert  9523:       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   9524:   (eval $ac_compile) 2>&5
                   9525:   ac_status=$?
                   9526:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9527:   (exit $ac_status); } 2>conftest.err; then
                   9528:         soname=conftest
                   9529:         lib=conftest
                   9530:         libobjs=conftest.$ac_objext
                   9531:         deplibs=
                   9532:         wl=$lt_prog_compiler_wl
                   9533:        pic_flag=$lt_prog_compiler_pic
                   9534:         compiler_flags=-v
                   9535:         linker_flags=-v
                   9536:         verstring=
                   9537:         output_objdir=.
                   9538:         libname=conftest
                   9539:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   9540:         allow_undefined_flag=
                   9541:         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
                   9542:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   9543:   ac_status=$?
                   9544:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9545:   (exit $ac_status); }
                   9546:         then
                   9547:          archive_cmds_need_lc=no
                   9548:         else
                   9549:          archive_cmds_need_lc=yes
                   9550:         fi
                   9551:         allow_undefined_flag=$lt_save_allow_undefined_flag
                   9552:       else
                   9553:         cat conftest.err 1>&5
                   9554:       fi
                   9555:       $rm conftest*
                   9556:       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
                   9557: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
                   9558:       ;;
                   9559:     esac
                   9560:   fi
                   9561:   ;;
                   9562: esac
1.23      millert  9563:
1.27      millert  9564: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
                   9565: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
                   9566: library_names_spec=
                   9567: libname_spec='lib$name'
                   9568: soname_spec=
                   9569: shrext_cmds=".so"
                   9570: postinstall_cmds=
                   9571: postuninstall_cmds=
                   9572: finish_cmds=
                   9573: finish_eval=
                   9574: shlibpath_var=
                   9575: shlibpath_overrides_runpath=unknown
                   9576: version_type=none
                   9577: dynamic_linker="$host_os ld.so"
                   9578: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23      millert  9579:
1.27      millert  9580: if test "$GCC" = yes; then
                   9581:   case $host_os in
                   9582:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   9583:     *) lt_awk_arg="/^libraries:/" ;;
                   9584:   esac
                   9585:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9586:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
                   9587:     # if the path contains ";" then we assume it to be the separator
                   9588:     # otherwise default to the standard path separator (i.e. ":") - it is
                   9589:     # assumed that no part of a normal pathname contains ";" but that should
                   9590:     # okay in the real world where ";" in dirpaths is itself problematic.
                   9591:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
                   9592:   else
                   9593:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9594:   fi
                   9595:   # Ok, now we have the path, separated by spaces, we can step through it
                   9596:   # and add multilib dir if necessary.
                   9597:   lt_tmp_lt_search_path_spec=
                   9598:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   9599:   for lt_sys_path in $lt_search_path_spec; do
                   9600:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   9601:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   9602:     else
                   9603:       test -d "$lt_sys_path" && \
                   9604:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   9605:     fi
                   9606:   done
                   9607:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
                   9608: BEGIN {RS=" "; FS="/|\n";} {
                   9609:   lt_foo="";
                   9610:   lt_count=0;
                   9611:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   9612:     if ($lt_i != "" && $lt_i != ".") {
                   9613:       if ($lt_i == "..") {
                   9614:         lt_count++;
                   9615:       } else {
                   9616:         if (lt_count == 0) {
                   9617:           lt_foo="/" $lt_i lt_foo;
                   9618:         } else {
                   9619:           lt_count--;
                   9620:         }
                   9621:       }
                   9622:     }
                   9623:   }
                   9624:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   9625:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   9626: }'`
                   9627:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25      millert  9628: else
1.27      millert  9629:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25      millert  9630: fi
1.27      millert  9631: need_lib_prefix=no
                   9632: hardcode_into_libs=no
1.25      millert  9633:
1.27      millert  9634: # when you set need_version to no, make sure it does not cause -set_version
                   9635: # flags to be left without arguments
                   9636: need_version=no
1.25      millert  9637:
1.27      millert  9638: case $host_os in
                   9639: aix3*)
                   9640:   version_type=linux
                   9641:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   9642:   shlibpath_var=LIBPATH
1.25      millert  9643:
1.27      millert  9644:   # AIX 3 has no versioning support, so we append a major version to the name.
                   9645:   soname_spec='${libname}${release}${shared_ext}$major'
                   9646:   ;;
1.23      millert  9647:
1.36      millert  9648: aix[4-9]*)
1.27      millert  9649:   version_type=linux
                   9650:   need_lib_prefix=no
                   9651:   need_version=no
                   9652:   hardcode_into_libs=yes
                   9653:   if test "$host_cpu" = ia64; then
                   9654:     # AIX 5 supports IA64
                   9655:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   9656:     shlibpath_var=LD_LIBRARY_PATH
                   9657:   else
                   9658:     # With GCC up to 2.95.x, collect2 would create an import file
                   9659:     # for dependence libraries.  The import file would start with
                   9660:     # the line `#! .'.  This would cause the generated library to
                   9661:     # depend on `.', always an invalid library.  This was fixed in
                   9662:     # development snapshots of GCC prior to 3.0.
                   9663:     case $host_os in
                   9664:       aix4 | aix4.[01] | aix4.[01].*)
                   9665:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   9666:           echo ' yes '
                   9667:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   9668:        :
                   9669:       else
                   9670:        can_build_shared=no
                   9671:       fi
                   9672:       ;;
                   9673:     esac
                   9674:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   9675:     # soname into executable. Probably we can add versioning support to
                   9676:     # collect2, so additional links can be useful in future.
                   9677:     if test "$aix_use_runtimelinking" = yes; then
                   9678:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   9679:       # instead of lib<name>.a to let people know that these are not
                   9680:       # typical AIX shared libraries.
                   9681:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9682:     else
                   9683:       # We preserve .a as extension for shared libraries through AIX4.2
                   9684:       # and later when we are not doing run time linking.
                   9685:       library_names_spec='${libname}${release}.a $libname.a'
                   9686:       soname_spec='${libname}${release}${shared_ext}$major'
                   9687:     fi
                   9688:     shlibpath_var=LIBPATH
                   9689:   fi
                   9690:   ;;
1.23      millert  9691:
1.27      millert  9692: amigaos*)
                   9693:   library_names_spec='$libname.ixlibrary $libname.a'
                   9694:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   9695:   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'
                   9696:   ;;
1.23      millert  9697:
1.27      millert  9698: beos*)
                   9699:   library_names_spec='${libname}${shared_ext}'
                   9700:   dynamic_linker="$host_os ld.so"
                   9701:   shlibpath_var=LIBRARY_PATH
                   9702:   ;;
1.23      millert  9703:
1.27      millert  9704: bsdi[45]*)
                   9705:   version_type=linux
                   9706:   need_version=no
                   9707:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9708:   soname_spec='${libname}${release}${shared_ext}$major'
                   9709:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   9710:   shlibpath_var=LD_LIBRARY_PATH
                   9711:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   9712:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   9713:   # the default ld.so.conf also contains /usr/contrib/lib and
                   9714:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   9715:   # libtool to hard-code these into programs
                   9716:   ;;
1.23      millert  9717:
1.27      millert  9718: cygwin* | mingw* | pw32*)
                   9719:   version_type=windows
                   9720:   shrext_cmds=".dll"
                   9721:   need_version=no
                   9722:   need_lib_prefix=no
1.23      millert  9723:
1.27      millert  9724:   case $GCC,$host_os in
                   9725:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   9726:     library_names_spec='$libname.dll.a'
                   9727:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   9728:     postinstall_cmds='base_file=`basename \${file}`~
                   9729:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   9730:       dldir=$destdir/`dirname \$dlpath`~
                   9731:       test -d \$dldir || mkdir -p \$dldir~
                   9732:       $install_prog $dir/$dlname \$dldir/$dlname~
                   9733:       chmod a+x \$dldir/$dlname'
                   9734:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   9735:       dlpath=$dir/\$dldll~
                   9736:        $rm \$dlpath'
                   9737:     shlibpath_overrides_runpath=yes
1.23      millert  9738:
1.27      millert  9739:     case $host_os in
                   9740:     cygwin*)
                   9741:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   9742:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9743:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   9744:       ;;
                   9745:     mingw*)
                   9746:       # MinGW DLLs use traditional 'lib' prefix
                   9747:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9748:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9749:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   9750:         # It is most probably a Windows format PATH printed by
                   9751:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   9752:         # path with ; separators, and with drive letters. We can handle the
                   9753:         # drive letters (cygwin fileutils understands them), so leave them,
                   9754:         # especially as we might pass files found there to a mingw objdump,
                   9755:         # which wouldn't understand a cygwinified path. Ahh.
                   9756:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   9757:       else
                   9758:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9759:       fi
                   9760:       ;;
                   9761:     pw32*)
                   9762:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   9763:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9764:       ;;
                   9765:     esac
                   9766:     ;;
1.23      millert  9767:
1.27      millert  9768:   *)
                   9769:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   9770:     ;;
                   9771:   esac
                   9772:   dynamic_linker='Win32 ld.exe'
                   9773:   # FIXME: first we should search . and the directory the executable is in
                   9774:   shlibpath_var=PATH
                   9775:   ;;
1.23      millert  9776:
1.27      millert  9777: darwin* | rhapsody*)
                   9778:   dynamic_linker="$host_os dyld"
                   9779:   version_type=darwin
                   9780:   need_lib_prefix=no
                   9781:   need_version=no
                   9782:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   9783:   soname_spec='${libname}${release}${major}$shared_ext'
                   9784:   shlibpath_overrides_runpath=yes
                   9785:   shlibpath_var=DYLD_LIBRARY_PATH
                   9786:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23      millert  9787:
1.27      millert  9788:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   9789:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   9790:   ;;
1.23      millert  9791:
1.27      millert  9792: dgux*)
                   9793:   version_type=linux
                   9794:   need_lib_prefix=no
                   9795:   need_version=no
                   9796:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   9797:   soname_spec='${libname}${release}${shared_ext}$major'
                   9798:   shlibpath_var=LD_LIBRARY_PATH
                   9799:   ;;
1.23      millert  9800:
1.27      millert  9801: freebsd1*)
                   9802:   dynamic_linker=no
                   9803:   ;;
1.23      millert  9804:
1.27      millert  9805: freebsd* | dragonfly*)
                   9806:   # DragonFly does not have aout.  When/if they implement a new
                   9807:   # versioning mechanism, adjust this.
                   9808:   if test -x /usr/bin/objformat; then
                   9809:     objformat=`/usr/bin/objformat`
                   9810:   else
                   9811:     case $host_os in
                   9812:     freebsd[123]*) objformat=aout ;;
                   9813:     *) objformat=elf ;;
                   9814:     esac
                   9815:   fi
                   9816:   version_type=freebsd-$objformat
                   9817:   case $version_type in
                   9818:     freebsd-elf*)
                   9819:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9820:       need_version=no
                   9821:       need_lib_prefix=no
                   9822:       ;;
                   9823:     freebsd-*)
                   9824:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   9825:       need_version=no
                   9826:       ;;
                   9827:   esac
                   9828:   shlibpath_var=LD_LIBRARY_PATH
                   9829:   case $host_os in
                   9830:   freebsd2*)
                   9831:     shlibpath_overrides_runpath=yes
                   9832:     ;;
                   9833:   freebsd3.[01]* | freebsdelf3.[01]*)
                   9834:     shlibpath_overrides_runpath=yes
                   9835:     hardcode_into_libs=yes
                   9836:     ;;
                   9837:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   9838:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   9839:     shlibpath_overrides_runpath=no
                   9840:     hardcode_into_libs=yes
                   9841:     ;;
                   9842:   *) # from 4.6 on, and DragonFly
                   9843:     shlibpath_overrides_runpath=yes
                   9844:     hardcode_into_libs=yes
                   9845:     ;;
                   9846:   esac
                   9847:   ;;
1.23      millert  9848:
1.27      millert  9849: gnu*)
                   9850:   version_type=linux
                   9851:   need_lib_prefix=no
                   9852:   need_version=no
                   9853:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   9854:   soname_spec='${libname}${release}${shared_ext}$major'
                   9855:   shlibpath_var=LD_LIBRARY_PATH
                   9856:   hardcode_into_libs=yes
                   9857:   ;;
1.23      millert  9858:
1.27      millert  9859: hpux9* | hpux10* | hpux11*)
                   9860:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   9861:   # link against other versions.
                   9862:   version_type=sunos
                   9863:   need_lib_prefix=no
                   9864:   need_version=no
                   9865:   case $host_cpu in
                   9866:   ia64*)
                   9867:     shrext_cmds='.so'
                   9868:     hardcode_into_libs=yes
                   9869:     dynamic_linker="$host_os dld.so"
                   9870:     shlibpath_var=LD_LIBRARY_PATH
                   9871:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9872:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9873:     soname_spec='${libname}${release}${shared_ext}$major'
                   9874:     if test "X$HPUX_IA64_MODE" = X32; then
                   9875:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   9876:     else
                   9877:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   9878:     fi
                   9879:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9880:     ;;
                   9881:    hppa*64*)
                   9882:      shrext_cmds='.sl'
                   9883:      hardcode_into_libs=yes
                   9884:      dynamic_linker="$host_os dld.sl"
                   9885:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   9886:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9887:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9888:      soname_spec='${libname}${release}${shared_ext}$major'
                   9889:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   9890:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9891:      ;;
                   9892:    *)
                   9893:     shrext_cmds='.sl'
                   9894:     dynamic_linker="$host_os dld.sl"
                   9895:     shlibpath_var=SHLIB_PATH
                   9896:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   9897:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9898:     soname_spec='${libname}${release}${shared_ext}$major'
                   9899:     ;;
                   9900:   esac
                   9901:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   9902:   postinstall_cmds='chmod 555 $lib'
                   9903:   ;;
1.23      millert  9904:
1.27      millert  9905: interix[3-9]*)
                   9906:   version_type=linux
                   9907:   need_lib_prefix=no
                   9908:   need_version=no
                   9909:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9910:   soname_spec='${libname}${release}${shared_ext}$major'
                   9911:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   9912:   shlibpath_var=LD_LIBRARY_PATH
                   9913:   shlibpath_overrides_runpath=no
                   9914:   hardcode_into_libs=yes
                   9915:   ;;
1.23      millert  9916:
1.27      millert  9917: irix5* | irix6* | nonstopux*)
                   9918:   case $host_os in
                   9919:     nonstopux*) version_type=nonstopux ;;
                   9920:     *)
                   9921:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   9922:                version_type=linux
                   9923:        else
                   9924:                version_type=irix
                   9925:        fi ;;
                   9926:   esac
                   9927:   need_lib_prefix=no
                   9928:   need_version=no
                   9929:   soname_spec='${libname}${release}${shared_ext}$major'
                   9930:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9931:   case $host_os in
                   9932:   irix5* | nonstopux*)
                   9933:     libsuff= shlibsuff=
                   9934:     ;;
                   9935:   *)
                   9936:     case $LD in # libtool.m4 will add one of these switches to LD
                   9937:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   9938:       libsuff= shlibsuff= libmagic=32-bit;;
                   9939:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   9940:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   9941:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   9942:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   9943:     *) libsuff= shlibsuff= libmagic=never-match;;
                   9944:     esac
                   9945:     ;;
                   9946:   esac
                   9947:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   9948:   shlibpath_overrides_runpath=no
                   9949:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   9950:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   9951:   hardcode_into_libs=yes
                   9952:   ;;
1.23      millert  9953:
1.27      millert  9954: # No shared lib support for Linux oldld, aout, or coff.
                   9955: linux*oldld* | linux*aout* | linux*coff*)
                   9956:   dynamic_linker=no
1.25      millert  9957:   ;;
1.23      millert  9958:
1.27      millert  9959: # This must be Linux ELF.
                   9960: linux* | k*bsd*-gnu)
                   9961:   version_type=linux
                   9962:   need_lib_prefix=no
                   9963:   need_version=no
                   9964:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9965:   soname_spec='${libname}${release}${shared_ext}$major'
                   9966:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   9967:   shlibpath_var=LD_LIBRARY_PATH
                   9968:   shlibpath_overrides_runpath=no
                   9969:   # This implies no fast_install, which is unacceptable.
                   9970:   # Some rework will be needed to allow for fast_install
                   9971:   # before this can be enabled.
                   9972:   hardcode_into_libs=yes
1.23      millert  9973:
1.27      millert  9974:   # Append ld.so.conf contents to the search path
                   9975:   if test -f /etc/ld.so.conf; then
                   9976:     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' ' '`
                   9977:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   9978:   fi
1.23      millert  9979:
1.27      millert  9980:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   9981:   # powerpc, because MkLinux only supported shared libraries with the
                   9982:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   9983:   # most powerpc-linux boxes support dynamic linking these days and
                   9984:   # people can always --disable-shared, the test was removed, and we
                   9985:   # assume the GNU/Linux dynamic linker is in use.
                   9986:   dynamic_linker='GNU/Linux ld.so'
                   9987:   ;;
1.23      millert  9988:
1.27      millert  9989: netbsd*)
                   9990:   version_type=sunos
                   9991:   need_lib_prefix=no
                   9992:   need_version=no
                   9993:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   9994:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   9995:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   9996:     dynamic_linker='NetBSD (a.out) ld.so'
                   9997:   else
                   9998:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9999:     soname_spec='${libname}${release}${shared_ext}$major'
                   10000:     dynamic_linker='NetBSD ld.elf_so'
                   10001:   fi
                   10002:   shlibpath_var=LD_LIBRARY_PATH
                   10003:   shlibpath_overrides_runpath=yes
                   10004:   hardcode_into_libs=yes
                   10005:   ;;
1.23      millert  10006:
1.27      millert  10007: newsos6)
                   10008:   version_type=linux
                   10009:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10010:   shlibpath_var=LD_LIBRARY_PATH
                   10011:   shlibpath_overrides_runpath=yes
                   10012:   ;;
1.23      millert  10013:
1.27      millert  10014: nto-qnx*)
                   10015:   version_type=linux
                   10016:   need_lib_prefix=no
                   10017:   need_version=no
                   10018:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10019:   soname_spec='${libname}${release}${shared_ext}$major'
                   10020:   shlibpath_var=LD_LIBRARY_PATH
                   10021:   shlibpath_overrides_runpath=yes
                   10022:   ;;
1.23      millert  10023:
1.27      millert  10024: openbsd*)
                   10025:   version_type=sunos
                   10026:   sys_lib_dlsearch_path_spec="/usr/lib"
                   10027:   need_lib_prefix=no
                   10028:   need_version=no
                   10029:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10030:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   10031:   shlibpath_var=LD_LIBRARY_PATH
                   10032:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   10033:     case $host_os in
                   10034:       openbsd2.[89] | openbsd2.[89].*)
                   10035:        shlibpath_overrides_runpath=no
                   10036:        ;;
                   10037:       *)
                   10038:        shlibpath_overrides_runpath=yes
                   10039:        ;;
                   10040:       esac
                   10041:   else
                   10042:     shlibpath_overrides_runpath=yes
                   10043:   fi
                   10044:   ;;
1.23      millert  10045:
1.27      millert  10046: os2*)
                   10047:   libname_spec='$name'
                   10048:   shrext_cmds=".dll"
                   10049:   need_lib_prefix=no
                   10050:   library_names_spec='$libname${shared_ext} $libname.a'
                   10051:   dynamic_linker='OS/2 ld.exe'
                   10052:   shlibpath_var=LIBPATH
                   10053:   ;;
1.23      millert  10054:
1.27      millert  10055: osf3* | osf4* | osf5*)
                   10056:   version_type=osf
                   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${shared_ext}'
                   10061:   shlibpath_var=LD_LIBRARY_PATH
                   10062:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   10063:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   10064:   ;;
1.23      millert  10065:
1.27      millert  10066: rdos*)
                   10067:   dynamic_linker=no
                   10068:   ;;
1.23      millert  10069:
1.27      millert  10070: solaris*)
                   10071:   version_type=linux
                   10072:   need_lib_prefix=no
                   10073:   need_version=no
                   10074:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10075:   soname_spec='${libname}${release}${shared_ext}$major'
                   10076:   shlibpath_var=LD_LIBRARY_PATH
                   10077:   shlibpath_overrides_runpath=yes
                   10078:   hardcode_into_libs=yes
                   10079:   # ldd complains unless libraries are executable
                   10080:   postinstall_cmds='chmod +x $lib'
                   10081:   ;;
1.23      millert  10082:
1.27      millert  10083: sunos4*)
                   10084:   version_type=sunos
                   10085:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10086:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   10087:   shlibpath_var=LD_LIBRARY_PATH
                   10088:   shlibpath_overrides_runpath=yes
                   10089:   if test "$with_gnu_ld" = yes; then
                   10090:     need_lib_prefix=no
                   10091:   fi
                   10092:   need_version=no
                   10093:   ;;
1.23      millert  10094:
1.27      millert  10095: sysv4 | sysv4.3*)
                   10096:   version_type=linux
                   10097:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10098:   soname_spec='${libname}${release}${shared_ext}$major'
                   10099:   shlibpath_var=LD_LIBRARY_PATH
                   10100:   case $host_vendor in
                   10101:     sni)
                   10102:       shlibpath_overrides_runpath=no
                   10103:       need_lib_prefix=no
                   10104:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   10105:       runpath_var=LD_RUN_PATH
                   10106:       ;;
                   10107:     siemens)
                   10108:       need_lib_prefix=no
                   10109:       ;;
                   10110:     motorola)
                   10111:       need_lib_prefix=no
                   10112:       need_version=no
                   10113:       shlibpath_overrides_runpath=no
                   10114:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   10115:       ;;
                   10116:   esac
1.25      millert  10117:   ;;
                   10118:
1.27      millert  10119: sysv4*MP*)
                   10120:   if test -d /usr/nec ;then
                   10121:     version_type=linux
                   10122:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   10123:     soname_spec='$libname${shared_ext}.$major'
                   10124:     shlibpath_var=LD_LIBRARY_PATH
                   10125:   fi
                   10126:   ;;
1.25      millert  10127:
1.27      millert  10128: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   10129:   version_type=freebsd-elf
                   10130:   need_lib_prefix=no
                   10131:   need_version=no
                   10132:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   10133:   soname_spec='${libname}${release}${shared_ext}$major'
                   10134:   shlibpath_var=LD_LIBRARY_PATH
                   10135:   hardcode_into_libs=yes
                   10136:   if test "$with_gnu_ld" = yes; then
                   10137:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   10138:     shlibpath_overrides_runpath=no
                   10139:   else
                   10140:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   10141:     shlibpath_overrides_runpath=yes
                   10142:     case $host_os in
                   10143:       sco3.2v5*)
                   10144:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   10145:        ;;
                   10146:     esac
                   10147:   fi
                   10148:   sys_lib_dlsearch_path_spec='/usr/lib'
1.25      millert  10149:   ;;
1.23      millert  10150:
1.27      millert  10151: uts4*)
                   10152:   version_type=linux
                   10153:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10154:   soname_spec='${libname}${release}${shared_ext}$major'
                   10155:   shlibpath_var=LD_LIBRARY_PATH
                   10156:   ;;
1.23      millert  10157:
1.25      millert  10158: *)
1.27      millert  10159:   dynamic_linker=no
1.25      millert  10160:   ;;
                   10161: esac
1.27      millert  10162: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
                   10163: echo "${ECHO_T}$dynamic_linker" >&6; }
                   10164: test "$dynamic_linker" = no && can_build_shared=no
1.23      millert  10165:
1.36      millert  10166: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
                   10167:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10168: else
                   10169:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
                   10170: fi
                   10171:
                   10172: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   10173: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
                   10174:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10175: else
                   10176:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
                   10177: fi
                   10178:
                   10179: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   10180:
1.27      millert  10181: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   10182: if test "$GCC" = yes; then
                   10183:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25      millert  10184: fi
                   10185:
1.27      millert  10186: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
                   10187: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
                   10188: hardcode_action=
                   10189: if test -n "$hardcode_libdir_flag_spec" || \
                   10190:    test -n "$runpath_var" || \
                   10191:    test "X$hardcode_automatic" = "Xyes" ; then
1.23      millert  10192:
1.32      millert  10193:   # We can hardcode non-existent directories.
1.27      millert  10194:   if test "$hardcode_direct" != no &&
                   10195:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   10196:      # have to relink, otherwise we might link with an installed library
                   10197:      # when we should be linking with a yet-to-be-installed one
                   10198:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   10199:      test "$hardcode_minus_L" != no; then
                   10200:     # Linking always hardcodes the temporary library directory.
                   10201:     hardcode_action=relink
1.25      millert  10202:   else
1.27      millert  10203:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   10204:     hardcode_action=immediate
1.25      millert  10205:   fi
1.27      millert  10206: else
                   10207:   # We cannot hardcode anything, or else we can only hardcode existing
                   10208:   # directories.
                   10209:   hardcode_action=unsupported
1.23      millert  10210: fi
1.27      millert  10211: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
                   10212: echo "${ECHO_T}$hardcode_action" >&6; }
1.23      millert  10213:
1.27      millert  10214: if test "$hardcode_action" = relink; then
                   10215:   # Fast installation is not supported
                   10216:   enable_fast_install=no
                   10217: elif test "$shlibpath_overrides_runpath" = yes ||
                   10218:      test "$enable_shared" = no; then
                   10219:   # Fast installation is not necessary
                   10220:   enable_fast_install=needless
                   10221: fi
1.25      millert  10222:
1.27      millert  10223: striplib=
                   10224: old_striplib=
                   10225: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
                   10226: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
                   10227: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
                   10228:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   10229:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   10230:   { echo "$as_me:$LINENO: result: yes" >&5
                   10231: echo "${ECHO_T}yes" >&6; }
                   10232: else
                   10233: # FIXME - insert some real tests, host_os isn't really good enough
                   10234:   case $host_os in
                   10235:    darwin*)
                   10236:        if test -n "$STRIP" ; then
                   10237:          striplib="$STRIP -x"
                   10238:          old_striplib="$STRIP -S"
                   10239:          { echo "$as_me:$LINENO: result: yes" >&5
                   10240: echo "${ECHO_T}yes" >&6; }
                   10241:        else
                   10242:   { echo "$as_me:$LINENO: result: no" >&5
                   10243: echo "${ECHO_T}no" >&6; }
                   10244: fi
                   10245:        ;;
                   10246:    *)
                   10247:   { echo "$as_me:$LINENO: result: no" >&5
                   10248: echo "${ECHO_T}no" >&6; }
                   10249:     ;;
                   10250:   esac
                   10251: fi
1.25      millert  10252:
1.27      millert  10253: if test "x$enable_dlopen" != xyes; then
                   10254:   enable_dlopen=unknown
                   10255:   enable_dlopen_self=unknown
                   10256:   enable_dlopen_self_static=unknown
                   10257: else
                   10258:   lt_cv_dlopen=no
                   10259:   lt_cv_dlopen_libs=
1.25      millert  10260:
1.27      millert  10261:   case $host_os in
                   10262:   beos*)
                   10263:     lt_cv_dlopen="load_add_on"
                   10264:     lt_cv_dlopen_libs=
                   10265:     lt_cv_dlopen_self=yes
                   10266:     ;;
1.23      millert  10267:
1.27      millert  10268:   mingw* | pw32*)
                   10269:     lt_cv_dlopen="LoadLibrary"
                   10270:     lt_cv_dlopen_libs=
                   10271:    ;;
1.23      millert  10272:
1.27      millert  10273:   cygwin*)
                   10274:     lt_cv_dlopen="dlopen"
                   10275:     lt_cv_dlopen_libs=
                   10276:    ;;
1.23      millert  10277:
1.27      millert  10278:   darwin*)
                   10279:   # if libdl is installed we need to link against it
                   10280:     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10281: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10282: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10283:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10284: else
                   10285:   ac_check_lib_save_LIBS=$LIBS
                   10286: LIBS="-ldl  $LIBS"
                   10287: cat >conftest.$ac_ext <<_ACEOF
                   10288: /* confdefs.h.  */
                   10289: _ACEOF
                   10290: cat confdefs.h >>conftest.$ac_ext
                   10291: cat >>conftest.$ac_ext <<_ACEOF
                   10292: /* end confdefs.h.  */
1.23      millert  10293:
1.27      millert  10294: /* Override any GCC internal prototype to avoid an error.
                   10295:    Use char because int might match the return type of a GCC
                   10296:    builtin and then its argument prototype would still apply.  */
                   10297: #ifdef __cplusplus
                   10298: extern "C"
                   10299: #endif
                   10300: char dlopen ();
                   10301: int
                   10302: main ()
                   10303: {
                   10304: return dlopen ();
                   10305:   ;
                   10306:   return 0;
                   10307: }
                   10308: _ACEOF
                   10309: rm -f conftest.$ac_objext conftest$ac_exeext
                   10310: if { (ac_try="$ac_link"
                   10311: case "(($ac_try" in
                   10312:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10313:   *) ac_try_echo=$ac_try;;
                   10314: esac
                   10315: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10316:   (eval "$ac_link") 2>conftest.er1
                   10317:   ac_status=$?
                   10318:   grep -v '^ *+' conftest.er1 >conftest.err
                   10319:   rm -f conftest.er1
                   10320:   cat conftest.err >&5
                   10321:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10322:   (exit $ac_status); } && {
                   10323:         test -z "$ac_c_werror_flag" ||
                   10324:         test ! -s conftest.err
                   10325:        } && test -s conftest$ac_exeext &&
                   10326:        $as_test_x conftest$ac_exeext; then
                   10327:   ac_cv_lib_dl_dlopen=yes
                   10328: else
                   10329:   echo "$as_me: failed program was:" >&5
                   10330: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10331:
1.27      millert  10332:        ac_cv_lib_dl_dlopen=no
                   10333: fi
1.23      millert  10334:
1.27      millert  10335: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10336:       conftest$ac_exeext conftest.$ac_ext
                   10337: LIBS=$ac_check_lib_save_LIBS
                   10338: fi
                   10339: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10340: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10341: if test $ac_cv_lib_dl_dlopen = yes; then
                   10342:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10343: else
1.23      millert  10344:
1.27      millert  10345:     lt_cv_dlopen="dyld"
                   10346:     lt_cv_dlopen_libs=
                   10347:     lt_cv_dlopen_self=yes
1.23      millert  10348:
1.27      millert  10349: fi
1.23      millert  10350:
1.27      millert  10351:    ;;
1.23      millert  10352:
1.27      millert  10353:   *)
                   10354:     { echo "$as_me:$LINENO: checking for shl_load" >&5
                   10355: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
                   10356: if test "${ac_cv_func_shl_load+set}" = set; then
                   10357:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10358: else
                   10359:   cat >conftest.$ac_ext <<_ACEOF
                   10360: /* confdefs.h.  */
                   10361: _ACEOF
                   10362: cat confdefs.h >>conftest.$ac_ext
                   10363: cat >>conftest.$ac_ext <<_ACEOF
                   10364: /* end confdefs.h.  */
                   10365: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
                   10366:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10367: #define shl_load innocuous_shl_load
1.23      millert  10368:
1.27      millert  10369: /* System header to define __stub macros and hopefully few prototypes,
                   10370:     which can conflict with char shl_load (); below.
                   10371:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10372:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  10373:
1.27      millert  10374: #ifdef __STDC__
                   10375: # include <limits.h>
                   10376: #else
                   10377: # include <assert.h>
                   10378: #endif
1.23      millert  10379:
1.27      millert  10380: #undef shl_load
1.23      millert  10381:
1.27      millert  10382: /* Override any GCC internal prototype to avoid an error.
                   10383:    Use char because int might match the return type of a GCC
                   10384:    builtin and then its argument prototype would still apply.  */
                   10385: #ifdef __cplusplus
                   10386: extern "C"
                   10387: #endif
                   10388: char shl_load ();
                   10389: /* The GNU C library defines this for functions which it implements
                   10390:     to always fail with ENOSYS.  Some functions are actually named
                   10391:     something starting with __ and the normal name is an alias.  */
                   10392: #if defined __stub_shl_load || defined __stub___shl_load
                   10393: choke me
                   10394: #endif
1.23      millert  10395:
1.27      millert  10396: int
                   10397: main ()
                   10398: {
                   10399: return shl_load ();
                   10400:   ;
                   10401:   return 0;
                   10402: }
                   10403: _ACEOF
                   10404: rm -f conftest.$ac_objext conftest$ac_exeext
                   10405: if { (ac_try="$ac_link"
                   10406: case "(($ac_try" in
                   10407:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10408:   *) ac_try_echo=$ac_try;;
                   10409: esac
                   10410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10411:   (eval "$ac_link") 2>conftest.er1
                   10412:   ac_status=$?
                   10413:   grep -v '^ *+' conftest.er1 >conftest.err
                   10414:   rm -f conftest.er1
                   10415:   cat conftest.err >&5
                   10416:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10417:   (exit $ac_status); } && {
                   10418:         test -z "$ac_c_werror_flag" ||
                   10419:         test ! -s conftest.err
                   10420:        } && test -s conftest$ac_exeext &&
                   10421:        $as_test_x conftest$ac_exeext; then
                   10422:   ac_cv_func_shl_load=yes
                   10423: else
                   10424:   echo "$as_me: failed program was:" >&5
                   10425: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10426:
1.27      millert  10427:        ac_cv_func_shl_load=no
                   10428: fi
1.23      millert  10429:
1.27      millert  10430: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10431:       conftest$ac_exeext conftest.$ac_ext
1.25      millert  10432: fi
1.27      millert  10433: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
                   10434: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
                   10435: if test $ac_cv_func_shl_load = yes; then
                   10436:   lt_cv_dlopen="shl_load"
                   10437: else
                   10438:   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
                   10439: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
                   10440: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25      millert  10441:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10442: else
1.27      millert  10443:   ac_check_lib_save_LIBS=$LIBS
                   10444: LIBS="-ldld  $LIBS"
                   10445: cat >conftest.$ac_ext <<_ACEOF
                   10446: /* confdefs.h.  */
                   10447: _ACEOF
                   10448: cat confdefs.h >>conftest.$ac_ext
                   10449: cat >>conftest.$ac_ext <<_ACEOF
                   10450: /* end confdefs.h.  */
1.25      millert  10451:
1.27      millert  10452: /* Override any GCC internal prototype to avoid an error.
                   10453:    Use char because int might match the return type of a GCC
                   10454:    builtin and then its argument prototype would still apply.  */
                   10455: #ifdef __cplusplus
                   10456: extern "C"
                   10457: #endif
                   10458: char shl_load ();
                   10459: int
                   10460: main ()
                   10461: {
                   10462: return shl_load ();
                   10463:   ;
                   10464:   return 0;
                   10465: }
                   10466: _ACEOF
                   10467: rm -f conftest.$ac_objext conftest$ac_exeext
                   10468: if { (ac_try="$ac_link"
                   10469: case "(($ac_try" in
                   10470:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10471:   *) ac_try_echo=$ac_try;;
                   10472: esac
                   10473: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10474:   (eval "$ac_link") 2>conftest.er1
                   10475:   ac_status=$?
                   10476:   grep -v '^ *+' conftest.er1 >conftest.err
                   10477:   rm -f conftest.er1
                   10478:   cat conftest.err >&5
                   10479:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10480:   (exit $ac_status); } && {
                   10481:         test -z "$ac_c_werror_flag" ||
                   10482:         test ! -s conftest.err
                   10483:        } && test -s conftest$ac_exeext &&
                   10484:        $as_test_x conftest$ac_exeext; then
                   10485:   ac_cv_lib_dld_shl_load=yes
1.25      millert  10486: else
1.27      millert  10487:   echo "$as_me: failed program was:" >&5
                   10488: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10489:
1.27      millert  10490:        ac_cv_lib_dld_shl_load=no
1.25      millert  10491: fi
                   10492:
1.27      millert  10493: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10494:       conftest$ac_exeext conftest.$ac_ext
                   10495: LIBS=$ac_check_lib_save_LIBS
                   10496: fi
                   10497: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
                   10498: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
                   10499: if test $ac_cv_lib_dld_shl_load = yes; then
1.36      millert  10500:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1.27      millert  10501: else
                   10502:   { echo "$as_me:$LINENO: checking for dlopen" >&5
                   10503: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
                   10504: if test "${ac_cv_func_dlopen+set}" = set; then
                   10505:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10506: else
                   10507:   cat >conftest.$ac_ext <<_ACEOF
                   10508: /* confdefs.h.  */
                   10509: _ACEOF
                   10510: cat confdefs.h >>conftest.$ac_ext
                   10511: cat >>conftest.$ac_ext <<_ACEOF
                   10512: /* end confdefs.h.  */
                   10513: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
                   10514:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10515: #define dlopen innocuous_dlopen
                   10516:
                   10517: /* System header to define __stub macros and hopefully few prototypes,
                   10518:     which can conflict with char dlopen (); below.
                   10519:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10520:     <limits.h> exists even on freestanding compilers.  */
                   10521:
                   10522: #ifdef __STDC__
                   10523: # include <limits.h>
                   10524: #else
                   10525: # include <assert.h>
                   10526: #endif
                   10527:
                   10528: #undef dlopen
                   10529:
                   10530: /* Override any GCC internal prototype to avoid an error.
                   10531:    Use char because int might match the return type of a GCC
                   10532:    builtin and then its argument prototype would still apply.  */
                   10533: #ifdef __cplusplus
                   10534: extern "C"
                   10535: #endif
                   10536: char dlopen ();
                   10537: /* The GNU C library defines this for functions which it implements
                   10538:     to always fail with ENOSYS.  Some functions are actually named
                   10539:     something starting with __ and the normal name is an alias.  */
                   10540: #if defined __stub_dlopen || defined __stub___dlopen
                   10541: choke me
                   10542: #endif
                   10543:
                   10544: int
                   10545: main ()
                   10546: {
                   10547: return dlopen ();
                   10548:   ;
                   10549:   return 0;
                   10550: }
                   10551: _ACEOF
                   10552: rm -f conftest.$ac_objext conftest$ac_exeext
                   10553: if { (ac_try="$ac_link"
                   10554: case "(($ac_try" in
                   10555:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10556:   *) ac_try_echo=$ac_try;;
                   10557: esac
                   10558: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10559:   (eval "$ac_link") 2>conftest.er1
                   10560:   ac_status=$?
                   10561:   grep -v '^ *+' conftest.er1 >conftest.err
                   10562:   rm -f conftest.er1
                   10563:   cat conftest.err >&5
                   10564:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10565:   (exit $ac_status); } && {
                   10566:         test -z "$ac_c_werror_flag" ||
                   10567:         test ! -s conftest.err
                   10568:        } && test -s conftest$ac_exeext &&
                   10569:        $as_test_x conftest$ac_exeext; then
                   10570:   ac_cv_func_dlopen=yes
                   10571: else
                   10572:   echo "$as_me: failed program was:" >&5
                   10573: sed 's/^/| /' conftest.$ac_ext >&5
                   10574:
                   10575:        ac_cv_func_dlopen=no
                   10576: fi
                   10577:
                   10578: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10579:       conftest$ac_exeext conftest.$ac_ext
                   10580: fi
                   10581: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   10582: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
                   10583: if test $ac_cv_func_dlopen = yes; then
                   10584:   lt_cv_dlopen="dlopen"
                   10585: else
                   10586:   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10587: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10588: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10589:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10590: else
                   10591:   ac_check_lib_save_LIBS=$LIBS
                   10592: LIBS="-ldl  $LIBS"
                   10593: cat >conftest.$ac_ext <<_ACEOF
                   10594: /* confdefs.h.  */
                   10595: _ACEOF
                   10596: cat confdefs.h >>conftest.$ac_ext
                   10597: cat >>conftest.$ac_ext <<_ACEOF
                   10598: /* end confdefs.h.  */
                   10599:
                   10600: /* Override any GCC internal prototype to avoid an error.
                   10601:    Use char because int might match the return type of a GCC
                   10602:    builtin and then its argument prototype would still apply.  */
                   10603: #ifdef __cplusplus
                   10604: extern "C"
                   10605: #endif
                   10606: char dlopen ();
                   10607: int
                   10608: main ()
                   10609: {
                   10610: return dlopen ();
                   10611:   ;
                   10612:   return 0;
                   10613: }
                   10614: _ACEOF
                   10615: rm -f conftest.$ac_objext conftest$ac_exeext
                   10616: if { (ac_try="$ac_link"
                   10617: case "(($ac_try" in
                   10618:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10619:   *) ac_try_echo=$ac_try;;
                   10620: esac
                   10621: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10622:   (eval "$ac_link") 2>conftest.er1
                   10623:   ac_status=$?
                   10624:   grep -v '^ *+' conftest.er1 >conftest.err
                   10625:   rm -f conftest.er1
                   10626:   cat conftest.err >&5
                   10627:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10628:   (exit $ac_status); } && {
                   10629:         test -z "$ac_c_werror_flag" ||
                   10630:         test ! -s conftest.err
                   10631:        } && test -s conftest$ac_exeext &&
                   10632:        $as_test_x conftest$ac_exeext; then
                   10633:   ac_cv_lib_dl_dlopen=yes
                   10634: else
                   10635:   echo "$as_me: failed program was:" >&5
                   10636: sed 's/^/| /' conftest.$ac_ext >&5
                   10637:
                   10638:        ac_cv_lib_dl_dlopen=no
                   10639: fi
                   10640:
                   10641: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10642:       conftest$ac_exeext conftest.$ac_ext
                   10643: LIBS=$ac_check_lib_save_LIBS
                   10644: fi
                   10645: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10646: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10647: if test $ac_cv_lib_dl_dlopen = yes; then
                   10648:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10649: else
                   10650:   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
                   10651: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
                   10652: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
                   10653:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10654: else
                   10655:   ac_check_lib_save_LIBS=$LIBS
                   10656: LIBS="-lsvld  $LIBS"
                   10657: cat >conftest.$ac_ext <<_ACEOF
                   10658: /* confdefs.h.  */
                   10659: _ACEOF
                   10660: cat confdefs.h >>conftest.$ac_ext
                   10661: cat >>conftest.$ac_ext <<_ACEOF
                   10662: /* end confdefs.h.  */
                   10663:
                   10664: /* Override any GCC internal prototype to avoid an error.
                   10665:    Use char because int might match the return type of a GCC
                   10666:    builtin and then its argument prototype would still apply.  */
                   10667: #ifdef __cplusplus
                   10668: extern "C"
                   10669: #endif
                   10670: char dlopen ();
                   10671: int
                   10672: main ()
                   10673: {
                   10674: return dlopen ();
                   10675:   ;
                   10676:   return 0;
                   10677: }
                   10678: _ACEOF
                   10679: rm -f conftest.$ac_objext conftest$ac_exeext
                   10680: if { (ac_try="$ac_link"
                   10681: case "(($ac_try" in
                   10682:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10683:   *) ac_try_echo=$ac_try;;
                   10684: esac
                   10685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10686:   (eval "$ac_link") 2>conftest.er1
                   10687:   ac_status=$?
                   10688:   grep -v '^ *+' conftest.er1 >conftest.err
                   10689:   rm -f conftest.er1
                   10690:   cat conftest.err >&5
                   10691:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10692:   (exit $ac_status); } && {
                   10693:         test -z "$ac_c_werror_flag" ||
                   10694:         test ! -s conftest.err
                   10695:        } && test -s conftest$ac_exeext &&
                   10696:        $as_test_x conftest$ac_exeext; then
                   10697:   ac_cv_lib_svld_dlopen=yes
                   10698: else
                   10699:   echo "$as_me: failed program was:" >&5
                   10700: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10701:
1.27      millert  10702:        ac_cv_lib_svld_dlopen=no
                   10703: fi
1.25      millert  10704:
1.27      millert  10705: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10706:       conftest$ac_exeext conftest.$ac_ext
                   10707: LIBS=$ac_check_lib_save_LIBS
                   10708: fi
                   10709: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
                   10710: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
                   10711: if test $ac_cv_lib_svld_dlopen = yes; then
                   10712:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   10713: else
                   10714:   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
                   10715: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
                   10716: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
                   10717:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10718: else
                   10719:   ac_check_lib_save_LIBS=$LIBS
                   10720: LIBS="-ldld  $LIBS"
                   10721: cat >conftest.$ac_ext <<_ACEOF
                   10722: /* confdefs.h.  */
                   10723: _ACEOF
                   10724: cat confdefs.h >>conftest.$ac_ext
                   10725: cat >>conftest.$ac_ext <<_ACEOF
                   10726: /* end confdefs.h.  */
1.25      millert  10727:
1.27      millert  10728: /* Override any GCC internal prototype to avoid an error.
                   10729:    Use char because int might match the return type of a GCC
                   10730:    builtin and then its argument prototype would still apply.  */
                   10731: #ifdef __cplusplus
                   10732: extern "C"
                   10733: #endif
                   10734: char dld_link ();
                   10735: int
                   10736: main ()
                   10737: {
                   10738: return dld_link ();
                   10739:   ;
                   10740:   return 0;
                   10741: }
                   10742: _ACEOF
                   10743: rm -f conftest.$ac_objext conftest$ac_exeext
                   10744: if { (ac_try="$ac_link"
                   10745: case "(($ac_try" in
                   10746:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10747:   *) ac_try_echo=$ac_try;;
                   10748: esac
                   10749: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10750:   (eval "$ac_link") 2>conftest.er1
                   10751:   ac_status=$?
                   10752:   grep -v '^ *+' conftest.er1 >conftest.err
                   10753:   rm -f conftest.er1
                   10754:   cat conftest.err >&5
                   10755:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10756:   (exit $ac_status); } && {
                   10757:         test -z "$ac_c_werror_flag" ||
                   10758:         test ! -s conftest.err
                   10759:        } && test -s conftest$ac_exeext &&
                   10760:        $as_test_x conftest$ac_exeext; then
                   10761:   ac_cv_lib_dld_dld_link=yes
                   10762: else
                   10763:   echo "$as_me: failed program was:" >&5
                   10764: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10765:
1.27      millert  10766:        ac_cv_lib_dld_dld_link=no
                   10767: fi
1.25      millert  10768:
1.27      millert  10769: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10770:       conftest$ac_exeext conftest.$ac_ext
                   10771: LIBS=$ac_check_lib_save_LIBS
                   10772: fi
                   10773: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
                   10774: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
                   10775: if test $ac_cv_lib_dld_dld_link = yes; then
1.36      millert  10776:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.27      millert  10777: fi
1.25      millert  10778:
1.23      millert  10779:
1.27      millert  10780: fi
1.23      millert  10781:
                   10782:
1.27      millert  10783: fi
1.23      millert  10784:
1.25      millert  10785:
1.27      millert  10786: fi
1.23      millert  10787:
                   10788:
1.27      millert  10789: fi
1.23      millert  10790:
                   10791:
1.27      millert  10792: fi
1.23      millert  10793:
1.27      millert  10794:     ;;
                   10795:   esac
1.23      millert  10796:
1.27      millert  10797:   if test "x$lt_cv_dlopen" != xno; then
                   10798:     enable_dlopen=yes
                   10799:   else
                   10800:     enable_dlopen=no
                   10801:   fi
1.25      millert  10802:
1.27      millert  10803:   case $lt_cv_dlopen in
                   10804:   dlopen)
                   10805:     save_CPPFLAGS="$CPPFLAGS"
                   10806:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23      millert  10807:
1.27      millert  10808:     save_LDFLAGS="$LDFLAGS"
                   10809:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25      millert  10810:
1.27      millert  10811:     save_LIBS="$LIBS"
                   10812:     LIBS="$lt_cv_dlopen_libs $LIBS"
1.23      millert  10813:
1.27      millert  10814:     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
                   10815: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
                   10816: if test "${lt_cv_dlopen_self+set}" = set; then
                   10817:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10818: else
                   10819:          if test "$cross_compiling" = yes; then :
                   10820:   lt_cv_dlopen_self=cross
                   10821: else
                   10822:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10823:   lt_status=$lt_dlunknown
                   10824:   cat > conftest.$ac_ext <<EOF
1.37    ! millert  10825: #line 10825 "configure"
1.27      millert  10826: #include "confdefs.h"
1.23      millert  10827:
1.27      millert  10828: #if HAVE_DLFCN_H
                   10829: #include <dlfcn.h>
                   10830: #endif
1.25      millert  10831:
1.27      millert  10832: #include <stdio.h>
1.25      millert  10833:
1.27      millert  10834: #ifdef RTLD_GLOBAL
                   10835: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10836: #else
                   10837: #  ifdef DL_GLOBAL
                   10838: #    define LT_DLGLOBAL                DL_GLOBAL
                   10839: #  else
                   10840: #    define LT_DLGLOBAL                0
                   10841: #  endif
                   10842: #endif
1.25      millert  10843:
1.27      millert  10844: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10845:    find out it does not work in some platform. */
                   10846: #ifndef LT_DLLAZY_OR_NOW
                   10847: #  ifdef RTLD_LAZY
                   10848: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10849: #  else
                   10850: #    ifdef DL_LAZY
                   10851: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10852: #    else
                   10853: #      ifdef RTLD_NOW
                   10854: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10855: #      else
                   10856: #        ifdef DL_NOW
                   10857: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10858: #        else
                   10859: #          define LT_DLLAZY_OR_NOW     0
                   10860: #        endif
                   10861: #      endif
                   10862: #    endif
                   10863: #  endif
                   10864: #endif
1.23      millert  10865:
1.27      millert  10866: #ifdef __cplusplus
                   10867: extern "C" void exit (int);
                   10868: #endif
1.23      millert  10869:
1.27      millert  10870: void fnord() { int i=42;}
                   10871: int main ()
                   10872: {
                   10873:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   10874:   int status = $lt_dlunknown;
1.23      millert  10875:
1.27      millert  10876:   if (self)
                   10877:     {
                   10878:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   10879:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   10880:       /* dlclose (self); */
                   10881:     }
                   10882:   else
                   10883:     puts (dlerror ());
1.23      millert  10884:
1.27      millert  10885:     exit (status);
                   10886: }
                   10887: EOF
                   10888:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10889:   (eval $ac_link) 2>&5
                   10890:   ac_status=$?
                   10891:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10892:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   10893:     (./conftest; exit; ) >&5 2>/dev/null
                   10894:     lt_status=$?
                   10895:     case x$lt_status in
                   10896:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   10897:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   10898:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23      millert  10899:     esac
1.27      millert  10900:   else :
                   10901:     # compilation failed
                   10902:     lt_cv_dlopen_self=no
1.23      millert  10903:   fi
1.27      millert  10904: fi
                   10905: rm -fr conftest*
1.23      millert  10906:
                   10907:
1.27      millert  10908: fi
                   10909: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
                   10910: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23      millert  10911:
1.27      millert  10912:     if test "x$lt_cv_dlopen_self" = xyes; then
                   10913:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   10914:       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
                   10915: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
                   10916: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25      millert  10917:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  10918: else
1.27      millert  10919:          if test "$cross_compiling" = yes; then :
                   10920:   lt_cv_dlopen_self_static=cross
1.25      millert  10921: else
1.27      millert  10922:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10923:   lt_status=$lt_dlunknown
                   10924:   cat > conftest.$ac_ext <<EOF
1.37    ! millert  10925: #line 10925 "configure"
1.27      millert  10926: #include "confdefs.h"
1.23      millert  10927:
1.27      millert  10928: #if HAVE_DLFCN_H
                   10929: #include <dlfcn.h>
                   10930: #endif
1.23      millert  10931:
1.27      millert  10932: #include <stdio.h>
1.25      millert  10933:
1.27      millert  10934: #ifdef RTLD_GLOBAL
                   10935: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10936: #else
                   10937: #  ifdef DL_GLOBAL
                   10938: #    define LT_DLGLOBAL                DL_GLOBAL
                   10939: #  else
                   10940: #    define LT_DLGLOBAL                0
                   10941: #  endif
                   10942: #endif
1.25      millert  10943:
1.27      millert  10944: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10945:    find out it does not work in some platform. */
                   10946: #ifndef LT_DLLAZY_OR_NOW
                   10947: #  ifdef RTLD_LAZY
                   10948: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10949: #  else
                   10950: #    ifdef DL_LAZY
                   10951: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10952: #    else
                   10953: #      ifdef RTLD_NOW
                   10954: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10955: #      else
                   10956: #        ifdef DL_NOW
                   10957: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10958: #        else
                   10959: #          define LT_DLLAZY_OR_NOW     0
                   10960: #        endif
                   10961: #      endif
                   10962: #    endif
                   10963: #  endif
                   10964: #endif
1.25      millert  10965:
1.27      millert  10966: #ifdef __cplusplus
                   10967: extern "C" void exit (int);
                   10968: #endif
1.25      millert  10969:
1.27      millert  10970: void fnord() { int i=42;}
                   10971: int main ()
                   10972: {
                   10973:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   10974:   int status = $lt_dlunknown;
1.25      millert  10975:
1.27      millert  10976:   if (self)
                   10977:     {
                   10978:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   10979:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   10980:       /* dlclose (self); */
                   10981:     }
                   10982:   else
                   10983:     puts (dlerror ());
1.25      millert  10984:
1.27      millert  10985:     exit (status);
                   10986: }
                   10987: EOF
                   10988:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10989:   (eval $ac_link) 2>&5
                   10990:   ac_status=$?
                   10991:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10992:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   10993:     (./conftest; exit; ) >&5 2>/dev/null
                   10994:     lt_status=$?
                   10995:     case x$lt_status in
                   10996:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   10997:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   10998:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   10999:     esac
                   11000:   else :
                   11001:     # compilation failed
                   11002:     lt_cv_dlopen_self_static=no
                   11003:   fi
1.23      millert  11004: fi
1.27      millert  11005: rm -fr conftest*
1.23      millert  11006:
                   11007:
1.25      millert  11008: fi
1.27      millert  11009: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
                   11010: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
                   11011:     fi
1.23      millert  11012:
1.27      millert  11013:     CPPFLAGS="$save_CPPFLAGS"
                   11014:     LDFLAGS="$save_LDFLAGS"
                   11015:     LIBS="$save_LIBS"
1.25      millert  11016:     ;;
                   11017:   esac
1.23      millert  11018:
1.27      millert  11019:   case $lt_cv_dlopen_self in
                   11020:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   11021:   *) enable_dlopen_self=unknown ;;
                   11022:   esac
1.23      millert  11023:
1.27      millert  11024:   case $lt_cv_dlopen_self_static in
                   11025:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   11026:   *) enable_dlopen_self_static=unknown ;;
1.23      millert  11027:   esac
1.27      millert  11028: fi
1.23      millert  11029:
                   11030:
1.27      millert  11031: # Report which library types will actually be built
                   11032: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
                   11033: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
                   11034: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
                   11035: echo "${ECHO_T}$can_build_shared" >&6; }
                   11036:
                   11037: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
                   11038: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
                   11039: test "$can_build_shared" = "no" && enable_shared=no
1.25      millert  11040:
1.27      millert  11041: # On AIX, shared libraries and static libraries use the same namespace, and
                   11042: # are all built from PIC.
                   11043: case $host_os in
                   11044: aix3*)
                   11045:   test "$enable_shared" = yes && enable_static=no
                   11046:   if test -n "$RANLIB"; then
                   11047:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   11048:     postinstall_cmds='$RANLIB $lib'
                   11049:   fi
1.23      millert  11050:   ;;
                   11051:
1.36      millert  11052: aix[4-9]*)
1.27      millert  11053:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   11054:     test "$enable_shared" = yes && enable_static=no
                   11055:   fi
                   11056:     ;;
1.23      millert  11057: esac
1.27      millert  11058: { echo "$as_me:$LINENO: result: $enable_shared" >&5
                   11059: echo "${ECHO_T}$enable_shared" >&6; }
1.23      millert  11060:
1.27      millert  11061: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
                   11062: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
                   11063: # Make sure either enable_shared or enable_static is yes.
                   11064: test "$enable_shared" = yes || enable_static=yes
                   11065: { echo "$as_me:$LINENO: result: $enable_static" >&5
                   11066: echo "${ECHO_T}$enable_static" >&6; }
                   11067:
                   11068: # The else clause should only fire when bootstrapping the
                   11069: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   11070: # with your package, and you will get complaints that there are
                   11071: # no rules to generate ltmain.sh.
                   11072: if test -f "$ltmain"; then
                   11073:   # See if we are running on zsh, and set the options which allow our commands through
                   11074:   # without removal of \ escapes.
                   11075:   if test -n "${ZSH_VERSION+set}" ; then
                   11076:     setopt NO_GLOB_SUBST
                   11077:   fi
                   11078:   # Now quote all the things that may contain metacharacters while being
                   11079:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   11080:   # variables and quote the copies for generation of the libtool script.
                   11081:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   11082:     SED SHELL STRIP \
                   11083:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   11084:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   11085:     deplibs_check_method reload_flag reload_cmds need_locks \
                   11086:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   11087:     lt_cv_sys_global_symbol_to_c_name_address \
                   11088:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   11089:     old_postinstall_cmds old_postuninstall_cmds \
                   11090:     compiler \
                   11091:     CC \
                   11092:     LD \
                   11093:     lt_prog_compiler_wl \
                   11094:     lt_prog_compiler_pic \
                   11095:     lt_prog_compiler_static \
                   11096:     lt_prog_compiler_no_builtin_flag \
                   11097:     export_dynamic_flag_spec \
                   11098:     thread_safe_flag_spec \
                   11099:     whole_archive_flag_spec \
                   11100:     enable_shared_with_static_runtimes \
                   11101:     old_archive_cmds \
                   11102:     old_archive_from_new_cmds \
                   11103:     predep_objects \
                   11104:     postdep_objects \
                   11105:     predeps \
                   11106:     postdeps \
                   11107:     compiler_lib_search_path \
1.36      millert  11108:     compiler_lib_search_dirs \
1.27      millert  11109:     archive_cmds \
                   11110:     archive_expsym_cmds \
                   11111:     postinstall_cmds \
                   11112:     postuninstall_cmds \
                   11113:     old_archive_from_expsyms_cmds \
                   11114:     allow_undefined_flag \
                   11115:     no_undefined_flag \
                   11116:     export_symbols_cmds \
                   11117:     hardcode_libdir_flag_spec \
                   11118:     hardcode_libdir_flag_spec_ld \
                   11119:     hardcode_libdir_separator \
                   11120:     hardcode_automatic \
                   11121:     module_cmds \
                   11122:     module_expsym_cmds \
                   11123:     lt_cv_prog_compiler_c_o \
                   11124:     fix_srcfile_path \
                   11125:     exclude_expsyms \
                   11126:     include_expsyms; do
                   11127:
                   11128:     case $var in
                   11129:     old_archive_cmds | \
                   11130:     old_archive_from_new_cmds | \
                   11131:     archive_cmds | \
                   11132:     archive_expsym_cmds | \
                   11133:     module_cmds | \
                   11134:     module_expsym_cmds | \
                   11135:     old_archive_from_expsyms_cmds | \
                   11136:     export_symbols_cmds | \
                   11137:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   11138:     postinstall_cmds | postuninstall_cmds | \
                   11139:     old_postinstall_cmds | old_postuninstall_cmds | \
                   11140:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   11141:       # Double-quote double-evaled strings.
                   11142:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   11143:       ;;
                   11144:     *)
                   11145:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   11146:       ;;
                   11147:     esac
                   11148:   done
1.23      millert  11149:
1.27      millert  11150:   case $lt_echo in
                   11151:   *'\$0 --fallback-echo"')
                   11152:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   11153:     ;;
                   11154:   esac
1.23      millert  11155:
1.27      millert  11156: cfgfile="${ofile}T"
                   11157:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
                   11158:   $rm -f "$cfgfile"
                   11159:   { echo "$as_me:$LINENO: creating $ofile" >&5
                   11160: echo "$as_me: creating $ofile" >&6;}
1.23      millert  11161:
1.27      millert  11162:   cat <<__EOF__ >> "$cfgfile"
                   11163: #! $SHELL
1.23      millert  11164:
1.27      millert  11165: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   11166: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
                   11167: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   11168: #
1.36      millert  11169: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1.27      millert  11170: # Free Software Foundation, Inc.
                   11171: #
                   11172: # This file is part of GNU Libtool:
                   11173: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   11174: #
                   11175: # This program is free software; you can redistribute it and/or modify
                   11176: # it under the terms of the GNU General Public License as published by
                   11177: # the Free Software Foundation; either version 2 of the License, or
                   11178: # (at your option) any later version.
                   11179: #
                   11180: # This program is distributed in the hope that it will be useful, but
                   11181: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   11182: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   11183: # General Public License for more details.
                   11184: #
                   11185: # You should have received a copy of the GNU General Public License
                   11186: # along with this program; if not, write to the Free Software
                   11187: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   11188: #
                   11189: # As a special exception to the GNU General Public License, if you
                   11190: # distribute this file as part of a program that contains a
                   11191: # configuration script generated by Autoconf, you may include it under
                   11192: # the same distribution terms that you use for the rest of that program.
1.23      millert  11193:
1.27      millert  11194: # A sed program that does not truncate output.
                   11195: SED=$lt_SED
1.23      millert  11196:
1.27      millert  11197: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   11198: Xsed="$SED -e 1s/^X//"
1.23      millert  11199:
1.27      millert  11200: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   11201: # if CDPATH is set.
                   11202: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert  11203:
1.27      millert  11204: # The names of the tagged configurations supported by this script.
                   11205: available_tags=
1.23      millert  11206:
1.27      millert  11207: # ### BEGIN LIBTOOL CONFIG
1.23      millert  11208:
1.27      millert  11209: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23      millert  11210:
1.27      millert  11211: # Shell to use when invoking shell scripts.
                   11212: SHELL=$lt_SHELL
1.23      millert  11213:
1.27      millert  11214: # Whether or not to build shared libraries.
                   11215: build_libtool_libs=$enable_shared
1.23      millert  11216:
1.27      millert  11217: # Whether or not to build static libraries.
                   11218: build_old_libs=$enable_static
1.23      millert  11219:
1.27      millert  11220: # Whether or not to add -lc for building shared libraries.
                   11221: build_libtool_need_lc=$archive_cmds_need_lc
1.23      millert  11222:
1.27      millert  11223: # Whether or not to disallow shared libs when runtime libs are static
                   11224: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23      millert  11225:
1.27      millert  11226: # Whether or not to optimize for fast installation.
                   11227: fast_install=$enable_fast_install
1.23      millert  11228:
1.27      millert  11229: # The host system.
                   11230: host_alias=$host_alias
                   11231: host=$host
                   11232: host_os=$host_os
1.23      millert  11233:
1.27      millert  11234: # The build system.
                   11235: build_alias=$build_alias
                   11236: build=$build
                   11237: build_os=$build_os
1.23      millert  11238:
1.27      millert  11239: # An echo program that does not interpret backslashes.
                   11240: echo=$lt_echo
1.23      millert  11241:
1.27      millert  11242: # The archiver.
                   11243: AR=$lt_AR
                   11244: AR_FLAGS=$lt_AR_FLAGS
1.23      millert  11245:
1.27      millert  11246: # A C compiler.
                   11247: LTCC=$lt_LTCC
1.23      millert  11248:
1.27      millert  11249: # LTCC compiler flags.
                   11250: LTCFLAGS=$lt_LTCFLAGS
1.23      millert  11251:
1.27      millert  11252: # A language-specific compiler.
                   11253: CC=$lt_compiler
1.23      millert  11254:
1.27      millert  11255: # Is the compiler the GNU C compiler?
                   11256: with_gcc=$GCC
1.23      millert  11257:
1.27      millert  11258: # An ERE matcher.
                   11259: EGREP=$lt_EGREP
1.23      millert  11260:
1.27      millert  11261: # The linker used to build libraries.
                   11262: LD=$lt_LD
1.23      millert  11263:
1.27      millert  11264: # Whether we need hard or soft links.
                   11265: LN_S=$lt_LN_S
1.23      millert  11266:
1.27      millert  11267: # A BSD-compatible nm program.
                   11268: NM=$lt_NM
1.23      millert  11269:
1.27      millert  11270: # A symbol stripping program
                   11271: STRIP=$lt_STRIP
1.23      millert  11272:
1.27      millert  11273: # Used to examine libraries when file_magic_cmd begins "file"
                   11274: MAGIC_CMD=$MAGIC_CMD
1.23      millert  11275:
1.27      millert  11276: # Used on cygwin: DLL creation program.
                   11277: DLLTOOL="$DLLTOOL"
1.23      millert  11278:
1.27      millert  11279: # Used on cygwin: object dumper.
                   11280: OBJDUMP="$OBJDUMP"
1.23      millert  11281:
1.27      millert  11282: # Used on cygwin: assembler.
                   11283: AS="$AS"
1.23      millert  11284:
1.27      millert  11285: # The name of the directory that contains temporary libtool files.
                   11286: objdir=$objdir
1.23      millert  11287:
1.27      millert  11288: # How to create reloadable object files.
                   11289: reload_flag=$lt_reload_flag
                   11290: reload_cmds=$lt_reload_cmds
1.23      millert  11291:
1.27      millert  11292: # How to pass a linker flag through the compiler.
                   11293: wl=$lt_lt_prog_compiler_wl
1.23      millert  11294:
1.27      millert  11295: # Object file suffix (normally "o").
                   11296: objext="$ac_objext"
1.23      millert  11297:
1.27      millert  11298: # Old archive suffix (normally "a").
                   11299: libext="$libext"
1.23      millert  11300:
1.27      millert  11301: # Shared library suffix (normally ".so").
                   11302: shrext_cmds='$shrext_cmds'
1.23      millert  11303:
1.27      millert  11304: # Executable file suffix (normally "").
                   11305: exeext="$exeext"
1.23      millert  11306:
1.27      millert  11307: # Additional compiler flags for building library objects.
                   11308: pic_flag=$lt_lt_prog_compiler_pic
                   11309: pic_mode=$pic_mode
1.23      millert  11310:
1.27      millert  11311: # What is the maximum length of a command?
                   11312: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23      millert  11313:
1.27      millert  11314: # Does compiler simultaneously support -c and -o options?
                   11315: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23      millert  11316:
1.27      millert  11317: # Must we lock files when doing compilation?
                   11318: need_locks=$lt_need_locks
1.23      millert  11319:
1.27      millert  11320: # Do we need the lib prefix for modules?
                   11321: need_lib_prefix=$need_lib_prefix
1.23      millert  11322:
1.27      millert  11323: # Do we need a version for libraries?
                   11324: need_version=$need_version
1.23      millert  11325:
1.27      millert  11326: # Whether dlopen is supported.
                   11327: dlopen_support=$enable_dlopen
1.23      millert  11328:
1.27      millert  11329: # Whether dlopen of programs is supported.
                   11330: dlopen_self=$enable_dlopen_self
1.23      millert  11331:
1.27      millert  11332: # Whether dlopen of statically linked programs is supported.
                   11333: dlopen_self_static=$enable_dlopen_self_static
1.23      millert  11334:
1.27      millert  11335: # Compiler flag to prevent dynamic linking.
                   11336: link_static_flag=$lt_lt_prog_compiler_static
1.23      millert  11337:
1.27      millert  11338: # Compiler flag to turn off builtin functions.
                   11339: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23      millert  11340:
1.27      millert  11341: # Compiler flag to allow reflexive dlopens.
                   11342: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23      millert  11343:
1.27      millert  11344: # Compiler flag to generate shared objects directly from archives.
                   11345: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23      millert  11346:
1.27      millert  11347: # Compiler flag to generate thread-safe objects.
                   11348: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23      millert  11349:
1.27      millert  11350: # Library versioning type.
                   11351: version_type=$version_type
1.23      millert  11352:
1.27      millert  11353: # Format of library name prefix.
                   11354: libname_spec=$lt_libname_spec
1.23      millert  11355:
1.27      millert  11356: # List of archive names.  First name is the real one, the rest are links.
                   11357: # The last name is the one that the linker finds with -lNAME.
                   11358: library_names_spec=$lt_library_names_spec
1.25      millert  11359:
1.27      millert  11360: # The coded name of the library, if different from the real name.
                   11361: soname_spec=$lt_soname_spec
1.25      millert  11362:
1.27      millert  11363: # Commands used to build and install an old-style archive.
                   11364: RANLIB=$lt_RANLIB
                   11365: old_archive_cmds=$lt_old_archive_cmds
                   11366: old_postinstall_cmds=$lt_old_postinstall_cmds
                   11367: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25      millert  11368:
1.27      millert  11369: # Create an old-style archive from a shared archive.
                   11370: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25      millert  11371:
1.27      millert  11372: # Create a temporary old-style archive to link instead of a shared archive.
                   11373: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25      millert  11374:
1.27      millert  11375: # Commands used to build and install a shared archive.
                   11376: archive_cmds=$lt_archive_cmds
                   11377: archive_expsym_cmds=$lt_archive_expsym_cmds
                   11378: postinstall_cmds=$lt_postinstall_cmds
                   11379: postuninstall_cmds=$lt_postuninstall_cmds
1.25      millert  11380:
1.27      millert  11381: # Commands used to build a loadable module (assumed same as above if empty)
                   11382: module_cmds=$lt_module_cmds
                   11383: module_expsym_cmds=$lt_module_expsym_cmds
1.25      millert  11384:
1.27      millert  11385: # Commands to strip libraries.
                   11386: old_striplib=$lt_old_striplib
                   11387: striplib=$lt_striplib
1.25      millert  11388:
1.27      millert  11389: # Dependencies to place before the objects being linked to create a
                   11390: # shared library.
                   11391: predep_objects=$lt_predep_objects
                   11392:
                   11393: # Dependencies to place after the objects being linked to create a
                   11394: # shared library.
                   11395: postdep_objects=$lt_postdep_objects
                   11396:
                   11397: # Dependencies to place before the objects being linked to create a
                   11398: # shared library.
                   11399: predeps=$lt_predeps
                   11400:
                   11401: # Dependencies to place after the objects being linked to create a
                   11402: # shared library.
                   11403: postdeps=$lt_postdeps
                   11404:
1.36      millert  11405: # The directories searched by this compiler when creating a shared
                   11406: # library
                   11407: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
                   11408:
1.27      millert  11409: # The library search path used internally by the compiler when linking
                   11410: # a shared library.
                   11411: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25      millert  11412:
1.27      millert  11413: # Method to check whether dependent libraries are shared objects.
                   11414: deplibs_check_method=$lt_deplibs_check_method
1.25      millert  11415:
1.27      millert  11416: # Command to use when deplibs_check_method == file_magic.
                   11417: file_magic_cmd=$lt_file_magic_cmd
1.25      millert  11418:
1.27      millert  11419: # Flag that allows shared libraries with undefined symbols to be built.
                   11420: allow_undefined_flag=$lt_allow_undefined_flag
1.25      millert  11421:
1.27      millert  11422: # Flag that forces no undefined symbols.
                   11423: no_undefined_flag=$lt_no_undefined_flag
1.25      millert  11424:
1.27      millert  11425: # Commands used to finish a libtool library installation in a directory.
                   11426: finish_cmds=$lt_finish_cmds
1.25      millert  11427:
1.27      millert  11428: # Same as above, but a single script fragment to be evaled but not shown.
                   11429: finish_eval=$lt_finish_eval
1.25      millert  11430:
1.27      millert  11431: # Take the output of nm and produce a listing of raw symbols and C names.
                   11432: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25      millert  11433:
1.27      millert  11434: # Transform the output of nm in a proper C declaration
                   11435: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25      millert  11436:
1.27      millert  11437: # Transform the output of nm in a C name address pair
                   11438: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25      millert  11439:
1.27      millert  11440: # This is the shared library runtime path variable.
                   11441: runpath_var=$runpath_var
1.25      millert  11442:
1.27      millert  11443: # This is the shared library path variable.
                   11444: shlibpath_var=$shlibpath_var
1.25      millert  11445:
1.27      millert  11446: # Is shlibpath searched before the hard-coded library search path?
                   11447: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25      millert  11448:
1.27      millert  11449: # How to hardcode a shared library path into an executable.
                   11450: hardcode_action=$hardcode_action
1.25      millert  11451:
1.27      millert  11452: # Whether we should hardcode library paths into libraries.
                   11453: hardcode_into_libs=$hardcode_into_libs
1.25      millert  11454:
1.27      millert  11455: # Flag to hardcode \$libdir into a binary during linking.
                   11456: # This must work even if \$libdir does not exist.
                   11457: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25      millert  11458:
1.27      millert  11459: # If ld is used when linking, flag to hardcode \$libdir into
                   11460: # a binary during linking. This must work even if \$libdir does
                   11461: # not exist.
                   11462: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23      millert  11463:
1.27      millert  11464: # Whether we need a single -rpath flag with a separated argument.
                   11465: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23      millert  11466:
1.27      millert  11467: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   11468: # resulting binary.
                   11469: hardcode_direct=$hardcode_direct
1.25      millert  11470:
1.27      millert  11471: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   11472: # resulting binary.
                   11473: hardcode_minus_L=$hardcode_minus_L
1.25      millert  11474:
1.27      millert  11475: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   11476: # the resulting binary.
                   11477: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25      millert  11478:
1.27      millert  11479: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   11480: # and all subsequent libraries and executables linked against it.
                   11481: hardcode_automatic=$hardcode_automatic
1.25      millert  11482:
1.27      millert  11483: # Variables whose values should be saved in libtool wrapper scripts and
                   11484: # restored at relink time.
                   11485: variables_saved_for_relink="$variables_saved_for_relink"
1.25      millert  11486:
1.27      millert  11487: # Whether libtool must link a program against all its dependency libraries.
                   11488: link_all_deplibs=$link_all_deplibs
1.23      millert  11489:
1.27      millert  11490: # Compile-time system search path for libraries
                   11491: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23      millert  11492:
1.27      millert  11493: # Run-time system search path for libraries
                   11494: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23      millert  11495:
1.27      millert  11496: # Fix the shell variable \$srcfile for the compiler.
                   11497: fix_srcfile_path=$lt_fix_srcfile_path
1.23      millert  11498:
1.27      millert  11499: # Set to yes if exported symbols are required.
                   11500: always_export_symbols=$always_export_symbols
1.23      millert  11501:
1.27      millert  11502: # The commands to list exported symbols.
                   11503: export_symbols_cmds=$lt_export_symbols_cmds
1.23      millert  11504:
1.27      millert  11505: # The commands to extract the exported symbol list from a shared archive.
                   11506: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23      millert  11507:
1.27      millert  11508: # Symbols that should not be listed in the preloaded symbols.
                   11509: exclude_expsyms=$lt_exclude_expsyms
1.23      millert  11510:
1.27      millert  11511: # Symbols that must always be exported.
                   11512: include_expsyms=$lt_include_expsyms
1.23      millert  11513:
1.27      millert  11514: # ### END LIBTOOL CONFIG
1.23      millert  11515:
1.27      millert  11516: __EOF__
1.23      millert  11517:
                   11518:
1.27      millert  11519:   case $host_os in
1.25      millert  11520:   aix3*)
1.27      millert  11521:     cat <<\EOF >> "$cfgfile"
1.23      millert  11522:
1.27      millert  11523: # AIX sometimes has problems with the GCC collect2 program.  For some
                   11524: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   11525: # vanish in a puff of smoke.
                   11526: if test "X${COLLECT_NAMES+set}" != Xset; then
                   11527:   COLLECT_NAMES=
                   11528:   export COLLECT_NAMES
                   11529: fi
                   11530: EOF
1.25      millert  11531:     ;;
                   11532:   esac
1.23      millert  11533:
1.27      millert  11534:   # We use sed instead of cat because bash on DJGPP gets confused if
                   11535:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   11536:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   11537:   # is reportedly fixed, but why not run on old versions too?
                   11538:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23      millert  11539:
1.27      millert  11540:   mv -f "$cfgfile" "$ofile" || \
                   11541:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   11542:   chmod +x "$ofile"
1.23      millert  11543:
1.27      millert  11544: else
                   11545:   # If there is no Makefile yet, we rely on a make rule to execute
                   11546:   # `config.status --recheck' to rerun these tests and create the
                   11547:   # libtool script then.
                   11548:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   11549:   if test -f "$ltmain_in"; then
                   11550:     test -f Makefile && make "$ltmain"
                   11551:   fi
                   11552: fi
1.23      millert  11553:
                   11554:
1.25      millert  11555: ac_ext=c
                   11556: ac_cpp='$CPP $CPPFLAGS'
                   11557: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   11558: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   11559: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  11560:
1.25      millert  11561: CC="$lt_save_CC"
1.23      millert  11562:
                   11563:
                   11564:
1.27      millert  11565: # This can be used to rebuild libtool when needed
                   11566: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23      millert  11567:
1.27      millert  11568: # Always use our own libtool.
                   11569: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23      millert  11570:
1.27      millert  11571: # Prevent multiple expansion
1.23      millert  11572:
                   11573:
                   11574:
                   11575:
                   11576:
                   11577:
                   11578:
                   11579:
                   11580:
                   11581:
1.25      millert  11582: if test "$enable_shared" = "no"; then
                   11583:     with_noexec=no
                   11584: else
1.26      millert  11585:     eval _shrext="$shrext_cmds"
1.25      millert  11586: fi
1.27      millert  11587: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
                   11588: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23      millert  11589:
1.27      millert  11590: # Check whether --with-noexec was given.
1.25      millert  11591: if test "${with_noexec+set}" = set; then
1.27      millert  11592:   withval=$with_noexec; case $with_noexec in
1.25      millert  11593:     yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                   11594:                ;;
                   11595:     no)                ;;
                   11596:     *)         ;;
                   11597: esac
                   11598: else
                   11599:   with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27      millert  11600: fi
                   11601:
                   11602: { echo "$as_me:$LINENO: result: $with_noexec" >&5
                   11603: echo "${ECHO_T}$with_noexec" >&6; }
1.36      millert  11604: NOEXECFILE="sudo_noexec$_shrext"
1.25      millert  11605: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23      millert  11606:
1.25      millert  11607: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   11608:     CFLAGS="${CFLAGS} -Wall"
                   11609: fi
1.23      millert  11610:
1.25      millert  11611: # Extract the first word of "uname", so it can be a program name with args.
                   11612: set dummy uname; ac_word=$2
1.27      millert  11613: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11614: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11615: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   11616:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11617: else
                   11618:   if test -n "$UNAMEPROG"; then
                   11619:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   11620: else
                   11621: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11622: for as_dir in $PATH
                   11623: do
                   11624:   IFS=$as_save_IFS
                   11625:   test -z "$as_dir" && as_dir=.
                   11626:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11627:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11628:     ac_cv_prog_UNAMEPROG="uname"
                   11629:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11630:     break 2
                   11631:   fi
                   11632: done
                   11633: done
1.27      millert  11634: IFS=$as_save_IFS
1.23      millert  11635:
1.25      millert  11636: fi
                   11637: fi
                   11638: UNAMEPROG=$ac_cv_prog_UNAMEPROG
                   11639: if test -n "$UNAMEPROG"; then
1.27      millert  11640:   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
                   11641: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25      millert  11642: else
1.27      millert  11643:   { echo "$as_me:$LINENO: result: no" >&5
                   11644: echo "${ECHO_T}no" >&6; }
1.25      millert  11645: fi
1.23      millert  11646:
1.27      millert  11647:
1.25      millert  11648: # Extract the first word of "tr", so it can be a program name with args.
                   11649: set dummy tr; ac_word=$2
1.27      millert  11650: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11651: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11652: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   11653:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11654: else
                   11655:   if test -n "$TRPROG"; then
                   11656:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   11657: else
                   11658: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11659: for as_dir in $PATH
                   11660: do
                   11661:   IFS=$as_save_IFS
                   11662:   test -z "$as_dir" && as_dir=.
                   11663:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11664:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11665:     ac_cv_prog_TRPROG="tr"
                   11666:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11667:     break 2
                   11668:   fi
                   11669: done
                   11670: done
1.27      millert  11671: IFS=$as_save_IFS
1.23      millert  11672:
1.25      millert  11673: fi
                   11674: fi
                   11675: TRPROG=$ac_cv_prog_TRPROG
                   11676: if test -n "$TRPROG"; then
1.27      millert  11677:   { echo "$as_me:$LINENO: result: $TRPROG" >&5
                   11678: echo "${ECHO_T}$TRPROG" >&6; }
1.25      millert  11679: else
1.27      millert  11680:   { echo "$as_me:$LINENO: result: no" >&5
                   11681: echo "${ECHO_T}no" >&6; }
1.25      millert  11682: fi
1.23      millert  11683:
1.27      millert  11684:
1.25      millert  11685: # Extract the first word of "nroff", so it can be a program name with args.
                   11686: set dummy nroff; ac_word=$2
1.27      millert  11687: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11689: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   11690:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11691: else
                   11692:   if test -n "$NROFFPROG"; then
                   11693:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   11694: else
                   11695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11696: for as_dir in $PATH
                   11697: do
                   11698:   IFS=$as_save_IFS
                   11699:   test -z "$as_dir" && as_dir=.
                   11700:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11701:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11702:     ac_cv_prog_NROFFPROG="nroff"
                   11703:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11704:     break 2
                   11705:   fi
                   11706: done
                   11707: done
1.27      millert  11708: IFS=$as_save_IFS
1.23      millert  11709:
1.25      millert  11710: fi
                   11711: fi
                   11712: NROFFPROG=$ac_cv_prog_NROFFPROG
                   11713: if test -n "$NROFFPROG"; then
1.27      millert  11714:   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
                   11715: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25      millert  11716: else
1.27      millert  11717:   { echo "$as_me:$LINENO: result: no" >&5
                   11718: echo "${ECHO_T}no" >&6; }
1.25      millert  11719: fi
1.23      millert  11720:
1.27      millert  11721:
1.25      millert  11722: if test -z "$NROFFPROG"; then
                   11723:     MANTYPE="cat"
                   11724:     mansrcdir='$(srcdir)'
                   11725: fi
1.23      millert  11726:
1.25      millert  11727: if test -n "$sudo_cv_prev_host"; then
                   11728:     if test "$sudo_cv_prev_host" != "$host"; then
                   11729:        { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
                   11730: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
                   11731:    { (exit 1); exit 1; }; }
                   11732:     else
1.27      millert  11733:        { echo "$as_me:$LINENO: checking previous host type" >&5
                   11734: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25      millert  11735:        if test "${sudo_cv_prev_host+set}" = set; then
                   11736:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11737: else
                   11738:   sudo_cv_prev_host="$host"
                   11739: fi
1.23      millert  11740:
1.27      millert  11741:        { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
                   11742: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25      millert  11743:     fi
                   11744: else
                   11745:     # this will produce no output since there is no cached value
                   11746:     if test "${sudo_cv_prev_host+set}" = set; then
                   11747:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11748: else
                   11749:   sudo_cv_prev_host="$host"
                   11750: fi
1.23      millert  11751:
1.25      millert  11752: fi
1.23      millert  11753:
1.25      millert  11754: if test -n "$host_os"; then
                   11755:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   11756:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   11757:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   11758: else
                   11759:     OS="unknown"
                   11760:     OSREV=0
                   11761:     OSMAJOR=0
                   11762: fi
1.23      millert  11763:
1.25      millert  11764: case "$host" in
                   11765:     *-*-sunos4*)
                   11766:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   11767:                BROKEN_GETCWD=1
1.23      millert  11768:
1.25      millert  11769:                # system headers lack prototypes but gcc helps...
                   11770:                if test -n "$GCC"; then
                   11771:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   11772:                fi
1.23      millert  11773:
1.25      millert  11774:                shadow_funcs="getpwanam issecure"
                   11775:                ;;
                   11776:     *-*-solaris2*)
                   11777:                # To get the crypt(3) prototype (so we pass -Wall)
                   11778:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   11779:                # AFS support needs -lucb
                   11780:                if test "$with_AFS" = "yes"; then
                   11781:                    AFS_LIBS="-lc -lucb"
                   11782:                fi
                   11783:                : ${mansectsu='1m'}
                   11784:                : ${mansectform='4'}
                   11785:                : ${with_rpath='yes'}
1.27      millert  11786:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11787:                ;;
                   11788:     *-*-aix*)
                   11789:                # To get all prototypes (so we pass -Wall)
                   11790:                OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
                   11791:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   11792:                if test X"$with_blibpath" != X"no"; then
1.27      millert  11793:                    { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
                   11794: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25      millert  11795:                    O_LDFLAGS="$LDFLAGS"
                   11796:                    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
                   11797:                    cat >conftest.$ac_ext <<_ACEOF
                   11798: /* confdefs.h.  */
                   11799: _ACEOF
                   11800: cat confdefs.h >>conftest.$ac_ext
                   11801: cat >>conftest.$ac_ext <<_ACEOF
                   11802: /* end confdefs.h.  */
1.23      millert  11803:
1.25      millert  11804: int
                   11805: main ()
                   11806: {
1.23      millert  11807:
1.25      millert  11808:   ;
                   11809:   return 0;
                   11810: }
                   11811: _ACEOF
                   11812: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11813: if { (ac_try="$ac_link"
                   11814: case "(($ac_try" in
                   11815:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11816:   *) ac_try_echo=$ac_try;;
                   11817: esac
                   11818: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11819:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11820:   ac_status=$?
                   11821:   grep -v '^ *+' conftest.er1 >conftest.err
                   11822:   rm -f conftest.er1
                   11823:   cat conftest.err >&5
                   11824:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11825:   (exit $ac_status); } && {
                   11826:         test -z "$ac_c_werror_flag" ||
                   11827:         test ! -s conftest.err
                   11828:        } && test -s conftest$ac_exeext &&
                   11829:        $as_test_x conftest$ac_exeext; then
1.23      millert  11830:
1.25      millert  11831:                        if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   11832:                            blibpath="$with_blibpath"
                   11833:                        elif test -n "$GCC"; then
                   11834:                            blibpath="/usr/lib:/lib:/usr/local/lib"
                   11835:                        else
                   11836:                            blibpath="/usr/lib:/lib"
                   11837:                        fi
1.27      millert  11838:                        { echo "$as_me:$LINENO: result: yes" >&5
                   11839: echo "${ECHO_T}yes" >&6; }
1.23      millert  11840:
1.25      millert  11841: else
                   11842:   echo "$as_me: failed program was:" >&5
                   11843: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11844:
1.27      millert  11845:        { echo "$as_me:$LINENO: result: no" >&5
                   11846: echo "${ECHO_T}no" >&6; }
1.25      millert  11847: fi
1.27      millert  11848:
                   11849: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11850:       conftest$ac_exeext conftest.$ac_ext
                   11851:                fi
                   11852:                LDFLAGS="$O_LDFLAGS"
1.23      millert  11853:
1.27      millert  11854:                # Use authenticate(3) as the default authentication method
1.25      millert  11855:                if test X"$with_aixauth" = X""; then
1.23      millert  11856:
1.25      millert  11857: for ac_func in authenticate
                   11858: do
                   11859: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  11860: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11861: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   11862: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  11863:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11864: else
                   11865:   cat >conftest.$ac_ext <<_ACEOF
                   11866: /* confdefs.h.  */
                   11867: _ACEOF
                   11868: cat confdefs.h >>conftest.$ac_ext
                   11869: cat >>conftest.$ac_ext <<_ACEOF
                   11870: /* end confdefs.h.  */
                   11871: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   11872:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   11873: #define $ac_func innocuous_$ac_func
1.23      millert  11874:
1.25      millert  11875: /* System header to define __stub macros and hopefully few prototypes,
                   11876:     which can conflict with char $ac_func (); below.
                   11877:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   11878:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  11879:
1.25      millert  11880: #ifdef __STDC__
                   11881: # include <limits.h>
                   11882: #else
                   11883: # include <assert.h>
                   11884: #endif
1.23      millert  11885:
1.25      millert  11886: #undef $ac_func
1.23      millert  11887:
1.27      millert  11888: /* Override any GCC internal prototype to avoid an error.
                   11889:    Use char because int might match the return type of a GCC
                   11890:    builtin and then its argument prototype would still apply.  */
1.25      millert  11891: #ifdef __cplusplus
                   11892: extern "C"
                   11893: #endif
                   11894: char $ac_func ();
                   11895: /* The GNU C library defines this for functions which it implements
                   11896:     to always fail with ENOSYS.  Some functions are actually named
                   11897:     something starting with __ and the normal name is an alias.  */
1.27      millert  11898: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  11899: choke me
                   11900: #endif
1.23      millert  11901:
1.25      millert  11902: int
                   11903: main ()
                   11904: {
1.27      millert  11905: return $ac_func ();
1.25      millert  11906:   ;
                   11907:   return 0;
                   11908: }
                   11909: _ACEOF
                   11910: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11911: if { (ac_try="$ac_link"
                   11912: case "(($ac_try" in
                   11913:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11914:   *) ac_try_echo=$ac_try;;
                   11915: esac
                   11916: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11917:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11918:   ac_status=$?
                   11919:   grep -v '^ *+' conftest.er1 >conftest.err
                   11920:   rm -f conftest.er1
                   11921:   cat conftest.err >&5
                   11922:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11923:   (exit $ac_status); } && {
                   11924:         test -z "$ac_c_werror_flag" ||
                   11925:         test ! -s conftest.err
                   11926:        } && test -s conftest$ac_exeext &&
                   11927:        $as_test_x conftest$ac_exeext; then
1.25      millert  11928:   eval "$as_ac_var=yes"
                   11929: else
                   11930:   echo "$as_me: failed program was:" >&5
                   11931: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11932:
1.27      millert  11933:        eval "$as_ac_var=no"
1.25      millert  11934: fi
1.27      millert  11935:
                   11936: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11937:       conftest$ac_exeext conftest.$ac_ext
                   11938: fi
1.27      millert  11939: ac_res=`eval echo '${'$as_ac_var'}'`
                   11940:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   11941: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  11942: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   11943:   cat >>confdefs.h <<_ACEOF
                   11944: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   11945: _ACEOF
1.27      millert  11946:  AUTH_EXCL_DEF="AIX_AUTH"
1.25      millert  11947: fi
                   11948: done
1.23      millert  11949:
1.25      millert  11950:                fi
1.37    ! millert  11951:
        !          11952:                # AIX-specific functions
        !          11953:
        !          11954: for ac_func in getuserattr
        !          11955: do
        !          11956: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          11957: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          11958: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          11959: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
        !          11960:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          11961: else
        !          11962:   cat >conftest.$ac_ext <<_ACEOF
        !          11963: /* confdefs.h.  */
        !          11964: _ACEOF
        !          11965: cat confdefs.h >>conftest.$ac_ext
        !          11966: cat >>conftest.$ac_ext <<_ACEOF
        !          11967: /* end confdefs.h.  */
        !          11968: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          11969:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          11970: #define $ac_func innocuous_$ac_func
        !          11971:
        !          11972: /* System header to define __stub macros and hopefully few prototypes,
        !          11973:     which can conflict with char $ac_func (); below.
        !          11974:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          11975:     <limits.h> exists even on freestanding compilers.  */
        !          11976:
        !          11977: #ifdef __STDC__
        !          11978: # include <limits.h>
        !          11979: #else
        !          11980: # include <assert.h>
        !          11981: #endif
        !          11982:
        !          11983: #undef $ac_func
        !          11984:
        !          11985: /* Override any GCC internal prototype to avoid an error.
        !          11986:    Use char because int might match the return type of a GCC
        !          11987:    builtin and then its argument prototype would still apply.  */
        !          11988: #ifdef __cplusplus
        !          11989: extern "C"
        !          11990: #endif
        !          11991: char $ac_func ();
        !          11992: /* The GNU C library defines this for functions which it implements
        !          11993:     to always fail with ENOSYS.  Some functions are actually named
        !          11994:     something starting with __ and the normal name is an alias.  */
        !          11995: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          11996: choke me
        !          11997: #endif
        !          11998:
        !          11999: int
        !          12000: main ()
        !          12001: {
        !          12002: return $ac_func ();
        !          12003:   ;
        !          12004:   return 0;
        !          12005: }
        !          12006: _ACEOF
        !          12007: rm -f conftest.$ac_objext conftest$ac_exeext
        !          12008: if { (ac_try="$ac_link"
        !          12009: case "(($ac_try" in
        !          12010:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          12011:   *) ac_try_echo=$ac_try;;
        !          12012: esac
        !          12013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          12014:   (eval "$ac_link") 2>conftest.er1
        !          12015:   ac_status=$?
        !          12016:   grep -v '^ *+' conftest.er1 >conftest.err
        !          12017:   rm -f conftest.er1
        !          12018:   cat conftest.err >&5
        !          12019:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          12020:   (exit $ac_status); } && {
        !          12021:         test -z "$ac_c_werror_flag" ||
        !          12022:         test ! -s conftest.err
        !          12023:        } && test -s conftest$ac_exeext &&
        !          12024:        $as_test_x conftest$ac_exeext; then
        !          12025:   eval "$as_ac_var=yes"
        !          12026: else
        !          12027:   echo "$as_me: failed program was:" >&5
        !          12028: sed 's/^/| /' conftest.$ac_ext >&5
        !          12029:
        !          12030:        eval "$as_ac_var=no"
        !          12031: fi
        !          12032:
        !          12033: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          12034:       conftest$ac_exeext conftest.$ac_ext
        !          12035: fi
        !          12036: ac_res=`eval echo '${'$as_ac_var'}'`
        !          12037:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          12038: echo "${ECHO_T}$ac_res" >&6; }
        !          12039: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          12040:   cat >>confdefs.h <<_ACEOF
        !          12041: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          12042: _ACEOF
        !          12043:
        !          12044: fi
        !          12045: done
        !          12046:
        !          12047:                SUDO_OBJS="$SUDO_OBJS aix.o"
1.25      millert  12048:                ;;
                   12049:     *-*-hiuxmpp*)
                   12050:                : ${mansectsu='1m'}
                   12051:                : ${mansectform='4'}
                   12052:                ;;
                   12053:     *-*-hpux*)
                   12054:                # AFS support needs -lBSD
                   12055:                if test "$with_AFS" = "yes"; then
                   12056:                    AFS_LIBS="-lc -lBSD"
                   12057:                fi
                   12058:                : ${mansectsu='1m'}
                   12059:                : ${mansectform='4'}
1.23      millert  12060:
1.25      millert  12061:                case "$host" in
                   12062:                        *-*-hpux1-8.*)
                   12063:                            cat >>confdefs.h <<\_ACEOF
                   12064: #define BROKEN_SYSLOG 1
                   12065: _ACEOF
1.23      millert  12066:
                   12067:
1.25      millert  12068:                            # Not sure if setuid binaries are safe in < 9.x
                   12069:                            if test -n "$GCC"; then
                   12070:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   12071:                            else
                   12072:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   12073:                            fi
                   12074:                        ;;
                   12075:                        *-*-hpux9.*)
                   12076:                            cat >>confdefs.h <<\_ACEOF
                   12077: #define BROKEN_SYSLOG 1
                   12078: _ACEOF
1.23      millert  12079:
                   12080:
1.25      millert  12081:                            shadow_funcs="getspwuid"
1.23      millert  12082:
1.25      millert  12083:                            # DCE support (requires ANSI C compiler)
                   12084:                            if test "$with_DCE" = "yes"; then
                   12085:                                # order of libs in 9.X is important. -lc_r must be last
                   12086:                                SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   12087:                                LIBS="${LIBS} -ldce -lM -lc_r"
                   12088:                                CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
                   12089:                            fi
                   12090:                        ;;
                   12091:                        *-*-hpux10.*)
                   12092:                            shadow_funcs="getprpwnam iscomsec"
                   12093:                            shadow_libs="-lsec"
                   12094:                        ;;
                   12095:                        *)
                   12096:                            shadow_funcs="getspnam iscomsec"
                   12097:                            shadow_libs="-lsec"
1.27      millert  12098:                            test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12099:                        ;;
                   12100:                esac
                   12101:                ;;
                   12102:     *-dec-osf*)
                   12103:                # ignore envariables wrt dynamic lib path
                   12104:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23      millert  12105:
1.28      millert  12106:                : ${CHECKSIA='true'}
1.27      millert  12107:                { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
                   12108: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
                   12109:                # Check whether --enable-sia was given.
1.25      millert  12110: if test "${enable_sia+set}" = set; then
1.27      millert  12111:   enableval=$enable_sia;  case "$enableval" in
                   12112:                    yes)        { echo "$as_me:$LINENO: result: no" >&5
                   12113: echo "${ECHO_T}no" >&6; }
1.28      millert  12114:                                CHECKSIA=true
1.25      millert  12115:                                ;;
1.27      millert  12116:                    no)         { echo "$as_me:$LINENO: result: yes" >&5
                   12117: echo "${ECHO_T}yes" >&6; }
1.25      millert  12118:                                CHECKSIA=false
                   12119:                                ;;
1.27      millert  12120:                    *)          { echo "$as_me:$LINENO: result: no" >&5
                   12121: echo "${ECHO_T}no" >&6; }
1.25      millert  12122:                                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   12123: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   12124:                                ;;
                   12125:                  esac
1.23      millert  12126:
1.25      millert  12127: else
1.27      millert  12128:   { echo "$as_me:$LINENO: result: no" >&5
                   12129: echo "${ECHO_T}no" >&6; }
                   12130: fi
                   12131:
1.23      millert  12132:
1.25      millert  12133:                shadow_funcs="getprpwnam dispcrypt"
                   12134:                # OSF/1 4.x and higher need -ldb too
                   12135:                if test $OSMAJOR -lt 4; then
                   12136:                    shadow_libs="-lsecurity -laud -lm"
                   12137:                else
                   12138:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   12139:                fi
1.23      millert  12140:
1.25      millert  12141:                # use SIA by default, if we have it
1.27      millert  12142:                test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23      millert  12143:
1.27      millert  12144:                #
                   12145:                # Some versions of Digital Unix ship with a broken
                   12146:                # copy of prot.h, which we need for shadow passwords.
                   12147:                # XXX - make should remove this as part of distclean
                   12148:                #
                   12149:                { echo "$as_me:$LINENO: checking for broken prot.h" >&5
                   12150: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
                   12151:                cat >conftest.$ac_ext <<_ACEOF
1.25      millert  12152: /* confdefs.h.  */
                   12153: _ACEOF
                   12154: cat confdefs.h >>conftest.$ac_ext
                   12155: cat >>conftest.$ac_ext <<_ACEOF
                   12156: /* end confdefs.h.  */
1.23      millert  12157:
1.25      millert  12158: #include <sys/types.h>
                   12159: #include <sys/security.h>
                   12160: #include <prot.h>
1.23      millert  12161:
1.25      millert  12162: int
                   12163: main ()
                   12164: {
                   12165: exit(0);
                   12166:   ;
                   12167:   return 0;
                   12168: }
                   12169: _ACEOF
                   12170: rm -f conftest.$ac_objext
1.27      millert  12171: if { (ac_try="$ac_compile"
                   12172: case "(($ac_try" in
                   12173:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12174:   *) ac_try_echo=$ac_try;;
                   12175: esac
                   12176: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12177:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12178:   ac_status=$?
                   12179:   grep -v '^ *+' conftest.er1 >conftest.err
                   12180:   rm -f conftest.er1
                   12181:   cat conftest.err >&5
                   12182:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12183:   (exit $ac_status); } && {
                   12184:         test -z "$ac_c_werror_flag" ||
                   12185:         test ! -s conftest.err
                   12186:        } && test -s conftest.$ac_objext; then
                   12187:   { echo "$as_me:$LINENO: result: no" >&5
                   12188: echo "${ECHO_T}no" >&6; }
1.25      millert  12189: else
                   12190:   echo "$as_me: failed program was:" >&5
                   12191: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12192:
1.27      millert  12193:        { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
                   12194: echo "${ECHO_T}yes, fixing locally" >&6; }
                   12195:                sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23      millert  12196:
1.25      millert  12197: fi
1.27      millert  12198:
                   12199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12200:                : ${mansectsu='8'}
                   12201:                : ${mansectform='4'}
                   12202:                ;;
                   12203:     *-*-irix*)
                   12204:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   12205:                if test -z "$NROFFPROG"; then
                   12206:                    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)'
                   12207:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12208:                        if test -d /usr/share/catman/local; then
                   12209:                            mandir="/usr/share/catman/local"
                   12210:                        else
                   12211:                            mandir="/usr/catman/local"
                   12212:                        fi
                   12213:                    fi
                   12214:                else
                   12215:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12216:                        if test -d "/usr/share/man/local"; then
                   12217:                            mandir="/usr/share/man/local"
                   12218:                        else
                   12219:                            mandir="/usr/man/local"
                   12220:                        fi
                   12221:                    fi
                   12222:                fi
                   12223:                # IRIX <= 4 needs -lsun
                   12224:                if test "$OSMAJOR" -le 4; then
1.27      millert  12225:                    { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
                   12226: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25      millert  12227: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   12228:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12229: else
                   12230:   ac_check_lib_save_LIBS=$LIBS
                   12231: LIBS="-lsun  $LIBS"
                   12232: cat >conftest.$ac_ext <<_ACEOF
                   12233: /* confdefs.h.  */
                   12234: _ACEOF
                   12235: cat confdefs.h >>conftest.$ac_ext
                   12236: cat >>conftest.$ac_ext <<_ACEOF
                   12237: /* end confdefs.h.  */
1.23      millert  12238:
1.27      millert  12239: /* Override any GCC internal prototype to avoid an error.
                   12240:    Use char because int might match the return type of a GCC
                   12241:    builtin and then its argument prototype would still apply.  */
1.25      millert  12242: #ifdef __cplusplus
                   12243: extern "C"
                   12244: #endif
                   12245: char getpwnam ();
                   12246: int
                   12247: main ()
                   12248: {
1.27      millert  12249: return getpwnam ();
1.25      millert  12250:   ;
                   12251:   return 0;
                   12252: }
                   12253: _ACEOF
                   12254: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12255: if { (ac_try="$ac_link"
                   12256: case "(($ac_try" in
                   12257:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12258:   *) ac_try_echo=$ac_try;;
                   12259: esac
                   12260: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12261:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12262:   ac_status=$?
                   12263:   grep -v '^ *+' conftest.er1 >conftest.err
                   12264:   rm -f conftest.er1
                   12265:   cat conftest.err >&5
                   12266:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12267:   (exit $ac_status); } && {
                   12268:         test -z "$ac_c_werror_flag" ||
                   12269:         test ! -s conftest.err
                   12270:        } && test -s conftest$ac_exeext &&
                   12271:        $as_test_x conftest$ac_exeext; then
1.25      millert  12272:   ac_cv_lib_sun_getpwnam=yes
                   12273: else
                   12274:   echo "$as_me: failed program was:" >&5
                   12275: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12276:
1.27      millert  12277:        ac_cv_lib_sun_getpwnam=no
1.25      millert  12278: fi
1.27      millert  12279:
                   12280: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12281:       conftest$ac_exeext conftest.$ac_ext
                   12282: LIBS=$ac_check_lib_save_LIBS
                   12283: fi
1.27      millert  12284: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
                   12285: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25      millert  12286: if test $ac_cv_lib_sun_getpwnam = yes; then
                   12287:   LIBS="${LIBS} -lsun"
                   12288: fi
1.23      millert  12289:
1.25      millert  12290:                fi
                   12291:                : ${mansectsu='1m'}
                   12292:                : ${mansectform='4'}
                   12293:                ;;
1.36      millert  12294:     *-*-linux*|*-*-k*bsd*-gnu)
1.25      millert  12295:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12296:                # Some Linux versions need to link with -lshadow
                   12297:                shadow_funcs="getspnam"
                   12298:                shadow_libs_optional="-lshadow"
1.27      millert  12299:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12300:                ;;
                   12301:     *-convex-bsd*)
                   12302:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   12303:                if test -z "$GCC"; then
                   12304:                    CFLAGS="${CFLAGS} -D__STDC__"
                   12305:                fi
1.23      millert  12306:
1.25      millert  12307:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   12308:                shadow_funcs="getprpwnam"
                   12309:                shadow_libs="-lprot"
                   12310:                ;;
                   12311:     *-*-ultrix*)
                   12312:                OS="ultrix"
                   12313:                shadow_funcs="getauthuid"
                   12314:                shadow_libs="-lauth"
                   12315:                ;;
                   12316:     *-*-riscos*)
                   12317:                LIBS="${LIBS} -lsun -lbsd"
                   12318:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   12319:                OSDEFS="${OSDEFS} -D_MIPS"
                   12320:                : ${mansectsu='1m'}
                   12321:                : ${mansectform='4'}
                   12322:                ;;
                   12323:     *-*-isc*)
                   12324:                OSDEFS="${OSDEFS} -D_ISC"
                   12325:                LIB_CRYPT=1
                   12326:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   12327:                LIBS="${LIBS} -lcrypt"
1.23      millert  12328:
1.25      millert  12329:                shadow_funcs="getspnam"
                   12330:                shadow_libs="-lsec"
1.23      millert  12331:
1.25      millert  12332:                : ${mansectsu='1m'}
                   12333:                : ${mansectform='4'}
                   12334:                ;;
                   12335:     *-*-sco*|*-sco-*)
                   12336:                shadow_funcs="getprpwnam"
                   12337:                shadow_libs="-lprot -lx"
                   12338:                : ${mansectsu='1m'}
                   12339:                : ${mansectform='4'}
                   12340:                ;;
                   12341:     m88k-motorola-sysv*)
                   12342:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   12343:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   12344:                : ${mansectsu='1m'}
                   12345:                : ${mansectform='4'}
                   12346:                ;;
                   12347:     *-sequent-sysv*)
                   12348:                shadow_funcs="getspnam"
                   12349:                shadow_libs="-lsec"
                   12350:                : ${mansectsu='1m'}
                   12351:                : ${mansectform='4'}
                   12352:                : ${with_rpath='yes'}
                   12353:                ;;
                   12354:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.27      millert  12355:                { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
                   12356: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25      millert  12357: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   12358:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12359: else
                   12360:   ac_check_lib_save_LIBS=$LIBS
                   12361: LIBS="-lc89  $LIBS"
                   12362: cat >conftest.$ac_ext <<_ACEOF
                   12363: /* confdefs.h.  */
                   12364: _ACEOF
                   12365: cat confdefs.h >>conftest.$ac_ext
                   12366: cat >>conftest.$ac_ext <<_ACEOF
                   12367: /* end confdefs.h.  */
1.23      millert  12368:
1.27      millert  12369: /* Override any GCC internal prototype to avoid an error.
                   12370:    Use char because int might match the return type of a GCC
                   12371:    builtin and then its argument prototype would still apply.  */
1.25      millert  12372: #ifdef __cplusplus
                   12373: extern "C"
                   12374: #endif
                   12375: char strcasecmp ();
                   12376: int
                   12377: main ()
                   12378: {
1.27      millert  12379: return strcasecmp ();
1.25      millert  12380:   ;
                   12381:   return 0;
                   12382: }
                   12383: _ACEOF
                   12384: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12385: if { (ac_try="$ac_link"
                   12386: case "(($ac_try" in
                   12387:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12388:   *) ac_try_echo=$ac_try;;
                   12389: esac
                   12390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12391:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12392:   ac_status=$?
                   12393:   grep -v '^ *+' conftest.er1 >conftest.err
                   12394:   rm -f conftest.er1
                   12395:   cat conftest.err >&5
                   12396:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12397:   (exit $ac_status); } && {
                   12398:         test -z "$ac_c_werror_flag" ||
                   12399:         test ! -s conftest.err
                   12400:        } && test -s conftest$ac_exeext &&
                   12401:        $as_test_x conftest$ac_exeext; then
1.25      millert  12402:   ac_cv_lib_c89_strcasecmp=yes
                   12403: else
                   12404:   echo "$as_me: failed program was:" >&5
                   12405: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12406:
1.27      millert  12407:        ac_cv_lib_c89_strcasecmp=no
1.25      millert  12408: fi
1.27      millert  12409:
                   12410: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12411:       conftest$ac_exeext conftest.$ac_ext
                   12412: LIBS=$ac_check_lib_save_LIBS
                   12413: fi
1.27      millert  12414: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
                   12415: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25      millert  12416: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   12417:   cat >>confdefs.h <<\_ACEOF
                   12418: #define HAVE_STRCASECMP 1
                   12419: _ACEOF
                   12420:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   12421: fi
1.23      millert  12422:
1.25      millert  12423:                : ${mansectsu='1m'}
                   12424:                : ${mansectform='4'}
                   12425:                : ${with_rpath='yes'}
                   12426:                ;;
                   12427:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   12428:                LIBS="${LIBS} -lgen"
                   12429:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   12430:                : ${mansectsu='1m'}
                   12431:                : ${mansectform='4'}
                   12432:                : ${with_rpath='yes'}
                   12433:                ;;
                   12434:     *-*-bsdi*)
                   12435:                SKIP_SETREUID=yes
                   12436:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   12437:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   12438:                    case "$OSMAJOR" in
                   12439:                        2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
                   12440: echo "$as_me: using shlicc as CC" >&6;}
                   12441:                                ac_cv_prog_CC=shlicc
                   12442:                                CC="$ac_cv_prog_CC"
                   12443:                                ;;
                   12444:                    esac
                   12445:                fi
                   12446:                # Check for newer BSD auth API (just check for >= 3.0?)
                   12447:                if test -z "$with_bsdauth"; then
1.23      millert  12448:
1.25      millert  12449: for ac_func in auth_challenge
                   12450: do
                   12451: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  12452: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   12453: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   12454: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  12455:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12456: else
                   12457:   cat >conftest.$ac_ext <<_ACEOF
                   12458: /* confdefs.h.  */
                   12459: _ACEOF
                   12460: cat confdefs.h >>conftest.$ac_ext
                   12461: cat >>conftest.$ac_ext <<_ACEOF
                   12462: /* end confdefs.h.  */
                   12463: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12464:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12465: #define $ac_func innocuous_$ac_func
1.23      millert  12466:
1.25      millert  12467: /* System header to define __stub macros and hopefully few prototypes,
                   12468:     which can conflict with char $ac_func (); below.
                   12469:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12470:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  12471:
1.25      millert  12472: #ifdef __STDC__
                   12473: # include <limits.h>
                   12474: #else
                   12475: # include <assert.h>
                   12476: #endif
1.23      millert  12477:
1.25      millert  12478: #undef $ac_func
1.23      millert  12479:
1.27      millert  12480: /* Override any GCC internal prototype to avoid an error.
                   12481:    Use char because int might match the return type of a GCC
                   12482:    builtin and then its argument prototype would still apply.  */
1.25      millert  12483: #ifdef __cplusplus
                   12484: extern "C"
                   12485: #endif
                   12486: char $ac_func ();
                   12487: /* The GNU C library defines this for functions which it implements
                   12488:     to always fail with ENOSYS.  Some functions are actually named
                   12489:     something starting with __ and the normal name is an alias.  */
1.27      millert  12490: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  12491: choke me
                   12492: #endif
1.23      millert  12493:
1.25      millert  12494: int
                   12495: main ()
                   12496: {
1.27      millert  12497: return $ac_func ();
1.25      millert  12498:   ;
                   12499:   return 0;
                   12500: }
                   12501: _ACEOF
                   12502: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12503: if { (ac_try="$ac_link"
                   12504: case "(($ac_try" in
                   12505:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12506:   *) ac_try_echo=$ac_try;;
                   12507: esac
                   12508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12509:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12510:   ac_status=$?
                   12511:   grep -v '^ *+' conftest.er1 >conftest.err
                   12512:   rm -f conftest.er1
                   12513:   cat conftest.err >&5
                   12514:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12515:   (exit $ac_status); } && {
                   12516:         test -z "$ac_c_werror_flag" ||
                   12517:         test ! -s conftest.err
                   12518:        } && test -s conftest$ac_exeext &&
                   12519:        $as_test_x conftest$ac_exeext; then
1.25      millert  12520:   eval "$as_ac_var=yes"
                   12521: else
                   12522:   echo "$as_me: failed program was:" >&5
                   12523: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12524:
1.27      millert  12525:        eval "$as_ac_var=no"
1.25      millert  12526: fi
1.27      millert  12527:
                   12528: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12529:       conftest$ac_exeext conftest.$ac_ext
                   12530: fi
1.27      millert  12531: ac_res=`eval echo '${'$as_ac_var'}'`
                   12532:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12533: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12534: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12535:   cat >>confdefs.h <<_ACEOF
                   12536: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12537: _ACEOF
1.27      millert  12538:  AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12539: fi
                   12540: done
1.23      millert  12541:
1.25      millert  12542:                fi
                   12543:                ;;
                   12544:     *-*-freebsd*)
                   12545:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   12546:                # backported to 2.0.5.  We just take 2.1 and above...
                   12547:                case "$OSREV" in
                   12548:                0.*|1.*|2.0*)
                   12549:                    SKIP_SETREUID=yes
                   12550:                    ;;
                   12551:                esac
                   12552:                if test "$with_skey" = "yes"; then
                   12553:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12554:                fi
1.27      millert  12555:                CHECKSHADOW="false"
                   12556:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12557:                : ${with_logincap='maybe'}
                   12558:                ;;
                   12559:     *-*-*openbsd*)
                   12560:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   12561:                # we will use setreuid(2) instead.
                   12562:                SKIP_SETREUID=yes
1.27      millert  12563:                CHECKSHADOW="false"
1.25      millert  12564:                # OpenBSD >= 3.0 supports BSD auth
                   12565:                if test -z "$with_bsdauth"; then
                   12566:                    case "$OSREV" in
                   12567:                    0-2.*)
                   12568:                        ;;
                   12569:                    *)
1.27      millert  12570:                        AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12571:                        ;;
                   12572:                    esac
                   12573:                fi
                   12574:                : ${with_logincap='maybe'}
                   12575:                ;;
                   12576:     *-*-*netbsd*)
                   12577:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   12578:                case "$OSREV" in
                   12579:                0.9*|1.012*|1.3|1.3.1)
                   12580:                    SKIP_SETREUID=yes
                   12581:                    ;;
                   12582:                esac
1.27      millert  12583:                CHECKSHADOW="false"
                   12584:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12585:                : ${with_logincap='maybe'}
                   12586:                ;;
                   12587:     *-*-dragonfly*)
                   12588:                if test "$with_skey" = "yes"; then
                   12589:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12590:                fi
1.27      millert  12591:                CHECKSHADOW="false"
                   12592:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12593:                : ${with_logincap='yes'}
                   12594:                ;;
                   12595:     *-*-*bsd*)
1.27      millert  12596:                CHECKSHADOW="false"
1.25      millert  12597:                ;;
                   12598:     *-*-darwin*)
                   12599:                SKIP_SETREUID=yes
1.27      millert  12600:                CHECKSHADOW="false"
                   12601:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12602:                : ${with_logincap='yes'}
                   12603:                ;;
                   12604:     *-*-nextstep*)
                   12605:                # lockf() on is broken on the NeXT -- use flock instead
                   12606:                ac_cv_func_lockf=no
                   12607:                ac_cv_func_flock=yes
                   12608:                ;;
                   12609:     *-*-*sysv4*)
                   12610:                : ${mansectsu='1m'}
                   12611:                : ${mansectform='4'}
                   12612:                : ${with_rpath='yes'}
                   12613:                ;;
                   12614:     *-*-sysv*)
                   12615:                : ${mansectsu='1m'}
                   12616:                : ${mansectform='4'}
1.27      millert  12617:                ;;
                   12618:     *-gnu*)
                   12619:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12620:                ;;
                   12621: esac
                   12622:
                   12623: AUTH_REG=${AUTH_REG# }
                   12624: AUTH_EXCL=${AUTH_EXCL# }
                   12625: if test -n "$AUTH_EXCL"; then
                   12626:     set -- $AUTH_EXCL
                   12627:     if test $# != 1; then
                   12628:        { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
                   12629: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
                   12630:    { (exit 1); exit 1; }; }
                   12631:     fi
                   12632:     if test -n "$AUTH_REG"; then
                   12633:        { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
                   12634: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
                   12635:    { (exit 1); exit 1; }; }
                   12636:     fi
                   12637: fi
                   12638: if test X"${with_skey}${with_opie}" = X"yesyes"; then
                   12639:     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
                   12640: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   12641:    { (exit 1); exit 1; }; }
                   12642: fi
1.23      millert  12643:
1.25      millert  12644: : ${mansectsu='8'}
                   12645: : ${mansectform='5'}
1.23      millert  12646:
1.25      millert  12647: if test -n "$with_libpath"; then
                   12648:     for i in ${with_libpath}; do
1.23      millert  12649:
1.25      millert  12650:     if test X"$with_rpath" = X"yes"; then
                   12651:        LDFLAGS="${LDFLAGS} -L$i -R$i"
                   12652:     else
                   12653:        LDFLAGS="${LDFLAGS} -L$i"
                   12654:     fi
                   12655:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   12656:        blibpath_add="${blibpath_add}:$i"
                   12657:     fi
1.23      millert  12658:
1.25      millert  12659:     done
                   12660: fi
                   12661: if test -n "$with_libraries"; then
                   12662:     for i in ${with_libraries}; do
                   12663:        case $i in
                   12664:            -l*)        ;;
                   12665:            *.a)        ;;
                   12666:            *.o)        ;;
                   12667:            *)  i="-l${i}";;
                   12668:        esac
                   12669:        LIBS="${LIBS} ${i}"
                   12670:     done
                   12671: fi
1.23      millert  12672:
1.25      millert  12673: if test $ac_cv_c_compiler_gnu = yes; then
1.27      millert  12674:     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
                   12675: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25      millert  12676: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   12677:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12678: else
                   12679:     ac_pattern="Autoconf.*'x'"
                   12680:   cat >conftest.$ac_ext <<_ACEOF
                   12681: /* confdefs.h.  */
                   12682: _ACEOF
                   12683: cat confdefs.h >>conftest.$ac_ext
                   12684: cat >>conftest.$ac_ext <<_ACEOF
                   12685: /* end confdefs.h.  */
                   12686: #include <sgtty.h>
                   12687: Autoconf TIOCGETP
                   12688: _ACEOF
                   12689: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12690:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12691:   ac_cv_prog_gcc_traditional=yes
                   12692: else
                   12693:   ac_cv_prog_gcc_traditional=no
                   12694: fi
                   12695: rm -f conftest*
1.23      millert  12696:
                   12697:
1.25      millert  12698:   if test $ac_cv_prog_gcc_traditional = no; then
                   12699:     cat >conftest.$ac_ext <<_ACEOF
                   12700: /* confdefs.h.  */
                   12701: _ACEOF
                   12702: cat confdefs.h >>conftest.$ac_ext
                   12703: cat >>conftest.$ac_ext <<_ACEOF
                   12704: /* end confdefs.h.  */
                   12705: #include <termio.h>
                   12706: Autoconf TCGETA
                   12707: _ACEOF
                   12708: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12709:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12710:   ac_cv_prog_gcc_traditional=yes
                   12711: fi
                   12712: rm -f conftest*
1.23      millert  12713:
1.25      millert  12714:   fi
                   12715: fi
1.27      millert  12716: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
                   12717: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25      millert  12718:   if test $ac_cv_prog_gcc_traditional = yes; then
                   12719:     CC="$CC -traditional"
                   12720:   fi
                   12721: fi
1.23      millert  12722:
1.27      millert  12723: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   12724: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25      millert  12725: if test "${ac_cv_c_const+set}" = set; then
                   12726:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12727: else
                   12728:   cat >conftest.$ac_ext <<_ACEOF
                   12729: /* confdefs.h.  */
                   12730: _ACEOF
                   12731: cat confdefs.h >>conftest.$ac_ext
                   12732: cat >>conftest.$ac_ext <<_ACEOF
                   12733: /* end confdefs.h.  */
1.23      millert  12734:
1.25      millert  12735: int
                   12736: main ()
                   12737: {
                   12738: /* FIXME: Include the comments suggested by Paul. */
                   12739: #ifndef __cplusplus
                   12740:   /* Ultrix mips cc rejects this.  */
                   12741:   typedef int charset[2];
1.27      millert  12742:   const charset cs;
1.25      millert  12743:   /* SunOS 4.1.1 cc rejects this.  */
1.27      millert  12744:   char const *const *pcpcc;
                   12745:   char **ppc;
1.25      millert  12746:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   12747:   struct point {int x, y;};
                   12748:   static struct point const zero = {0,0};
                   12749:   /* AIX XL C 1.02.0.0 rejects this.
                   12750:      It does not let you subtract one const X* pointer from another in
                   12751:      an arm of an if-expression whose if-part is not a constant
                   12752:      expression */
                   12753:   const char *g = "string";
1.27      millert  12754:   pcpcc = &g + (g ? g-g : 0);
1.25      millert  12755:   /* HPUX 7.0 cc rejects these. */
1.27      millert  12756:   ++pcpcc;
                   12757:   ppc = (char**) pcpcc;
                   12758:   pcpcc = (char const *const *) ppc;
1.25      millert  12759:   { /* SCO 3.2v4 cc rejects this.  */
                   12760:     char *t;
                   12761:     char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23      millert  12762:
1.25      millert  12763:     *t++ = 0;
1.27      millert  12764:     if (s) return 0;
1.25      millert  12765:   }
                   12766:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   12767:     int x[] = {25, 17};
                   12768:     const int *foo = &x[0];
                   12769:     ++foo;
                   12770:   }
                   12771:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   12772:     typedef const int *iptr;
                   12773:     iptr p = 0;
                   12774:     ++p;
                   12775:   }
                   12776:   { /* AIX XL C 1.02.0.0 rejects this saying
                   12777:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   12778:     struct s { int j; const int *ap[3]; };
                   12779:     struct s *b; b->j = 5;
                   12780:   }
                   12781:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   12782:     const int foo = 10;
1.27      millert  12783:     if (!foo) return 0;
1.25      millert  12784:   }
1.27      millert  12785:   return !cs[0] && !zero.x;
1.25      millert  12786: #endif
1.23      millert  12787:
1.25      millert  12788:   ;
                   12789:   return 0;
                   12790: }
                   12791: _ACEOF
                   12792: rm -f conftest.$ac_objext
1.27      millert  12793: if { (ac_try="$ac_compile"
                   12794: case "(($ac_try" in
                   12795:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12796:   *) ac_try_echo=$ac_try;;
                   12797: esac
                   12798: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12799:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12800:   ac_status=$?
                   12801:   grep -v '^ *+' conftest.er1 >conftest.err
                   12802:   rm -f conftest.er1
                   12803:   cat conftest.err >&5
                   12804:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12805:   (exit $ac_status); } && {
                   12806:         test -z "$ac_c_werror_flag" ||
                   12807:         test ! -s conftest.err
                   12808:        } && test -s conftest.$ac_objext; then
1.25      millert  12809:   ac_cv_c_const=yes
                   12810: else
                   12811:   echo "$as_me: failed program was:" >&5
                   12812: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12813:
1.27      millert  12814:        ac_cv_c_const=no
1.25      millert  12815: fi
1.27      millert  12816:
                   12817: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12818: fi
1.27      millert  12819: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   12820: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25      millert  12821: if test $ac_cv_c_const = no; then
1.23      millert  12822:
1.25      millert  12823: cat >>confdefs.h <<\_ACEOF
                   12824: #define const
                   12825: _ACEOF
1.23      millert  12826:
1.25      millert  12827: fi
1.23      millert  12828:
1.27      millert  12829: { echo "$as_me:$LINENO: checking for working volatile" >&5
                   12830: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25      millert  12831: if test "${ac_cv_c_volatile+set}" = set; then
                   12832:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12833: else
                   12834:   cat >conftest.$ac_ext <<_ACEOF
                   12835: /* confdefs.h.  */
                   12836: _ACEOF
                   12837: cat confdefs.h >>conftest.$ac_ext
                   12838: cat >>conftest.$ac_ext <<_ACEOF
                   12839: /* end confdefs.h.  */
1.23      millert  12840:
1.25      millert  12841: int
                   12842: main ()
                   12843: {
1.23      millert  12844:
1.25      millert  12845: volatile int x;
1.27      millert  12846: int * volatile y = (int *) 0;
                   12847: return !x && !y;
1.25      millert  12848:   ;
                   12849:   return 0;
                   12850: }
                   12851: _ACEOF
                   12852: rm -f conftest.$ac_objext
1.27      millert  12853: if { (ac_try="$ac_compile"
                   12854: case "(($ac_try" in
                   12855:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12856:   *) ac_try_echo=$ac_try;;
                   12857: esac
                   12858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12859:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12860:   ac_status=$?
                   12861:   grep -v '^ *+' conftest.er1 >conftest.err
                   12862:   rm -f conftest.er1
                   12863:   cat conftest.err >&5
                   12864:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12865:   (exit $ac_status); } && {
                   12866:         test -z "$ac_c_werror_flag" ||
                   12867:         test ! -s conftest.err
                   12868:        } && test -s conftest.$ac_objext; then
1.25      millert  12869:   ac_cv_c_volatile=yes
                   12870: else
                   12871:   echo "$as_me: failed program was:" >&5
                   12872: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12873:
1.27      millert  12874:        ac_cv_c_volatile=no
1.25      millert  12875: fi
1.27      millert  12876:
                   12877: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12878: fi
1.27      millert  12879: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   12880: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25      millert  12881: if test $ac_cv_c_volatile = no; then
1.23      millert  12882:
1.25      millert  12883: cat >>confdefs.h <<\_ACEOF
                   12884: #define volatile
                   12885: _ACEOF
1.23      millert  12886:
1.25      millert  12887: fi
1.23      millert  12888:
1.25      millert  12889: for ac_prog in 'bison -y' byacc
                   12890: do
                   12891:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   12892: set dummy $ac_prog; ac_word=$2
1.27      millert  12893: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   12894: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  12895: if test "${ac_cv_prog_YACC+set}" = set; then
                   12896:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12897: else
                   12898:   if test -n "$YACC"; then
                   12899:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   12900: else
                   12901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   12902: for as_dir in $PATH
                   12903: do
                   12904:   IFS=$as_save_IFS
                   12905:   test -z "$as_dir" && as_dir=.
                   12906:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  12907:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  12908:     ac_cv_prog_YACC="$ac_prog"
                   12909:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   12910:     break 2
                   12911:   fi
                   12912: done
                   12913: done
1.27      millert  12914: IFS=$as_save_IFS
1.23      millert  12915:
1.25      millert  12916: fi
                   12917: fi
                   12918: YACC=$ac_cv_prog_YACC
                   12919: if test -n "$YACC"; then
1.27      millert  12920:   { echo "$as_me:$LINENO: result: $YACC" >&5
                   12921: echo "${ECHO_T}$YACC" >&6; }
1.25      millert  12922: else
1.27      millert  12923:   { echo "$as_me:$LINENO: result: no" >&5
                   12924: echo "${ECHO_T}no" >&6; }
1.25      millert  12925: fi
1.23      millert  12926:
1.27      millert  12927:
1.25      millert  12928:   test -n "$YACC" && break
                   12929: done
                   12930: test -n "$YACC" || YACC="yacc"
1.23      millert  12931:
1.27      millert  12932: { echo "$as_me:$LINENO: checking for mv" >&5
                   12933: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25      millert  12934: if test -f "/usr/bin/mv"; then
1.27      millert  12935:     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
                   12936: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25      millert  12937:     cat >>confdefs.h <<\EOF
                   12938: #define _PATH_MV "/usr/bin/mv"
                   12939: EOF
1.23      millert  12940:
1.25      millert  12941: elif test -f "/bin/mv"; then
1.27      millert  12942:     { echo "$as_me:$LINENO: result: /bin/mv" >&5
                   12943: echo "${ECHO_T}/bin/mv" >&6; }
1.25      millert  12944:     cat >>confdefs.h <<\EOF
                   12945: #define _PATH_MV "/bin/mv"
                   12946: EOF
1.23      millert  12947:
1.25      millert  12948: elif test -f "/usr/ucb/mv"; then
1.27      millert  12949:     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
                   12950: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25      millert  12951:     cat >>confdefs.h <<\EOF
                   12952: #define _PATH_MV "/usr/ucb/mv"
                   12953: EOF
1.23      millert  12954:
1.25      millert  12955: elif test -f "/usr/sbin/mv"; then
1.27      millert  12956:     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
                   12957: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25      millert  12958:     cat >>confdefs.h <<\EOF
                   12959: #define _PATH_MV "/usr/sbin/mv"
                   12960: EOF
1.23      millert  12961:
1.25      millert  12962: else
1.27      millert  12963:     { echo "$as_me:$LINENO: result: not found" >&5
                   12964: echo "${ECHO_T}not found" >&6; }
1.25      millert  12965: fi
1.23      millert  12966:
1.27      millert  12967: { echo "$as_me:$LINENO: checking for bourne shell" >&5
                   12968: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25      millert  12969: if test -f "/bin/sh"; then
1.27      millert  12970:     { echo "$as_me:$LINENO: result: /bin/sh" >&5
                   12971: echo "${ECHO_T}/bin/sh" >&6; }
1.25      millert  12972:     cat >>confdefs.h <<\EOF
                   12973: #define _PATH_BSHELL "/bin/sh"
                   12974: EOF
1.23      millert  12975:
1.25      millert  12976: elif test -f "/usr/bin/sh"; then
1.27      millert  12977:     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
                   12978: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25      millert  12979:     cat >>confdefs.h <<\EOF
                   12980: #define _PATH_BSHELL "/usr/bin/sh"
                   12981: EOF
1.23      millert  12982:
1.25      millert  12983: elif test -f "/sbin/sh"; then
1.27      millert  12984:     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
                   12985: echo "${ECHO_T}/sbin/sh" >&6; }
1.25      millert  12986:     cat >>confdefs.h <<\EOF
                   12987: #define _PATH_BSHELL "/sbin/sh"
                   12988: EOF
1.23      millert  12989:
1.25      millert  12990: elif test -f "/usr/sbin/sh"; then
1.27      millert  12991:     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
                   12992: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25      millert  12993:     cat >>confdefs.h <<\EOF
                   12994: #define _PATH_BSHELL "/usr/sbin/sh"
                   12995: EOF
1.23      millert  12996:
1.25      millert  12997: elif test -f "/bin/ksh"; then
1.27      millert  12998:     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
                   12999: echo "${ECHO_T}/bin/ksh" >&6; }
1.25      millert  13000:     cat >>confdefs.h <<\EOF
                   13001: #define _PATH_BSHELL "/bin/ksh"
                   13002: EOF
1.23      millert  13003:
1.25      millert  13004: elif test -f "/usr/bin/ksh"; then
1.27      millert  13005:     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
                   13006: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25      millert  13007:     cat >>confdefs.h <<\EOF
                   13008: #define _PATH_BSHELL "/usr/bin/ksh"
                   13009: EOF
1.23      millert  13010:
1.25      millert  13011: elif test -f "/bin/bash"; then
1.27      millert  13012:     { echo "$as_me:$LINENO: result: /bin/bash" >&5
                   13013: echo "${ECHO_T}/bin/bash" >&6; }
1.25      millert  13014:     cat >>confdefs.h <<\EOF
                   13015: #define _PATH_BSHELL "/bin/bash"
                   13016: EOF
1.23      millert  13017:
1.25      millert  13018: elif test -f "/usr/bin/bash"; then
1.27      millert  13019:     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
                   13020: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25      millert  13021:     cat >>confdefs.h <<\EOF
                   13022: #define _PATH_BSHELL "/usr/bin/bash"
                   13023: EOF
1.23      millert  13024:
1.25      millert  13025: else
1.27      millert  13026:     { echo "$as_me:$LINENO: result: not found" >&5
                   13027: echo "${ECHO_T}not found" >&6; }
1.25      millert  13028: fi
1.23      millert  13029:
1.25      millert  13030: if test -z "$with_sendmail"; then
1.27      millert  13031:     { echo "$as_me:$LINENO: checking for sendmail" >&5
                   13032: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25      millert  13033: if test -f "/usr/sbin/sendmail"; then
1.27      millert  13034:     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
                   13035: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25      millert  13036:     cat >>confdefs.h <<\EOF
                   13037: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   13038: EOF
1.23      millert  13039:
1.25      millert  13040: elif test -f "/usr/lib/sendmail"; then
1.27      millert  13041:     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
                   13042: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25      millert  13043:     cat >>confdefs.h <<\EOF
                   13044: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   13045: EOF
1.23      millert  13046:
1.25      millert  13047: elif test -f "/usr/etc/sendmail"; then
1.27      millert  13048:     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
                   13049: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25      millert  13050:     cat >>confdefs.h <<\EOF
                   13051: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   13052: EOF
1.23      millert  13053:
1.25      millert  13054: elif test -f "/usr/ucblib/sendmail"; then
1.27      millert  13055:     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
                   13056: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25      millert  13057:     cat >>confdefs.h <<\EOF
                   13058: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   13059: EOF
1.23      millert  13060:
1.25      millert  13061: elif test -f "/usr/local/lib/sendmail"; then
1.27      millert  13062:     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
                   13063: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25      millert  13064:     cat >>confdefs.h <<\EOF
                   13065: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   13066: EOF
1.23      millert  13067:
1.25      millert  13068: elif test -f "/usr/local/bin/sendmail"; then
1.27      millert  13069:     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
                   13070: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25      millert  13071:     cat >>confdefs.h <<\EOF
                   13072: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   13073: EOF
1.23      millert  13074:
1.25      millert  13075: else
1.27      millert  13076:     { echo "$as_me:$LINENO: result: not found" >&5
                   13077: echo "${ECHO_T}not found" >&6; }
1.25      millert  13078: fi
1.23      millert  13079:
1.25      millert  13080: fi
                   13081: if test -z "$with_editor"; then
1.27      millert  13082:     { echo "$as_me:$LINENO: checking for vi" >&5
                   13083: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25      millert  13084: if test -f "/usr/bin/vi"; then
1.27      millert  13085:     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
                   13086: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25      millert  13087:     cat >>confdefs.h <<\EOF
                   13088: #define _PATH_VI "/usr/bin/vi"
                   13089: EOF
1.23      millert  13090:
1.25      millert  13091: elif test -f "/usr/ucb/vi"; then
1.27      millert  13092:     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
                   13093: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25      millert  13094:     cat >>confdefs.h <<\EOF
                   13095: #define _PATH_VI "/usr/ucb/vi"
                   13096: EOF
1.23      millert  13097:
1.25      millert  13098: elif test -f "/usr/bsd/vi"; then
1.27      millert  13099:     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
                   13100: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25      millert  13101:     cat >>confdefs.h <<\EOF
                   13102: #define _PATH_VI "/usr/bsd/vi"
                   13103: EOF
1.23      millert  13104:
1.25      millert  13105: elif test -f "/bin/vi"; then
1.27      millert  13106:     { echo "$as_me:$LINENO: result: /bin/vi" >&5
                   13107: echo "${ECHO_T}/bin/vi" >&6; }
1.25      millert  13108:     cat >>confdefs.h <<\EOF
                   13109: #define _PATH_VI "/bin/vi"
                   13110: EOF
1.23      millert  13111:
1.25      millert  13112: elif test -f "/usr/local/bin/vi"; then
1.27      millert  13113:     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
                   13114: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25      millert  13115:     cat >>confdefs.h <<\EOF
                   13116: #define _PATH_VI "/usr/local/bin/vi"
                   13117: EOF
1.23      millert  13118:
                   13119: else
1.27      millert  13120:     { echo "$as_me:$LINENO: result: not found" >&5
                   13121: echo "${ECHO_T}not found" >&6; }
1.23      millert  13122: fi
                   13123:
1.25      millert  13124: fi
1.27      millert  13125: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   13126: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25      millert  13127: if test "${ac_cv_header_stdc+set}" = set; then
                   13128:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13129: else
                   13130:   cat >conftest.$ac_ext <<_ACEOF
                   13131: /* confdefs.h.  */
                   13132: _ACEOF
                   13133: cat confdefs.h >>conftest.$ac_ext
                   13134: cat >>conftest.$ac_ext <<_ACEOF
                   13135: /* end confdefs.h.  */
                   13136: #include <stdlib.h>
                   13137: #include <stdarg.h>
                   13138: #include <string.h>
                   13139: #include <float.h>
1.23      millert  13140:
1.25      millert  13141: int
                   13142: main ()
                   13143: {
1.23      millert  13144:
1.25      millert  13145:   ;
                   13146:   return 0;
                   13147: }
                   13148: _ACEOF
                   13149: rm -f conftest.$ac_objext
1.27      millert  13150: if { (ac_try="$ac_compile"
                   13151: case "(($ac_try" in
                   13152:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13153:   *) ac_try_echo=$ac_try;;
                   13154: esac
                   13155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13156:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13157:   ac_status=$?
                   13158:   grep -v '^ *+' conftest.er1 >conftest.err
                   13159:   rm -f conftest.er1
                   13160:   cat conftest.err >&5
                   13161:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13162:   (exit $ac_status); } && {
                   13163:         test -z "$ac_c_werror_flag" ||
                   13164:         test ! -s conftest.err
                   13165:        } && test -s conftest.$ac_objext; then
1.25      millert  13166:   ac_cv_header_stdc=yes
                   13167: else
                   13168:   echo "$as_me: failed program was:" >&5
                   13169: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13170:
1.27      millert  13171:        ac_cv_header_stdc=no
1.25      millert  13172: fi
1.27      millert  13173:
                   13174: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13175:
1.25      millert  13176: if test $ac_cv_header_stdc = yes; then
                   13177:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   13178:   cat >conftest.$ac_ext <<_ACEOF
                   13179: /* confdefs.h.  */
                   13180: _ACEOF
                   13181: cat confdefs.h >>conftest.$ac_ext
                   13182: cat >>conftest.$ac_ext <<_ACEOF
                   13183: /* end confdefs.h.  */
                   13184: #include <string.h>
1.23      millert  13185:
1.25      millert  13186: _ACEOF
                   13187: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13188:   $EGREP "memchr" >/dev/null 2>&1; then
                   13189:   :
                   13190: else
                   13191:   ac_cv_header_stdc=no
                   13192: fi
                   13193: rm -f conftest*
1.23      millert  13194:
                   13195: fi
                   13196:
1.25      millert  13197: if test $ac_cv_header_stdc = yes; then
                   13198:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   13199:   cat >conftest.$ac_ext <<_ACEOF
                   13200: /* confdefs.h.  */
                   13201: _ACEOF
                   13202: cat confdefs.h >>conftest.$ac_ext
                   13203: cat >>conftest.$ac_ext <<_ACEOF
                   13204: /* end confdefs.h.  */
                   13205: #include <stdlib.h>
1.23      millert  13206:
1.25      millert  13207: _ACEOF
                   13208: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13209:   $EGREP "free" >/dev/null 2>&1; then
                   13210:   :
1.23      millert  13211: else
1.25      millert  13212:   ac_cv_header_stdc=no
1.23      millert  13213: fi
1.25      millert  13214: rm -f conftest*
1.23      millert  13215:
                   13216: fi
                   13217:
1.25      millert  13218: if test $ac_cv_header_stdc = yes; then
                   13219:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   13220:   if test "$cross_compiling" = yes; then
                   13221:   :
1.1       millert  13222: else
1.25      millert  13223:   cat >conftest.$ac_ext <<_ACEOF
                   13224: /* confdefs.h.  */
                   13225: _ACEOF
                   13226: cat confdefs.h >>conftest.$ac_ext
                   13227: cat >>conftest.$ac_ext <<_ACEOF
                   13228: /* end confdefs.h.  */
                   13229: #include <ctype.h>
1.27      millert  13230: #include <stdlib.h>
1.25      millert  13231: #if ((' ' & 0x0FF) == 0x020)
                   13232: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   13233: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   13234: #else
                   13235: # define ISLOWER(c) \
                   13236:                   (('a' <= (c) && (c) <= 'i') \
                   13237:                     || ('j' <= (c) && (c) <= 'r') \
                   13238:                     || ('s' <= (c) && (c) <= 'z'))
                   13239: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   13240: #endif
                   13241:
                   13242: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   13243: int
                   13244: main ()
                   13245: {
                   13246:   int i;
                   13247:   for (i = 0; i < 256; i++)
                   13248:     if (XOR (islower (i), ISLOWER (i))
                   13249:        || toupper (i) != TOUPPER (i))
1.27      millert  13250:       return 2;
                   13251:   return 0;
1.25      millert  13252: }
                   13253: _ACEOF
                   13254: rm -f conftest$ac_exeext
1.27      millert  13255: if { (ac_try="$ac_link"
                   13256: case "(($ac_try" in
                   13257:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13258:   *) ac_try_echo=$ac_try;;
                   13259: esac
                   13260: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13261:   (eval "$ac_link") 2>&5
1.25      millert  13262:   ac_status=$?
                   13263:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13264:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27      millert  13265:   { (case "(($ac_try" in
                   13266:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13267:   *) ac_try_echo=$ac_try;;
                   13268: esac
                   13269: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13270:   (eval "$ac_try") 2>&5
1.25      millert  13271:   ac_status=$?
                   13272:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13273:   (exit $ac_status); }; }; then
                   13274:   :
1.1       millert  13275: else
1.25      millert  13276:   echo "$as_me: program exited with status $ac_status" >&5
                   13277: echo "$as_me: failed program was:" >&5
                   13278: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13279:
1.25      millert  13280: ( exit $ac_status )
                   13281: ac_cv_header_stdc=no
                   13282: fi
1.27      millert  13283: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  13284: fi
1.27      millert  13285:
                   13286:
1.1       millert  13287: fi
                   13288: fi
1.27      millert  13289: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   13290: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25      millert  13291: if test $ac_cv_header_stdc = yes; then
1.1       millert  13292:
1.25      millert  13293: cat >>confdefs.h <<\_ACEOF
                   13294: #define STDC_HEADERS 1
                   13295: _ACEOF
1.9       millert  13296:
1.1       millert  13297: fi
                   13298:
1.25      millert  13299:
                   13300:
                   13301:
                   13302:
                   13303:
                   13304: ac_header_dirent=no
                   13305: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   13306:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27      millert  13307: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   13308: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
                   13309: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13310:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13311: else
1.25      millert  13312:   cat >conftest.$ac_ext <<_ACEOF
                   13313: /* confdefs.h.  */
                   13314: _ACEOF
                   13315: cat confdefs.h >>conftest.$ac_ext
                   13316: cat >>conftest.$ac_ext <<_ACEOF
                   13317: /* end confdefs.h.  */
                   13318: #include <sys/types.h>
                   13319: #include <$ac_hdr>
                   13320:
                   13321: int
                   13322: main ()
                   13323: {
                   13324: if ((DIR *) 0)
                   13325: return 0;
                   13326:   ;
                   13327:   return 0;
                   13328: }
                   13329: _ACEOF
                   13330: rm -f conftest.$ac_objext
1.27      millert  13331: if { (ac_try="$ac_compile"
                   13332: case "(($ac_try" in
                   13333:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13334:   *) ac_try_echo=$ac_try;;
                   13335: esac
                   13336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13337:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13338:   ac_status=$?
                   13339:   grep -v '^ *+' conftest.er1 >conftest.err
                   13340:   rm -f conftest.er1
                   13341:   cat conftest.err >&5
                   13342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13343:   (exit $ac_status); } && {
                   13344:         test -z "$ac_c_werror_flag" ||
                   13345:         test ! -s conftest.err
                   13346:        } && test -s conftest.$ac_objext; then
1.25      millert  13347:   eval "$as_ac_Header=yes"
1.1       millert  13348: else
1.25      millert  13349:   echo "$as_me: failed program was:" >&5
                   13350: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13351:
1.27      millert  13352:        eval "$as_ac_Header=no"
1.1       millert  13353: fi
1.27      millert  13354:
                   13355: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13356: fi
1.27      millert  13357: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13358:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13359: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13360: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13361:   cat >>confdefs.h <<_ACEOF
                   13362: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   13363: _ACEOF
1.9       millert  13364:
1.25      millert  13365: ac_header_dirent=$ac_hdr; break
1.9       millert  13366: fi
1.16      millert  13367:
1.25      millert  13368: done
                   13369: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   13370: if test $ac_header_dirent = dirent.h; then
1.27      millert  13371:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13372: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13373: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13374:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13375: else
1.25      millert  13376:   ac_func_search_save_LIBS=$LIBS
                   13377: cat >conftest.$ac_ext <<_ACEOF
                   13378: /* confdefs.h.  */
                   13379: _ACEOF
                   13380: cat confdefs.h >>conftest.$ac_ext
                   13381: cat >>conftest.$ac_ext <<_ACEOF
                   13382: /* end confdefs.h.  */
1.1       millert  13383:
1.27      millert  13384: /* Override any GCC internal prototype to avoid an error.
                   13385:    Use char because int might match the return type of a GCC
                   13386:    builtin and then its argument prototype would still apply.  */
1.25      millert  13387: #ifdef __cplusplus
                   13388: extern "C"
                   13389: #endif
                   13390: char opendir ();
                   13391: int
                   13392: main ()
                   13393: {
1.27      millert  13394: return opendir ();
1.25      millert  13395:   ;
                   13396:   return 0;
                   13397: }
                   13398: _ACEOF
1.27      millert  13399: for ac_lib in '' dir; do
                   13400:   if test -z "$ac_lib"; then
                   13401:     ac_res="none required"
                   13402:   else
                   13403:     ac_res=-l$ac_lib
                   13404:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13405:   fi
                   13406:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13407: if { (ac_try="$ac_link"
                   13408: case "(($ac_try" in
                   13409:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13410:   *) ac_try_echo=$ac_try;;
                   13411: esac
                   13412: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13413:   (eval "$ac_link") 2>conftest.er1
1.25      millert  13414:   ac_status=$?
                   13415:   grep -v '^ *+' conftest.er1 >conftest.err
                   13416:   rm -f conftest.er1
                   13417:   cat conftest.err >&5
                   13418:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13419:   (exit $ac_status); } && {
                   13420:         test -z "$ac_c_werror_flag" ||
                   13421:         test ! -s conftest.err
                   13422:        } && test -s conftest$ac_exeext &&
                   13423:        $as_test_x conftest$ac_exeext; then
                   13424:   ac_cv_search_opendir=$ac_res
1.1       millert  13425: else
1.25      millert  13426:   echo "$as_me: failed program was:" >&5
                   13427: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13428:
1.27      millert  13429:
1.1       millert  13430: fi
                   13431:
1.27      millert  13432: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13433:       conftest$ac_exeext
                   13434:   if test "${ac_cv_search_opendir+set}" = set; then
                   13435:   break
                   13436: fi
                   13437: done
                   13438: if test "${ac_cv_search_opendir+set}" = set; then
                   13439:   :
1.1       millert  13440: else
1.27      millert  13441:   ac_cv_search_opendir=no
1.25      millert  13442: fi
1.27      millert  13443: rm conftest.$ac_ext
1.25      millert  13444: LIBS=$ac_func_search_save_LIBS
1.1       millert  13445: fi
1.27      millert  13446: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13447: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13448: ac_res=$ac_cv_search_opendir
                   13449: if test "$ac_res" != no; then
                   13450:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       millert  13451:
1.25      millert  13452: fi
1.1       millert  13453:
1.25      millert  13454: else
1.27      millert  13455:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13456: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13457: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13458:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13459: else
1.25      millert  13460:   ac_func_search_save_LIBS=$LIBS
                   13461: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13462: /* confdefs.h.  */
                   13463: _ACEOF
                   13464: cat confdefs.h >>conftest.$ac_ext
                   13465: cat >>conftest.$ac_ext <<_ACEOF
                   13466: /* end confdefs.h.  */
1.25      millert  13467:
1.27      millert  13468: /* Override any GCC internal prototype to avoid an error.
                   13469:    Use char because int might match the return type of a GCC
                   13470:    builtin and then its argument prototype would still apply.  */
1.9       millert  13471: #ifdef __cplusplus
                   13472: extern "C"
                   13473: #endif
1.25      millert  13474: char opendir ();
1.16      millert  13475: int
                   13476: main ()
                   13477: {
1.27      millert  13478: return opendir ();
1.9       millert  13479:   ;
                   13480:   return 0;
                   13481: }
                   13482: _ACEOF
1.27      millert  13483: for ac_lib in '' x; do
                   13484:   if test -z "$ac_lib"; then
                   13485:     ac_res="none required"
                   13486:   else
                   13487:     ac_res=-l$ac_lib
                   13488:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13489:   fi
                   13490:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13491: if { (ac_try="$ac_link"
                   13492: case "(($ac_try" in
                   13493:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13494:   *) ac_try_echo=$ac_try;;
                   13495: esac
                   13496: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13497:   (eval "$ac_link") 2>conftest.er1
1.9       millert  13498:   ac_status=$?
1.25      millert  13499:   grep -v '^ *+' conftest.er1 >conftest.err
                   13500:   rm -f conftest.er1
                   13501:   cat conftest.err >&5
1.16      millert  13502:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13503:   (exit $ac_status); } && {
                   13504:         test -z "$ac_c_werror_flag" ||
                   13505:         test ! -s conftest.err
                   13506:        } && test -s conftest$ac_exeext &&
                   13507:        $as_test_x conftest$ac_exeext; then
                   13508:   ac_cv_search_opendir=$ac_res
1.9       millert  13509: else
                   13510:   echo "$as_me: failed program was:" >&5
1.16      millert  13511: sed 's/^/| /' conftest.$ac_ext >&5
                   13512:
1.27      millert  13513:
1.1       millert  13514: fi
1.17      millert  13515:
1.27      millert  13516: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13517:       conftest$ac_exeext
                   13518:   if test "${ac_cv_search_opendir+set}" = set; then
                   13519:   break
                   13520: fi
                   13521: done
                   13522: if test "${ac_cv_search_opendir+set}" = set; then
                   13523:   :
1.17      millert  13524: else
1.27      millert  13525:   ac_cv_search_opendir=no
1.25      millert  13526: fi
1.27      millert  13527: rm conftest.$ac_ext
1.25      millert  13528: LIBS=$ac_func_search_save_LIBS
                   13529: fi
1.27      millert  13530: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13531: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13532: ac_res=$ac_cv_search_opendir
                   13533: if test "$ac_res" != no; then
                   13534:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25      millert  13535:
                   13536: fi
                   13537:
                   13538: fi
                   13539:
1.27      millert  13540: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
                   13541: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25      millert  13542: if test "${ac_cv_header_time+set}" = set; then
1.9       millert  13543:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13544: else
1.25      millert  13545:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13546: /* confdefs.h.  */
                   13547: _ACEOF
                   13548: cat confdefs.h >>conftest.$ac_ext
                   13549: cat >>conftest.$ac_ext <<_ACEOF
                   13550: /* end confdefs.h.  */
1.25      millert  13551: #include <sys/types.h>
                   13552: #include <sys/time.h>
                   13553: #include <time.h>
1.9       millert  13554:
                   13555: int
                   13556: main ()
                   13557: {
1.25      millert  13558: if ((struct tm *) 0)
                   13559: return 0;
1.9       millert  13560:   ;
                   13561:   return 0;
                   13562: }
                   13563: _ACEOF
1.25      millert  13564: rm -f conftest.$ac_objext
1.27      millert  13565: if { (ac_try="$ac_compile"
                   13566: case "(($ac_try" in
                   13567:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13568:   *) ac_try_echo=$ac_try;;
                   13569: esac
                   13570: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13571:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13572:   ac_status=$?
1.25      millert  13573:   grep -v '^ *+' conftest.er1 >conftest.err
                   13574:   rm -f conftest.er1
                   13575:   cat conftest.err >&5
1.16      millert  13576:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13577:   (exit $ac_status); } && {
                   13578:         test -z "$ac_c_werror_flag" ||
                   13579:         test ! -s conftest.err
                   13580:        } && test -s conftest.$ac_objext; then
1.25      millert  13581:   ac_cv_header_time=yes
1.9       millert  13582: else
                   13583:   echo "$as_me: failed program was:" >&5
1.16      millert  13584: sed 's/^/| /' conftest.$ac_ext >&5
                   13585:
1.27      millert  13586:        ac_cv_header_time=no
1.9       millert  13587: fi
1.27      millert  13588:
                   13589: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13590: fi
1.27      millert  13591: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
                   13592: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25      millert  13593: if test $ac_cv_header_time = yes; then
                   13594:
                   13595: cat >>confdefs.h <<\_ACEOF
                   13596: #define TIME_WITH_SYS_TIME 1
1.16      millert  13597: _ACEOF
1.25      millert  13598:
                   13599: fi
                   13600:
                   13601:
                   13602:
                   13603:
                   13604:
                   13605:
                   13606:
                   13607:
                   13608: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
                   13609: do
                   13610: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13611: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13612:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13613: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13614: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13615:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13616: fi
1.27      millert  13617: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13618:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13619: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13620: else
1.25      millert  13621:   # Is the header compilable?
1.27      millert  13622: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13623: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9       millert  13624: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13625: /* confdefs.h.  */
                   13626: _ACEOF
                   13627: cat confdefs.h >>conftest.$ac_ext
                   13628: cat >>conftest.$ac_ext <<_ACEOF
                   13629: /* end confdefs.h.  */
1.25      millert  13630: $ac_includes_default
                   13631: #include <$ac_header>
1.9       millert  13632: _ACEOF
1.25      millert  13633: rm -f conftest.$ac_objext
1.27      millert  13634: if { (ac_try="$ac_compile"
                   13635: case "(($ac_try" in
                   13636:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13637:   *) ac_try_echo=$ac_try;;
                   13638: esac
                   13639: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13640:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13641:   ac_status=$?
1.25      millert  13642:   grep -v '^ *+' conftest.er1 >conftest.err
                   13643:   rm -f conftest.er1
                   13644:   cat conftest.err >&5
1.16      millert  13645:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13646:   (exit $ac_status); } && {
                   13647:         test -z "$ac_c_werror_flag" ||
                   13648:         test ! -s conftest.err
                   13649:        } && test -s conftest.$ac_objext; then
1.25      millert  13650:   ac_header_compiler=yes
1.9       millert  13651: else
                   13652:   echo "$as_me: failed program was:" >&5
1.16      millert  13653: sed 's/^/| /' conftest.$ac_ext >&5
                   13654:
1.27      millert  13655:        ac_header_compiler=no
1.9       millert  13656: fi
1.27      millert  13657:
                   13658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13659: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13660: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  13661:
                   13662: # Is the header present?
1.27      millert  13663: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13664: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25      millert  13665: cat >conftest.$ac_ext <<_ACEOF
                   13666: /* confdefs.h.  */
                   13667: _ACEOF
                   13668: cat confdefs.h >>conftest.$ac_ext
                   13669: cat >>conftest.$ac_ext <<_ACEOF
                   13670: /* end confdefs.h.  */
                   13671: #include <$ac_header>
1.16      millert  13672: _ACEOF
1.27      millert  13673: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13674: case "(($ac_try" in
                   13675:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13676:   *) ac_try_echo=$ac_try;;
                   13677: esac
                   13678: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13679:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  13680:   ac_status=$?
                   13681:   grep -v '^ *+' conftest.er1 >conftest.err
                   13682:   rm -f conftest.er1
                   13683:   cat conftest.err >&5
                   13684:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13685:   (exit $ac_status); } >/dev/null && {
                   13686:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13687:         test ! -s conftest.err
                   13688:        }; then
1.25      millert  13689:   ac_header_preproc=yes
                   13690: else
                   13691:   echo "$as_me: failed program was:" >&5
                   13692: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13693:
1.25      millert  13694:   ac_header_preproc=no
1.1       millert  13695: fi
1.27      millert  13696:
1.25      millert  13697: rm -f conftest.err conftest.$ac_ext
1.27      millert  13698: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13699: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  13700:
1.25      millert  13701: # So?  What about this header?
                   13702: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13703:   yes:no: )
                   13704:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13705: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13706:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13707: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13708:     ac_header_preproc=yes
                   13709:     ;;
                   13710:   no:yes:* )
                   13711:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13712: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13713:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13714: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13715:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13716: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13717:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13718: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13719:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13720: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13721:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13722: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13723:
1.25      millert  13724:     ;;
                   13725: esac
1.27      millert  13726: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13727: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13728: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13729:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13730: else
                   13731:   eval "$as_ac_Header=\$ac_header_preproc"
                   13732: fi
1.27      millert  13733: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13734:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13735: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13736:
1.25      millert  13737: fi
                   13738: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13739:   cat >>confdefs.h <<_ACEOF
                   13740: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23      millert  13741: _ACEOF
                   13742:
1.25      millert  13743: fi
1.23      millert  13744:
1.25      millert  13745: done
1.23      millert  13746:
1.37    ! millert  13747: if test "$OS" != "ultrix"; then
        !          13748:     { echo "$as_me:$LINENO: checking POSIX termios" >&5
        !          13749: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
        !          13750: if test "${ac_cv_sys_posix_termios+set}" = set; then
        !          13751:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          13752: else
        !          13753:   cat >conftest.$ac_ext <<_ACEOF
        !          13754: /* confdefs.h.  */
        !          13755: _ACEOF
        !          13756: cat confdefs.h >>conftest.$ac_ext
        !          13757: cat >>conftest.$ac_ext <<_ACEOF
        !          13758: /* end confdefs.h.  */
        !          13759: #include <sys/types.h>
        !          13760: #include <unistd.h>
        !          13761: #include <termios.h>
        !          13762:
        !          13763: int
        !          13764: main ()
        !          13765: {
        !          13766: /* SunOS 4.0.3 has termios.h but not the library calls.  */
        !          13767:    tcgetattr(0, 0);
        !          13768:   ;
        !          13769:   return 0;
        !          13770: }
        !          13771: _ACEOF
        !          13772: rm -f conftest.$ac_objext conftest$ac_exeext
        !          13773: if { (ac_try="$ac_link"
        !          13774: case "(($ac_try" in
        !          13775:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          13776:   *) ac_try_echo=$ac_try;;
        !          13777: esac
        !          13778: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          13779:   (eval "$ac_link") 2>conftest.er1
        !          13780:   ac_status=$?
        !          13781:   grep -v '^ *+' conftest.er1 >conftest.err
        !          13782:   rm -f conftest.er1
        !          13783:   cat conftest.err >&5
        !          13784:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          13785:   (exit $ac_status); } && {
        !          13786:         test -z "$ac_c_werror_flag" ||
        !          13787:         test ! -s conftest.err
        !          13788:        } && test -s conftest$ac_exeext &&
        !          13789:        $as_test_x conftest$ac_exeext; then
        !          13790:   ac_cv_sys_posix_termios=yes
        !          13791: else
        !          13792:   echo "$as_me: failed program was:" >&5
        !          13793: sed 's/^/| /' conftest.$ac_ext >&5
        !          13794:
        !          13795:        ac_cv_sys_posix_termios=no
        !          13796: fi
        !          13797:
        !          13798: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          13799:       conftest$ac_exeext conftest.$ac_ext
        !          13800: fi
        !          13801: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
        !          13802: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
        !          13803:
        !          13804:     if test "$ac_cv_sys_posix_termios" = "yes"; then
        !          13805:        cat >>confdefs.h <<\_ACEOF
        !          13806: #define HAVE_TERMIOS_H 1
        !          13807: _ACEOF
        !          13808:
        !          13809:     else
1.23      millert  13810:
1.37    ! millert  13811: for ac_header in termio.h
1.23      millert  13812: do
1.25      millert  13813: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13814: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13815:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13816: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13817: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  13818:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13819: fi
1.27      millert  13820: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13821:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13822: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13823: else
1.25      millert  13824:   # Is the header compilable?
1.27      millert  13825: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13826: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25      millert  13827: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  13828: /* confdefs.h.  */
                   13829: _ACEOF
                   13830: cat confdefs.h >>conftest.$ac_ext
                   13831: cat >>conftest.$ac_ext <<_ACEOF
                   13832: /* end confdefs.h.  */
1.25      millert  13833: $ac_includes_default
                   13834: #include <$ac_header>
1.23      millert  13835: _ACEOF
1.25      millert  13836: rm -f conftest.$ac_objext
1.27      millert  13837: if { (ac_try="$ac_compile"
                   13838: case "(($ac_try" in
                   13839:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13840:   *) ac_try_echo=$ac_try;;
                   13841: esac
                   13842: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13843:   (eval "$ac_compile") 2>conftest.er1
1.23      millert  13844:   ac_status=$?
1.25      millert  13845:   grep -v '^ *+' conftest.er1 >conftest.err
                   13846:   rm -f conftest.er1
                   13847:   cat conftest.err >&5
1.23      millert  13848:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13849:   (exit $ac_status); } && {
                   13850:         test -z "$ac_c_werror_flag" ||
                   13851:         test ! -s conftest.err
                   13852:        } && test -s conftest.$ac_objext; then
1.25      millert  13853:   ac_header_compiler=yes
1.23      millert  13854: else
                   13855:   echo "$as_me: failed program was:" >&5
                   13856: sed 's/^/| /' conftest.$ac_ext >&5
                   13857:
1.27      millert  13858:        ac_header_compiler=no
1.23      millert  13859: fi
1.27      millert  13860:
                   13861: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13862: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13863: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  13864:
1.25      millert  13865: # Is the header present?
1.27      millert  13866: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13867: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  13868: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13869: /* confdefs.h.  */
                   13870: _ACEOF
                   13871: cat confdefs.h >>conftest.$ac_ext
                   13872: cat >>conftest.$ac_ext <<_ACEOF
                   13873: /* end confdefs.h.  */
1.25      millert  13874: #include <$ac_header>
1.9       millert  13875: _ACEOF
1.27      millert  13876: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13877: case "(($ac_try" in
                   13878:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13879:   *) ac_try_echo=$ac_try;;
                   13880: esac
                   13881: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13882:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  13883:   ac_status=$?
1.25      millert  13884:   grep -v '^ *+' conftest.er1 >conftest.err
                   13885:   rm -f conftest.er1
                   13886:   cat conftest.err >&5
1.16      millert  13887:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13888:   (exit $ac_status); } >/dev/null && {
                   13889:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13890:         test ! -s conftest.err
                   13891:        }; then
1.25      millert  13892:   ac_header_preproc=yes
1.9       millert  13893: else
                   13894:   echo "$as_me: failed program was:" >&5
1.16      millert  13895: sed 's/^/| /' conftest.$ac_ext >&5
                   13896:
1.25      millert  13897:   ac_header_preproc=no
                   13898: fi
1.27      millert  13899:
1.25      millert  13900: rm -f conftest.err conftest.$ac_ext
1.27      millert  13901: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13902: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  13903:
                   13904: # So?  What about this header?
                   13905: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13906:   yes:no: )
                   13907:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13908: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13909:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13910: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13911:     ac_header_preproc=yes
                   13912:     ;;
                   13913:   no:yes:* )
                   13914:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13915: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13916:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13917: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13918:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13919: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13920:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13921: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13922:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13923: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13924:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13925: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  13926:
1.25      millert  13927:     ;;
                   13928: esac
1.27      millert  13929: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13930: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13931: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13932:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13933: else
                   13934:   eval "$as_ac_Header=\$ac_header_preproc"
                   13935: fi
1.27      millert  13936: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13937:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13938: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13939:
1.9       millert  13940: fi
1.25      millert  13941: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13942:   cat >>confdefs.h <<_ACEOF
                   13943: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13944: _ACEOF
                   13945:
1.9       millert  13946: fi
1.25      millert  13947:
                   13948: done
                   13949:
1.37    ! millert  13950:     fi
        !          13951: fi
        !          13952: if test ${with_logincap-'no'} != "no"; then
        !          13953:
        !          13954: for ac_header in login_cap.h
        !          13955: do
        !          13956: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          13957: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          13958:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          13959: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          13960: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13961:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37    ! millert  13962: fi
        !          13963: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          13964:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          13965: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13966: else
1.37    ! millert  13967:   # Is the header compilable?
        !          13968: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          13969: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
        !          13970: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13971: /* confdefs.h.  */
                   13972: _ACEOF
                   13973: cat confdefs.h >>conftest.$ac_ext
                   13974: cat >>conftest.$ac_ext <<_ACEOF
                   13975: /* end confdefs.h.  */
1.37    ! millert  13976: $ac_includes_default
        !          13977: #include <$ac_header>
1.9       millert  13978: _ACEOF
1.37    ! millert  13979: rm -f conftest.$ac_objext
1.27      millert  13980: if { (ac_try="$ac_compile"
                   13981: case "(($ac_try" in
                   13982:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13983:   *) ac_try_echo=$ac_try;;
                   13984: esac
                   13985: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13986:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13987:   ac_status=$?
                   13988:   grep -v '^ *+' conftest.er1 >conftest.err
                   13989:   rm -f conftest.er1
                   13990:   cat conftest.err >&5
                   13991:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13992:   (exit $ac_status); } && {
                   13993:         test -z "$ac_c_werror_flag" ||
                   13994:         test ! -s conftest.err
                   13995:        } && test -s conftest.$ac_objext; then
1.25      millert  13996:   ac_header_compiler=yes
1.9       millert  13997: else
                   13998:   echo "$as_me: failed program was:" >&5
1.16      millert  13999: sed 's/^/| /' conftest.$ac_ext >&5
                   14000:
1.27      millert  14001:        ac_header_compiler=no
1.9       millert  14002: fi
1.27      millert  14003:
                   14004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14005: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14006: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9       millert  14007:
1.25      millert  14008: # Is the header present?
1.27      millert  14009: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   14010: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  14011: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14012: /* confdefs.h.  */
                   14013: _ACEOF
                   14014: cat confdefs.h >>conftest.$ac_ext
                   14015: cat >>conftest.$ac_ext <<_ACEOF
                   14016: /* end confdefs.h.  */
1.25      millert  14017: #include <$ac_header>
1.9       millert  14018: _ACEOF
1.27      millert  14019: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14020: case "(($ac_try" in
                   14021:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14022:   *) ac_try_echo=$ac_try;;
                   14023: esac
                   14024: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14025:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14026:   ac_status=$?
1.25      millert  14027:   grep -v '^ *+' conftest.er1 >conftest.err
                   14028:   rm -f conftest.er1
                   14029:   cat conftest.err >&5
1.16      millert  14030:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14031:   (exit $ac_status); } >/dev/null && {
                   14032:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14033:         test ! -s conftest.err
                   14034:        }; then
1.25      millert  14035:   ac_header_preproc=yes
1.9       millert  14036: else
                   14037:   echo "$as_me: failed program was:" >&5
1.16      millert  14038: sed 's/^/| /' conftest.$ac_ext >&5
                   14039:
1.25      millert  14040:   ac_header_preproc=no
1.9       millert  14041: fi
1.27      millert  14042:
1.25      millert  14043: rm -f conftest.err conftest.$ac_ext
1.27      millert  14044: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14045: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14046:
                   14047: # So?  What about this header?
                   14048: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14049:   yes:no: )
                   14050:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   14051: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14052:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   14053: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   14054:     ac_header_preproc=yes
                   14055:     ;;
                   14056:   no:yes:* )
                   14057:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   14058: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   14059:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   14060: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   14061:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   14062: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   14063:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   14064: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14065:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   14066: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   14067:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   14068: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27      millert  14069:
1.25      millert  14070:     ;;
                   14071: esac
1.27      millert  14072: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14073: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14074: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  14075:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14076: else
                   14077:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  14078: fi
1.27      millert  14079: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14080:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14081: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  14082:
1.1       millert  14083: fi
1.25      millert  14084: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14085:   cat >>confdefs.h <<_ACEOF
                   14086: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   14087: _ACEOF
1.37    ! millert  14088:  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
1.31      millert  14089:        case "$OS" in
                   14090:            freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
                   14091:            ;;
                   14092:        esac
                   14093:
1.25      millert  14094: fi
1.1       millert  14095:
1.25      millert  14096: done
1.1       millert  14097:
1.25      millert  14098: fi
                   14099: if test ${with_project-'no'} != "no"; then
                   14100:     if test "${ac_cv_header_project_h+set}" = set; then
1.27      millert  14101:   { echo "$as_me:$LINENO: checking for project.h" >&5
                   14102: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14103: if test "${ac_cv_header_project_h+set}" = set; then
1.9       millert  14104:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  14105: fi
1.27      millert  14106: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14107: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1       millert  14108: else
1.25      millert  14109:   # Is the header compilable?
1.27      millert  14110: { echo "$as_me:$LINENO: checking project.h usability" >&5
                   14111: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25      millert  14112: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14113: /* confdefs.h.  */
                   14114: _ACEOF
                   14115: cat confdefs.h >>conftest.$ac_ext
                   14116: cat >>conftest.$ac_ext <<_ACEOF
                   14117: /* end confdefs.h.  */
1.25      millert  14118: $ac_includes_default
                   14119: #include <project.h>
1.9       millert  14120: _ACEOF
1.25      millert  14121: rm -f conftest.$ac_objext
1.27      millert  14122: if { (ac_try="$ac_compile"
                   14123: case "(($ac_try" in
                   14124:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14125:   *) ac_try_echo=$ac_try;;
                   14126: esac
                   14127: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14128:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14129:   ac_status=$?
1.25      millert  14130:   grep -v '^ *+' conftest.er1 >conftest.err
                   14131:   rm -f conftest.er1
                   14132:   cat conftest.err >&5
1.16      millert  14133:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14134:   (exit $ac_status); } && {
                   14135:         test -z "$ac_c_werror_flag" ||
                   14136:         test ! -s conftest.err
                   14137:        } && test -s conftest.$ac_objext; then
1.25      millert  14138:   ac_header_compiler=yes
1.9       millert  14139: else
                   14140:   echo "$as_me: failed program was:" >&5
1.16      millert  14141: sed 's/^/| /' conftest.$ac_ext >&5
                   14142:
1.27      millert  14143:        ac_header_compiler=no
1.9       millert  14144: fi
1.27      millert  14145:
                   14146: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14147: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14148: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       millert  14149:
1.25      millert  14150: # Is the header present?
1.27      millert  14151: { echo "$as_me:$LINENO: checking project.h presence" >&5
                   14152: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25      millert  14153: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14154: /* confdefs.h.  */
                   14155: _ACEOF
                   14156: cat confdefs.h >>conftest.$ac_ext
                   14157: cat >>conftest.$ac_ext <<_ACEOF
                   14158: /* end confdefs.h.  */
1.25      millert  14159: #include <project.h>
1.9       millert  14160: _ACEOF
1.27      millert  14161: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14162: case "(($ac_try" in
                   14163:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14164:   *) ac_try_echo=$ac_try;;
                   14165: esac
                   14166: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14167:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14168:   ac_status=$?
1.25      millert  14169:   grep -v '^ *+' conftest.er1 >conftest.err
                   14170:   rm -f conftest.er1
                   14171:   cat conftest.err >&5
1.16      millert  14172:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14173:   (exit $ac_status); } >/dev/null && {
                   14174:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14175:         test ! -s conftest.err
                   14176:        }; then
1.25      millert  14177:   ac_header_preproc=yes
1.9       millert  14178: else
                   14179:   echo "$as_me: failed program was:" >&5
1.16      millert  14180: sed 's/^/| /' conftest.$ac_ext >&5
                   14181:
1.25      millert  14182:   ac_header_preproc=no
                   14183: fi
1.27      millert  14184:
1.25      millert  14185: rm -f conftest.err conftest.$ac_ext
1.27      millert  14186: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14187: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14188:
                   14189: # So?  What about this header?
                   14190: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14191:   yes:no: )
                   14192:     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   14193: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14194:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
                   14195: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
                   14196:     ac_header_preproc=yes
                   14197:     ;;
                   14198:   no:yes:* )
                   14199:     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
                   14200: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
                   14201:     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
                   14202: echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
                   14203:     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
                   14204: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
                   14205:     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
                   14206: echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14207:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
                   14208: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
                   14209:     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
                   14210: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.27      millert  14211:
1.25      millert  14212:     ;;
                   14213: esac
1.27      millert  14214: { echo "$as_me:$LINENO: checking for project.h" >&5
                   14215: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14216: if test "${ac_cv_header_project_h+set}" = set; then
                   14217:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14218: else
                   14219:   ac_cv_header_project_h=$ac_header_preproc
1.9       millert  14220: fi
1.27      millert  14221: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14222: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25      millert  14223:
1.9       millert  14224: fi
1.25      millert  14225: if test $ac_cv_header_project_h = yes; then
                   14226:   cat >>confdefs.h <<\_ACEOF
                   14227: #define HAVE_PROJECT_H 1
1.16      millert  14228: _ACEOF
1.1       millert  14229:
1.25      millert  14230:        SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1       millert  14231: else
1.25      millert  14232:   -
1.1       millert  14233: fi
                   14234:
1.25      millert  14235:
                   14236: fi
1.27      millert  14237: { echo "$as_me:$LINENO: checking for mode_t" >&5
                   14238: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25      millert  14239: if test "${ac_cv_type_mode_t+set}" = set; then
1.9       millert  14240:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14241: else
1.25      millert  14242:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14243: /* confdefs.h.  */
                   14244: _ACEOF
                   14245: cat confdefs.h >>conftest.$ac_ext
                   14246: cat >>conftest.$ac_ext <<_ACEOF
                   14247: /* end confdefs.h.  */
1.25      millert  14248: $ac_includes_default
1.27      millert  14249: typedef mode_t ac__type_new_;
1.9       millert  14250: int
                   14251: main ()
                   14252: {
1.27      millert  14253: if ((ac__type_new_ *) 0)
1.25      millert  14254:   return 0;
1.27      millert  14255: if (sizeof (ac__type_new_))
1.25      millert  14256:   return 0;
1.9       millert  14257:   ;
                   14258:   return 0;
                   14259: }
                   14260: _ACEOF
1.25      millert  14261: rm -f conftest.$ac_objext
1.27      millert  14262: if { (ac_try="$ac_compile"
                   14263: case "(($ac_try" in
                   14264:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14265:   *) ac_try_echo=$ac_try;;
                   14266: esac
                   14267: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14268:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14269:   ac_status=$?
1.25      millert  14270:   grep -v '^ *+' conftest.er1 >conftest.err
                   14271:   rm -f conftest.er1
                   14272:   cat conftest.err >&5
1.16      millert  14273:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14274:   (exit $ac_status); } && {
                   14275:         test -z "$ac_c_werror_flag" ||
                   14276:         test ! -s conftest.err
                   14277:        } && test -s conftest.$ac_objext; then
1.25      millert  14278:   ac_cv_type_mode_t=yes
1.9       millert  14279: else
                   14280:   echo "$as_me: failed program was:" >&5
1.16      millert  14281: sed 's/^/| /' conftest.$ac_ext >&5
                   14282:
1.27      millert  14283:        ac_cv_type_mode_t=no
1.9       millert  14284: fi
1.27      millert  14285:
                   14286: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14287: fi
1.27      millert  14288: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   14289: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25      millert  14290: if test $ac_cv_type_mode_t = yes; then
                   14291:   :
1.1       millert  14292: else
1.25      millert  14293:
                   14294: cat >>confdefs.h <<_ACEOF
                   14295: #define mode_t int
                   14296: _ACEOF
                   14297:
1.1       millert  14298: fi
                   14299:
1.27      millert  14300: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
                   14301: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25      millert  14302: if test "${ac_cv_type_uid_t+set}" = set; then
1.9       millert  14303:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14304: else
1.9       millert  14305:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14306: /* confdefs.h.  */
                   14307: _ACEOF
                   14308: cat confdefs.h >>conftest.$ac_ext
                   14309: cat >>conftest.$ac_ext <<_ACEOF
                   14310: /* end confdefs.h.  */
1.25      millert  14311: #include <sys/types.h>
1.1       millert  14312:
1.9       millert  14313: _ACEOF
1.25      millert  14314: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14315:   $EGREP "uid_t" >/dev/null 2>&1; then
                   14316:   ac_cv_type_uid_t=yes
1.9       millert  14317: else
1.25      millert  14318:   ac_cv_type_uid_t=no
                   14319: fi
                   14320: rm -f conftest*
1.16      millert  14321:
1.9       millert  14322: fi
1.27      millert  14323: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
                   14324: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25      millert  14325: if test $ac_cv_type_uid_t = no; then
                   14326:
                   14327: cat >>confdefs.h <<\_ACEOF
                   14328: #define uid_t int
                   14329: _ACEOF
                   14330:
                   14331:
                   14332: cat >>confdefs.h <<\_ACEOF
                   14333: #define gid_t int
1.16      millert  14334: _ACEOF
1.1       millert  14335:
                   14336: fi
                   14337:
1.37    ! millert  14338: { echo "$as_me:$LINENO: checking for __signed char" >&5
        !          14339: echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
        !          14340: if test "${ac_cv_type___signed_char+set}" = set; then
1.25      millert  14341:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14342: else
                   14343:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14344: /* confdefs.h.  */
                   14345: _ACEOF
                   14346: cat confdefs.h >>conftest.$ac_ext
                   14347: cat >>conftest.$ac_ext <<_ACEOF
                   14348: /* end confdefs.h.  */
1.37    ! millert  14349: $ac_includes_default
        !          14350: typedef __signed char ac__type_new_;
1.9       millert  14351: int
                   14352: main ()
                   14353: {
1.27      millert  14354: if ((ac__type_new_ *) 0)
1.25      millert  14355:   return 0;
1.27      millert  14356: if (sizeof (ac__type_new_))
1.25      millert  14357:   return 0;
1.9       millert  14358:   ;
                   14359:   return 0;
                   14360: }
                   14361: _ACEOF
                   14362: rm -f conftest.$ac_objext
1.27      millert  14363: if { (ac_try="$ac_compile"
                   14364: case "(($ac_try" in
                   14365:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14366:   *) ac_try_echo=$ac_try;;
                   14367: esac
                   14368: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14369:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14370:   ac_status=$?
1.25      millert  14371:   grep -v '^ *+' conftest.er1 >conftest.err
                   14372:   rm -f conftest.er1
                   14373:   cat conftest.err >&5
1.16      millert  14374:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14375:   (exit $ac_status); } && {
                   14376:         test -z "$ac_c_werror_flag" ||
                   14377:         test ! -s conftest.err
                   14378:        } && test -s conftest.$ac_objext; then
1.37    ! millert  14379:   ac_cv_type___signed_char=yes
1.9       millert  14380: else
                   14381:   echo "$as_me: failed program was:" >&5
1.16      millert  14382: sed 's/^/| /' conftest.$ac_ext >&5
                   14383:
1.37    ! millert  14384:        ac_cv_type___signed_char=no
1.25      millert  14385: fi
1.27      millert  14386:
                   14387: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  14388: fi
1.37    ! millert  14389: { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
        !          14390: echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
        !          14391: if test $ac_cv_type___signed_char = yes; then
        !          14392:   :
1.25      millert  14393: else
1.37    ! millert  14394:   { echo "$as_me:$LINENO: checking for signed char" >&5
        !          14395: echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
        !          14396: if test "${ac_cv_type_signed_char+set}" = set; then
1.9       millert  14397:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14398: else
1.25      millert  14399:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14400: /* confdefs.h.  */
                   14401: _ACEOF
                   14402: cat confdefs.h >>conftest.$ac_ext
                   14403: cat >>conftest.$ac_ext <<_ACEOF
                   14404: /* end confdefs.h.  */
1.37    ! millert  14405: $ac_includes_default
        !          14406: typedef signed char ac__type_new_;
1.9       millert  14407: int
1.25      millert  14408: main ()
                   14409: {
1.27      millert  14410: if ((ac__type_new_ *) 0)
1.25      millert  14411:   return 0;
1.27      millert  14412: if (sizeof (ac__type_new_))
1.25      millert  14413:   return 0;
1.9       millert  14414:   ;
                   14415:   return 0;
                   14416: }
                   14417: _ACEOF
1.25      millert  14418: rm -f conftest.$ac_objext
1.27      millert  14419: if { (ac_try="$ac_compile"
                   14420: case "(($ac_try" in
                   14421:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14422:   *) ac_try_echo=$ac_try;;
                   14423: esac
                   14424: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14425:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14426:   ac_status=$?
1.25      millert  14427:   grep -v '^ *+' conftest.er1 >conftest.err
                   14428:   rm -f conftest.er1
                   14429:   cat conftest.err >&5
1.16      millert  14430:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14431:   (exit $ac_status); } && {
                   14432:         test -z "$ac_c_werror_flag" ||
                   14433:         test ! -s conftest.err
                   14434:        } && test -s conftest.$ac_objext; then
1.37    ! millert  14435:   ac_cv_type_signed_char=yes
1.9       millert  14436: else
                   14437:   echo "$as_me: failed program was:" >&5
1.16      millert  14438: sed 's/^/| /' conftest.$ac_ext >&5
                   14439:
1.37    ! millert  14440:        ac_cv_type_signed_char=no
1.9       millert  14441: fi
1.27      millert  14442:
                   14443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14444: fi
1.37    ! millert  14445: { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
        !          14446: echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
        !          14447: if test $ac_cv_type_signed_char = yes; then
        !          14448:   cat >>confdefs.h <<\_ACEOF
        !          14449: #define __signed signed
        !          14450: _ACEOF
1.25      millert  14451:
1.37    ! millert  14452: else
        !          14453:   cat >>confdefs.h <<\_ACEOF
        !          14454: #define __signed
1.25      millert  14455: _ACEOF
                   14456:
1.37    ! millert  14457: fi
        !          14458:
        !          14459: fi
        !          14460:
        !          14461: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
        !          14462: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
        !          14463: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
        !          14464:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          14465: else
        !          14466:   cat >conftest.$ac_ext <<_ACEOF
        !          14467: /* confdefs.h.  */
        !          14468: _ACEOF
        !          14469: cat confdefs.h >>conftest.$ac_ext
        !          14470: cat >>conftest.$ac_ext <<_ACEOF
        !          14471: /* end confdefs.h.  */
        !          14472: #include <sys/types.h>
        !          14473: #include <signal.h>
        !          14474:
        !          14475: typedef sig_atomic_t ac__type_new_;
        !          14476: int
        !          14477: main ()
        !          14478: {
        !          14479: if ((ac__type_new_ *) 0)
        !          14480:   return 0;
        !          14481: if (sizeof (ac__type_new_))
        !          14482:   return 0;
        !          14483:   ;
        !          14484:   return 0;
        !          14485: }
        !          14486: _ACEOF
        !          14487: rm -f conftest.$ac_objext
        !          14488: if { (ac_try="$ac_compile"
        !          14489: case "(($ac_try" in
        !          14490:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          14491:   *) ac_try_echo=$ac_try;;
        !          14492: esac
        !          14493: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          14494:   (eval "$ac_compile") 2>conftest.er1
        !          14495:   ac_status=$?
        !          14496:   grep -v '^ *+' conftest.er1 >conftest.err
        !          14497:   rm -f conftest.er1
        !          14498:   cat conftest.err >&5
        !          14499:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          14500:   (exit $ac_status); } && {
        !          14501:         test -z "$ac_c_werror_flag" ||
        !          14502:         test ! -s conftest.err
        !          14503:        } && test -s conftest.$ac_objext; then
        !          14504:   ac_cv_type_sig_atomic_t=yes
        !          14505: else
        !          14506:   echo "$as_me: failed program was:" >&5
        !          14507: sed 's/^/| /' conftest.$ac_ext >&5
        !          14508:
        !          14509:        ac_cv_type_sig_atomic_t=no
        !          14510: fi
        !          14511:
        !          14512: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          14513: fi
        !          14514: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
        !          14515: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
        !          14516: if test $ac_cv_type_sig_atomic_t = yes; then
        !          14517:   :
        !          14518: else
        !          14519:   cat >>confdefs.h <<\_ACEOF
        !          14520: #define sig_atomic_t int
        !          14521: _ACEOF
        !          14522:
        !          14523: fi
        !          14524:
        !          14525: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
        !          14526: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
        !          14527: if test "${ac_cv_type_sigaction_t+set}" = set; then
        !          14528:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          14529: else
        !          14530:   cat >conftest.$ac_ext <<_ACEOF
        !          14531: /* confdefs.h.  */
        !          14532: _ACEOF
        !          14533: cat confdefs.h >>conftest.$ac_ext
        !          14534: cat >>conftest.$ac_ext <<_ACEOF
        !          14535: /* end confdefs.h.  */
        !          14536: #include <sys/types.h>
        !          14537: #include <signal.h>
        !          14538:
        !          14539: typedef sigaction_t ac__type_new_;
        !          14540: int
        !          14541: main ()
        !          14542: {
        !          14543: if ((ac__type_new_ *) 0)
        !          14544:   return 0;
        !          14545: if (sizeof (ac__type_new_))
        !          14546:   return 0;
        !          14547:   ;
        !          14548:   return 0;
        !          14549: }
        !          14550: _ACEOF
        !          14551: rm -f conftest.$ac_objext
        !          14552: if { (ac_try="$ac_compile"
        !          14553: case "(($ac_try" in
        !          14554:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          14555:   *) ac_try_echo=$ac_try;;
        !          14556: esac
        !          14557: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          14558:   (eval "$ac_compile") 2>conftest.er1
        !          14559:   ac_status=$?
        !          14560:   grep -v '^ *+' conftest.er1 >conftest.err
        !          14561:   rm -f conftest.er1
        !          14562:   cat conftest.err >&5
        !          14563:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          14564:   (exit $ac_status); } && {
        !          14565:         test -z "$ac_c_werror_flag" ||
        !          14566:         test ! -s conftest.err
        !          14567:        } && test -s conftest.$ac_objext; then
        !          14568:   ac_cv_type_sigaction_t=yes
        !          14569: else
        !          14570:   echo "$as_me: failed program was:" >&5
        !          14571: sed 's/^/| /' conftest.$ac_ext >&5
        !          14572:
        !          14573:        ac_cv_type_sigaction_t=no
        !          14574: fi
        !          14575:
        !          14576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          14577: fi
        !          14578: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
        !          14579: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
        !          14580: if test $ac_cv_type_sigaction_t = yes; then
        !          14581:
        !          14582: cat >>confdefs.h <<_ACEOF
        !          14583: #define HAVE_SIGACTION_T 1
        !          14584: _ACEOF
        !          14585:
        !          14586: cat >>confdefs.h <<\_ACEOF
        !          14587: #define HAVE_SIGACTION_T 1
        !          14588: _ACEOF
1.25      millert  14589:
1.1       millert  14590: fi
                   14591:
1.27      millert  14592: { echo "$as_me:$LINENO: checking for struct timespec" >&5
                   14593: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25      millert  14594: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9       millert  14595:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14596: else
1.9       millert  14597:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14598: /* confdefs.h.  */
                   14599: _ACEOF
                   14600: cat confdefs.h >>conftest.$ac_ext
                   14601: cat >>conftest.$ac_ext <<_ACEOF
                   14602: /* end confdefs.h.  */
1.25      millert  14603: #include <sys/types.h>
                   14604: #if TIME_WITH_SYS_TIME
                   14605: # include <sys/time.h>
1.1       millert  14606: #endif
1.31      millert  14607: #include <time.h>
1.1       millert  14608:
1.27      millert  14609: typedef struct timespec ac__type_new_;
1.16      millert  14610: int
                   14611: main ()
                   14612: {
1.27      millert  14613: if ((ac__type_new_ *) 0)
1.25      millert  14614:   return 0;
1.27      millert  14615: if (sizeof (ac__type_new_))
1.25      millert  14616:   return 0;
1.9       millert  14617:   ;
                   14618:   return 0;
                   14619: }
                   14620: _ACEOF
1.25      millert  14621: rm -f conftest.$ac_objext
1.27      millert  14622: if { (ac_try="$ac_compile"
                   14623: case "(($ac_try" in
                   14624:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14625:   *) ac_try_echo=$ac_try;;
                   14626: esac
                   14627: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14628:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14629:   ac_status=$?
1.25      millert  14630:   grep -v '^ *+' conftest.er1 >conftest.err
                   14631:   rm -f conftest.er1
                   14632:   cat conftest.err >&5
1.16      millert  14633:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14634:   (exit $ac_status); } && {
                   14635:         test -z "$ac_c_werror_flag" ||
                   14636:         test ! -s conftest.err
                   14637:        } && test -s conftest.$ac_objext; then
1.25      millert  14638:   ac_cv_type_struct_timespec=yes
1.9       millert  14639: else
                   14640:   echo "$as_me: failed program was:" >&5
1.16      millert  14641: sed 's/^/| /' conftest.$ac_ext >&5
                   14642:
1.27      millert  14643:        ac_cv_type_struct_timespec=no
1.9       millert  14644: fi
1.27      millert  14645:
                   14646: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14647: fi
1.27      millert  14648: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
                   14649: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25      millert  14650: if test $ac_cv_type_struct_timespec = yes; then
                   14651:   cat >>confdefs.h <<\_ACEOF
                   14652: #define HAVE_TIMESPEC 1
1.16      millert  14653: _ACEOF
1.1       millert  14654:
1.25      millert  14655: fi
                   14656:
1.31      millert  14657: { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
                   14658: echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
                   14659: if test "${ac_cv_type_struct_in6_addr+set}" = set; then
                   14660:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14661: else
                   14662:   cat >conftest.$ac_ext <<_ACEOF
                   14663: /* confdefs.h.  */
                   14664: _ACEOF
                   14665: cat confdefs.h >>conftest.$ac_ext
                   14666: cat >>conftest.$ac_ext <<_ACEOF
                   14667: /* end confdefs.h.  */
                   14668: #include <sys/types.h>
                   14669: #include <netinet/in.h>
                   14670:
                   14671: typedef struct in6_addr ac__type_new_;
                   14672: int
                   14673: main ()
                   14674: {
                   14675: if ((ac__type_new_ *) 0)
                   14676:   return 0;
                   14677: if (sizeof (ac__type_new_))
                   14678:   return 0;
                   14679:   ;
                   14680:   return 0;
                   14681: }
                   14682: _ACEOF
                   14683: rm -f conftest.$ac_objext
                   14684: if { (ac_try="$ac_compile"
                   14685: case "(($ac_try" in
                   14686:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14687:   *) ac_try_echo=$ac_try;;
                   14688: esac
                   14689: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14690:   (eval "$ac_compile") 2>conftest.er1
                   14691:   ac_status=$?
                   14692:   grep -v '^ *+' conftest.er1 >conftest.err
                   14693:   rm -f conftest.er1
                   14694:   cat conftest.err >&5
                   14695:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14696:   (exit $ac_status); } && {
                   14697:         test -z "$ac_c_werror_flag" ||
                   14698:         test ! -s conftest.err
                   14699:        } && test -s conftest.$ac_objext; then
                   14700:   ac_cv_type_struct_in6_addr=yes
                   14701: else
                   14702:   echo "$as_me: failed program was:" >&5
                   14703: sed 's/^/| /' conftest.$ac_ext >&5
                   14704:
                   14705:        ac_cv_type_struct_in6_addr=no
                   14706: fi
                   14707:
                   14708: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14709: fi
                   14710: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
                   14711: echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
                   14712: if test $ac_cv_type_struct_in6_addr = yes; then
                   14713:
                   14714: cat >>confdefs.h <<_ACEOF
                   14715: #define HAVE_STRUCT_IN6_ADDR 1
                   14716: _ACEOF
                   14717:
                   14718: cat >>confdefs.h <<\_ACEOF
                   14719: #define HAVE_IN6_ADDR 1
                   14720: _ACEOF
                   14721:
                   14722: fi
                   14723:
1.27      millert  14724: { echo "$as_me:$LINENO: checking for size_t" >&5
                   14725: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25      millert  14726: if test "${sudo_cv_type_size_t+set}" = set; then
                   14727:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14728: else
                   14729:   cat >conftest.$ac_ext <<_ACEOF
                   14730: /* confdefs.h.  */
                   14731: _ACEOF
                   14732: cat confdefs.h >>conftest.$ac_ext
                   14733: cat >>conftest.$ac_ext <<_ACEOF
                   14734: /* end confdefs.h.  */
                   14735: #include <sys/types.h>
                   14736: #include <stdio.h>
                   14737: #if STDC_HEADERS
                   14738: #include <stdlib.h>
                   14739: #endif
                   14740: #if HAVE_UNISTD_H
                   14741: #include <unistd.h>
                   14742: #endif
                   14743: _ACEOF
                   14744: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14745:   $EGREP "size_t" >/dev/null 2>&1; then
                   14746:   sudo_cv_type_size_t=yes
1.1       millert  14747: else
1.25      millert  14748:   sudo_cv_type_size_t=no
                   14749: fi
                   14750: rm -f conftest*
                   14751:
                   14752: fi
1.27      millert  14753: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
                   14754: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25      millert  14755: if test $sudo_cv_type_size_t = no; then
                   14756:
                   14757: cat >>confdefs.h <<\_ACEOF
                   14758: #define size_t int
                   14759: _ACEOF
                   14760:
                   14761: fi
                   14762:
1.27      millert  14763: { echo "$as_me:$LINENO: checking for ssize_t" >&5
                   14764: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25      millert  14765: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9       millert  14766:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14767: else
1.25      millert  14768:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14769: /* confdefs.h.  */
                   14770: _ACEOF
                   14771: cat confdefs.h >>conftest.$ac_ext
                   14772: cat >>conftest.$ac_ext <<_ACEOF
                   14773: /* end confdefs.h.  */
1.25      millert  14774: #include <sys/types.h>
                   14775: #include <stdio.h>
                   14776: #if STDC_HEADERS
                   14777: #include <stdlib.h>
                   14778: #endif
                   14779: #if HAVE_UNISTD_H
                   14780: #include <unistd.h>
1.9       millert  14781: #endif
                   14782: _ACEOF
1.25      millert  14783: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14784:   $EGREP "ssize_t" >/dev/null 2>&1; then
                   14785:   sudo_cv_type_ssize_t=yes
1.9       millert  14786: else
1.25      millert  14787:   sudo_cv_type_ssize_t=no
                   14788: fi
                   14789: rm -f conftest*
1.16      millert  14790:
1.9       millert  14791: fi
1.27      millert  14792: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
                   14793: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25      millert  14794: if test $sudo_cv_type_ssize_t = no; then
                   14795:
                   14796: cat >>confdefs.h <<\_ACEOF
                   14797: #define ssize_t int
                   14798: _ACEOF
                   14799:
1.9       millert  14800: fi
1.25      millert  14801:
1.27      millert  14802: { echo "$as_me:$LINENO: checking for dev_t" >&5
                   14803: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25      millert  14804: if test "${sudo_cv_type_dev_t+set}" = set; then
                   14805:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14806: else
                   14807:   cat >conftest.$ac_ext <<_ACEOF
                   14808: /* confdefs.h.  */
                   14809: _ACEOF
                   14810: cat confdefs.h >>conftest.$ac_ext
                   14811: cat >>conftest.$ac_ext <<_ACEOF
                   14812: /* end confdefs.h.  */
                   14813: #include <sys/types.h>
                   14814: #include <stdio.h>
                   14815: #if STDC_HEADERS
                   14816: #include <stdlib.h>
                   14817: #endif
                   14818: #if HAVE_UNISTD_H
                   14819: #include <unistd.h>
                   14820: #endif
1.16      millert  14821: _ACEOF
1.25      millert  14822: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14823:   $EGREP "dev_t" >/dev/null 2>&1; then
                   14824:   sudo_cv_type_dev_t=yes
                   14825: else
                   14826:   sudo_cv_type_dev_t=no
1.1       millert  14827: fi
1.25      millert  14828: rm -f conftest*
1.1       millert  14829:
                   14830: fi
1.27      millert  14831: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
                   14832: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25      millert  14833: if test $sudo_cv_type_dev_t = no; then
1.1       millert  14834:
1.25      millert  14835: cat >>confdefs.h <<\_ACEOF
                   14836: #define dev_t int
                   14837: _ACEOF
1.1       millert  14838:
1.25      millert  14839: fi
1.1       millert  14840:
1.27      millert  14841: { echo "$as_me:$LINENO: checking for ino_t" >&5
                   14842: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
                   14843: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9       millert  14844:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14845: else
1.25      millert  14846:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14847: /* confdefs.h.  */
                   14848: _ACEOF
                   14849: cat confdefs.h >>conftest.$ac_ext
                   14850: cat >>conftest.$ac_ext <<_ACEOF
                   14851: /* end confdefs.h.  */
1.25      millert  14852: #include <sys/types.h>
1.27      millert  14853: #include <stdio.h>
                   14854: #if STDC_HEADERS
                   14855: #include <stdlib.h>
                   14856: #endif
                   14857: #if HAVE_UNISTD_H
                   14858: #include <unistd.h>
                   14859: #endif
1.9       millert  14860: _ACEOF
1.27      millert  14861: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14862:   $EGREP "ino_t" >/dev/null 2>&1; then
                   14863:   sudo_cv_type_ino_t=yes
1.9       millert  14864: else
1.27      millert  14865:   sudo_cv_type_ino_t=no
                   14866: fi
                   14867: rm -f conftest*
1.16      millert  14868:
1.25      millert  14869: fi
1.27      millert  14870: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
                   14871: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
                   14872: if test $sudo_cv_type_ino_t = no; then
1.25      millert  14873:
                   14874: cat >>confdefs.h <<\_ACEOF
1.27      millert  14875: #define ino_t unsigned int
1.16      millert  14876: _ACEOF
1.25      millert  14877:
1.1       millert  14878: fi
                   14879:
1.6       millert  14880:
1.27      millert  14881: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
                   14882: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
                   14883: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9       millert  14884:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14885: else
1.27      millert  14886:   rm -f conftestdata
                   14887: if test "$cross_compiling" = yes; then
                   14888:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
                   14889: See \`config.log' for more details." >&5
                   14890: echo "$as_me: error: cannot run test program while cross compiling
                   14891: See \`config.log' for more details." >&2;}
                   14892:    { (exit 1); exit 1; }; }
                   14893: else
1.9       millert  14894:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14895: /* confdefs.h.  */
                   14896: _ACEOF
                   14897: cat confdefs.h >>conftest.$ac_ext
                   14898: cat >>conftest.$ac_ext <<_ACEOF
                   14899: /* end confdefs.h.  */
1.27      millert  14900: #include <stdio.h>
                   14901: #include <pwd.h>
                   14902: #include <limits.h>
                   14903: #include <sys/types.h>
                   14904: #include <sys/param.h>
                   14905: main() {
                   14906:   FILE *f;
                   14907:   char b[1024];
                   14908:   uid_t u = (uid_t) -1;
1.25      millert  14909:
1.27      millert  14910:   if ((f = fopen("conftestdata", "w")) == NULL)
                   14911:     exit(1);
1.25      millert  14912:
1.27      millert  14913:   (void) sprintf(b, "%lu", (unsigned long) u);
                   14914:   (void) fprintf(f, "%d\n", strlen(b));
                   14915:   (void) fclose(f);
                   14916:   exit(0);
1.9       millert  14917: }
                   14918: _ACEOF
1.27      millert  14919: rm -f conftest$ac_exeext
                   14920: if { (ac_try="$ac_link"
                   14921: case "(($ac_try" in
                   14922:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14923:   *) ac_try_echo=$ac_try;;
                   14924: esac
                   14925: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14926:   (eval "$ac_link") 2>&5
1.9       millert  14927:   ac_status=$?
1.16      millert  14928:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14929:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   14930:   { (case "(($ac_try" in
                   14931:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14932:   *) ac_try_echo=$ac_try;;
                   14933: esac
                   14934: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14935:   (eval "$ac_try") 2>&5
1.9       millert  14936:   ac_status=$?
1.16      millert  14937:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14938:   (exit $ac_status); }; }; then
1.27      millert  14939:   sudo_cv_uid_t_len=`cat conftestdata`
1.9       millert  14940: else
1.27      millert  14941:   echo "$as_me: program exited with status $ac_status" >&5
                   14942: echo "$as_me: failed program was:" >&5
1.16      millert  14943: sed 's/^/| /' conftest.$ac_ext >&5
                   14944:
1.27      millert  14945: ( exit $ac_status )
                   14946: sudo_cv_uid_t_len=10
1.9       millert  14947: fi
1.27      millert  14948: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14949: fi
1.27      millert  14950:
                   14951:
1.25      millert  14952:
                   14953: fi
                   14954:
1.27      millert  14955: rm -f conftestdata
                   14956: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
                   14957: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
                   14958:
                   14959: cat >>confdefs.h <<_ACEOF
                   14960: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   14961: _ACEOF
                   14962:
1.25      millert  14963:
1.27      millert  14964: { echo "$as_me:$LINENO: checking for long long" >&5
                   14965: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
                   14966: if test "${ac_cv_type_long_long+set}" = set; then
1.9       millert  14967:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14968: else
1.25      millert  14969:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14970: /* confdefs.h.  */
                   14971: _ACEOF
                   14972: cat confdefs.h >>conftest.$ac_ext
                   14973: cat >>conftest.$ac_ext <<_ACEOF
                   14974: /* end confdefs.h.  */
1.27      millert  14975: $ac_includes_default
                   14976: typedef long long ac__type_new_;
1.9       millert  14977: int
                   14978: main ()
                   14979: {
1.27      millert  14980: if ((ac__type_new_ *) 0)
                   14981:   return 0;
                   14982: if (sizeof (ac__type_new_))
                   14983:   return 0;
1.9       millert  14984:   ;
                   14985:   return 0;
                   14986: }
                   14987: _ACEOF
1.27      millert  14988: rm -f conftest.$ac_objext
                   14989: if { (ac_try="$ac_compile"
                   14990: case "(($ac_try" in
                   14991:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14992:   *) ac_try_echo=$ac_try;;
                   14993: esac
                   14994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14995:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14996:   ac_status=$?
1.25      millert  14997:   grep -v '^ *+' conftest.er1 >conftest.err
                   14998:   rm -f conftest.er1
                   14999:   cat conftest.err >&5
1.16      millert  15000:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15001:   (exit $ac_status); } && {
                   15002:         test -z "$ac_c_werror_flag" ||
                   15003:         test ! -s conftest.err
                   15004:        } && test -s conftest.$ac_objext; then
                   15005:   ac_cv_type_long_long=yes
1.9       millert  15006: else
                   15007:   echo "$as_me: failed program was:" >&5
1.16      millert  15008: sed 's/^/| /' conftest.$ac_ext >&5
                   15009:
1.27      millert  15010:        ac_cv_type_long_long=no
1.9       millert  15011: fi
1.27      millert  15012:
                   15013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  15014: fi
1.27      millert  15015: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
                   15016: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
                   15017: if test $ac_cv_type_long_long = yes; then
                   15018:
                   15019: cat >>confdefs.h <<_ACEOF
                   15020: #define HAVE_LONG_LONG 1
1.16      millert  15021: _ACEOF
1.9       millert  15022:
1.1       millert  15023:
1.27      millert  15024: cat >>confdefs.h <<\_ACEOF
                   15025: #define HAVE_LONG_LONG 1
                   15026: _ACEOF
                   15027:
                   15028: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
                   15029: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
                   15030: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9       millert  15031:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15032: else
1.27      millert  15033:   if test "$cross_compiling" = yes; then
                   15034:   sudo_cv_type_long_is_quad=no
                   15035: else
1.9       millert  15036:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15037: /* confdefs.h.  */
                   15038: _ACEOF
                   15039: cat confdefs.h >>conftest.$ac_ext
                   15040: cat >>conftest.$ac_ext <<_ACEOF
                   15041: /* end confdefs.h.  */
1.25      millert  15042:
1.27      millert  15043: main() {
                   15044: if (sizeof(long long) == sizeof(long)) exit(0);
                   15045: else exit(1);
1.9       millert  15046: }
                   15047: _ACEOF
1.27      millert  15048: rm -f conftest$ac_exeext
                   15049: if { (ac_try="$ac_link"
                   15050: case "(($ac_try" in
                   15051:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15052:   *) ac_try_echo=$ac_try;;
                   15053: esac
                   15054: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15055:   (eval "$ac_link") 2>&5
1.9       millert  15056:   ac_status=$?
1.16      millert  15057:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15058:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15059:   { (case "(($ac_try" in
                   15060:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15061:   *) ac_try_echo=$ac_try;;
                   15062: esac
                   15063: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15064:   (eval "$ac_try") 2>&5
1.9       millert  15065:   ac_status=$?
1.16      millert  15066:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15067:   (exit $ac_status); }; }; then
1.27      millert  15068:   sudo_cv_type_long_is_quad=yes
1.9       millert  15069: else
1.27      millert  15070:   echo "$as_me: program exited with status $ac_status" >&5
                   15071: echo "$as_me: failed program was:" >&5
1.16      millert  15072: sed 's/^/| /' conftest.$ac_ext >&5
                   15073:
1.27      millert  15074: ( exit $ac_status )
                   15075: sudo_cv_type_long_is_quad=no
                   15076: fi
                   15077: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15078: fi
1.27      millert  15079:
                   15080:
                   15081: rm -f core core.* *.core
1.9       millert  15082: fi
1.27      millert  15083: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
                   15084: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
                   15085: if test $sudo_cv_type_long_is_quad = yes; then
                   15086:
                   15087: cat >>confdefs.h <<\_ACEOF
                   15088: #define LONG_IS_QUAD 1
1.16      millert  15089: _ACEOF
1.27      millert  15090:
1.25      millert  15091: fi
                   15092:
                   15093: fi
                   15094:
1.27      millert  15095: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
                   15096: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
                   15097: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9       millert  15098:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15099: else
1.27      millert  15100:   if test "$cross_compiling" = yes; then
                   15101:   sudo_cv_sock_sa_len=no
                   15102: else
1.25      millert  15103:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15104: /* confdefs.h.  */
                   15105: _ACEOF
                   15106: cat confdefs.h >>conftest.$ac_ext
                   15107: cat >>conftest.$ac_ext <<_ACEOF
                   15108: /* end confdefs.h.  */
1.27      millert  15109: #include <sys/types.h>
                   15110: #include <sys/socket.h>
                   15111: main() {
                   15112: struct sockaddr s;
                   15113: s.sa_len = 0;
                   15114: exit(0);
1.9       millert  15115: }
                   15116: _ACEOF
1.27      millert  15117: rm -f conftest$ac_exeext
                   15118: if { (ac_try="$ac_link"
                   15119: case "(($ac_try" in
                   15120:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15121:   *) ac_try_echo=$ac_try;;
                   15122: esac
                   15123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15124:   (eval "$ac_link") 2>&5
1.9       millert  15125:   ac_status=$?
1.16      millert  15126:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15127:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15128:   { (case "(($ac_try" in
                   15129:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15130:   *) ac_try_echo=$ac_try;;
                   15131: esac
                   15132: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15133:   (eval "$ac_try") 2>&5
1.9       millert  15134:   ac_status=$?
1.16      millert  15135:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15136:   (exit $ac_status); }; }; then
1.27      millert  15137:   sudo_cv_sock_sa_len=yes
1.9       millert  15138: else
1.27      millert  15139:   echo "$as_me: program exited with status $ac_status" >&5
                   15140: echo "$as_me: failed program was:" >&5
1.16      millert  15141: sed 's/^/| /' conftest.$ac_ext >&5
                   15142:
1.27      millert  15143: ( exit $ac_status )
                   15144: sudo_cv_sock_sa_len=no
1.9       millert  15145: fi
1.27      millert  15146: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15147: fi
1.1       millert  15148:
1.27      millert  15149:
                   15150: rm -f core core.* *.core
1.1       millert  15151: fi
1.27      millert  15152: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
                   15153: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
                   15154: if test $sudo_cv_sock_sa_len = yes; then
                   15155:
                   15156: cat >>confdefs.h <<\_ACEOF
                   15157: #define HAVE_SA_LEN 1
                   15158: _ACEOF
1.1       millert  15159:
                   15160: fi
                   15161:
1.27      millert  15162: case "$DEFS" in
                   15163:     *"RETSIGTYPE"*)    ;;
                   15164:     *)                 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
                   15165: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
                   15166: if test "${ac_cv_type_signal+set}" = set; then
1.9       millert  15167:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15168: else
1.9       millert  15169:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15170: /* confdefs.h.  */
                   15171: _ACEOF
                   15172: cat confdefs.h >>conftest.$ac_ext
                   15173: cat >>conftest.$ac_ext <<_ACEOF
                   15174: /* end confdefs.h.  */
1.27      millert  15175: #include <sys/types.h>
                   15176: #include <signal.h>
1.9       millert  15177:
                   15178: int
                   15179: main ()
                   15180: {
1.27      millert  15181: return *(signal (0, 0)) (0) == 1;
1.9       millert  15182:   ;
                   15183:   return 0;
1.1       millert  15184: }
1.9       millert  15185: _ACEOF
1.27      millert  15186: rm -f conftest.$ac_objext
                   15187: if { (ac_try="$ac_compile"
                   15188: case "(($ac_try" in
                   15189:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15190:   *) ac_try_echo=$ac_try;;
                   15191: esac
                   15192: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15193:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15194:   ac_status=$?
1.25      millert  15195:   grep -v '^ *+' conftest.er1 >conftest.err
                   15196:   rm -f conftest.er1
                   15197:   cat conftest.err >&5
1.16      millert  15198:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15199:   (exit $ac_status); } && {
                   15200:         test -z "$ac_c_werror_flag" ||
                   15201:         test ! -s conftest.err
                   15202:        } && test -s conftest.$ac_objext; then
                   15203:   ac_cv_type_signal=int
1.1       millert  15204: else
1.9       millert  15205:   echo "$as_me: failed program was:" >&5
1.16      millert  15206: sed 's/^/| /' conftest.$ac_ext >&5
                   15207:
1.27      millert  15208:        ac_cv_type_signal=void
1.9       millert  15209: fi
1.27      millert  15210:
                   15211: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  15212: fi
1.27      millert  15213: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
                   15214: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
                   15215:
                   15216: cat >>confdefs.h <<_ACEOF
                   15217: #define RETSIGTYPE $ac_cv_type_signal
1.25      millert  15218: _ACEOF
                   15219:
1.27      millert  15220: ;;
                   15221: esac
1.32      millert  15222: { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
                   15223: echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
                   15224: if test "${ac_cv_type_getgroups+set}" = set; then
                   15225:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15226: else
                   15227:   if test "$cross_compiling" = yes; then
                   15228:   ac_cv_type_getgroups=cross
                   15229: else
                   15230:   cat >conftest.$ac_ext <<_ACEOF
                   15231: /* confdefs.h.  */
                   15232: _ACEOF
                   15233: cat confdefs.h >>conftest.$ac_ext
                   15234: cat >>conftest.$ac_ext <<_ACEOF
                   15235: /* end confdefs.h.  */
                   15236: /* Thanks to Mike Rendell for this test.  */
                   15237: $ac_includes_default
                   15238: #define NGID 256
                   15239: #undef MAX
                   15240: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   15241:
                   15242: int
                   15243: main ()
                   15244: {
                   15245:   gid_t gidset[NGID];
                   15246:   int i, n;
                   15247:   union { gid_t gval; long int lval; }  val;
                   15248:
                   15249:   val.lval = -1;
                   15250:   for (i = 0; i < NGID; i++)
                   15251:     gidset[i] = val.gval;
                   15252:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   15253:                 gidset);
                   15254:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   15255:      happens when gid_t is short int but getgroups modifies an array
                   15256:      of ints.  */
                   15257:   return n > 0 && gidset[n] != val.gval;
                   15258: }
                   15259: _ACEOF
                   15260: rm -f conftest$ac_exeext
                   15261: if { (ac_try="$ac_link"
                   15262: case "(($ac_try" in
                   15263:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15264:   *) ac_try_echo=$ac_try;;
                   15265: esac
                   15266: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15267:   (eval "$ac_link") 2>&5
                   15268:   ac_status=$?
                   15269:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15270:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15271:   { (case "(($ac_try" in
                   15272:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15273:   *) ac_try_echo=$ac_try;;
                   15274: esac
                   15275: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15276:   (eval "$ac_try") 2>&5
                   15277:   ac_status=$?
                   15278:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15279:   (exit $ac_status); }; }; then
                   15280:   ac_cv_type_getgroups=gid_t
                   15281: else
                   15282:   echo "$as_me: program exited with status $ac_status" >&5
                   15283: echo "$as_me: failed program was:" >&5
                   15284: sed 's/^/| /' conftest.$ac_ext >&5
                   15285:
                   15286: ( exit $ac_status )
                   15287: ac_cv_type_getgroups=int
                   15288: fi
                   15289: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15290: fi
                   15291:
                   15292:
                   15293: if test $ac_cv_type_getgroups = cross; then
                   15294:         cat >conftest.$ac_ext <<_ACEOF
                   15295: /* confdefs.h.  */
                   15296: _ACEOF
                   15297: cat confdefs.h >>conftest.$ac_ext
                   15298: cat >>conftest.$ac_ext <<_ACEOF
                   15299: /* end confdefs.h.  */
                   15300: #include <unistd.h>
                   15301:
                   15302: _ACEOF
                   15303: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15304:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
                   15305:   ac_cv_type_getgroups=gid_t
                   15306: else
                   15307:   ac_cv_type_getgroups=int
                   15308: fi
                   15309: rm -f conftest*
                   15310:
                   15311: fi
                   15312: fi
                   15313: { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
                   15314: echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
                   15315:
                   15316: cat >>confdefs.h <<_ACEOF
                   15317: #define GETGROUPS_T $ac_cv_type_getgroups
                   15318: _ACEOF
                   15319:
                   15320:
                   15321: { echo "$as_me:$LINENO: checking for size_t" >&5
                   15322: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
                   15323: if test "${ac_cv_type_size_t+set}" = set; then
                   15324:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15325: else
                   15326:   cat >conftest.$ac_ext <<_ACEOF
                   15327: /* confdefs.h.  */
                   15328: _ACEOF
                   15329: cat confdefs.h >>conftest.$ac_ext
                   15330: cat >>conftest.$ac_ext <<_ACEOF
                   15331: /* end confdefs.h.  */
                   15332: $ac_includes_default
                   15333: typedef size_t ac__type_new_;
                   15334: int
                   15335: main ()
                   15336: {
                   15337: if ((ac__type_new_ *) 0)
                   15338:   return 0;
                   15339: if (sizeof (ac__type_new_))
                   15340:   return 0;
                   15341:   ;
                   15342:   return 0;
                   15343: }
                   15344: _ACEOF
                   15345: rm -f conftest.$ac_objext
                   15346: if { (ac_try="$ac_compile"
                   15347: case "(($ac_try" in
                   15348:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15349:   *) ac_try_echo=$ac_try;;
                   15350: esac
                   15351: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15352:   (eval "$ac_compile") 2>conftest.er1
                   15353:   ac_status=$?
                   15354:   grep -v '^ *+' conftest.er1 >conftest.err
                   15355:   rm -f conftest.er1
                   15356:   cat conftest.err >&5
                   15357:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15358:   (exit $ac_status); } && {
                   15359:         test -z "$ac_c_werror_flag" ||
                   15360:         test ! -s conftest.err
                   15361:        } && test -s conftest.$ac_objext; then
                   15362:   ac_cv_type_size_t=yes
                   15363: else
                   15364:   echo "$as_me: failed program was:" >&5
                   15365: sed 's/^/| /' conftest.$ac_ext >&5
                   15366:
                   15367:        ac_cv_type_size_t=no
                   15368: fi
                   15369:
                   15370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15371: fi
                   15372: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
                   15373: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
                   15374: if test $ac_cv_type_size_t = yes; then
                   15375:   :
                   15376: else
                   15377:
                   15378: cat >>confdefs.h <<_ACEOF
                   15379: #define size_t unsigned int
                   15380: _ACEOF
                   15381:
                   15382: fi
                   15383:
                   15384: { echo "$as_me:$LINENO: checking for getgroups" >&5
                   15385: echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
                   15386: if test "${ac_cv_func_getgroups+set}" = set; then
                   15387:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15388: else
                   15389:   cat >conftest.$ac_ext <<_ACEOF
                   15390: /* confdefs.h.  */
                   15391: _ACEOF
                   15392: cat confdefs.h >>conftest.$ac_ext
                   15393: cat >>conftest.$ac_ext <<_ACEOF
                   15394: /* end confdefs.h.  */
                   15395: /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
                   15396:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15397: #define getgroups innocuous_getgroups
                   15398:
                   15399: /* System header to define __stub macros and hopefully few prototypes,
                   15400:     which can conflict with char getgroups (); below.
                   15401:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15402:     <limits.h> exists even on freestanding compilers.  */
                   15403:
                   15404: #ifdef __STDC__
                   15405: # include <limits.h>
                   15406: #else
                   15407: # include <assert.h>
                   15408: #endif
                   15409:
                   15410: #undef getgroups
                   15411:
                   15412: /* Override any GCC internal prototype to avoid an error.
                   15413:    Use char because int might match the return type of a GCC
                   15414:    builtin and then its argument prototype would still apply.  */
                   15415: #ifdef __cplusplus
                   15416: extern "C"
                   15417: #endif
                   15418: char getgroups ();
                   15419: /* The GNU C library defines this for functions which it implements
                   15420:     to always fail with ENOSYS.  Some functions are actually named
                   15421:     something starting with __ and the normal name is an alias.  */
                   15422: #if defined __stub_getgroups || defined __stub___getgroups
                   15423: choke me
                   15424: #endif
                   15425:
                   15426: int
                   15427: main ()
                   15428: {
                   15429: return getgroups ();
                   15430:   ;
                   15431:   return 0;
                   15432: }
                   15433: _ACEOF
                   15434: rm -f conftest.$ac_objext conftest$ac_exeext
                   15435: if { (ac_try="$ac_link"
                   15436: case "(($ac_try" in
                   15437:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15438:   *) ac_try_echo=$ac_try;;
                   15439: esac
                   15440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15441:   (eval "$ac_link") 2>conftest.er1
                   15442:   ac_status=$?
                   15443:   grep -v '^ *+' conftest.er1 >conftest.err
                   15444:   rm -f conftest.er1
                   15445:   cat conftest.err >&5
                   15446:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15447:   (exit $ac_status); } && {
                   15448:         test -z "$ac_c_werror_flag" ||
                   15449:         test ! -s conftest.err
                   15450:        } && test -s conftest$ac_exeext &&
                   15451:        $as_test_x conftest$ac_exeext; then
                   15452:   ac_cv_func_getgroups=yes
                   15453: else
                   15454:   echo "$as_me: failed program was:" >&5
                   15455: sed 's/^/| /' conftest.$ac_ext >&5
                   15456:
                   15457:        ac_cv_func_getgroups=no
                   15458: fi
                   15459:
                   15460: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15461:       conftest$ac_exeext conftest.$ac_ext
                   15462: fi
                   15463: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
                   15464: echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
                   15465:
                   15466:
                   15467: # If we don't yet have getgroups, see if it's in -lbsd.
                   15468: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
                   15469: ac_save_LIBS=$LIBS
                   15470: if test $ac_cv_func_getgroups = no; then
                   15471:   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
                   15472: echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
                   15473: if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
                   15474:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15475: else
                   15476:   ac_check_lib_save_LIBS=$LIBS
                   15477: LIBS="-lbsd  $LIBS"
                   15478: cat >conftest.$ac_ext <<_ACEOF
                   15479: /* confdefs.h.  */
                   15480: _ACEOF
                   15481: cat confdefs.h >>conftest.$ac_ext
                   15482: cat >>conftest.$ac_ext <<_ACEOF
                   15483: /* end confdefs.h.  */
                   15484:
                   15485: /* Override any GCC internal prototype to avoid an error.
                   15486:    Use char because int might match the return type of a GCC
                   15487:    builtin and then its argument prototype would still apply.  */
                   15488: #ifdef __cplusplus
                   15489: extern "C"
                   15490: #endif
                   15491: char getgroups ();
                   15492: int
                   15493: main ()
                   15494: {
                   15495: return getgroups ();
                   15496:   ;
                   15497:   return 0;
                   15498: }
                   15499: _ACEOF
                   15500: rm -f conftest.$ac_objext conftest$ac_exeext
                   15501: if { (ac_try="$ac_link"
                   15502: case "(($ac_try" in
                   15503:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15504:   *) ac_try_echo=$ac_try;;
                   15505: esac
                   15506: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15507:   (eval "$ac_link") 2>conftest.er1
                   15508:   ac_status=$?
                   15509:   grep -v '^ *+' conftest.er1 >conftest.err
                   15510:   rm -f conftest.er1
                   15511:   cat conftest.err >&5
                   15512:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15513:   (exit $ac_status); } && {
                   15514:         test -z "$ac_c_werror_flag" ||
                   15515:         test ! -s conftest.err
                   15516:        } && test -s conftest$ac_exeext &&
                   15517:        $as_test_x conftest$ac_exeext; then
                   15518:   ac_cv_lib_bsd_getgroups=yes
                   15519: else
                   15520:   echo "$as_me: failed program was:" >&5
                   15521: sed 's/^/| /' conftest.$ac_ext >&5
                   15522:
                   15523:        ac_cv_lib_bsd_getgroups=no
                   15524: fi
                   15525:
                   15526: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15527:       conftest$ac_exeext conftest.$ac_ext
                   15528: LIBS=$ac_check_lib_save_LIBS
                   15529: fi
                   15530: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
                   15531: echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
                   15532: if test $ac_cv_lib_bsd_getgroups = yes; then
                   15533:   GETGROUPS_LIB=-lbsd
                   15534: fi
                   15535:
                   15536: fi
                   15537:
                   15538: # Run the program to test the functionality of the system-supplied
                   15539: # getgroups function only if there is such a function.
                   15540: if test $ac_cv_func_getgroups = yes; then
                   15541:   { echo "$as_me:$LINENO: checking for working getgroups" >&5
                   15542: echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
                   15543: if test "${ac_cv_func_getgroups_works+set}" = set; then
                   15544:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15545: else
                   15546:   if test "$cross_compiling" = yes; then
                   15547:   ac_cv_func_getgroups_works=no
                   15548: else
                   15549:   cat >conftest.$ac_ext <<_ACEOF
                   15550: /* confdefs.h.  */
                   15551: _ACEOF
                   15552: cat confdefs.h >>conftest.$ac_ext
                   15553: cat >>conftest.$ac_ext <<_ACEOF
                   15554: /* end confdefs.h.  */
                   15555: $ac_includes_default
                   15556: int
                   15557: main ()
                   15558: {
                   15559: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
                   15560:        return getgroups (0, 0) == -1;
                   15561:   ;
                   15562:   return 0;
                   15563: }
                   15564: _ACEOF
                   15565: rm -f conftest$ac_exeext
                   15566: if { (ac_try="$ac_link"
                   15567: case "(($ac_try" in
                   15568:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15569:   *) ac_try_echo=$ac_try;;
                   15570: esac
                   15571: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15572:   (eval "$ac_link") 2>&5
                   15573:   ac_status=$?
                   15574:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15575:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15576:   { (case "(($ac_try" in
                   15577:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15578:   *) ac_try_echo=$ac_try;;
                   15579: esac
                   15580: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15581:   (eval "$ac_try") 2>&5
                   15582:   ac_status=$?
                   15583:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15584:   (exit $ac_status); }; }; then
                   15585:   ac_cv_func_getgroups_works=yes
                   15586: else
                   15587:   echo "$as_me: program exited with status $ac_status" >&5
                   15588: echo "$as_me: failed program was:" >&5
                   15589: sed 's/^/| /' conftest.$ac_ext >&5
                   15590:
                   15591: ( exit $ac_status )
                   15592: ac_cv_func_getgroups_works=no
                   15593: fi
                   15594: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15595: fi
                   15596:
                   15597:
                   15598:
                   15599: fi
                   15600: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
                   15601: echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
                   15602:   if test $ac_cv_func_getgroups_works = yes; then
                   15603:
                   15604: cat >>confdefs.h <<\_ACEOF
                   15605: #define HAVE_GETGROUPS 1
                   15606: _ACEOF
                   15607:
                   15608:   fi
                   15609: fi
                   15610: LIBS=$ac_save_LIBS
                   15611:
1.27      millert  15612:
                   15613:
                   15614:
                   15615:
                   15616:
                   15617:
                   15618:
                   15619:
                   15620:
                   15621:
                   15622:
                   15623:
                   15624:
                   15625:
                   15626:
1.36      millert  15627:
1.27      millert  15628: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   15629:               strftime setrlimit initgroups getgroups fstat gettimeofday \
1.36      millert  15630:               setlocale getaddrinfo setsid
1.25      millert  15631: do
                   15632: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15633: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15634: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15635: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15636:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15637: else
                   15638:   cat >conftest.$ac_ext <<_ACEOF
                   15639: /* confdefs.h.  */
                   15640: _ACEOF
                   15641: cat confdefs.h >>conftest.$ac_ext
                   15642: cat >>conftest.$ac_ext <<_ACEOF
                   15643: /* end confdefs.h.  */
                   15644: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15645:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15646: #define $ac_func innocuous_$ac_func
                   15647:
                   15648: /* System header to define __stub macros and hopefully few prototypes,
                   15649:     which can conflict with char $ac_func (); below.
                   15650:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15651:     <limits.h> exists even on freestanding compilers.  */
                   15652:
                   15653: #ifdef __STDC__
                   15654: # include <limits.h>
                   15655: #else
                   15656: # include <assert.h>
                   15657: #endif
                   15658:
                   15659: #undef $ac_func
                   15660:
1.27      millert  15661: /* Override any GCC internal prototype to avoid an error.
                   15662:    Use char because int might match the return type of a GCC
                   15663:    builtin and then its argument prototype would still apply.  */
1.25      millert  15664: #ifdef __cplusplus
                   15665: extern "C"
                   15666: #endif
                   15667: char $ac_func ();
                   15668: /* The GNU C library defines this for functions which it implements
                   15669:     to always fail with ENOSYS.  Some functions are actually named
                   15670:     something starting with __ and the normal name is an alias.  */
1.27      millert  15671: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15672: choke me
                   15673: #endif
1.9       millert  15674:
                   15675: int
                   15676: main ()
                   15677: {
1.27      millert  15678: return $ac_func ();
1.9       millert  15679:   ;
                   15680:   return 0;
                   15681: }
                   15682: _ACEOF
1.25      millert  15683: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15684: if { (ac_try="$ac_link"
                   15685: case "(($ac_try" in
                   15686:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15687:   *) ac_try_echo=$ac_try;;
                   15688: esac
                   15689: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15690:   (eval "$ac_link") 2>conftest.er1
1.9       millert  15691:   ac_status=$?
1.25      millert  15692:   grep -v '^ *+' conftest.er1 >conftest.err
                   15693:   rm -f conftest.er1
                   15694:   cat conftest.err >&5
1.16      millert  15695:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15696:   (exit $ac_status); } && {
                   15697:         test -z "$ac_c_werror_flag" ||
                   15698:         test ! -s conftest.err
                   15699:        } && test -s conftest$ac_exeext &&
                   15700:        $as_test_x conftest$ac_exeext; then
1.25      millert  15701:   eval "$as_ac_var=yes"
1.9       millert  15702: else
                   15703:   echo "$as_me: failed program was:" >&5
1.16      millert  15704: sed 's/^/| /' conftest.$ac_ext >&5
                   15705:
1.27      millert  15706:        eval "$as_ac_var=no"
1.9       millert  15707: fi
1.27      millert  15708:
                   15709: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15710:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15711: fi
1.27      millert  15712: ac_res=`eval echo '${'$as_ac_var'}'`
                   15713:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15714: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15715: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15716:   cat >>confdefs.h <<_ACEOF
                   15717: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  15718: _ACEOF
1.1       millert  15719:
                   15720: fi
1.9       millert  15721: done
                   15722:
1.27      millert  15723: if test -z "$SKIP_SETRESUID"; then
1.1       millert  15724:
1.27      millert  15725: for ac_func in setresuid
1.25      millert  15726: do
                   15727: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15728: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15729: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15730: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15731:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15732: else
1.25      millert  15733:   cat >conftest.$ac_ext <<_ACEOF
                   15734: /* confdefs.h.  */
                   15735: _ACEOF
                   15736: cat confdefs.h >>conftest.$ac_ext
                   15737: cat >>conftest.$ac_ext <<_ACEOF
                   15738: /* end confdefs.h.  */
                   15739: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15740:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15741: #define $ac_func innocuous_$ac_func
1.9       millert  15742:
1.25      millert  15743: /* System header to define __stub macros and hopefully few prototypes,
                   15744:     which can conflict with char $ac_func (); below.
                   15745:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15746:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  15747:
1.25      millert  15748: #ifdef __STDC__
                   15749: # include <limits.h>
                   15750: #else
                   15751: # include <assert.h>
                   15752: #endif
1.9       millert  15753:
1.25      millert  15754: #undef $ac_func
1.9       millert  15755:
1.27      millert  15756: /* Override any GCC internal prototype to avoid an error.
                   15757:    Use char because int might match the return type of a GCC
                   15758:    builtin and then its argument prototype would still apply.  */
1.25      millert  15759: #ifdef __cplusplus
                   15760: extern "C"
                   15761: #endif
                   15762: char $ac_func ();
                   15763: /* The GNU C library defines this for functions which it implements
                   15764:     to always fail with ENOSYS.  Some functions are actually named
                   15765:     something starting with __ and the normal name is an alias.  */
1.27      millert  15766: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15767: choke me
                   15768: #endif
1.9       millert  15769:
1.25      millert  15770: int
                   15771: main ()
                   15772: {
1.27      millert  15773: return $ac_func ();
1.25      millert  15774:   ;
                   15775:   return 0;
                   15776: }
                   15777: _ACEOF
                   15778: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15779: if { (ac_try="$ac_link"
                   15780: case "(($ac_try" in
                   15781:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15782:   *) ac_try_echo=$ac_try;;
                   15783: esac
                   15784: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15785:   (eval "$ac_link") 2>conftest.er1
1.25      millert  15786:   ac_status=$?
                   15787:   grep -v '^ *+' conftest.er1 >conftest.err
                   15788:   rm -f conftest.er1
                   15789:   cat conftest.err >&5
                   15790:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15791:   (exit $ac_status); } && {
                   15792:         test -z "$ac_c_werror_flag" ||
                   15793:         test ! -s conftest.err
                   15794:        } && test -s conftest$ac_exeext &&
                   15795:        $as_test_x conftest$ac_exeext; then
1.25      millert  15796:   eval "$as_ac_var=yes"
                   15797: else
                   15798:   echo "$as_me: failed program was:" >&5
                   15799: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  15800:
1.27      millert  15801:        eval "$as_ac_var=no"
1.1       millert  15802: fi
1.27      millert  15803:
                   15804: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15805:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15806: fi
1.27      millert  15807: ac_res=`eval echo '${'$as_ac_var'}'`
                   15808:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15809: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15810: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15811:   cat >>confdefs.h <<_ACEOF
                   15812: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15813: _ACEOF
1.27      millert  15814:  SKIP_SETREUID=yes
1.25      millert  15815: fi
                   15816: done
1.23      millert  15817:
                   15818: fi
1.27      millert  15819: if test -z "$SKIP_SETREUID"; then
1.23      millert  15820:
1.27      millert  15821: for ac_func in setreuid
1.25      millert  15822: do
                   15823: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15824: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15825: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15826: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  15827:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15828: else
                   15829:   cat >conftest.$ac_ext <<_ACEOF
                   15830: /* confdefs.h.  */
                   15831: _ACEOF
                   15832: cat confdefs.h >>conftest.$ac_ext
                   15833: cat >>conftest.$ac_ext <<_ACEOF
                   15834: /* end confdefs.h.  */
1.25      millert  15835: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15836:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15837: #define $ac_func innocuous_$ac_func
                   15838:
                   15839: /* System header to define __stub macros and hopefully few prototypes,
                   15840:     which can conflict with char $ac_func (); below.
                   15841:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15842:     <limits.h> exists even on freestanding compilers.  */
                   15843:
                   15844: #ifdef __STDC__
                   15845: # include <limits.h>
                   15846: #else
                   15847: # include <assert.h>
                   15848: #endif
                   15849:
                   15850: #undef $ac_func
                   15851:
1.27      millert  15852: /* Override any GCC internal prototype to avoid an error.
                   15853:    Use char because int might match the return type of a GCC
                   15854:    builtin and then its argument prototype would still apply.  */
1.25      millert  15855: #ifdef __cplusplus
                   15856: extern "C"
                   15857: #endif
                   15858: char $ac_func ();
                   15859: /* The GNU C library defines this for functions which it implements
                   15860:     to always fail with ENOSYS.  Some functions are actually named
                   15861:     something starting with __ and the normal name is an alias.  */
1.27      millert  15862: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15863: choke me
                   15864: #endif
1.23      millert  15865:
                   15866: int
                   15867: main ()
                   15868: {
1.27      millert  15869: return $ac_func ();
1.23      millert  15870:   ;
                   15871:   return 0;
                   15872: }
                   15873: _ACEOF
1.25      millert  15874: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15875: if { (ac_try="$ac_link"
                   15876: case "(($ac_try" in
                   15877:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15878:   *) ac_try_echo=$ac_try;;
                   15879: esac
                   15880: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15881:   (eval "$ac_link") 2>conftest.er1
1.23      millert  15882:   ac_status=$?
1.25      millert  15883:   grep -v '^ *+' conftest.er1 >conftest.err
                   15884:   rm -f conftest.er1
                   15885:   cat conftest.err >&5
1.23      millert  15886:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15887:   (exit $ac_status); } && {
                   15888:         test -z "$ac_c_werror_flag" ||
                   15889:         test ! -s conftest.err
                   15890:        } && test -s conftest$ac_exeext &&
                   15891:        $as_test_x conftest$ac_exeext; then
1.25      millert  15892:   eval "$as_ac_var=yes"
1.23      millert  15893: else
                   15894:   echo "$as_me: failed program was:" >&5
                   15895: sed 's/^/| /' conftest.$ac_ext >&5
                   15896:
1.27      millert  15897:        eval "$as_ac_var=no"
1.25      millert  15898: fi
1.27      millert  15899:
                   15900: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15901:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15902: fi
1.27      millert  15903: ac_res=`eval echo '${'$as_ac_var'}'`
                   15904:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15905: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15906: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15907:   cat >>confdefs.h <<_ACEOF
                   15908: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15909: _ACEOF
1.27      millert  15910:  SKIP_SETEUID=yes
1.23      millert  15911: fi
1.27      millert  15912: done
1.23      millert  15913:
                   15914: fi
1.27      millert  15915: if test -z "$SKIP_SETEUID"; then
1.25      millert  15916:
1.27      millert  15917: for ac_func in seteuid
1.25      millert  15918: do
                   15919: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15920: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15921: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15922: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15923:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15924: else
1.23      millert  15925:   cat >conftest.$ac_ext <<_ACEOF
                   15926: /* confdefs.h.  */
                   15927: _ACEOF
                   15928: cat confdefs.h >>conftest.$ac_ext
                   15929: cat >>conftest.$ac_ext <<_ACEOF
                   15930: /* end confdefs.h.  */
1.25      millert  15931: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15932:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15933: #define $ac_func innocuous_$ac_func
                   15934:
                   15935: /* System header to define __stub macros and hopefully few prototypes,
                   15936:     which can conflict with char $ac_func (); below.
                   15937:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15938:     <limits.h> exists even on freestanding compilers.  */
                   15939:
                   15940: #ifdef __STDC__
                   15941: # include <limits.h>
                   15942: #else
                   15943: # include <assert.h>
                   15944: #endif
                   15945:
                   15946: #undef $ac_func
1.23      millert  15947:
1.27      millert  15948: /* Override any GCC internal prototype to avoid an error.
                   15949:    Use char because int might match the return type of a GCC
                   15950:    builtin and then its argument prototype would still apply.  */
1.25      millert  15951: #ifdef __cplusplus
                   15952: extern "C"
                   15953: #endif
                   15954: char $ac_func ();
                   15955: /* The GNU C library defines this for functions which it implements
                   15956:     to always fail with ENOSYS.  Some functions are actually named
                   15957:     something starting with __ and the normal name is an alias.  */
1.27      millert  15958: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15959: choke me
1.23      millert  15960: #endif
                   15961:
                   15962: int
                   15963: main ()
                   15964: {
1.27      millert  15965: return $ac_func ();
1.25      millert  15966:   ;
                   15967:   return 0;
1.23      millert  15968: }
                   15969: _ACEOF
1.25      millert  15970: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15971: if { (ac_try="$ac_link"
                   15972: case "(($ac_try" in
                   15973:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15974:   *) ac_try_echo=$ac_try;;
                   15975: esac
                   15976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15977:   (eval "$ac_link") 2>conftest.er1
1.25      millert  15978:   ac_status=$?
                   15979:   grep -v '^ *+' conftest.er1 >conftest.err
                   15980:   rm -f conftest.er1
                   15981:   cat conftest.err >&5
                   15982:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15983:   (exit $ac_status); } && {
                   15984:         test -z "$ac_c_werror_flag" ||
                   15985:         test ! -s conftest.err
                   15986:        } && test -s conftest$ac_exeext &&
                   15987:        $as_test_x conftest$ac_exeext; then
1.25      millert  15988:   eval "$as_ac_var=yes"
1.23      millert  15989: else
1.25      millert  15990:   echo "$as_me: failed program was:" >&5
1.23      millert  15991: sed 's/^/| /' conftest.$ac_ext >&5
                   15992:
1.27      millert  15993:        eval "$as_ac_var=no"
1.23      millert  15994: fi
1.27      millert  15995:
                   15996: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15997:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15998: fi
1.27      millert  15999: ac_res=`eval echo '${'$as_ac_var'}'`
                   16000:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16001: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16002: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16003:   cat >>confdefs.h <<_ACEOF
                   16004: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16005: _ACEOF
1.27      millert  16006:
1.23      millert  16007: fi
1.25      millert  16008: done
1.23      millert  16009:
1.27      millert  16010: fi
                   16011: if test X"$with_interfaces" != X"no"; then
1.23      millert  16012:
1.27      millert  16013: for ac_func in getifaddrs
1.25      millert  16014: do
                   16015: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16016: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16017: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16018: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16019:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16020: else
                   16021:   cat >conftest.$ac_ext <<_ACEOF
                   16022: /* confdefs.h.  */
                   16023: _ACEOF
                   16024: cat confdefs.h >>conftest.$ac_ext
                   16025: cat >>conftest.$ac_ext <<_ACEOF
                   16026: /* end confdefs.h.  */
1.25      millert  16027: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16028:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16029: #define $ac_func innocuous_$ac_func
                   16030:
                   16031: /* System header to define __stub macros and hopefully few prototypes,
                   16032:     which can conflict with char $ac_func (); below.
                   16033:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16034:     <limits.h> exists even on freestanding compilers.  */
                   16035:
                   16036: #ifdef __STDC__
                   16037: # include <limits.h>
                   16038: #else
                   16039: # include <assert.h>
                   16040: #endif
                   16041:
                   16042: #undef $ac_func
                   16043:
1.27      millert  16044: /* Override any GCC internal prototype to avoid an error.
                   16045:    Use char because int might match the return type of a GCC
                   16046:    builtin and then its argument prototype would still apply.  */
1.25      millert  16047: #ifdef __cplusplus
                   16048: extern "C"
                   16049: #endif
                   16050: char $ac_func ();
                   16051: /* The GNU C library defines this for functions which it implements
                   16052:     to always fail with ENOSYS.  Some functions are actually named
                   16053:     something starting with __ and the normal name is an alias.  */
1.27      millert  16054: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16055: choke me
                   16056: #endif
1.23      millert  16057:
                   16058: int
                   16059: main ()
                   16060: {
1.27      millert  16061: return $ac_func ();
1.23      millert  16062:   ;
                   16063:   return 0;
                   16064: }
                   16065: _ACEOF
1.25      millert  16066: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16067: if { (ac_try="$ac_link"
                   16068: case "(($ac_try" in
                   16069:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16070:   *) ac_try_echo=$ac_try;;
                   16071: esac
                   16072: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16073:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16074:   ac_status=$?
1.25      millert  16075:   grep -v '^ *+' conftest.er1 >conftest.err
                   16076:   rm -f conftest.er1
                   16077:   cat conftest.err >&5
1.23      millert  16078:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16079:   (exit $ac_status); } && {
                   16080:         test -z "$ac_c_werror_flag" ||
                   16081:         test ! -s conftest.err
                   16082:        } && test -s conftest$ac_exeext &&
                   16083:        $as_test_x conftest$ac_exeext; then
1.25      millert  16084:   eval "$as_ac_var=yes"
1.23      millert  16085: else
                   16086:   echo "$as_me: failed program was:" >&5
                   16087: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16088:
1.27      millert  16089:        eval "$as_ac_var=no"
1.23      millert  16090: fi
1.27      millert  16091:
                   16092: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16093:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16094: fi
1.27      millert  16095: ac_res=`eval echo '${'$as_ac_var'}'`
                   16096:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16097: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16098: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  16099:   cat >>confdefs.h <<_ACEOF
1.25      millert  16100: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16101: _ACEOF
1.25      millert  16102:
1.27      millert  16103: for ac_func in freeifaddrs
1.25      millert  16104: do
                   16105: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16106: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16107: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16108: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16109:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16110: else
1.25      millert  16111:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16112: /* confdefs.h.  */
                   16113: _ACEOF
                   16114: cat confdefs.h >>conftest.$ac_ext
                   16115: cat >>conftest.$ac_ext <<_ACEOF
                   16116: /* end confdefs.h.  */
1.25      millert  16117: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16118:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16119: #define $ac_func innocuous_$ac_func
                   16120:
                   16121: /* System header to define __stub macros and hopefully few prototypes,
                   16122:     which can conflict with char $ac_func (); below.
                   16123:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16124:     <limits.h> exists even on freestanding compilers.  */
                   16125:
                   16126: #ifdef __STDC__
                   16127: # include <limits.h>
                   16128: #else
                   16129: # include <assert.h>
                   16130: #endif
                   16131:
                   16132: #undef $ac_func
1.9       millert  16133:
1.27      millert  16134: /* Override any GCC internal prototype to avoid an error.
                   16135:    Use char because int might match the return type of a GCC
                   16136:    builtin and then its argument prototype would still apply.  */
1.23      millert  16137: #ifdef __cplusplus
                   16138: extern "C"
                   16139: #endif
1.25      millert  16140: char $ac_func ();
                   16141: /* The GNU C library defines this for functions which it implements
                   16142:     to always fail with ENOSYS.  Some functions are actually named
                   16143:     something starting with __ and the normal name is an alias.  */
1.27      millert  16144: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16145: choke me
                   16146: #endif
                   16147:
1.16      millert  16148: int
                   16149: main ()
                   16150: {
1.27      millert  16151: return $ac_func ();
1.16      millert  16152:   ;
                   16153:   return 0;
                   16154: }
1.9       millert  16155: _ACEOF
1.23      millert  16156: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16157: if { (ac_try="$ac_link"
                   16158: case "(($ac_try" in
                   16159:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16160:   *) ac_try_echo=$ac_try;;
                   16161: esac
                   16162: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16163:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16164:   ac_status=$?
1.25      millert  16165:   grep -v '^ *+' conftest.er1 >conftest.err
                   16166:   rm -f conftest.er1
                   16167:   cat conftest.err >&5
1.16      millert  16168:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16169:   (exit $ac_status); } && {
                   16170:         test -z "$ac_c_werror_flag" ||
                   16171:         test ! -s conftest.err
                   16172:        } && test -s conftest$ac_exeext &&
                   16173:        $as_test_x conftest$ac_exeext; then
1.25      millert  16174:   eval "$as_ac_var=yes"
1.1       millert  16175: else
1.9       millert  16176:   echo "$as_me: failed program was:" >&5
1.16      millert  16177: sed 's/^/| /' conftest.$ac_ext >&5
                   16178:
1.27      millert  16179:        eval "$as_ac_var=no"
1.25      millert  16180: fi
1.27      millert  16181:
                   16182: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16183:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16184: fi
1.27      millert  16185: ac_res=`eval echo '${'$as_ac_var'}'`
                   16186:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16187: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16188: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16189:   cat >>confdefs.h <<_ACEOF
                   16190: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16191: _ACEOF
                   16192:
1.27      millert  16193: fi
                   16194: done
                   16195:
                   16196: fi
                   16197: done
                   16198:
                   16199: fi
                   16200: if test -z "$BROKEN_GETCWD"; then
                   16201:
                   16202: for ac_func in getcwd
1.25      millert  16203: do
                   16204: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16205: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16206: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16207: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16208:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16209: else
                   16210:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16211: /* confdefs.h.  */
                   16212: _ACEOF
                   16213: cat confdefs.h >>conftest.$ac_ext
                   16214: cat >>conftest.$ac_ext <<_ACEOF
                   16215: /* end confdefs.h.  */
1.25      millert  16216: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16217:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16218: #define $ac_func innocuous_$ac_func
                   16219:
                   16220: /* System header to define __stub macros and hopefully few prototypes,
                   16221:     which can conflict with char $ac_func (); below.
                   16222:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16223:     <limits.h> exists even on freestanding compilers.  */
                   16224:
                   16225: #ifdef __STDC__
                   16226: # include <limits.h>
                   16227: #else
                   16228: # include <assert.h>
                   16229: #endif
                   16230:
                   16231: #undef $ac_func
1.9       millert  16232:
1.27      millert  16233: /* Override any GCC internal prototype to avoid an error.
                   16234:    Use char because int might match the return type of a GCC
                   16235:    builtin and then its argument prototype would still apply.  */
1.23      millert  16236: #ifdef __cplusplus
                   16237: extern "C"
                   16238: #endif
1.25      millert  16239: char $ac_func ();
                   16240: /* The GNU C library defines this for functions which it implements
                   16241:     to always fail with ENOSYS.  Some functions are actually named
                   16242:     something starting with __ and the normal name is an alias.  */
1.27      millert  16243: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16244: choke me
                   16245: #endif
                   16246:
1.23      millert  16247: int
                   16248: main ()
                   16249: {
1.27      millert  16250: return $ac_func ();
1.23      millert  16251:   ;
                   16252:   return 0;
                   16253: }
1.9       millert  16254: _ACEOF
1.23      millert  16255: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16256: if { (ac_try="$ac_link"
                   16257: case "(($ac_try" in
                   16258:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16259:   *) ac_try_echo=$ac_try;;
                   16260: esac
                   16261: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16262:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16263:   ac_status=$?
1.25      millert  16264:   grep -v '^ *+' conftest.er1 >conftest.err
                   16265:   rm -f conftest.er1
                   16266:   cat conftest.err >&5
1.23      millert  16267:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16268:   (exit $ac_status); } && {
                   16269:         test -z "$ac_c_werror_flag" ||
                   16270:         test ! -s conftest.err
                   16271:        } && test -s conftest$ac_exeext &&
                   16272:        $as_test_x conftest$ac_exeext; then
1.25      millert  16273:   eval "$as_ac_var=yes"
1.1       millert  16274: else
1.23      millert  16275:   echo "$as_me: failed program was:" >&5
                   16276: sed 's/^/| /' conftest.$ac_ext >&5
                   16277:
1.27      millert  16278:        eval "$as_ac_var=no"
1.25      millert  16279: fi
1.27      millert  16280:
                   16281: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16282:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16283: fi
1.27      millert  16284: ac_res=`eval echo '${'$as_ac_var'}'`
                   16285:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16286: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16287: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16288:   cat >>confdefs.h <<_ACEOF
                   16289: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16290: _ACEOF
                   16291:
1.27      millert  16292: else
                   16293:   case " $LIBOBJS " in
                   16294:   *" $ac_func.$ac_objext "* ) ;;
                   16295:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   16296:  ;;
                   16297: esac
                   16298:
1.23      millert  16299: fi
1.25      millert  16300: done
1.27      millert  16301:
                   16302:
1.1       millert  16303: fi
                   16304:
1.27      millert  16305: for ac_func in glob
1.25      millert  16306: do
                   16307: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16308: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16309: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16310: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16311:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16312: else
1.25      millert  16313:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16314: /* confdefs.h.  */
                   16315: _ACEOF
                   16316: cat confdefs.h >>conftest.$ac_ext
                   16317: cat >>conftest.$ac_ext <<_ACEOF
                   16318: /* end confdefs.h.  */
1.25      millert  16319: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16320:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16321: #define $ac_func innocuous_$ac_func
                   16322:
                   16323: /* System header to define __stub macros and hopefully few prototypes,
                   16324:     which can conflict with char $ac_func (); below.
                   16325:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16326:     <limits.h> exists even on freestanding compilers.  */
                   16327:
                   16328: #ifdef __STDC__
                   16329: # include <limits.h>
                   16330: #else
                   16331: # include <assert.h>
                   16332: #endif
                   16333:
                   16334: #undef $ac_func
1.9       millert  16335:
1.27      millert  16336: /* Override any GCC internal prototype to avoid an error.
                   16337:    Use char because int might match the return type of a GCC
                   16338:    builtin and then its argument prototype would still apply.  */
1.23      millert  16339: #ifdef __cplusplus
                   16340: extern "C"
                   16341: #endif
1.25      millert  16342: char $ac_func ();
                   16343: /* The GNU C library defines this for functions which it implements
                   16344:     to always fail with ENOSYS.  Some functions are actually named
                   16345:     something starting with __ and the normal name is an alias.  */
1.27      millert  16346: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16347: choke me
                   16348: #endif
                   16349:
1.23      millert  16350: int
                   16351: main ()
                   16352: {
1.27      millert  16353: return $ac_func ();
1.23      millert  16354:   ;
                   16355:   return 0;
                   16356: }
1.9       millert  16357: _ACEOF
1.23      millert  16358: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16359: if { (ac_try="$ac_link"
                   16360: case "(($ac_try" in
                   16361:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16362:   *) ac_try_echo=$ac_try;;
                   16363: esac
                   16364: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16365:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16366:   ac_status=$?
1.25      millert  16367:   grep -v '^ *+' conftest.er1 >conftest.err
                   16368:   rm -f conftest.er1
                   16369:   cat conftest.err >&5
1.23      millert  16370:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16371:   (exit $ac_status); } && {
                   16372:         test -z "$ac_c_werror_flag" ||
                   16373:         test ! -s conftest.err
                   16374:        } && test -s conftest$ac_exeext &&
                   16375:        $as_test_x conftest$ac_exeext; then
1.25      millert  16376:   eval "$as_ac_var=yes"
1.1       millert  16377: else
1.23      millert  16378:   echo "$as_me: failed program was:" >&5
                   16379: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16380:
1.27      millert  16381:        eval "$as_ac_var=no"
1.25      millert  16382: fi
1.27      millert  16383:
                   16384: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16385:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16386: fi
1.27      millert  16387: ac_res=`eval echo '${'$as_ac_var'}'`
                   16388:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16389: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16390: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16391:   cat >>confdefs.h <<_ACEOF
                   16392: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16393: _ACEOF
1.27      millert  16394:  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
                   16395: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
1.25      millert  16396: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16397: /* confdefs.h.  */
                   16398: _ACEOF
                   16399: cat confdefs.h >>conftest.$ac_ext
                   16400: cat >>conftest.$ac_ext <<_ACEOF
                   16401: /* end confdefs.h.  */
1.27      millert  16402: #include <glob.h>
1.9       millert  16403: int
                   16404: main ()
                   16405: {
1.27      millert  16406: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23      millert  16407:   ;
                   16408:   return 0;
1.9       millert  16409: }
                   16410: _ACEOF
1.27      millert  16411: rm -f conftest.$ac_objext
                   16412: if { (ac_try="$ac_compile"
                   16413: case "(($ac_try" in
                   16414:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16415:   *) ac_try_echo=$ac_try;;
                   16416: esac
                   16417: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16418:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  16419:   ac_status=$?
1.25      millert  16420:   grep -v '^ *+' conftest.er1 >conftest.err
                   16421:   rm -f conftest.er1
                   16422:   cat conftest.err >&5
1.16      millert  16423:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16424:   (exit $ac_status); } && {
                   16425:         test -z "$ac_c_werror_flag" ||
                   16426:         test ! -s conftest.err
                   16427:        } && test -s conftest.$ac_objext; then
                   16428:   cat >>confdefs.h <<\_ACEOF
                   16429: #define HAVE_EXTENDED_GLOB 1
                   16430: _ACEOF
1.16      millert  16431:
1.27      millert  16432:     { echo "$as_me:$LINENO: result: yes" >&5
                   16433: echo "${ECHO_T}yes" >&6; }
1.23      millert  16434: else
                   16435:   echo "$as_me: failed program was:" >&5
                   16436: sed 's/^/| /' conftest.$ac_ext >&5
                   16437:
1.27      millert  16438:        case " $LIBOBJS " in
                   16439:   *" glob.$ac_objext "* ) ;;
                   16440:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16441:  ;;
1.25      millert  16442: esac
                   16443:
1.27      millert  16444:     { echo "$as_me:$LINENO: result: no" >&5
                   16445: echo "${ECHO_T}no" >&6; }
1.25      millert  16446: fi
                   16447:
1.27      millert  16448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  16449: else
1.27      millert  16450:   case " $LIBOBJS " in
                   16451:   *" glob.$ac_objext "* ) ;;
                   16452:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16453:  ;;
1.23      millert  16454: esac
                   16455:
                   16456: fi
1.27      millert  16457: done
1.9       millert  16458:
1.23      millert  16459:
                   16460:
1.27      millert  16461: for ac_func in lockf flock
1.25      millert  16462: do
                   16463: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16464: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16465: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16466: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16467:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16468: else
1.25      millert  16469:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16470: /* confdefs.h.  */
                   16471: _ACEOF
                   16472: cat confdefs.h >>conftest.$ac_ext
                   16473: cat >>conftest.$ac_ext <<_ACEOF
                   16474: /* end confdefs.h.  */
1.25      millert  16475: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16476:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16477: #define $ac_func innocuous_$ac_func
                   16478:
                   16479: /* System header to define __stub macros and hopefully few prototypes,
                   16480:     which can conflict with char $ac_func (); below.
                   16481:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16482:     <limits.h> exists even on freestanding compilers.  */
                   16483:
                   16484: #ifdef __STDC__
                   16485: # include <limits.h>
                   16486: #else
                   16487: # include <assert.h>
                   16488: #endif
                   16489:
                   16490: #undef $ac_func
                   16491:
1.27      millert  16492: /* Override any GCC internal prototype to avoid an error.
                   16493:    Use char because int might match the return type of a GCC
                   16494:    builtin and then its argument prototype would still apply.  */
1.25      millert  16495: #ifdef __cplusplus
                   16496: extern "C"
                   16497: #endif
                   16498: char $ac_func ();
                   16499: /* The GNU C library defines this for functions which it implements
                   16500:     to always fail with ENOSYS.  Some functions are actually named
                   16501:     something starting with __ and the normal name is an alias.  */
1.27      millert  16502: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16503: choke me
                   16504: #endif
                   16505:
                   16506: int
                   16507: main ()
                   16508: {
1.27      millert  16509: return $ac_func ();
1.25      millert  16510:   ;
                   16511:   return 0;
                   16512: }
1.16      millert  16513: _ACEOF
1.25      millert  16514: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16515: if { (ac_try="$ac_link"
                   16516: case "(($ac_try" in
                   16517:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16518:   *) ac_try_echo=$ac_try;;
                   16519: esac
                   16520: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16521:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16522:   ac_status=$?
1.25      millert  16523:   grep -v '^ *+' conftest.er1 >conftest.err
                   16524:   rm -f conftest.er1
                   16525:   cat conftest.err >&5
1.16      millert  16526:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16527:   (exit $ac_status); } && {
                   16528:         test -z "$ac_c_werror_flag" ||
                   16529:         test ! -s conftest.err
                   16530:        } && test -s conftest$ac_exeext &&
                   16531:        $as_test_x conftest$ac_exeext; then
1.25      millert  16532:   eval "$as_ac_var=yes"
1.16      millert  16533: else
                   16534:   echo "$as_me: failed program was:" >&5
                   16535: sed 's/^/| /' conftest.$ac_ext >&5
                   16536:
1.27      millert  16537:        eval "$as_ac_var=no"
1.25      millert  16538: fi
1.27      millert  16539:
                   16540: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16541:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  16542: fi
1.27      millert  16543: ac_res=`eval echo '${'$as_ac_var'}'`
                   16544:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16545: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16546: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16547:   cat >>confdefs.h <<_ACEOF
                   16548: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16549: _ACEOF
1.27      millert  16550:  break
                   16551: fi
                   16552: done
                   16553:
1.25      millert  16554:
1.23      millert  16555:
1.27      millert  16556: for ac_func in waitpid wait3
1.25      millert  16557: do
                   16558: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16559: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16560: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16561: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16562:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16563: else
                   16564:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16565: /* confdefs.h.  */
                   16566: _ACEOF
                   16567: cat confdefs.h >>conftest.$ac_ext
                   16568: cat >>conftest.$ac_ext <<_ACEOF
                   16569: /* end confdefs.h.  */
1.25      millert  16570: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16571:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16572: #define $ac_func innocuous_$ac_func
                   16573:
                   16574: /* System header to define __stub macros and hopefully few prototypes,
                   16575:     which can conflict with char $ac_func (); below.
                   16576:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16577:     <limits.h> exists even on freestanding compilers.  */
                   16578:
                   16579: #ifdef __STDC__
                   16580: # include <limits.h>
                   16581: #else
                   16582: # include <assert.h>
                   16583: #endif
                   16584:
                   16585: #undef $ac_func
                   16586:
1.27      millert  16587: /* Override any GCC internal prototype to avoid an error.
                   16588:    Use char because int might match the return type of a GCC
                   16589:    builtin and then its argument prototype would still apply.  */
1.25      millert  16590: #ifdef __cplusplus
                   16591: extern "C"
                   16592: #endif
                   16593: char $ac_func ();
                   16594: /* The GNU C library defines this for functions which it implements
                   16595:     to always fail with ENOSYS.  Some functions are actually named
                   16596:     something starting with __ and the normal name is an alias.  */
1.27      millert  16597: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16598: choke me
                   16599: #endif
                   16600:
                   16601: int
                   16602: main ()
                   16603: {
1.27      millert  16604: return $ac_func ();
1.25      millert  16605:   ;
                   16606:   return 0;
                   16607: }
1.9       millert  16608: _ACEOF
1.25      millert  16609: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16610: if { (ac_try="$ac_link"
                   16611: case "(($ac_try" in
                   16612:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16613:   *) ac_try_echo=$ac_try;;
                   16614: esac
                   16615: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16616:   (eval "$ac_link") 2>conftest.er1
1.9       millert  16617:   ac_status=$?
1.23      millert  16618:   grep -v '^ *+' conftest.er1 >conftest.err
                   16619:   rm -f conftest.er1
                   16620:   cat conftest.err >&5
1.16      millert  16621:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16622:   (exit $ac_status); } && {
                   16623:         test -z "$ac_c_werror_flag" ||
                   16624:         test ! -s conftest.err
                   16625:        } && test -s conftest$ac_exeext &&
                   16626:        $as_test_x conftest$ac_exeext; then
1.25      millert  16627:   eval "$as_ac_var=yes"
1.23      millert  16628: else
                   16629:   echo "$as_me: failed program was:" >&5
                   16630: sed 's/^/| /' conftest.$ac_ext >&5
                   16631:
1.27      millert  16632:        eval "$as_ac_var=no"
1.23      millert  16633: fi
1.27      millert  16634:
                   16635: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16636:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  16637: fi
1.27      millert  16638: ac_res=`eval echo '${'$as_ac_var'}'`
                   16639:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16640: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16641: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  16642:   cat >>confdefs.h <<_ACEOF
1.25      millert  16643: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16644: _ACEOF
1.25      millert  16645:  break
                   16646: fi
                   16647: done
1.23      millert  16648:
1.16      millert  16649:
1.27      millert  16650:
                   16651: for ac_func in innetgr _innetgr
1.25      millert  16652: do
                   16653: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16654: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16655: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16656: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16657:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16658: else
1.23      millert  16659:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16660: /* confdefs.h.  */
                   16661: _ACEOF
                   16662: cat confdefs.h >>conftest.$ac_ext
                   16663: cat >>conftest.$ac_ext <<_ACEOF
                   16664: /* end confdefs.h.  */
1.25      millert  16665: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16666:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16667: #define $ac_func innocuous_$ac_func
                   16668:
                   16669: /* System header to define __stub macros and hopefully few prototypes,
                   16670:     which can conflict with char $ac_func (); below.
                   16671:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16672:     <limits.h> exists even on freestanding compilers.  */
                   16673:
                   16674: #ifdef __STDC__
                   16675: # include <limits.h>
                   16676: #else
                   16677: # include <assert.h>
                   16678: #endif
                   16679:
                   16680: #undef $ac_func
                   16681:
1.27      millert  16682: /* Override any GCC internal prototype to avoid an error.
                   16683:    Use char because int might match the return type of a GCC
                   16684:    builtin and then its argument prototype would still apply.  */
1.25      millert  16685: #ifdef __cplusplus
                   16686: extern "C"
                   16687: #endif
                   16688: char $ac_func ();
                   16689: /* The GNU C library defines this for functions which it implements
                   16690:     to always fail with ENOSYS.  Some functions are actually named
                   16691:     something starting with __ and the normal name is an alias.  */
1.27      millert  16692: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16693: choke me
                   16694: #endif
1.16      millert  16695:
                   16696: int
                   16697: main ()
                   16698: {
1.27      millert  16699: return $ac_func ();
1.16      millert  16700:   ;
                   16701:   return 0;
                   16702: }
                   16703: _ACEOF
                   16704: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16705: if { (ac_try="$ac_link"
                   16706: case "(($ac_try" in
                   16707:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16708:   *) ac_try_echo=$ac_try;;
                   16709: esac
                   16710: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16711:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16712:   ac_status=$?
1.25      millert  16713:   grep -v '^ *+' conftest.er1 >conftest.err
                   16714:   rm -f conftest.er1
                   16715:   cat conftest.err >&5
1.16      millert  16716:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16717:   (exit $ac_status); } && {
                   16718:         test -z "$ac_c_werror_flag" ||
                   16719:         test ! -s conftest.err
                   16720:        } && test -s conftest$ac_exeext &&
                   16721:        $as_test_x conftest$ac_exeext; then
1.25      millert  16722:   eval "$as_ac_var=yes"
1.16      millert  16723: else
                   16724:   echo "$as_me: failed program was:" >&5
                   16725: sed 's/^/| /' conftest.$ac_ext >&5
                   16726:
1.27      millert  16727:        eval "$as_ac_var=no"
1.16      millert  16728: fi
1.27      millert  16729:
                   16730: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16731:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16732: fi
1.27      millert  16733: ac_res=`eval echo '${'$as_ac_var'}'`
                   16734:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16735: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16736: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16737:   cat >>confdefs.h <<_ACEOF
                   16738: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16739: _ACEOF
1.9       millert  16740:
1.27      millert  16741: for ac_func in getdomainname
                   16742: do
                   16743: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16744: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16745: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16746: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16      millert  16747:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16748: else
1.25      millert  16749:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16750: /* confdefs.h.  */
                   16751: _ACEOF
                   16752: cat confdefs.h >>conftest.$ac_ext
                   16753: cat >>conftest.$ac_ext <<_ACEOF
                   16754: /* end confdefs.h.  */
1.27      millert  16755: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16756:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16757: #define $ac_func innocuous_$ac_func
1.16      millert  16758:
1.27      millert  16759: /* System header to define __stub macros and hopefully few prototypes,
                   16760:     which can conflict with char $ac_func (); below.
                   16761:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16762:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  16763:
1.27      millert  16764: #ifdef __STDC__
                   16765: # include <limits.h>
                   16766: #else
                   16767: # include <assert.h>
                   16768: #endif
1.25      millert  16769:
1.27      millert  16770: #undef $ac_func
1.25      millert  16771:
1.27      millert  16772: /* Override any GCC internal prototype to avoid an error.
                   16773:    Use char because int might match the return type of a GCC
                   16774:    builtin and then its argument prototype would still apply.  */
                   16775: #ifdef __cplusplus
                   16776: extern "C"
                   16777: #endif
                   16778: char $ac_func ();
                   16779: /* The GNU C library defines this for functions which it implements
                   16780:     to always fail with ENOSYS.  Some functions are actually named
                   16781:     something starting with __ and the normal name is an alias.  */
                   16782: #if defined __stub_$ac_func || defined __stub___$ac_func
                   16783: choke me
                   16784: #endif
1.23      millert  16785:
1.25      millert  16786: int
                   16787: main ()
                   16788: {
1.27      millert  16789: return $ac_func ();
1.25      millert  16790:   ;
                   16791:   return 0;
                   16792: }
1.23      millert  16793: _ACEOF
1.25      millert  16794: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16795: if { (ac_try="$ac_link"
                   16796: case "(($ac_try" in
                   16797:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16798:   *) ac_try_echo=$ac_try;;
                   16799: esac
                   16800: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16801:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16802:   ac_status=$?
                   16803:   grep -v '^ *+' conftest.er1 >conftest.err
                   16804:   rm -f conftest.er1
                   16805:   cat conftest.err >&5
                   16806:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16807:   (exit $ac_status); } && {
                   16808:         test -z "$ac_c_werror_flag" ||
                   16809:         test ! -s conftest.err
                   16810:        } && test -s conftest$ac_exeext &&
                   16811:        $as_test_x conftest$ac_exeext; then
                   16812:   eval "$as_ac_var=yes"
1.23      millert  16813: else
                   16814:   echo "$as_me: failed program was:" >&5
                   16815: sed 's/^/| /' conftest.$ac_ext >&5
                   16816:
1.27      millert  16817:        eval "$as_ac_var=no"
1.25      millert  16818: fi
1.27      millert  16819:
                   16820: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16821:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16822: fi
1.27      millert  16823: ac_res=`eval echo '${'$as_ac_var'}'`
                   16824:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16825: echo "${ECHO_T}$ac_res" >&6; }
                   16826: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16827:   cat >>confdefs.h <<_ACEOF
                   16828: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  16829: _ACEOF
1.1       millert  16830:
1.27      millert  16831: fi
                   16832: done
                   16833:  break
                   16834: fi
                   16835: done
1.25      millert  16836:
                   16837:
1.37    ! millert  16838: for ac_func in utimes
1.1       millert  16839: do
1.25      millert  16840: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16841: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16842: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16843: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16844:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  16845: else
1.25      millert  16846:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16847: /* confdefs.h.  */
                   16848: _ACEOF
                   16849: cat confdefs.h >>conftest.$ac_ext
                   16850: cat >>conftest.$ac_ext <<_ACEOF
                   16851: /* end confdefs.h.  */
1.25      millert  16852: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16853:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16854: #define $ac_func innocuous_$ac_func
                   16855:
                   16856: /* System header to define __stub macros and hopefully few prototypes,
                   16857:     which can conflict with char $ac_func (); below.
                   16858:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16859:     <limits.h> exists even on freestanding compilers.  */
                   16860:
                   16861: #ifdef __STDC__
                   16862: # include <limits.h>
                   16863: #else
                   16864: # include <assert.h>
                   16865: #endif
                   16866:
                   16867: #undef $ac_func
                   16868:
1.27      millert  16869: /* Override any GCC internal prototype to avoid an error.
                   16870:    Use char because int might match the return type of a GCC
                   16871:    builtin and then its argument prototype would still apply.  */
1.25      millert  16872: #ifdef __cplusplus
                   16873: extern "C"
                   16874: #endif
                   16875: char $ac_func ();
                   16876: /* The GNU C library defines this for functions which it implements
                   16877:     to always fail with ENOSYS.  Some functions are actually named
                   16878:     something starting with __ and the normal name is an alias.  */
1.27      millert  16879: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16880: choke me
                   16881: #endif
                   16882:
                   16883: int
                   16884: main ()
                   16885: {
1.27      millert  16886: return $ac_func ();
1.25      millert  16887:   ;
                   16888:   return 0;
                   16889: }
1.16      millert  16890: _ACEOF
1.25      millert  16891: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16892: if { (ac_try="$ac_link"
                   16893: case "(($ac_try" in
                   16894:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16895:   *) ac_try_echo=$ac_try;;
                   16896: esac
                   16897: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16898:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16899:   ac_status=$?
1.25      millert  16900:   grep -v '^ *+' conftest.er1 >conftest.err
                   16901:   rm -f conftest.er1
                   16902:   cat conftest.err >&5
1.16      millert  16903:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16904:   (exit $ac_status); } && {
                   16905:         test -z "$ac_c_werror_flag" ||
                   16906:         test ! -s conftest.err
                   16907:        } && test -s conftest$ac_exeext &&
                   16908:        $as_test_x conftest$ac_exeext; then
1.25      millert  16909:   eval "$as_ac_var=yes"
1.9       millert  16910: else
1.16      millert  16911:   echo "$as_me: failed program was:" >&5
                   16912: sed 's/^/| /' conftest.$ac_ext >&5
                   16913:
1.27      millert  16914:        eval "$as_ac_var=no"
1.25      millert  16915: fi
1.27      millert  16916:
                   16917: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16918:       conftest$ac_exeext conftest.$ac_ext
                   16919: fi
1.27      millert  16920: ac_res=`eval echo '${'$as_ac_var'}'`
                   16921:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16922: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16923: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16924:   cat >>confdefs.h <<_ACEOF
                   16925: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16926: _ACEOF
                   16927:
1.37    ! millert  16928:
        !          16929: for ac_func in futimes futimesat
        !          16930: do
        !          16931: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          16932: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          16933: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          16934: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16935:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16936: else
1.37    ! millert  16937:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16938: /* confdefs.h.  */
                   16939: _ACEOF
                   16940: cat confdefs.h >>conftest.$ac_ext
                   16941: cat >>conftest.$ac_ext <<_ACEOF
                   16942: /* end confdefs.h.  */
1.37    ! millert  16943: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          16944:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          16945: #define $ac_func innocuous_$ac_func
        !          16946:
        !          16947: /* System header to define __stub macros and hopefully few prototypes,
        !          16948:     which can conflict with char $ac_func (); below.
        !          16949:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          16950:     <limits.h> exists even on freestanding compilers.  */
        !          16951:
        !          16952: #ifdef __STDC__
        !          16953: # include <limits.h>
        !          16954: #else
        !          16955: # include <assert.h>
        !          16956: #endif
        !          16957:
        !          16958: #undef $ac_func
1.25      millert  16959:
1.27      millert  16960: /* Override any GCC internal prototype to avoid an error.
                   16961:    Use char because int might match the return type of a GCC
                   16962:    builtin and then its argument prototype would still apply.  */
1.25      millert  16963: #ifdef __cplusplus
                   16964: extern "C"
                   16965: #endif
1.37    ! millert  16966: char $ac_func ();
        !          16967: /* The GNU C library defines this for functions which it implements
        !          16968:     to always fail with ENOSYS.  Some functions are actually named
        !          16969:     something starting with __ and the normal name is an alias.  */
        !          16970: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          16971: choke me
        !          16972: #endif
        !          16973:
1.25      millert  16974: int
                   16975: main ()
                   16976: {
1.37    ! millert  16977: return $ac_func ();
1.25      millert  16978:   ;
                   16979:   return 0;
                   16980: }
1.9       millert  16981: _ACEOF
1.25      millert  16982: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16983: if { (ac_try="$ac_link"
                   16984: case "(($ac_try" in
                   16985:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16986:   *) ac_try_echo=$ac_try;;
                   16987: esac
                   16988: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16989:   (eval "$ac_link") 2>conftest.er1
1.9       millert  16990:   ac_status=$?
1.16      millert  16991:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  16992:   rm -f conftest.er1
                   16993:   cat conftest.err >&5
1.16      millert  16994:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16995:   (exit $ac_status); } && {
                   16996:         test -z "$ac_c_werror_flag" ||
                   16997:         test ! -s conftest.err
                   16998:        } && test -s conftest$ac_exeext &&
                   16999:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  17000:   eval "$as_ac_var=yes"
1.1       millert  17001: else
1.9       millert  17002:   echo "$as_me: failed program was:" >&5
1.16      millert  17003: sed 's/^/| /' conftest.$ac_ext >&5
                   17004:
1.37    ! millert  17005:        eval "$as_ac_var=no"
1.1       millert  17006: fi
1.27      millert  17007:
                   17008: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17009:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  17010: fi
1.37    ! millert  17011: ac_res=`eval echo '${'$as_ac_var'}'`
        !          17012:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          17013: echo "${ECHO_T}$ac_res" >&6; }
        !          17014: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          17015:   cat >>confdefs.h <<_ACEOF
        !          17016: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          17017: _ACEOF
        !          17018:  break
        !          17019: fi
        !          17020: done
        !          17021:
        !          17022: else
        !          17023:
        !          17024: for ac_func in futime
        !          17025: do
        !          17026: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          17027: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          17028: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          17029: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17030:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17031: else
1.25      millert  17032:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  17033: /* confdefs.h.  */
                   17034: _ACEOF
                   17035: cat confdefs.h >>conftest.$ac_ext
                   17036: cat >>conftest.$ac_ext <<_ACEOF
                   17037: /* end confdefs.h.  */
1.37    ! millert  17038: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          17039:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          17040: #define $ac_func innocuous_$ac_func
        !          17041:
        !          17042: /* System header to define __stub macros and hopefully few prototypes,
        !          17043:     which can conflict with char $ac_func (); below.
        !          17044:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          17045:     <limits.h> exists even on freestanding compilers.  */
        !          17046:
        !          17047: #ifdef __STDC__
        !          17048: # include <limits.h>
        !          17049: #else
        !          17050: # include <assert.h>
        !          17051: #endif
        !          17052:
        !          17053: #undef $ac_func
        !          17054:
        !          17055: /* Override any GCC internal prototype to avoid an error.
        !          17056:    Use char because int might match the return type of a GCC
        !          17057:    builtin and then its argument prototype would still apply.  */
        !          17058: #ifdef __cplusplus
        !          17059: extern "C"
        !          17060: #endif
        !          17061: char $ac_func ();
        !          17062: /* The GNU C library defines this for functions which it implements
        !          17063:     to always fail with ENOSYS.  Some functions are actually named
        !          17064:     something starting with __ and the normal name is an alias.  */
        !          17065: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          17066: choke me
        !          17067: #endif
        !          17068:
        !          17069: int
        !          17070: main ()
        !          17071: {
        !          17072: return $ac_func ();
        !          17073:   ;
        !          17074:   return 0;
        !          17075: }
1.18      millert  17076: _ACEOF
1.37    ! millert  17077: rm -f conftest.$ac_objext conftest$ac_exeext
        !          17078: if { (ac_try="$ac_link"
1.27      millert  17079: case "(($ac_try" in
                   17080:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17081:   *) ac_try_echo=$ac_try;;
                   17082: esac
                   17083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  17084:   (eval "$ac_link") 2>conftest.er1
1.18      millert  17085:   ac_status=$?
1.25      millert  17086:   grep -v '^ *+' conftest.er1 >conftest.err
                   17087:   rm -f conftest.er1
                   17088:   cat conftest.err >&5
1.18      millert  17089:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  17090:   (exit $ac_status); } && {
        !          17091:         test -z "$ac_c_werror_flag" ||
1.27      millert  17092:         test ! -s conftest.err
1.37    ! millert  17093:        } && test -s conftest$ac_exeext &&
        !          17094:        $as_test_x conftest$ac_exeext; then
        !          17095:   eval "$as_ac_var=yes"
1.23      millert  17096: else
1.25      millert  17097:   echo "$as_me: failed program was:" >&5
                   17098: sed 's/^/| /' conftest.$ac_ext >&5
                   17099:
1.37    ! millert  17100:        eval "$as_ac_var=no"
1.23      millert  17101: fi
1.27      millert  17102:
1.37    ! millert  17103: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          17104:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17105: fi
1.37    ! millert  17106: ac_res=`eval echo '${'$as_ac_var'}'`
        !          17107:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          17108: echo "${ECHO_T}$ac_res" >&6; }
        !          17109: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          17110:   cat >>confdefs.h <<_ACEOF
        !          17111: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17112: _ACEOF
1.37    ! millert  17113:
        !          17114: fi
        !          17115: done
        !          17116:  case " $LIBOBJS " in
        !          17117:   *" utimes.$ac_objext "* ) ;;
        !          17118:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
        !          17119:  ;;
        !          17120: esac
        !          17121:
        !          17122: fi
        !          17123: done
        !          17124:
        !          17125: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
        !          17126: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
        !          17127: if test "${sudo_cv_func_fnmatch+set}" = set; then
        !          17128:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          17129: else
        !          17130:   rm -f conftestdata; > conftestdata
        !          17131: if test "$cross_compiling" = yes; then
        !          17132:   sudo_cv_func_fnmatch=no
1.27      millert  17133: else
1.37    ! millert  17134:   cat >conftest.$ac_ext <<_ACEOF
        !          17135: /* confdefs.h.  */
        !          17136: _ACEOF
        !          17137: cat confdefs.h >>conftest.$ac_ext
        !          17138: cat >>conftest.$ac_ext <<_ACEOF
        !          17139: /* end confdefs.h.  */
        !          17140: #include <fnmatch.h>
        !          17141: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
        !          17142: _ACEOF
        !          17143: rm -f conftest$ac_exeext
        !          17144: if { (ac_try="$ac_link"
        !          17145: case "(($ac_try" in
        !          17146:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          17147:   *) ac_try_echo=$ac_try;;
        !          17148: esac
        !          17149: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          17150:   (eval "$ac_link") 2>&5
        !          17151:   ac_status=$?
        !          17152:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          17153:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
        !          17154:   { (case "(($ac_try" in
        !          17155:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          17156:   *) ac_try_echo=$ac_try;;
1.27      millert  17157: esac
1.37    ! millert  17158: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          17159:   (eval "$ac_try") 2>&5
        !          17160:   ac_status=$?
        !          17161:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          17162:   (exit $ac_status); }; }; then
        !          17163:   sudo_cv_func_fnmatch=yes
        !          17164: else
        !          17165:   echo "$as_me: program exited with status $ac_status" >&5
        !          17166: echo "$as_me: failed program was:" >&5
        !          17167: sed 's/^/| /' conftest.$ac_ext >&5
        !          17168:
        !          17169: ( exit $ac_status )
        !          17170: sudo_cv_func_fnmatch=no
        !          17171: fi
        !          17172: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
        !          17173: fi
        !          17174:
1.25      millert  17175:
1.37    ! millert  17176: rm -f core core.* *.core
1.23      millert  17177: fi
                   17178:
1.37    ! millert  17179: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
        !          17180: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
        !          17181: if test $sudo_cv_func_fnmatch = yes; then
        !          17182:   cat >>confdefs.h <<\_ACEOF
        !          17183: #define HAVE_FNMATCH 1
        !          17184: _ACEOF
1.23      millert  17185:
1.27      millert  17186: else
                   17187:   case " $LIBOBJS " in
1.37    ! millert  17188:   *" fnmatch.$ac_objext "* ) ;;
        !          17189:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.27      millert  17190:  ;;
                   17191: esac
                   17192:
                   17193: fi
                   17194:
1.37    ! millert  17195: { echo "$as_me:$LINENO: checking for isblank" >&5
        !          17196: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
        !          17197: if test "${sudo_cv_func_isblank+set}" = set; then
1.23      millert  17198:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17199: else
                   17200:   cat >conftest.$ac_ext <<_ACEOF
                   17201: /* confdefs.h.  */
                   17202: _ACEOF
                   17203: cat confdefs.h >>conftest.$ac_ext
                   17204: cat >>conftest.$ac_ext <<_ACEOF
                   17205: /* end confdefs.h.  */
1.37    ! millert  17206: #include <ctype.h>
1.23      millert  17207: int
                   17208: main ()
                   17209: {
1.37    ! millert  17210: return (isblank('a'));
1.23      millert  17211:   ;
                   17212:   return 0;
                   17213: }
                   17214: _ACEOF
1.25      millert  17215: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17216: if { (ac_try="$ac_link"
                   17217: case "(($ac_try" in
                   17218:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17219:   *) ac_try_echo=$ac_try;;
                   17220: esac
                   17221: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17222:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17223:   ac_status=$?
1.25      millert  17224:   grep -v '^ *+' conftest.er1 >conftest.err
                   17225:   rm -f conftest.er1
                   17226:   cat conftest.err >&5
1.23      millert  17227:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17228:   (exit $ac_status); } && {
                   17229:         test -z "$ac_c_werror_flag" ||
                   17230:         test ! -s conftest.err
                   17231:        } && test -s conftest$ac_exeext &&
                   17232:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  17233:   sudo_cv_func_isblank=yes
1.23      millert  17234: else
                   17235:   echo "$as_me: failed program was:" >&5
                   17236: sed 's/^/| /' conftest.$ac_ext >&5
                   17237:
1.37    ! millert  17238:        sudo_cv_func_isblank=no
1.23      millert  17239: fi
1.27      millert  17240:
                   17241: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17242:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17243: fi
1.37    ! millert  17244: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
        !          17245: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
        !          17246:
        !          17247:   if test "$sudo_cv_func_isblank" = "yes"; then
        !          17248:
        !          17249: cat >>confdefs.h <<\_ACEOF
        !          17250: #define HAVE_ISBLANK 1
1.25      millert  17251: _ACEOF
                   17252:
1.37    ! millert  17253:   else
        !          17254:     case " $LIBOBJS " in
        !          17255:   *" isblank.$ac_objext "* ) ;;
        !          17256:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
        !          17257:  ;;
        !          17258: esac
        !          17259:
        !          17260:   fi
        !          17261:
        !          17262:
        !          17263:
1.23      millert  17264:
1.37    ! millert  17265:
        !          17266:
        !          17267:
        !          17268: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.25      millert  17269: do
                   17270: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17271: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17272: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17273: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17274:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17275: else
1.23      millert  17276:   cat >conftest.$ac_ext <<_ACEOF
                   17277: /* confdefs.h.  */
                   17278: _ACEOF
                   17279: cat confdefs.h >>conftest.$ac_ext
                   17280: cat >>conftest.$ac_ext <<_ACEOF
                   17281: /* end confdefs.h.  */
1.25      millert  17282: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17283:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17284: #define $ac_func innocuous_$ac_func
                   17285:
                   17286: /* System header to define __stub macros and hopefully few prototypes,
                   17287:     which can conflict with char $ac_func (); below.
                   17288:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17289:     <limits.h> exists even on freestanding compilers.  */
                   17290:
                   17291: #ifdef __STDC__
                   17292: # include <limits.h>
                   17293: #else
                   17294: # include <assert.h>
                   17295: #endif
                   17296:
                   17297: #undef $ac_func
                   17298:
1.27      millert  17299: /* Override any GCC internal prototype to avoid an error.
                   17300:    Use char because int might match the return type of a GCC
                   17301:    builtin and then its argument prototype would still apply.  */
1.25      millert  17302: #ifdef __cplusplus
                   17303: extern "C"
                   17304: #endif
                   17305: char $ac_func ();
                   17306: /* The GNU C library defines this for functions which it implements
                   17307:     to always fail with ENOSYS.  Some functions are actually named
                   17308:     something starting with __ and the normal name is an alias.  */
1.27      millert  17309: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17310: choke me
                   17311: #endif
1.23      millert  17312:
1.25      millert  17313: int
                   17314: main ()
                   17315: {
1.27      millert  17316: return $ac_func ();
1.25      millert  17317:   ;
                   17318:   return 0;
                   17319: }
1.23      millert  17320: _ACEOF
1.25      millert  17321: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17322: if { (ac_try="$ac_link"
                   17323: case "(($ac_try" in
                   17324:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17325:   *) ac_try_echo=$ac_try;;
                   17326: esac
                   17327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17328:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17329:   ac_status=$?
                   17330:   grep -v '^ *+' conftest.er1 >conftest.err
                   17331:   rm -f conftest.er1
                   17332:   cat conftest.err >&5
                   17333:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17334:   (exit $ac_status); } && {
                   17335:         test -z "$ac_c_werror_flag" ||
                   17336:         test ! -s conftest.err
                   17337:        } && test -s conftest$ac_exeext &&
                   17338:        $as_test_x conftest$ac_exeext; then
1.25      millert  17339:   eval "$as_ac_var=yes"
1.23      millert  17340: else
1.25      millert  17341:   echo "$as_me: failed program was:" >&5
                   17342: sed 's/^/| /' conftest.$ac_ext >&5
                   17343:
1.27      millert  17344:        eval "$as_ac_var=no"
1.25      millert  17345: fi
1.27      millert  17346:
                   17347: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17348:       conftest$ac_exeext conftest.$ac_ext
                   17349: fi
1.27      millert  17350: ac_res=`eval echo '${'$as_ac_var'}'`
                   17351:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17352: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17353: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17354:   cat >>confdefs.h <<_ACEOF
                   17355: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17356: _ACEOF
1.37    ! millert  17357:
        !          17358: else
        !          17359:   case " $LIBOBJS " in
        !          17360:   *" $ac_func.$ac_objext "* ) ;;
        !          17361:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
        !          17362:  ;;
        !          17363: esac
        !          17364:
1.23      millert  17365: fi
1.25      millert  17366: done
                   17367:
1.23      millert  17368:
1.37    ! millert  17369:
        !          17370: for ac_func in closefrom
1.25      millert  17371: do
                   17372: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17373: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17374: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17375: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  17376:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17377: else
                   17378:   cat >conftest.$ac_ext <<_ACEOF
                   17379: /* confdefs.h.  */
1.18      millert  17380: _ACEOF
1.23      millert  17381: cat confdefs.h >>conftest.$ac_ext
                   17382: cat >>conftest.$ac_ext <<_ACEOF
                   17383: /* end confdefs.h.  */
1.25      millert  17384: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17385:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17386: #define $ac_func innocuous_$ac_func
                   17387:
                   17388: /* System header to define __stub macros and hopefully few prototypes,
                   17389:     which can conflict with char $ac_func (); below.
                   17390:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17391:     <limits.h> exists even on freestanding compilers.  */
                   17392:
                   17393: #ifdef __STDC__
                   17394: # include <limits.h>
                   17395: #else
                   17396: # include <assert.h>
                   17397: #endif
                   17398:
                   17399: #undef $ac_func
                   17400:
1.27      millert  17401: /* Override any GCC internal prototype to avoid an error.
                   17402:    Use char because int might match the return type of a GCC
                   17403:    builtin and then its argument prototype would still apply.  */
1.25      millert  17404: #ifdef __cplusplus
                   17405: extern "C"
                   17406: #endif
                   17407: char $ac_func ();
                   17408: /* The GNU C library defines this for functions which it implements
                   17409:     to always fail with ENOSYS.  Some functions are actually named
                   17410:     something starting with __ and the normal name is an alias.  */
1.27      millert  17411: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17412: choke me
                   17413: #endif
1.18      millert  17414:
1.23      millert  17415: int
                   17416: main ()
                   17417: {
1.27      millert  17418: return $ac_func ();
1.25      millert  17419:   ;
                   17420:   return 0;
                   17421: }
1.9       millert  17422: _ACEOF
1.27      millert  17423: rm -f conftest.$ac_objext conftest$ac_exeext
                   17424: if { (ac_try="$ac_link"
                   17425: case "(($ac_try" in
                   17426:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17427:   *) ac_try_echo=$ac_try;;
                   17428: esac
                   17429: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17430:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17431:   ac_status=$?
                   17432:   grep -v '^ *+' conftest.er1 >conftest.err
                   17433:   rm -f conftest.er1
                   17434:   cat conftest.err >&5
                   17435:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17436:   (exit $ac_status); } && {
                   17437:         test -z "$ac_c_werror_flag" ||
                   17438:         test ! -s conftest.err
                   17439:        } && test -s conftest$ac_exeext &&
                   17440:        $as_test_x conftest$ac_exeext; then
                   17441:   eval "$as_ac_var=yes"
1.1       millert  17442: else
1.25      millert  17443:   echo "$as_me: failed program was:" >&5
                   17444: sed 's/^/| /' conftest.$ac_ext >&5
                   17445:
1.27      millert  17446:        eval "$as_ac_var=no"
1.23      millert  17447: fi
1.27      millert  17448:
                   17449: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17450:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  17451: fi
1.27      millert  17452: ac_res=`eval echo '${'$as_ac_var'}'`
                   17453:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17454: echo "${ECHO_T}$ac_res" >&6; }
                   17455: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17456:   cat >>confdefs.h <<_ACEOF
                   17457: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17458: _ACEOF
1.16      millert  17459:
1.37    ! millert  17460: else
        !          17461:   case " $LIBOBJS " in
        !          17462:   *" closefrom.$ac_objext "* ) ;;
        !          17463:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
1.27      millert  17464:  ;;
                   17465: esac
1.9       millert  17466:
1.37    ! millert  17467:     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
        !          17468: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
        !          17469: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.27      millert  17470:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17471: else
                   17472:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17473: /* confdefs.h.  */
                   17474: _ACEOF
                   17475: cat confdefs.h >>conftest.$ac_ext
                   17476: cat >>conftest.$ac_ext <<_ACEOF
                   17477: /* end confdefs.h.  */
1.37    ! millert  17478:  #include <limits.h>
        !          17479:          #include <fcntl.h>
        !          17480:
        !          17481: int
        !          17482: main ()
        !          17483: {
        !          17484: #ifndef F_CLOSEM
        !          17485:   (void) F_CLOSEM;
        !          17486: #endif
        !          17487:
        !          17488:   ;
        !          17489:   return 0;
        !          17490: }
1.16      millert  17491: _ACEOF
1.37    ! millert  17492: rm -f conftest.$ac_objext
        !          17493: if { (ac_try="$ac_compile"
1.27      millert  17494: case "(($ac_try" in
                   17495:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17496:   *) ac_try_echo=$ac_try;;
                   17497: esac
                   17498: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  17499:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  17500:   ac_status=$?
1.37    ! millert  17501:   grep -v '^ *+' conftest.er1 >conftest.err
        !          17502:   rm -f conftest.er1
        !          17503:   cat conftest.err >&5
1.25      millert  17504:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  17505:   (exit $ac_status); } && {
        !          17506:         test -z "$ac_c_werror_flag" ||
        !          17507:         test ! -s conftest.err
        !          17508:        } && test -s conftest.$ac_objext; then
        !          17509:   ac_cv_have_decl_F_CLOSEM=yes
1.1       millert  17510: else
1.37    ! millert  17511:   echo "$as_me: failed program was:" >&5
1.16      millert  17512: sed 's/^/| /' conftest.$ac_ext >&5
                   17513:
1.37    ! millert  17514:        ac_cv_have_decl_F_CLOSEM=no
1.27      millert  17515: fi
                   17516:
1.37    ! millert  17517: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  17518: fi
1.37    ! millert  17519: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
        !          17520: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
        !          17521: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.25      millert  17522:   cat >>confdefs.h <<\_ACEOF
1.37    ! millert  17523: #define HAVE_FCNTL_CLOSEM 1
1.25      millert  17524: _ACEOF
                   17525:
1.27      millert  17526: fi
1.16      millert  17527:
1.27      millert  17528:
1.25      millert  17529: fi
1.37    ! millert  17530: done
1.27      millert  17531:
                   17532:
1.37    ! millert  17533: for ac_func in mkstemp
1.27      millert  17534: do
                   17535: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17536: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17537: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17538: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17539:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  17540: else
1.9       millert  17541:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17542: /* confdefs.h.  */
                   17543: _ACEOF
                   17544: cat confdefs.h >>conftest.$ac_ext
                   17545: cat >>conftest.$ac_ext <<_ACEOF
1.25      millert  17546: /* end confdefs.h.  */
1.27      millert  17547: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25      millert  17548:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  17549: #define $ac_func innocuous_$ac_func
1.25      millert  17550:
                   17551: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  17552:     which can conflict with char $ac_func (); below.
1.25      millert  17553:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17554:     <limits.h> exists even on freestanding compilers.  */
                   17555:
                   17556: #ifdef __STDC__
                   17557: # include <limits.h>
                   17558: #else
                   17559: # include <assert.h>
                   17560: #endif
                   17561:
1.27      millert  17562: #undef $ac_func
1.25      millert  17563:
1.27      millert  17564: /* Override any GCC internal prototype to avoid an error.
                   17565:    Use char because int might match the return type of a GCC
                   17566:    builtin and then its argument prototype would still apply.  */
1.25      millert  17567: #ifdef __cplusplus
                   17568: extern "C"
                   17569: #endif
1.27      millert  17570: char $ac_func ();
1.25      millert  17571: /* The GNU C library defines this for functions which it implements
                   17572:     to always fail with ENOSYS.  Some functions are actually named
                   17573:     something starting with __ and the normal name is an alias.  */
1.27      millert  17574: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17575: choke me
                   17576: #endif
                   17577:
                   17578: int
                   17579: main ()
                   17580: {
1.27      millert  17581: return $ac_func ();
1.25      millert  17582:   ;
                   17583:   return 0;
                   17584: }
                   17585: _ACEOF
                   17586: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17587: if { (ac_try="$ac_link"
                   17588: case "(($ac_try" in
                   17589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17590:   *) ac_try_echo=$ac_try;;
                   17591: esac
                   17592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17593:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17594:   ac_status=$?
                   17595:   grep -v '^ *+' conftest.er1 >conftest.err
                   17596:   rm -f conftest.er1
                   17597:   cat conftest.err >&5
                   17598:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17599:   (exit $ac_status); } && {
                   17600:         test -z "$ac_c_werror_flag" ||
                   17601:         test ! -s conftest.err
                   17602:        } && test -s conftest$ac_exeext &&
                   17603:        $as_test_x conftest$ac_exeext; then
                   17604:   eval "$as_ac_var=yes"
1.23      millert  17605: else
1.25      millert  17606:   echo "$as_me: failed program was:" >&5
1.23      millert  17607: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17608:
1.27      millert  17609:        eval "$as_ac_var=no"
1.23      millert  17610: fi
1.27      millert  17611:
                   17612: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17613:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17614: fi
1.27      millert  17615: ac_res=`eval echo '${'$as_ac_var'}'`
                   17616:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17617: echo "${ECHO_T}$ac_res" >&6; }
                   17618: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17619:   cat >>confdefs.h <<_ACEOF
                   17620: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17621: _ACEOF
                   17622:
1.23      millert  17623: else
1.37    ! millert  17624:   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.27      millert  17625:
                   17626:
1.37    ! millert  17627: for ac_func in random lrand48
1.27      millert  17628: do
                   17629: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17630: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17631: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17632: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17633:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17634: else
1.27      millert  17635:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17636: /* confdefs.h.  */
                   17637: _ACEOF
                   17638: cat confdefs.h >>conftest.$ac_ext
                   17639: cat >>conftest.$ac_ext <<_ACEOF
                   17640: /* end confdefs.h.  */
1.27      millert  17641: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17642:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17643: #define $ac_func innocuous_$ac_func
                   17644:
                   17645: /* System header to define __stub macros and hopefully few prototypes,
                   17646:     which can conflict with char $ac_func (); below.
                   17647:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17648:     <limits.h> exists even on freestanding compilers.  */
                   17649:
                   17650: #ifdef __STDC__
                   17651: # include <limits.h>
                   17652: #else
                   17653: # include <assert.h>
                   17654: #endif
1.25      millert  17655:
1.27      millert  17656: #undef $ac_func
                   17657:
                   17658: /* Override any GCC internal prototype to avoid an error.
                   17659:    Use char because int might match the return type of a GCC
                   17660:    builtin and then its argument prototype would still apply.  */
1.25      millert  17661: #ifdef __cplusplus
                   17662: extern "C"
                   17663: #endif
1.27      millert  17664: char $ac_func ();
                   17665: /* The GNU C library defines this for functions which it implements
                   17666:     to always fail with ENOSYS.  Some functions are actually named
                   17667:     something starting with __ and the normal name is an alias.  */
                   17668: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17669: choke me
                   17670: #endif
                   17671:
1.25      millert  17672: int
                   17673: main ()
                   17674: {
1.27      millert  17675: return $ac_func ();
1.25      millert  17676:   ;
                   17677:   return 0;
1.9       millert  17678: }
                   17679: _ACEOF
1.25      millert  17680: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17681: if { (ac_try="$ac_link"
                   17682: case "(($ac_try" in
                   17683:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17684:   *) ac_try_echo=$ac_try;;
                   17685: esac
                   17686: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17687:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17688:   ac_status=$?
                   17689:   grep -v '^ *+' conftest.er1 >conftest.err
                   17690:   rm -f conftest.er1
                   17691:   cat conftest.err >&5
                   17692:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17693:   (exit $ac_status); } && {
                   17694:         test -z "$ac_c_werror_flag" ||
                   17695:         test ! -s conftest.err
                   17696:        } && test -s conftest$ac_exeext &&
                   17697:        $as_test_x conftest$ac_exeext; then
                   17698:   eval "$as_ac_var=yes"
1.7       millert  17699: else
1.25      millert  17700:   echo "$as_me: failed program was:" >&5
1.16      millert  17701: sed 's/^/| /' conftest.$ac_ext >&5
                   17702:
1.27      millert  17703:        eval "$as_ac_var=no"
1.23      millert  17704: fi
1.27      millert  17705:
                   17706: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17707:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  17708: fi
                   17709: ac_res=`eval echo '${'$as_ac_var'}'`
                   17710:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17711: echo "${ECHO_T}$ac_res" >&6; }
                   17712: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17713:   cat >>confdefs.h <<_ACEOF
                   17714: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17715: _ACEOF
1.37    ! millert  17716:  break
        !          17717: fi
        !          17718: done
1.27      millert  17719:
                   17720:
                   17721: fi
1.37    ! millert  17722: done
1.27      millert  17723:
                   17724:
                   17725:
                   17726:
                   17727:
1.37    ! millert  17728: for ac_func in snprintf vsnprintf asprintf vasprintf
1.27      millert  17729: do
                   17730: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17731: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17732: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17733: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17734:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17735: else
1.27      millert  17736:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17737: /* confdefs.h.  */
                   17738: _ACEOF
                   17739: cat confdefs.h >>conftest.$ac_ext
                   17740: cat >>conftest.$ac_ext <<_ACEOF
                   17741: /* end confdefs.h.  */
1.27      millert  17742: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17743:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17744: #define $ac_func innocuous_$ac_func
1.25      millert  17745:
1.27      millert  17746: /* System header to define __stub macros and hopefully few prototypes,
                   17747:     which can conflict with char $ac_func (); below.
                   17748:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17749:     <limits.h> exists even on freestanding compilers.  */
                   17750:
                   17751: #ifdef __STDC__
                   17752: # include <limits.h>
                   17753: #else
                   17754: # include <assert.h>
                   17755: #endif
                   17756:
                   17757: #undef $ac_func
                   17758:
                   17759: /* Override any GCC internal prototype to avoid an error.
                   17760:    Use char because int might match the return type of a GCC
                   17761:    builtin and then its argument prototype would still apply.  */
1.23      millert  17762: #ifdef __cplusplus
                   17763: extern "C"
                   17764: #endif
1.27      millert  17765: char $ac_func ();
                   17766: /* The GNU C library defines this for functions which it implements
                   17767:     to always fail with ENOSYS.  Some functions are actually named
                   17768:     something starting with __ and the normal name is an alias.  */
                   17769: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17770: choke me
                   17771: #endif
                   17772:
1.23      millert  17773: int
                   17774: main ()
                   17775: {
1.27      millert  17776: return $ac_func ();
1.23      millert  17777:   ;
                   17778:   return 0;
                   17779: }
1.9       millert  17780: _ACEOF
1.23      millert  17781: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17782: if { (ac_try="$ac_link"
                   17783: case "(($ac_try" in
                   17784:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17785:   *) ac_try_echo=$ac_try;;
                   17786: esac
                   17787: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17788:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17789:   ac_status=$?
1.25      millert  17790:   grep -v '^ *+' conftest.er1 >conftest.err
                   17791:   rm -f conftest.er1
                   17792:   cat conftest.err >&5
1.23      millert  17793:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17794:   (exit $ac_status); } && {
                   17795:         test -z "$ac_c_werror_flag" ||
                   17796:         test ! -s conftest.err
                   17797:        } && test -s conftest$ac_exeext &&
                   17798:        $as_test_x conftest$ac_exeext; then
                   17799:   eval "$as_ac_var=yes"
1.1       millert  17800: else
1.23      millert  17801:   echo "$as_me: failed program was:" >&5
                   17802: sed 's/^/| /' conftest.$ac_ext >&5
                   17803:
1.27      millert  17804:        eval "$as_ac_var=no"
1.25      millert  17805: fi
1.27      millert  17806:
                   17807: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17808:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  17809: fi
1.27      millert  17810: ac_res=`eval echo '${'$as_ac_var'}'`
                   17811:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17812: echo "${ECHO_T}$ac_res" >&6; }
                   17813: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17814:   cat >>confdefs.h <<_ACEOF
                   17815: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17816: _ACEOF
1.25      millert  17817:
1.27      millert  17818: else
1.37    ! millert  17819:   NEED_SNPRINTF=1
        !          17820: fi
        !          17821: done
1.1       millert  17822:
1.37    ! millert  17823: if test X"$ac_cv_type_struct_timespec" != X"no"; then
        !          17824:     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
        !          17825: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
        !          17826: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9       millert  17827:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17828: else
1.9       millert  17829:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17830: /* confdefs.h.  */
                   17831: _ACEOF
                   17832: cat confdefs.h >>conftest.$ac_ext
                   17833: cat >>conftest.$ac_ext <<_ACEOF
                   17834: /* end confdefs.h.  */
1.37    ! millert  17835: $ac_includes_default
1.9       millert  17836: int
                   17837: main ()
                   17838: {
1.37    ! millert  17839: static struct stat ac_aggr;
        !          17840: if (ac_aggr.st_mtim)
        !          17841: return 0;
1.9       millert  17842:   ;
                   17843:   return 0;
                   17844: }
                   17845: _ACEOF
1.37    ! millert  17846: rm -f conftest.$ac_objext
        !          17847: if { (ac_try="$ac_compile"
1.27      millert  17848: case "(($ac_try" in
                   17849:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17850:   *) ac_try_echo=$ac_try;;
                   17851: esac
                   17852: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  17853:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17854:   ac_status=$?
1.25      millert  17855:   grep -v '^ *+' conftest.er1 >conftest.err
                   17856:   rm -f conftest.er1
                   17857:   cat conftest.err >&5
1.16      millert  17858:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17859:   (exit $ac_status); } && {
                   17860:         test -z "$ac_c_werror_flag" ||
                   17861:         test ! -s conftest.err
1.37    ! millert  17862:        } && test -s conftest.$ac_objext; then
        !          17863:   ac_cv_member_struct_stat_st_mtim=yes
1.23      millert  17864: else
                   17865:   echo "$as_me: failed program was:" >&5
                   17866: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17867:
1.37    ! millert  17868:        cat >conftest.$ac_ext <<_ACEOF
        !          17869: /* confdefs.h.  */
        !          17870: _ACEOF
        !          17871: cat confdefs.h >>conftest.$ac_ext
        !          17872: cat >>conftest.$ac_ext <<_ACEOF
        !          17873: /* end confdefs.h.  */
1.27      millert  17874: $ac_includes_default
1.23      millert  17875: int
                   17876: main ()
                   17877: {
1.27      millert  17878: static struct stat ac_aggr;
                   17879: if (sizeof ac_aggr.st_mtim)
                   17880: return 0;
1.23      millert  17881:   ;
                   17882:   return 0;
                   17883: }
1.9       millert  17884: _ACEOF
1.27      millert  17885: rm -f conftest.$ac_objext
                   17886: if { (ac_try="$ac_compile"
                   17887: case "(($ac_try" in
                   17888:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17889:   *) ac_try_echo=$ac_try;;
                   17890: esac
                   17891: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17892:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  17893:   ac_status=$?
1.25      millert  17894:   grep -v '^ *+' conftest.er1 >conftest.err
                   17895:   rm -f conftest.er1
                   17896:   cat conftest.err >&5
1.16      millert  17897:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17898:   (exit $ac_status); } && {
                   17899:         test -z "$ac_c_werror_flag" ||
                   17900:         test ! -s conftest.err
                   17901:        } && test -s conftest.$ac_objext; then
                   17902:   ac_cv_member_struct_stat_st_mtim=yes
1.1       millert  17903: else
1.23      millert  17904:   echo "$as_me: failed program was:" >&5
1.16      millert  17905: sed 's/^/| /' conftest.$ac_ext >&5
                   17906:
1.27      millert  17907:        ac_cv_member_struct_stat_st_mtim=no
1.25      millert  17908: fi
                   17909:
1.27      millert  17910: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  17911: fi
                   17912:
1.27      millert  17913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  17914: fi
1.27      millert  17915: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
                   17916: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
                   17917: if test $ac_cv_member_struct_stat_st_mtim = yes; then
                   17918:   cat >>confdefs.h <<\_ACEOF
                   17919: #define HAVE_ST_MTIM 1
                   17920: _ACEOF
1.25      millert  17921:
1.34      millert  17922:        { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
                   17923: echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
                   17924: if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
                   17925:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17926: else
                   17927:   cat >conftest.$ac_ext <<_ACEOF
                   17928: /* confdefs.h.  */
                   17929: _ACEOF
                   17930: cat confdefs.h >>conftest.$ac_ext
                   17931: cat >>conftest.$ac_ext <<_ACEOF
                   17932: /* end confdefs.h.  */
                   17933: $ac_includes_default
                   17934: int
                   17935: main ()
                   17936: {
                   17937: static struct stat ac_aggr;
                   17938: if (ac_aggr.st_mtim.st__tim)
                   17939: return 0;
                   17940:   ;
                   17941:   return 0;
                   17942: }
                   17943: _ACEOF
                   17944: rm -f conftest.$ac_objext
                   17945: if { (ac_try="$ac_compile"
                   17946: case "(($ac_try" in
                   17947:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17948:   *) ac_try_echo=$ac_try;;
                   17949: esac
                   17950: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17951:   (eval "$ac_compile") 2>conftest.er1
                   17952:   ac_status=$?
                   17953:   grep -v '^ *+' conftest.er1 >conftest.err
                   17954:   rm -f conftest.er1
                   17955:   cat conftest.err >&5
                   17956:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17957:   (exit $ac_status); } && {
                   17958:         test -z "$ac_c_werror_flag" ||
                   17959:         test ! -s conftest.err
                   17960:        } && test -s conftest.$ac_objext; then
                   17961:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   17962: else
                   17963:   echo "$as_me: failed program was:" >&5
                   17964: sed 's/^/| /' conftest.$ac_ext >&5
                   17965:
                   17966:        cat >conftest.$ac_ext <<_ACEOF
                   17967: /* confdefs.h.  */
                   17968: _ACEOF
                   17969: cat confdefs.h >>conftest.$ac_ext
                   17970: cat >>conftest.$ac_ext <<_ACEOF
                   17971: /* end confdefs.h.  */
                   17972: $ac_includes_default
                   17973: int
                   17974: main ()
                   17975: {
                   17976: static struct stat ac_aggr;
                   17977: if (sizeof ac_aggr.st_mtim.st__tim)
                   17978: return 0;
                   17979:   ;
                   17980:   return 0;
                   17981: }
                   17982: _ACEOF
                   17983: rm -f conftest.$ac_objext
                   17984: if { (ac_try="$ac_compile"
                   17985: case "(($ac_try" in
                   17986:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17987:   *) ac_try_echo=$ac_try;;
                   17988: esac
                   17989: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17990:   (eval "$ac_compile") 2>conftest.er1
                   17991:   ac_status=$?
                   17992:   grep -v '^ *+' conftest.er1 >conftest.err
                   17993:   rm -f conftest.er1
                   17994:   cat conftest.err >&5
                   17995:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17996:   (exit $ac_status); } && {
                   17997:         test -z "$ac_c_werror_flag" ||
                   17998:         test ! -s conftest.err
                   17999:        } && test -s conftest.$ac_objext; then
                   18000:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   18001: else
                   18002:   echo "$as_me: failed program was:" >&5
                   18003: sed 's/^/| /' conftest.$ac_ext >&5
                   18004:
                   18005:        ac_cv_member_struct_stat_st_mtim_st__tim=no
                   18006: fi
                   18007:
                   18008: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18009: fi
                   18010:
                   18011: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18012: fi
                   18013: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
                   18014: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
                   18015: if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
                   18016:   cat >>confdefs.h <<\_ACEOF
                   18017: #define HAVE_ST__TIM 1
                   18018: _ACEOF
                   18019:
                   18020: fi
                   18021:
1.27      millert  18022: else
                   18023:   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
                   18024: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
                   18025: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9       millert  18026:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18027: else
1.9       millert  18028:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18029: /* confdefs.h.  */
                   18030: _ACEOF
                   18031: cat confdefs.h >>conftest.$ac_ext
                   18032: cat >>conftest.$ac_ext <<_ACEOF
                   18033: /* end confdefs.h.  */
1.27      millert  18034: $ac_includes_default
1.23      millert  18035: int
                   18036: main ()
                   18037: {
1.27      millert  18038: static struct stat ac_aggr;
                   18039: if (ac_aggr.st_mtimespec)
                   18040: return 0;
1.23      millert  18041:   ;
                   18042:   return 0;
1.1       millert  18043: }
1.9       millert  18044: _ACEOF
1.27      millert  18045: rm -f conftest.$ac_objext
                   18046: if { (ac_try="$ac_compile"
                   18047: case "(($ac_try" in
                   18048:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18049:   *) ac_try_echo=$ac_try;;
                   18050: esac
                   18051: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18052:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18053:   ac_status=$?
1.25      millert  18054:   grep -v '^ *+' conftest.er1 >conftest.err
                   18055:   rm -f conftest.er1
                   18056:   cat conftest.err >&5
1.16      millert  18057:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18058:   (exit $ac_status); } && {
                   18059:         test -z "$ac_c_werror_flag" ||
                   18060:         test ! -s conftest.err
                   18061:        } && test -s conftest.$ac_objext; then
                   18062:   ac_cv_member_struct_stat_st_mtimespec=yes
1.1       millert  18063: else
1.23      millert  18064:   echo "$as_me: failed program was:" >&5
1.16      millert  18065: sed 's/^/| /' conftest.$ac_ext >&5
                   18066:
1.27      millert  18067:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18068: /* confdefs.h.  */
                   18069: _ACEOF
                   18070: cat confdefs.h >>conftest.$ac_ext
                   18071: cat >>conftest.$ac_ext <<_ACEOF
                   18072: /* end confdefs.h.  */
1.27      millert  18073: $ac_includes_default
1.9       millert  18074: int
                   18075: main ()
                   18076: {
1.27      millert  18077: static struct stat ac_aggr;
                   18078: if (sizeof ac_aggr.st_mtimespec)
                   18079: return 0;
1.9       millert  18080:   ;
                   18081:   return 0;
                   18082: }
                   18083: _ACEOF
1.27      millert  18084: rm -f conftest.$ac_objext
                   18085: if { (ac_try="$ac_compile"
                   18086: case "(($ac_try" in
                   18087:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18088:   *) ac_try_echo=$ac_try;;
                   18089: esac
                   18090: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18091:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18092:   ac_status=$?
1.25      millert  18093:   grep -v '^ *+' conftest.er1 >conftest.err
                   18094:   rm -f conftest.er1
                   18095:   cat conftest.err >&5
1.16      millert  18096:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18097:   (exit $ac_status); } && {
                   18098:         test -z "$ac_c_werror_flag" ||
                   18099:         test ! -s conftest.err
                   18100:        } && test -s conftest.$ac_objext; then
                   18101:   ac_cv_member_struct_stat_st_mtimespec=yes
1.16      millert  18102: else
                   18103:   echo "$as_me: failed program was:" >&5
                   18104: sed 's/^/| /' conftest.$ac_ext >&5
                   18105:
1.27      millert  18106:        ac_cv_member_struct_stat_st_mtimespec=no
                   18107: fi
                   18108:
                   18109: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18110: fi
                   18111:
                   18112: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18113: fi
                   18114: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
                   18115: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
                   18116: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
                   18117:   cat >>confdefs.h <<\_ACEOF
                   18118: #define HAVE_ST_MTIMESPEC 1
                   18119: _ACEOF
                   18120:
1.16      millert  18121: fi
1.27      millert  18122:
1.16      millert  18123: fi
1.27      millert  18124:
                   18125:     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
                   18126: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
                   18127:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18128: /* confdefs.h.  */
                   18129: _ACEOF
                   18130: cat confdefs.h >>conftest.$ac_ext
                   18131: cat >>conftest.$ac_ext <<_ACEOF
                   18132: /* end confdefs.h.  */
1.27      millert  18133: #include <sys/types.h>
                   18134: #include <sys/time.h>
1.16      millert  18135: int
                   18136: main ()
                   18137: {
1.27      millert  18138: struct timespec ts1, ts2;
                   18139: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
                   18140: #ifndef timespecsub
                   18141: #error missing timespecsub
                   18142: #endif
                   18143: timespecsub(&ts1, &ts2);
1.16      millert  18144:   ;
                   18145:   return 0;
                   18146: }
                   18147: _ACEOF
1.27      millert  18148: rm -f conftest.$ac_objext
                   18149: if { (ac_try="$ac_compile"
                   18150: case "(($ac_try" in
                   18151:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18152:   *) ac_try_echo=$ac_try;;
                   18153: esac
                   18154: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18155:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  18156:   ac_status=$?
1.25      millert  18157:   grep -v '^ *+' conftest.er1 >conftest.err
                   18158:   rm -f conftest.er1
                   18159:   cat conftest.err >&5
1.16      millert  18160:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18161:   (exit $ac_status); } && {
                   18162:         test -z "$ac_c_werror_flag" ||
                   18163:         test ! -s conftest.err
                   18164:        } && test -s conftest.$ac_objext; then
                   18165:   cat >>confdefs.h <<\_ACEOF
                   18166: #define HAVE_TIMESPECSUB2 1
                   18167: _ACEOF
                   18168:
                   18169:     { echo "$as_me:$LINENO: result: yes" >&5
                   18170: echo "${ECHO_T}yes" >&6; }
1.1       millert  18171: else
1.9       millert  18172:   echo "$as_me: failed program was:" >&5
1.16      millert  18173: sed 's/^/| /' conftest.$ac_ext >&5
                   18174:
1.27      millert  18175:        { echo "$as_me:$LINENO: result: no" >&5
                   18176: echo "${ECHO_T}no" >&6; }
1.1       millert  18177: fi
1.27      millert  18178:
                   18179: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  18180: fi
1.25      millert  18181: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18182: /* confdefs.h.  */
                   18183: _ACEOF
                   18184: cat confdefs.h >>conftest.$ac_ext
                   18185: cat >>conftest.$ac_ext <<_ACEOF
                   18186: /* end confdefs.h.  */
1.27      millert  18187: #include <sys/types.h>
                   18188: #include <$ac_header_dirent>
1.16      millert  18189: int
                   18190: main ()
                   18191: {
1.36      millert  18192: DIR *d; (void)dirfd(d);
1.9       millert  18193:   ;
                   18194:   return 0;
                   18195: }
                   18196: _ACEOF
                   18197: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18198: if { (ac_try="$ac_link"
                   18199: case "(($ac_try" in
                   18200:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18201:   *) ac_try_echo=$ac_try;;
                   18202: esac
                   18203: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18204:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18205:   ac_status=$?
1.25      millert  18206:   grep -v '^ *+' conftest.er1 >conftest.err
                   18207:   rm -f conftest.er1
                   18208:   cat conftest.err >&5
1.16      millert  18209:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18210:   (exit $ac_status); } && {
                   18211:         test -z "$ac_c_werror_flag" ||
                   18212:         test ! -s conftest.err
                   18213:        } && test -s conftest$ac_exeext &&
                   18214:        $as_test_x conftest$ac_exeext; then
                   18215:   cat >>confdefs.h <<\_ACEOF
                   18216: #define HAVE_DIRFD 1
                   18217: _ACEOF
                   18218:
1.9       millert  18219: else
                   18220:   echo "$as_me: failed program was:" >&5
1.16      millert  18221: sed 's/^/| /' conftest.$ac_ext >&5
                   18222:
1.27      millert  18223:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18224: /* confdefs.h.  */
                   18225: _ACEOF
                   18226: cat confdefs.h >>conftest.$ac_ext
                   18227: cat >>conftest.$ac_ext <<_ACEOF
                   18228: /* end confdefs.h.  */
1.27      millert  18229: #include <sys/types.h>
                   18230: #include <$ac_header_dirent>
1.16      millert  18231: int
                   18232: main ()
                   18233: {
1.27      millert  18234: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9       millert  18235:   ;
                   18236:   return 0;
                   18237: }
                   18238: _ACEOF
                   18239: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18240: if { (ac_try="$ac_link"
                   18241: case "(($ac_try" in
                   18242:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18243:   *) ac_try_echo=$ac_try;;
                   18244: esac
                   18245: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18246:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18247:   ac_status=$?
1.25      millert  18248:   grep -v '^ *+' conftest.er1 >conftest.err
                   18249:   rm -f conftest.er1
                   18250:   cat conftest.err >&5
1.16      millert  18251:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18252:   (exit $ac_status); } && {
                   18253:         test -z "$ac_c_werror_flag" ||
                   18254:         test ! -s conftest.err
                   18255:        } && test -s conftest$ac_exeext &&
                   18256:        $as_test_x conftest$ac_exeext; then
                   18257:   cat >>confdefs.h <<\_ACEOF
                   18258: #define HAVE_DD_FD 1
                   18259: _ACEOF
                   18260:
1.9       millert  18261: else
                   18262:   echo "$as_me: failed program was:" >&5
1.16      millert  18263: sed 's/^/| /' conftest.$ac_ext >&5
                   18264:
1.25      millert  18265:
1.9       millert  18266: fi
1.25      millert  18267:
1.27      millert  18268: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18269:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18270: fi
                   18271:
1.27      millert  18272: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18273:       conftest$ac_exeext conftest.$ac_ext
                   18274: if test -n "$NEED_SNPRINTF"; then
                   18275:     case " $LIBOBJS " in
                   18276:   *" snprintf.$ac_objext "* ) ;;
                   18277:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
                   18278:  ;;
                   18279: esac
1.1       millert  18280:
1.25      millert  18281: fi
1.27      millert  18282: { echo "$as_me:$LINENO: checking for socket" >&5
                   18283: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
                   18284: if test "${ac_cv_func_socket+set}" = set; then
1.9       millert  18285:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18286: else
1.9       millert  18287:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18288: /* confdefs.h.  */
                   18289: _ACEOF
                   18290: cat confdefs.h >>conftest.$ac_ext
                   18291: cat >>conftest.$ac_ext <<_ACEOF
                   18292: /* end confdefs.h.  */
1.27      millert  18293: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25      millert  18294:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18295: #define socket innocuous_socket
1.25      millert  18296:
1.1       millert  18297: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18298:     which can conflict with char socket (); below.
1.16      millert  18299:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18300:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18301:
1.16      millert  18302: #ifdef __STDC__
                   18303: # include <limits.h>
                   18304: #else
                   18305: # include <assert.h>
                   18306: #endif
1.25      millert  18307:
1.27      millert  18308: #undef socket
1.25      millert  18309:
1.27      millert  18310: /* Override any GCC internal prototype to avoid an error.
                   18311:    Use char because int might match the return type of a GCC
                   18312:    builtin and then its argument prototype would still apply.  */
1.9       millert  18313: #ifdef __cplusplus
                   18314: extern "C"
                   18315: #endif
1.27      millert  18316: char socket ();
1.1       millert  18317: /* The GNU C library defines this for functions which it implements
                   18318:     to always fail with ENOSYS.  Some functions are actually named
                   18319:     something starting with __ and the normal name is an alias.  */
1.27      millert  18320: #if defined __stub_socket || defined __stub___socket
1.1       millert  18321: choke me
                   18322: #endif
                   18323:
1.16      millert  18324: int
                   18325: main ()
                   18326: {
1.27      millert  18327: return socket ();
1.9       millert  18328:   ;
                   18329:   return 0;
                   18330: }
                   18331: _ACEOF
                   18332: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18333: if { (ac_try="$ac_link"
                   18334: case "(($ac_try" in
                   18335:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18336:   *) ac_try_echo=$ac_try;;
                   18337: esac
                   18338: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18339:   (eval "$ac_link") 2>conftest.er1
1.13      millert  18340:   ac_status=$?
1.25      millert  18341:   grep -v '^ *+' conftest.er1 >conftest.err
                   18342:   rm -f conftest.er1
                   18343:   cat conftest.err >&5
1.16      millert  18344:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18345:   (exit $ac_status); } && {
                   18346:         test -z "$ac_c_werror_flag" ||
                   18347:         test ! -s conftest.err
                   18348:        } && test -s conftest$ac_exeext &&
                   18349:        $as_test_x conftest$ac_exeext; then
                   18350:   ac_cv_func_socket=yes
1.13      millert  18351: else
                   18352:   echo "$as_me: failed program was:" >&5
1.16      millert  18353: sed 's/^/| /' conftest.$ac_ext >&5
                   18354:
1.27      millert  18355:        ac_cv_func_socket=no
1.13      millert  18356: fi
1.27      millert  18357:
                   18358: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18359:       conftest$ac_exeext conftest.$ac_ext
1.13      millert  18360: fi
1.27      millert  18361: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   18362: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
                   18363: if test $ac_cv_func_socket = yes; then
1.25      millert  18364:   :
                   18365: else
1.27      millert  18366:   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18367: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18368: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13      millert  18369:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18370: else
1.25      millert  18371:   ac_check_lib_save_LIBS=$LIBS
                   18372: LIBS="-lsocket  $LIBS"
                   18373: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18374: /* confdefs.h.  */
                   18375: _ACEOF
                   18376: cat confdefs.h >>conftest.$ac_ext
                   18377: cat >>conftest.$ac_ext <<_ACEOF
                   18378: /* end confdefs.h.  */
1.25      millert  18379:
1.27      millert  18380: /* Override any GCC internal prototype to avoid an error.
                   18381:    Use char because int might match the return type of a GCC
                   18382:    builtin and then its argument prototype would still apply.  */
1.13      millert  18383: #ifdef __cplusplus
                   18384: extern "C"
                   18385: #endif
1.27      millert  18386: char socket ();
1.16      millert  18387: int
                   18388: main ()
                   18389: {
1.27      millert  18390: return socket ();
1.13      millert  18391:   ;
                   18392:   return 0;
                   18393: }
                   18394: _ACEOF
                   18395: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18396: if { (ac_try="$ac_link"
                   18397: case "(($ac_try" in
                   18398:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18399:   *) ac_try_echo=$ac_try;;
                   18400: esac
                   18401: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18402:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18403:   ac_status=$?
1.25      millert  18404:   grep -v '^ *+' conftest.er1 >conftest.err
                   18405:   rm -f conftest.er1
                   18406:   cat conftest.err >&5
1.16      millert  18407:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18408:   (exit $ac_status); } && {
                   18409:         test -z "$ac_c_werror_flag" ||
                   18410:         test ! -s conftest.err
                   18411:        } && test -s conftest$ac_exeext &&
                   18412:        $as_test_x conftest$ac_exeext; then
                   18413:   ac_cv_lib_socket_socket=yes
1.9       millert  18414: else
                   18415:   echo "$as_me: failed program was:" >&5
1.16      millert  18416: sed 's/^/| /' conftest.$ac_ext >&5
                   18417:
1.27      millert  18418:        ac_cv_lib_socket_socket=no
1.9       millert  18419: fi
1.27      millert  18420:
                   18421: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18422:       conftest$ac_exeext conftest.$ac_ext
                   18423: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18424: fi
1.27      millert  18425: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   18426: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
                   18427: if test $ac_cv_lib_socket_socket = yes; then
1.25      millert  18428:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18429: else
1.27      millert  18430:   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
                   18431: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
                   18432: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9       millert  18433:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18434: else
1.25      millert  18435:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18436: LIBS="-linet  $LIBS"
1.25      millert  18437: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18438: /* confdefs.h.  */
                   18439: _ACEOF
                   18440: cat confdefs.h >>conftest.$ac_ext
                   18441: cat >>conftest.$ac_ext <<_ACEOF
                   18442: /* end confdefs.h.  */
1.25      millert  18443:
1.27      millert  18444: /* Override any GCC internal prototype to avoid an error.
                   18445:    Use char because int might match the return type of a GCC
                   18446:    builtin and then its argument prototype would still apply.  */
1.9       millert  18447: #ifdef __cplusplus
                   18448: extern "C"
1.1       millert  18449: #endif
1.27      millert  18450: char socket ();
1.16      millert  18451: int
                   18452: main ()
                   18453: {
1.27      millert  18454: return socket ();
1.9       millert  18455:   ;
                   18456:   return 0;
                   18457: }
                   18458: _ACEOF
                   18459: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18460: if { (ac_try="$ac_link"
                   18461: case "(($ac_try" in
                   18462:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18463:   *) ac_try_echo=$ac_try;;
                   18464: esac
                   18465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18466:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18467:   ac_status=$?
1.25      millert  18468:   grep -v '^ *+' conftest.er1 >conftest.err
                   18469:   rm -f conftest.er1
                   18470:   cat conftest.err >&5
1.16      millert  18471:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18472:   (exit $ac_status); } && {
                   18473:         test -z "$ac_c_werror_flag" ||
                   18474:         test ! -s conftest.err
                   18475:        } && test -s conftest$ac_exeext &&
                   18476:        $as_test_x conftest$ac_exeext; then
                   18477:   ac_cv_lib_inet_socket=yes
1.23      millert  18478: else
                   18479:   echo "$as_me: failed program was:" >&5
                   18480: sed 's/^/| /' conftest.$ac_ext >&5
                   18481:
1.27      millert  18482:        ac_cv_lib_inet_socket=no
1.23      millert  18483: fi
1.27      millert  18484:
                   18485: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18486:       conftest$ac_exeext conftest.$ac_ext
                   18487: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18488: fi
1.27      millert  18489: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
                   18490: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
                   18491: if test $ac_cv_lib_inet_socket = yes; then
                   18492:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23      millert  18493: else
1.27      millert  18494:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
                   18495: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
                   18496: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18497: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18498: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23      millert  18499:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18500: else
                   18501:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18502: LIBS="-lsocket -lnsl $LIBS"
1.23      millert  18503: cat >conftest.$ac_ext <<_ACEOF
                   18504: /* confdefs.h.  */
                   18505: _ACEOF
                   18506: cat confdefs.h >>conftest.$ac_ext
                   18507: cat >>conftest.$ac_ext <<_ACEOF
                   18508: /* end confdefs.h.  */
                   18509:
1.27      millert  18510: /* Override any GCC internal prototype to avoid an error.
                   18511:    Use char because int might match the return type of a GCC
                   18512:    builtin and then its argument prototype would still apply.  */
1.23      millert  18513: #ifdef __cplusplus
                   18514: extern "C"
                   18515: #endif
1.27      millert  18516: char socket ();
1.23      millert  18517: int
                   18518: main ()
                   18519: {
1.27      millert  18520: return socket ();
1.23      millert  18521:   ;
                   18522:   return 0;
                   18523: }
                   18524: _ACEOF
                   18525: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18526: if { (ac_try="$ac_link"
                   18527: case "(($ac_try" in
                   18528:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18529:   *) ac_try_echo=$ac_try;;
                   18530: esac
                   18531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18532:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18533:   ac_status=$?
1.25      millert  18534:   grep -v '^ *+' conftest.er1 >conftest.err
                   18535:   rm -f conftest.er1
                   18536:   cat conftest.err >&5
1.23      millert  18537:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18538:   (exit $ac_status); } && {
                   18539:         test -z "$ac_c_werror_flag" ||
                   18540:         test ! -s conftest.err
                   18541:        } && test -s conftest$ac_exeext &&
                   18542:        $as_test_x conftest$ac_exeext; then
                   18543:   ac_cv_lib_socket_socket_lnsl=yes
1.23      millert  18544: else
                   18545:   echo "$as_me: failed program was:" >&5
                   18546: sed 's/^/| /' conftest.$ac_ext >&5
                   18547:
1.27      millert  18548:        ac_cv_lib_socket_socket_lnsl=no
1.23      millert  18549: fi
1.27      millert  18550:
                   18551: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18552:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18553: LIBS=$ac_check_lib_save_LIBS
                   18554: fi
1.27      millert  18555: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
                   18556: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
                   18557: if test $ac_cv_lib_socket_socket_lnsl = yes; then
                   18558:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  18559: fi
1.16      millert  18560:
1.23      millert  18561: fi
                   18562:
                   18563: fi
1.1       millert  18564:
                   18565: fi
                   18566:
1.27      millert  18567: { echo "$as_me:$LINENO: checking for inet_addr" >&5
                   18568: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
                   18569: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9       millert  18570:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18571: else
1.9       millert  18572:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18573: /* confdefs.h.  */
                   18574: _ACEOF
                   18575: cat confdefs.h >>conftest.$ac_ext
                   18576: cat >>conftest.$ac_ext <<_ACEOF
                   18577: /* end confdefs.h.  */
1.27      millert  18578: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
                   18579:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18580: #define inet_addr innocuous_inet_addr
                   18581:
                   18582: /* System header to define __stub macros and hopefully few prototypes,
                   18583:     which can conflict with char inet_addr (); below.
                   18584:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18585:     <limits.h> exists even on freestanding compilers.  */
                   18586:
                   18587: #ifdef __STDC__
                   18588: # include <limits.h>
                   18589: #else
                   18590: # include <assert.h>
                   18591: #endif
                   18592:
                   18593: #undef inet_addr
                   18594:
                   18595: /* Override any GCC internal prototype to avoid an error.
                   18596:    Use char because int might match the return type of a GCC
                   18597:    builtin and then its argument prototype would still apply.  */
                   18598: #ifdef __cplusplus
                   18599: extern "C"
                   18600: #endif
                   18601: char inet_addr ();
                   18602: /* The GNU C library defines this for functions which it implements
                   18603:     to always fail with ENOSYS.  Some functions are actually named
                   18604:     something starting with __ and the normal name is an alias.  */
                   18605: #if defined __stub_inet_addr || defined __stub___inet_addr
                   18606: choke me
                   18607: #endif
                   18608:
1.16      millert  18609: int
                   18610: main ()
                   18611: {
1.27      millert  18612: return inet_addr ();
1.9       millert  18613:   ;
                   18614:   return 0;
                   18615: }
                   18616: _ACEOF
                   18617: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18618: if { (ac_try="$ac_link"
                   18619: case "(($ac_try" in
                   18620:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18621:   *) ac_try_echo=$ac_try;;
                   18622: esac
                   18623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18624:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18625:   ac_status=$?
1.25      millert  18626:   grep -v '^ *+' conftest.er1 >conftest.err
                   18627:   rm -f conftest.er1
                   18628:   cat conftest.err >&5
1.16      millert  18629:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18630:   (exit $ac_status); } && {
                   18631:         test -z "$ac_c_werror_flag" ||
                   18632:         test ! -s conftest.err
                   18633:        } && test -s conftest$ac_exeext &&
                   18634:        $as_test_x conftest$ac_exeext; then
                   18635:   ac_cv_func_inet_addr=yes
1.9       millert  18636: else
                   18637:   echo "$as_me: failed program was:" >&5
1.16      millert  18638: sed 's/^/| /' conftest.$ac_ext >&5
                   18639:
1.27      millert  18640:        ac_cv_func_inet_addr=no
1.9       millert  18641: fi
1.27      millert  18642:
                   18643: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18644:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18645: fi
1.27      millert  18646: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
                   18647: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
                   18648: if test $ac_cv_func_inet_addr = yes; then
                   18649:   :
                   18650: else
                   18651:   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
                   18652: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
                   18653: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9       millert  18654:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18655: else
1.9       millert  18656:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18657: /* confdefs.h.  */
                   18658: _ACEOF
                   18659: cat confdefs.h >>conftest.$ac_ext
                   18660: cat >>conftest.$ac_ext <<_ACEOF
                   18661: /* end confdefs.h.  */
1.27      millert  18662: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
                   18663:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18664: #define __inet_addr innocuous___inet_addr
                   18665:
                   18666: /* System header to define __stub macros and hopefully few prototypes,
                   18667:     which can conflict with char __inet_addr (); below.
                   18668:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18669:     <limits.h> exists even on freestanding compilers.  */
                   18670:
                   18671: #ifdef __STDC__
                   18672: # include <limits.h>
1.16      millert  18673: #else
1.27      millert  18674: # include <assert.h>
                   18675: #endif
                   18676:
                   18677: #undef __inet_addr
                   18678:
                   18679: /* Override any GCC internal prototype to avoid an error.
                   18680:    Use char because int might match the return type of a GCC
                   18681:    builtin and then its argument prototype would still apply.  */
                   18682: #ifdef __cplusplus
                   18683: extern "C"
                   18684: #endif
                   18685: char __inet_addr ();
                   18686: /* The GNU C library defines this for functions which it implements
                   18687:     to always fail with ENOSYS.  Some functions are actually named
                   18688:     something starting with __ and the normal name is an alias.  */
                   18689: #if defined __stub___inet_addr || defined __stub_____inet_addr
                   18690: choke me
1.1       millert  18691: #endif
                   18692:
1.16      millert  18693: int
                   18694: main ()
                   18695: {
1.27      millert  18696: return __inet_addr ();
1.9       millert  18697:   ;
                   18698:   return 0;
                   18699: }
                   18700: _ACEOF
                   18701: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18702: if { (ac_try="$ac_link"
                   18703: case "(($ac_try" in
                   18704:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18705:   *) ac_try_echo=$ac_try;;
                   18706: esac
                   18707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18708:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18709:   ac_status=$?
1.25      millert  18710:   grep -v '^ *+' conftest.er1 >conftest.err
                   18711:   rm -f conftest.er1
                   18712:   cat conftest.err >&5
1.16      millert  18713:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18714:   (exit $ac_status); } && {
                   18715:         test -z "$ac_c_werror_flag" ||
                   18716:         test ! -s conftest.err
                   18717:        } && test -s conftest$ac_exeext &&
                   18718:        $as_test_x conftest$ac_exeext; then
                   18719:   ac_cv_func___inet_addr=yes
1.9       millert  18720: else
                   18721:   echo "$as_me: failed program was:" >&5
1.16      millert  18722: sed 's/^/| /' conftest.$ac_ext >&5
                   18723:
1.27      millert  18724:        ac_cv_func___inet_addr=no
1.9       millert  18725: fi
1.27      millert  18726:
                   18727: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18728:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18729: fi
1.27      millert  18730: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
                   18731: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
                   18732: if test $ac_cv_func___inet_addr = yes; then
                   18733:   :
1.25      millert  18734: else
1.27      millert  18735:   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
                   18736: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
                   18737: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25      millert  18738:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18739: else
1.27      millert  18740:   ac_check_lib_save_LIBS=$LIBS
                   18741: LIBS="-lnsl  $LIBS"
                   18742: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  18743: /* confdefs.h.  */
                   18744: _ACEOF
                   18745: cat confdefs.h >>conftest.$ac_ext
                   18746: cat >>conftest.$ac_ext <<_ACEOF
                   18747: /* end confdefs.h.  */
1.27      millert  18748:
                   18749: /* Override any GCC internal prototype to avoid an error.
                   18750:    Use char because int might match the return type of a GCC
                   18751:    builtin and then its argument prototype would still apply.  */
                   18752: #ifdef __cplusplus
                   18753: extern "C"
1.25      millert  18754: #endif
1.27      millert  18755: char inet_addr ();
                   18756: int
                   18757: main ()
                   18758: {
                   18759: return inet_addr ();
                   18760:   ;
                   18761:   return 0;
                   18762: }
1.16      millert  18763: _ACEOF
1.27      millert  18764: rm -f conftest.$ac_objext conftest$ac_exeext
                   18765: if { (ac_try="$ac_link"
                   18766: case "(($ac_try" in
                   18767:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18768:   *) ac_try_echo=$ac_try;;
                   18769: esac
                   18770: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18771:   (eval "$ac_link") 2>conftest.er1
                   18772:   ac_status=$?
                   18773:   grep -v '^ *+' conftest.er1 >conftest.err
                   18774:   rm -f conftest.er1
                   18775:   cat conftest.err >&5
                   18776:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18777:   (exit $ac_status); } && {
                   18778:         test -z "$ac_c_werror_flag" ||
                   18779:         test ! -s conftest.err
                   18780:        } && test -s conftest$ac_exeext &&
                   18781:        $as_test_x conftest$ac_exeext; then
                   18782:   ac_cv_lib_nsl_inet_addr=yes
1.25      millert  18783: else
1.27      millert  18784:   echo "$as_me: failed program was:" >&5
                   18785: sed 's/^/| /' conftest.$ac_ext >&5
                   18786:
                   18787:        ac_cv_lib_nsl_inet_addr=no
1.1       millert  18788: fi
                   18789:
1.27      millert  18790: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18791:       conftest$ac_exeext conftest.$ac_ext
                   18792: LIBS=$ac_check_lib_save_LIBS
1.25      millert  18793: fi
1.27      millert  18794: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
                   18795: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
                   18796: if test $ac_cv_lib_nsl_inet_addr = yes; then
                   18797:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   18798: else
                   18799:   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
                   18800: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
                   18801: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9       millert  18802:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18803: else
1.27      millert  18804:   ac_check_lib_save_LIBS=$LIBS
                   18805: LIBS="-linet  $LIBS"
                   18806: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18807: /* confdefs.h.  */
                   18808: _ACEOF
                   18809: cat confdefs.h >>conftest.$ac_ext
                   18810: cat >>conftest.$ac_ext <<_ACEOF
                   18811: /* end confdefs.h.  */
1.25      millert  18812:
1.27      millert  18813: /* Override any GCC internal prototype to avoid an error.
                   18814:    Use char because int might match the return type of a GCC
                   18815:    builtin and then its argument prototype would still apply.  */
1.9       millert  18816: #ifdef __cplusplus
                   18817: extern "C"
                   18818: #endif
1.27      millert  18819: char inet_addr ();
1.16      millert  18820: int
                   18821: main ()
                   18822: {
1.27      millert  18823: return inet_addr ();
1.9       millert  18824:   ;
                   18825:   return 0;
                   18826: }
                   18827: _ACEOF
                   18828: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18829: if { (ac_try="$ac_link"
                   18830: case "(($ac_try" in
                   18831:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18832:   *) ac_try_echo=$ac_try;;
                   18833: esac
                   18834: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18835:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18836:   ac_status=$?
1.25      millert  18837:   grep -v '^ *+' conftest.er1 >conftest.err
                   18838:   rm -f conftest.er1
                   18839:   cat conftest.err >&5
1.16      millert  18840:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18841:   (exit $ac_status); } && {
                   18842:         test -z "$ac_c_werror_flag" ||
                   18843:         test ! -s conftest.err
                   18844:        } && test -s conftest$ac_exeext &&
                   18845:        $as_test_x conftest$ac_exeext; then
                   18846:   ac_cv_lib_inet_inet_addr=yes
1.9       millert  18847: else
                   18848:   echo "$as_me: failed program was:" >&5
1.16      millert  18849: sed 's/^/| /' conftest.$ac_ext >&5
                   18850:
1.27      millert  18851:        ac_cv_lib_inet_inet_addr=no
1.9       millert  18852: fi
1.27      millert  18853:
                   18854: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18855:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  18856: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18857: fi
1.27      millert  18858: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
                   18859: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
                   18860: if test $ac_cv_lib_inet_inet_addr = yes; then
                   18861:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   18862: else
                   18863:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
                   18864: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
                   18865: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
                   18866: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
                   18867: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23      millert  18868:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18869: else
1.27      millert  18870:   ac_check_lib_save_LIBS=$LIBS
                   18871: LIBS="-lsocket -lnsl $LIBS"
                   18872: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  18873: /* confdefs.h.  */
                   18874: _ACEOF
                   18875: cat confdefs.h >>conftest.$ac_ext
                   18876: cat >>conftest.$ac_ext <<_ACEOF
                   18877: /* end confdefs.h.  */
                   18878:
1.27      millert  18879: /* Override any GCC internal prototype to avoid an error.
                   18880:    Use char because int might match the return type of a GCC
                   18881:    builtin and then its argument prototype would still apply.  */
                   18882: #ifdef __cplusplus
                   18883: extern "C"
                   18884: #endif
                   18885: char inet_addr ();
1.25      millert  18886: int
                   18887: main ()
                   18888: {
1.27      millert  18889: return inet_addr ();
                   18890:   ;
                   18891:   return 0;
1.25      millert  18892: }
1.23      millert  18893: _ACEOF
1.27      millert  18894: rm -f conftest.$ac_objext conftest$ac_exeext
                   18895: if { (ac_try="$ac_link"
                   18896: case "(($ac_try" in
                   18897:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18898:   *) ac_try_echo=$ac_try;;
                   18899: esac
                   18900: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18901:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18902:   ac_status=$?
1.27      millert  18903:   grep -v '^ *+' conftest.er1 >conftest.err
                   18904:   rm -f conftest.er1
                   18905:   cat conftest.err >&5
1.23      millert  18906:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18907:   (exit $ac_status); } && {
                   18908:         test -z "$ac_c_werror_flag" ||
                   18909:         test ! -s conftest.err
                   18910:        } && test -s conftest$ac_exeext &&
                   18911:        $as_test_x conftest$ac_exeext; then
                   18912:   ac_cv_lib_socket_inet_addr_lnsl=yes
1.23      millert  18913: else
1.27      millert  18914:   echo "$as_me: failed program was:" >&5
1.23      millert  18915: sed 's/^/| /' conftest.$ac_ext >&5
                   18916:
1.27      millert  18917:        ac_cv_lib_socket_inet_addr_lnsl=no
1.23      millert  18918: fi
1.27      millert  18919:
                   18920: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18921:       conftest$ac_exeext conftest.$ac_ext
                   18922: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18923: fi
1.27      millert  18924: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
                   18925: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
                   18926: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
                   18927:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  18928: fi
1.25      millert  18929:
1.27      millert  18930: fi
1.16      millert  18931:
1.27      millert  18932: fi
1.25      millert  18933:
1.23      millert  18934: fi
1.16      millert  18935:
1.9       millert  18936: fi
1.23      millert  18937:
1.27      millert  18938: { echo "$as_me:$LINENO: checking for syslog" >&5
                   18939: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
                   18940: if test "${ac_cv_func_syslog+set}" = set; then
1.9       millert  18941:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18942: else
1.9       millert  18943:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18944: /* confdefs.h.  */
                   18945: _ACEOF
                   18946: cat confdefs.h >>conftest.$ac_ext
                   18947: cat >>conftest.$ac_ext <<_ACEOF
                   18948: /* end confdefs.h.  */
1.27      millert  18949: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25      millert  18950:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18951: #define syslog innocuous_syslog
1.25      millert  18952:
1.16      millert  18953: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18954:     which can conflict with char syslog (); below.
1.16      millert  18955:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18956:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18957:
1.16      millert  18958: #ifdef __STDC__
                   18959: # include <limits.h>
                   18960: #else
                   18961: # include <assert.h>
                   18962: #endif
1.25      millert  18963:
1.27      millert  18964: #undef syslog
1.25      millert  18965:
1.27      millert  18966: /* Override any GCC internal prototype to avoid an error.
                   18967:    Use char because int might match the return type of a GCC
                   18968:    builtin and then its argument prototype would still apply.  */
1.9       millert  18969: #ifdef __cplusplus
                   18970: extern "C"
                   18971: #endif
1.27      millert  18972: char syslog ();
1.1       millert  18973: /* The GNU C library defines this for functions which it implements
                   18974:     to always fail with ENOSYS.  Some functions are actually named
                   18975:     something starting with __ and the normal name is an alias.  */
1.27      millert  18976: #if defined __stub_syslog || defined __stub___syslog
1.1       millert  18977: choke me
                   18978: #endif
                   18979:
1.16      millert  18980: int
                   18981: main ()
                   18982: {
1.27      millert  18983: return syslog ();
1.9       millert  18984:   ;
                   18985:   return 0;
                   18986: }
                   18987: _ACEOF
                   18988: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18989: if { (ac_try="$ac_link"
                   18990: case "(($ac_try" in
                   18991:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18992:   *) ac_try_echo=$ac_try;;
                   18993: esac
                   18994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18995:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18996:   ac_status=$?
1.25      millert  18997:   grep -v '^ *+' conftest.er1 >conftest.err
                   18998:   rm -f conftest.er1
                   18999:   cat conftest.err >&5
1.16      millert  19000:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19001:   (exit $ac_status); } && {
                   19002:         test -z "$ac_c_werror_flag" ||
                   19003:         test ! -s conftest.err
                   19004:        } && test -s conftest$ac_exeext &&
                   19005:        $as_test_x conftest$ac_exeext; then
                   19006:   ac_cv_func_syslog=yes
1.9       millert  19007: else
                   19008:   echo "$as_me: failed program was:" >&5
1.16      millert  19009: sed 's/^/| /' conftest.$ac_ext >&5
                   19010:
1.27      millert  19011:        ac_cv_func_syslog=no
1.9       millert  19012: fi
1.27      millert  19013:
                   19014: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19015:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19016: fi
1.27      millert  19017: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
                   19018: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
                   19019: if test $ac_cv_func_syslog = yes; then
                   19020:   :
1.23      millert  19021: else
1.27      millert  19022:   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
                   19023: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
                   19024: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9       millert  19025:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19026: else
1.27      millert  19027:   ac_check_lib_save_LIBS=$LIBS
                   19028: LIBS="-lsocket  $LIBS"
                   19029: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19030: /* confdefs.h.  */
                   19031: _ACEOF
                   19032: cat confdefs.h >>conftest.$ac_ext
                   19033: cat >>conftest.$ac_ext <<_ACEOF
                   19034: /* end confdefs.h.  */
1.25      millert  19035:
1.27      millert  19036: /* Override any GCC internal prototype to avoid an error.
                   19037:    Use char because int might match the return type of a GCC
                   19038:    builtin and then its argument prototype would still apply.  */
                   19039: #ifdef __cplusplus
                   19040: extern "C"
                   19041: #endif
                   19042: char syslog ();
1.25      millert  19043: int
                   19044: main ()
1.16      millert  19045: {
1.27      millert  19046: return syslog ();
1.25      millert  19047:   ;
                   19048:   return 0;
1.9       millert  19049: }
                   19050: _ACEOF
1.25      millert  19051: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19052: if { (ac_try="$ac_link"
                   19053: case "(($ac_try" in
                   19054:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19055:   *) ac_try_echo=$ac_try;;
                   19056: esac
                   19057: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19058:   (eval "$ac_link") 2>conftest.er1
1.25      millert  19059:   ac_status=$?
                   19060:   grep -v '^ *+' conftest.er1 >conftest.err
                   19061:   rm -f conftest.er1
                   19062:   cat conftest.err >&5
                   19063:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19064:   (exit $ac_status); } && {
                   19065:         test -z "$ac_c_werror_flag" ||
                   19066:         test ! -s conftest.err
                   19067:        } && test -s conftest$ac_exeext &&
                   19068:        $as_test_x conftest$ac_exeext; then
                   19069:   ac_cv_lib_socket_syslog=yes
1.25      millert  19070: else
                   19071:   echo "$as_me: failed program was:" >&5
                   19072: sed 's/^/| /' conftest.$ac_ext >&5
                   19073:
1.27      millert  19074:        ac_cv_lib_socket_syslog=no
1.25      millert  19075: fi
1.27      millert  19076:
                   19077: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19078:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  19079: LIBS=$ac_check_lib_save_LIBS
1.25      millert  19080: fi
1.27      millert  19081: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
                   19082: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
                   19083: if test $ac_cv_lib_socket_syslog = yes; then
                   19084:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   19085: else
                   19086:   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
                   19087: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
                   19088: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   19089:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19090: else
                   19091:   ac_check_lib_save_LIBS=$LIBS
                   19092: LIBS="-lnsl  $LIBS"
                   19093: cat >conftest.$ac_ext <<_ACEOF
                   19094: /* confdefs.h.  */
                   19095: _ACEOF
                   19096: cat confdefs.h >>conftest.$ac_ext
                   19097: cat >>conftest.$ac_ext <<_ACEOF
                   19098: /* end confdefs.h.  */
1.25      millert  19099:
1.27      millert  19100: /* Override any GCC internal prototype to avoid an error.
                   19101:    Use char because int might match the return type of a GCC
                   19102:    builtin and then its argument prototype would still apply.  */
                   19103: #ifdef __cplusplus
                   19104: extern "C"
                   19105: #endif
                   19106: char syslog ();
                   19107: int
                   19108: main ()
                   19109: {
                   19110: return syslog ();
                   19111:   ;
                   19112:   return 0;
                   19113: }
1.25      millert  19114: _ACEOF
1.27      millert  19115: rm -f conftest.$ac_objext conftest$ac_exeext
                   19116: if { (ac_try="$ac_link"
                   19117: case "(($ac_try" in
                   19118:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19119:   *) ac_try_echo=$ac_try;;
1.25      millert  19120: esac
1.27      millert  19121: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19122:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19123:   ac_status=$?
1.25      millert  19124:   grep -v '^ *+' conftest.er1 >conftest.err
                   19125:   rm -f conftest.er1
                   19126:   cat conftest.err >&5
1.16      millert  19127:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19128:   (exit $ac_status); } && {
                   19129:         test -z "$ac_c_werror_flag" ||
                   19130:         test ! -s conftest.err
                   19131:        } && test -s conftest$ac_exeext &&
                   19132:        $as_test_x conftest$ac_exeext; then
                   19133:   ac_cv_lib_nsl_syslog=yes
1.9       millert  19134: else
                   19135:   echo "$as_me: failed program was:" >&5
1.16      millert  19136: sed 's/^/| /' conftest.$ac_ext >&5
                   19137:
1.27      millert  19138:        ac_cv_lib_nsl_syslog=no
                   19139: fi
1.25      millert  19140:
1.27      millert  19141: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19142:       conftest$ac_exeext conftest.$ac_ext
                   19143: LIBS=$ac_check_lib_save_LIBS
                   19144: fi
                   19145: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
                   19146: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
                   19147: if test $ac_cv_lib_nsl_syslog = yes; then
                   19148:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   19149: else
                   19150:   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
                   19151: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
                   19152: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9       millert  19153:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19154: else
1.27      millert  19155:   ac_check_lib_save_LIBS=$LIBS
                   19156: LIBS="-linet  $LIBS"
1.25      millert  19157: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19158: /* confdefs.h.  */
                   19159: _ACEOF
                   19160: cat confdefs.h >>conftest.$ac_ext
                   19161: cat >>conftest.$ac_ext <<_ACEOF
                   19162: /* end confdefs.h.  */
1.27      millert  19163:
                   19164: /* Override any GCC internal prototype to avoid an error.
                   19165:    Use char because int might match the return type of a GCC
                   19166:    builtin and then its argument prototype would still apply.  */
                   19167: #ifdef __cplusplus
                   19168: extern "C"
                   19169: #endif
                   19170: char syslog ();
                   19171: int
                   19172: main ()
                   19173: {
                   19174: return syslog ();
                   19175:   ;
                   19176:   return 0;
                   19177: }
1.23      millert  19178: _ACEOF
1.27      millert  19179: rm -f conftest.$ac_objext conftest$ac_exeext
                   19180: if { (ac_try="$ac_link"
                   19181: case "(($ac_try" in
                   19182:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19183:   *) ac_try_echo=$ac_try;;
                   19184: esac
                   19185: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19186:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19187:   ac_status=$?
1.25      millert  19188:   grep -v '^ *+' conftest.er1 >conftest.err
                   19189:   rm -f conftest.er1
                   19190:   cat conftest.err >&5
1.23      millert  19191:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19192:   (exit $ac_status); } && {
                   19193:         test -z "$ac_c_werror_flag" ||
                   19194:         test ! -s conftest.err
                   19195:        } && test -s conftest$ac_exeext &&
                   19196:        $as_test_x conftest$ac_exeext; then
                   19197:   ac_cv_lib_inet_syslog=yes
1.1       millert  19198: else
1.23      millert  19199:   echo "$as_me: failed program was:" >&5
                   19200: sed 's/^/| /' conftest.$ac_ext >&5
                   19201:
1.27      millert  19202:        ac_cv_lib_inet_syslog=no
                   19203: fi
                   19204:
                   19205: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19206:       conftest$ac_exeext conftest.$ac_ext
                   19207: LIBS=$ac_check_lib_save_LIBS
                   19208: fi
                   19209: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
                   19210: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
                   19211: if test $ac_cv_lib_inet_syslog = yes; then
                   19212:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   19213: fi
                   19214:
                   19215: fi
                   19216:
                   19217: fi
                   19218:
1.25      millert  19219: fi
                   19220:
1.37    ! millert  19221:
        !          19222: for ac_func in getprogname
        !          19223: do
        !          19224: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          19225: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          19226: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          19227: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19228:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19229: else
                   19230:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19231: /* confdefs.h.  */
                   19232: _ACEOF
                   19233: cat confdefs.h >>conftest.$ac_ext
                   19234: cat >>conftest.$ac_ext <<_ACEOF
                   19235: /* end confdefs.h.  */
1.37    ! millert  19236: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          19237:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          19238: #define $ac_func innocuous_$ac_func
        !          19239:
        !          19240: /* System header to define __stub macros and hopefully few prototypes,
        !          19241:     which can conflict with char $ac_func (); below.
        !          19242:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          19243:     <limits.h> exists even on freestanding compilers.  */
        !          19244:
        !          19245: #ifdef __STDC__
        !          19246: # include <limits.h>
        !          19247: #else
        !          19248: # include <assert.h>
        !          19249: #endif
        !          19250:
        !          19251: #undef $ac_func
        !          19252:
        !          19253: /* Override any GCC internal prototype to avoid an error.
        !          19254:    Use char because int might match the return type of a GCC
        !          19255:    builtin and then its argument prototype would still apply.  */
        !          19256: #ifdef __cplusplus
        !          19257: extern "C"
        !          19258: #endif
        !          19259: char $ac_func ();
        !          19260: /* The GNU C library defines this for functions which it implements
        !          19261:     to always fail with ENOSYS.  Some functions are actually named
        !          19262:     something starting with __ and the normal name is an alias.  */
        !          19263: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          19264: choke me
        !          19265: #endif
        !          19266:
1.27      millert  19267: int
                   19268: main ()
                   19269: {
1.37    ! millert  19270: return $ac_func ();
1.27      millert  19271:   ;
                   19272:   return 0;
                   19273: }
1.9       millert  19274: _ACEOF
1.27      millert  19275: rm -f conftest.$ac_objext conftest$ac_exeext
                   19276: if { (ac_try="$ac_link"
                   19277: case "(($ac_try" in
                   19278:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19279:   *) ac_try_echo=$ac_try;;
                   19280: esac
                   19281: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19282:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19283:   ac_status=$?
1.25      millert  19284:   grep -v '^ *+' conftest.er1 >conftest.err
                   19285:   rm -f conftest.er1
                   19286:   cat conftest.err >&5
1.16      millert  19287:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19288:   (exit $ac_status); } && {
                   19289:         test -z "$ac_c_werror_flag" ||
                   19290:         test ! -s conftest.err
                   19291:        } && test -s conftest$ac_exeext &&
                   19292:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19293:   eval "$as_ac_var=yes"
1.1       millert  19294: else
1.23      millert  19295:   echo "$as_me: failed program was:" >&5
1.16      millert  19296: sed 's/^/| /' conftest.$ac_ext >&5
                   19297:
1.37    ! millert  19298:        eval "$as_ac_var=no"
1.25      millert  19299: fi
                   19300:
1.27      millert  19301: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19302:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  19303: fi
1.37    ! millert  19304: ac_res=`eval echo '${'$as_ac_var'}'`
        !          19305:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          19306: echo "${ECHO_T}$ac_res" >&6; }
        !          19307: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          19308:   cat >>confdefs.h <<_ACEOF
        !          19309: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  19310: _ACEOF
1.25      millert  19311:
1.37    ! millert  19312: else
1.1       millert  19313:
1.37    ! millert  19314:     { echo "$as_me:$LINENO: checking for __progname" >&5
        !          19315: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
        !          19316:     if test "${sudo_cv___progname+set}" = set; then
1.9       millert  19317:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19318: else
1.37    ! millert  19319:
        !          19320:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19321: /* confdefs.h.  */
                   19322: _ACEOF
                   19323: cat confdefs.h >>conftest.$ac_ext
                   19324: cat >>conftest.$ac_ext <<_ACEOF
                   19325: /* end confdefs.h.  */
1.25      millert  19326:
1.23      millert  19327: int
                   19328: main ()
                   19329: {
1.37    ! millert  19330: extern char *__progname; (void)puts(__progname);
1.23      millert  19331:   ;
                   19332:   return 0;
                   19333: }
1.9       millert  19334: _ACEOF
1.25      millert  19335: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19336: if { (ac_try="$ac_link"
                   19337: case "(($ac_try" in
                   19338:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19339:   *) ac_try_echo=$ac_try;;
                   19340: esac
                   19341: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19342:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19343:   ac_status=$?
1.25      millert  19344:   grep -v '^ *+' conftest.er1 >conftest.err
                   19345:   rm -f conftest.er1
                   19346:   cat conftest.err >&5
1.16      millert  19347:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19348:   (exit $ac_status); } && {
                   19349:         test -z "$ac_c_werror_flag" ||
                   19350:         test ! -s conftest.err
                   19351:        } && test -s conftest$ac_exeext &&
                   19352:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19353:   sudo_cv___progname=yes
1.1       millert  19354: else
1.23      millert  19355:   echo "$as_me: failed program was:" >&5
1.16      millert  19356: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  19357:
1.37    ! millert  19358:        sudo_cv___progname=no
1.25      millert  19359: fi
1.27      millert  19360:
                   19361: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19362:       conftest$ac_exeext conftest.$ac_ext
                   19363: fi
1.27      millert  19364:
1.37    ! millert  19365:     if test "$sudo_cv___progname" = "yes"; then
        !          19366:        cat >>confdefs.h <<\_ACEOF
        !          19367: #define HAVE___PROGNAME 1
1.27      millert  19368: _ACEOF
                   19369:
1.37    ! millert  19370:     else
        !          19371:        case " $LIBOBJS " in
        !          19372:   *" getprogname.$ac_objext "* ) ;;
        !          19373:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
        !          19374:  ;;
        !          19375: esac
1.27      millert  19376:
1.37    ! millert  19377:     fi
        !          19378:     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
        !          19379: echo "${ECHO_T}$sudo_cv___progname" >&6; }
1.27      millert  19380:
1.37    ! millert  19381: fi
        !          19382: done
1.27      millert  19383:
                   19384:
                   19385:
1.37    ! millert  19386: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
        !          19387:     for auth in $AUTH_EXCL_DEF; do
        !          19388:        case $auth in
        !          19389:            AIX_AUTH)   with_aixauth=maybe;;
        !          19390:            BSD_AUTH)   with_bsdauth=maybe;;
        !          19391:            PAM)        with_pam=maybe;;
        !          19392:            SIA)        CHECKSIA=true;;
        !          19393:        esac
        !          19394:     done
1.27      millert  19395: fi
1.25      millert  19396:
1.37    ! millert  19397: if test ${with_pam-"no"} != "no"; then
        !          19398:                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
        !          19399: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
        !          19400: if test "${ac_cv_lib_dl_main+set}" = set; then
1.25      millert  19401:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19402: else
1.37    ! millert  19403:   ac_check_lib_save_LIBS=$LIBS
        !          19404: LIBS="-ldl  $LIBS"
        !          19405: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  19406: /* confdefs.h.  */
                   19407: _ACEOF
                   19408: cat confdefs.h >>conftest.$ac_ext
                   19409: cat >>conftest.$ac_ext <<_ACEOF
                   19410: /* end confdefs.h.  */
1.25      millert  19411:
1.27      millert  19412:
1.9       millert  19413: int
                   19414: main ()
                   19415: {
1.37    ! millert  19416: return main ();
1.9       millert  19417:   ;
                   19418:   return 0;
                   19419: }
                   19420: _ACEOF
1.25      millert  19421: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19422: if { (ac_try="$ac_link"
                   19423: case "(($ac_try" in
                   19424:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19425:   *) ac_try_echo=$ac_try;;
                   19426: esac
                   19427: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19428:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19429:   ac_status=$?
1.25      millert  19430:   grep -v '^ *+' conftest.er1 >conftest.err
                   19431:   rm -f conftest.er1
                   19432:   cat conftest.err >&5
1.16      millert  19433:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19434:   (exit $ac_status); } && {
                   19435:         test -z "$ac_c_werror_flag" ||
                   19436:         test ! -s conftest.err
                   19437:        } && test -s conftest$ac_exeext &&
                   19438:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19439:   ac_cv_lib_dl_main=yes
1.9       millert  19440: else
                   19441:   echo "$as_me: failed program was:" >&5
1.16      millert  19442: sed 's/^/| /' conftest.$ac_ext >&5
                   19443:
1.37    ! millert  19444:        ac_cv_lib_dl_main=no
1.23      millert  19445: fi
1.27      millert  19446:
                   19447: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19448:       conftest$ac_exeext conftest.$ac_ext
1.37    ! millert  19449: LIBS=$ac_check_lib_save_LIBS
        !          19450: fi
        !          19451: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
        !          19452: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
        !          19453: if test $ac_cv_lib_dl_main = yes; then
        !          19454:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
        !          19455: else
        !          19456:   SUDO_LIBS="${SUDO_LIBS} -lpam"
1.9       millert  19457: fi
1.27      millert  19458:
1.37    ! millert  19459:     ac_cv_lib_dl=ac_cv_lib_dl_main
1.27      millert  19460:
1.1       millert  19461:
1.16      millert  19462:
1.37    ! millert  19463: for ac_header in security/pam_appl.h pam/pam_appl.h
        !          19464: do
        !          19465: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          19466: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          19467:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          19468: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          19469: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19470:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37    ! millert  19471: fi
        !          19472: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          19473:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          19474: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  19475: else
1.37    ! millert  19476:   # Is the header compilable?
        !          19477: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          19478: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
        !          19479: cat >conftest.$ac_ext <<_ACEOF
1.24      millert  19480: /* confdefs.h.  */
                   19481: _ACEOF
                   19482: cat confdefs.h >>conftest.$ac_ext
                   19483: cat >>conftest.$ac_ext <<_ACEOF
                   19484: /* end confdefs.h.  */
1.27      millert  19485: $ac_includes_default
1.37    ! millert  19486: #include <$ac_header>
1.24      millert  19487: _ACEOF
1.37    ! millert  19488: rm -f conftest.$ac_objext
        !          19489: if { (ac_try="$ac_compile"
1.27      millert  19490: case "(($ac_try" in
                   19491:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19492:   *) ac_try_echo=$ac_try;;
                   19493: esac
                   19494: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  19495:   (eval "$ac_compile") 2>conftest.er1
1.24      millert  19496:   ac_status=$?
1.37    ! millert  19497:   grep -v '^ *+' conftest.er1 >conftest.err
        !          19498:   rm -f conftest.er1
        !          19499:   cat conftest.err >&5
1.24      millert  19500:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  19501:   (exit $ac_status); } && {
        !          19502:         test -z "$ac_c_werror_flag" ||
        !          19503:         test ! -s conftest.err
        !          19504:        } && test -s conftest.$ac_objext; then
        !          19505:   ac_header_compiler=yes
1.27      millert  19506: else
1.37    ! millert  19507:   echo "$as_me: failed program was:" >&5
1.27      millert  19508: sed 's/^/| /' conftest.$ac_ext >&5
                   19509:
1.37    ! millert  19510:        ac_header_compiler=no
1.27      millert  19511: fi
                   19512:
1.37    ! millert  19513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          19514: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          19515: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.27      millert  19516:
1.37    ! millert  19517: # Is the header present?
        !          19518: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          19519: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
        !          19520: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19521: /* confdefs.h.  */
                   19522: _ACEOF
                   19523: cat confdefs.h >>conftest.$ac_ext
                   19524: cat >>conftest.$ac_ext <<_ACEOF
                   19525: /* end confdefs.h.  */
1.37    ! millert  19526: #include <$ac_header>
1.9       millert  19527: _ACEOF
1.37    ! millert  19528: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  19529: case "(($ac_try" in
                   19530:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19531:   *) ac_try_echo=$ac_try;;
                   19532: esac
                   19533: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  19534:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  19535:   ac_status=$?
1.25      millert  19536:   grep -v '^ *+' conftest.er1 >conftest.err
                   19537:   rm -f conftest.er1
                   19538:   cat conftest.err >&5
1.16      millert  19539:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  19540:   (exit $ac_status); } >/dev/null && {
        !          19541:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  19542:         test ! -s conftest.err
1.37    ! millert  19543:        }; then
        !          19544:   ac_header_preproc=yes
1.25      millert  19545: else
                   19546:   echo "$as_me: failed program was:" >&5
                   19547: sed 's/^/| /' conftest.$ac_ext >&5
                   19548:
1.37    ! millert  19549:   ac_header_preproc=no
1.25      millert  19550: fi
1.27      millert  19551:
1.37    ! millert  19552: rm -f conftest.err conftest.$ac_ext
        !          19553: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          19554: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  19555:
1.37    ! millert  19556: # So?  What about this header?
        !          19557: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          19558:   yes:no: )
        !          19559:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          19560: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          19561:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          19562: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          19563:     ac_header_preproc=yes
        !          19564:     ;;
        !          19565:   no:yes:* )
        !          19566:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          19567: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          19568:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          19569: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          19570:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          19571: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          19572:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          19573: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          19574:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          19575: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          19576:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          19577: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
        !          19578:
        !          19579:     ;;
        !          19580: esac
        !          19581: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          19582: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          19583: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          19584:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.9       millert  19585: else
1.37    ! millert  19586:   eval "$as_ac_Header=\$ac_header_preproc"
        !          19587: fi
        !          19588: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          19589:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          19590: echo "${ECHO_T}$ac_res" >&6; }
        !          19591:
        !          19592: fi
        !          19593: if test `eval echo '${'$as_ac_Header'}'` = yes; then
        !          19594:   cat >>confdefs.h <<_ACEOF
        !          19595: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          19596: _ACEOF
        !          19597:  with_pam=yes; break
        !          19598: fi
        !          19599:
        !          19600: done
1.16      millert  19601:
1.37    ! millert  19602:     if test "$with_pam" = "yes"; then
        !          19603:        cat >>confdefs.h <<\_ACEOF
        !          19604: #define HAVE_PAM 1
        !          19605: _ACEOF
        !          19606:
        !          19607:        AUTH_OBJS="$AUTH_OBJS pam.o";
        !          19608:        AUTH_EXCL=PAM
        !          19609:        { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
        !          19610: echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
        !          19611:        # Check whether --enable-pam_session was given.
        !          19612: if test "${enable_pam_session+set}" = set; then
        !          19613:   enableval=$enable_pam_session;  case "$enableval" in
        !          19614:                yes)    { echo "$as_me:$LINENO: result: yes" >&5
        !          19615: echo "${ECHO_T}yes" >&6; }
        !          19616:                        ;;
        !          19617:                no)             { echo "$as_me:$LINENO: result: no" >&5
        !          19618: echo "${ECHO_T}no" >&6; }
        !          19619:
        !          19620: cat >>confdefs.h <<\_ACEOF
        !          19621: #define NO_PAM_SESSION
        !          19622: _ACEOF
        !          19623:
        !          19624:                            ;;
        !          19625:                *)              { echo "$as_me:$LINENO: result: no" >&5
        !          19626: echo "${ECHO_T}no" >&6; }
        !          19627:                            { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
        !          19628: echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
        !          19629:                            ;;
        !          19630:            esac
1.25      millert  19631: else
1.37    ! millert  19632:   { echo "$as_me:$LINENO: result: yes" >&5
        !          19633: echo "${ECHO_T}yes" >&6; }
        !          19634: fi
1.27      millert  19635:
1.37    ! millert  19636:        case $host in
        !          19637:            *-*-linux*|*-*-solaris*)
        !          19638:                    # dgettext() may be defined to dgettext_libintl in the
        !          19639:                    # header file, so first check that it links w/ additional
        !          19640:                    # libs, then try with -lintl
        !          19641:                    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19642: /* confdefs.h.  */
                   19643: _ACEOF
                   19644: cat confdefs.h >>conftest.$ac_ext
                   19645: cat >>conftest.$ac_ext <<_ACEOF
                   19646: /* end confdefs.h.  */
1.37    ! millert  19647: #include <libintl.h>
1.16      millert  19648: int
                   19649: main ()
                   19650: {
1.37    ! millert  19651: (void)dgettext((char *)0, (char *)0);
1.9       millert  19652:   ;
                   19653:   return 0;
                   19654: }
                   19655: _ACEOF
                   19656: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19657: if { (ac_try="$ac_link"
                   19658: case "(($ac_try" in
                   19659:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19660:   *) ac_try_echo=$ac_try;;
                   19661: esac
                   19662: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19663:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19664:   ac_status=$?
1.25      millert  19665:   grep -v '^ *+' conftest.er1 >conftest.err
                   19666:   rm -f conftest.er1
                   19667:   cat conftest.err >&5
1.16      millert  19668:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19669:   (exit $ac_status); } && {
                   19670:         test -z "$ac_c_werror_flag" ||
                   19671:         test ! -s conftest.err
                   19672:        } && test -s conftest$ac_exeext &&
                   19673:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19674:   cat >>confdefs.h <<\_ACEOF
        !          19675: #define HAVE_DGETTEXT 1
        !          19676: _ACEOF
        !          19677:
1.9       millert  19678: else
                   19679:   echo "$as_me: failed program was:" >&5
1.16      millert  19680: sed 's/^/| /' conftest.$ac_ext >&5
                   19681:
1.37    ! millert  19682:        { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
        !          19683: echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
        !          19684: if test "${ac_cv_lib_intl_dgettext+set}" = set; then
1.9       millert  19685:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19686: else
1.25      millert  19687:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  19688: LIBS="-lintl  $LIBS"
1.25      millert  19689: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19690: /* confdefs.h.  */
                   19691: _ACEOF
                   19692: cat confdefs.h >>conftest.$ac_ext
                   19693: cat >>conftest.$ac_ext <<_ACEOF
                   19694: /* end confdefs.h.  */
1.25      millert  19695:
1.37    ! millert  19696: /* Override any GCC internal prototype to avoid an error.
        !          19697:    Use char because int might match the return type of a GCC
        !          19698:    builtin and then its argument prototype would still apply.  */
        !          19699: #ifdef __cplusplus
        !          19700: extern "C"
        !          19701: #endif
        !          19702: char dgettext ();
1.16      millert  19703: int
                   19704: main ()
                   19705: {
1.37    ! millert  19706: return dgettext ();
1.9       millert  19707:   ;
                   19708:   return 0;
                   19709: }
                   19710: _ACEOF
                   19711: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19712: if { (ac_try="$ac_link"
                   19713: case "(($ac_try" in
                   19714:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19715:   *) ac_try_echo=$ac_try;;
                   19716: esac
                   19717: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19718:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19719:   ac_status=$?
1.25      millert  19720:   grep -v '^ *+' conftest.er1 >conftest.err
                   19721:   rm -f conftest.er1
                   19722:   cat conftest.err >&5
1.16      millert  19723:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19724:   (exit $ac_status); } && {
                   19725:         test -z "$ac_c_werror_flag" ||
                   19726:         test ! -s conftest.err
                   19727:        } && test -s conftest$ac_exeext &&
                   19728:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19729:   ac_cv_lib_intl_dgettext=yes
1.25      millert  19730: else
                   19731:   echo "$as_me: failed program was:" >&5
                   19732: sed 's/^/| /' conftest.$ac_ext >&5
                   19733:
1.37    ! millert  19734:        ac_cv_lib_intl_dgettext=no
1.9       millert  19735: fi
1.27      millert  19736:
                   19737: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19738:       conftest$ac_exeext conftest.$ac_ext
                   19739: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19740: fi
1.37    ! millert  19741: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
        !          19742: echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
        !          19743: if test $ac_cv_lib_intl_dgettext = yes; then
        !          19744:   LIBS="${LIBS} -lintl"
        !          19745:                        cat >>confdefs.h <<\_ACEOF
        !          19746: #define HAVE_DGETTEXT 1
        !          19747: _ACEOF
        !          19748:
        !          19749: fi
        !          19750:
1.25      millert  19751: fi
                   19752:
1.37    ! millert  19753: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          19754:       conftest$ac_exeext conftest.$ac_ext
        !          19755:                    ;;
        !          19756:        esac
        !          19757:     fi
        !          19758: fi
1.27      millert  19759:
1.37    ! millert  19760: if test ${with_aixauth-'no'} != "no"; then
        !          19761:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
        !          19762:        { echo "$as_me:$LINENO: using AIX general authentication" >&5
        !          19763: echo "$as_me: using AIX general authentication" >&6;}
        !          19764:        cat >>confdefs.h <<\_ACEOF
        !          19765: #define HAVE_AIXAUTH 1
        !          19766: _ACEOF
1.25      millert  19767:
1.37    ! millert  19768:        AUTH_OBJS="$AUTH_OBJS aix_auth.o";
        !          19769:        SUDO_LIBS="${SUDO_LIBS} -ls"
        !          19770:        AUTH_EXCL=AIX_AUTH
        !          19771:     fi
        !          19772: fi
1.25      millert  19773:
1.37    ! millert  19774: if test ${with_bsdauth-'no'} != "no"; then
        !          19775:     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
        !          19776:   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
        !          19777: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
        !          19778: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  19779:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  19780: fi
1.37    ! millert  19781: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
        !          19782: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.1       millert  19783: else
1.27      millert  19784:   # Is the header compilable?
1.37    ! millert  19785: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
        !          19786: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
1.27      millert  19787: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19788: /* confdefs.h.  */
                   19789: _ACEOF
                   19790: cat confdefs.h >>conftest.$ac_ext
                   19791: cat >>conftest.$ac_ext <<_ACEOF
                   19792: /* end confdefs.h.  */
1.27      millert  19793: $ac_includes_default
1.37    ! millert  19794: #include <bsd_auth.h>
1.9       millert  19795: _ACEOF
1.25      millert  19796: rm -f conftest.$ac_objext
1.27      millert  19797: if { (ac_try="$ac_compile"
                   19798: case "(($ac_try" in
                   19799:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19800:   *) ac_try_echo=$ac_try;;
                   19801: esac
                   19802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19803:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  19804:   ac_status=$?
1.25      millert  19805:   grep -v '^ *+' conftest.er1 >conftest.err
                   19806:   rm -f conftest.er1
                   19807:   cat conftest.err >&5
1.16      millert  19808:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19809:   (exit $ac_status); } && {
                   19810:         test -z "$ac_c_werror_flag" ||
                   19811:         test ! -s conftest.err
                   19812:        } && test -s conftest.$ac_objext; then
                   19813:   ac_header_compiler=yes
1.9       millert  19814: else
                   19815:   echo "$as_me: failed program was:" >&5
1.16      millert  19816: sed 's/^/| /' conftest.$ac_ext >&5
                   19817:
1.27      millert  19818:        ac_header_compiler=no
                   19819: fi
1.25      millert  19820:
1.27      millert  19821: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19822: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   19823: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  19824:
1.27      millert  19825: # Is the header present?
1.37    ! millert  19826: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
        !          19827: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.27      millert  19828: cat >conftest.$ac_ext <<_ACEOF
                   19829: /* confdefs.h.  */
1.25      millert  19830: _ACEOF
1.27      millert  19831: cat confdefs.h >>conftest.$ac_ext
                   19832: cat >>conftest.$ac_ext <<_ACEOF
                   19833: /* end confdefs.h.  */
1.37    ! millert  19834: #include <bsd_auth.h>
1.25      millert  19835: _ACEOF
1.27      millert  19836: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   19837: case "(($ac_try" in
                   19838:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19839:   *) ac_try_echo=$ac_try;;
                   19840: esac
                   19841: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19842:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  19843:   ac_status=$?
                   19844:   grep -v '^ *+' conftest.er1 >conftest.err
                   19845:   rm -f conftest.er1
                   19846:   cat conftest.err >&5
                   19847:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19848:   (exit $ac_status); } >/dev/null && {
                   19849:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   19850:         test ! -s conftest.err
                   19851:        }; then
                   19852:   ac_header_preproc=yes
1.1       millert  19853: else
1.25      millert  19854:   echo "$as_me: failed program was:" >&5
                   19855: sed 's/^/| /' conftest.$ac_ext >&5
                   19856:
1.27      millert  19857:   ac_header_preproc=no
                   19858: fi
                   19859:
                   19860: rm -f conftest.err conftest.$ac_ext
                   19861: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   19862: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   19863:
                   19864: # So?  What about this header?
                   19865: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   19866:   yes:no: )
1.37    ! millert  19867:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
        !          19868: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          19869:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
        !          19870: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
1.27      millert  19871:     ac_header_preproc=yes
                   19872:     ;;
                   19873:   no:yes:* )
1.37    ! millert  19874:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
        !          19875: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
        !          19876:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
        !          19877: echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
        !          19878:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
        !          19879: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
        !          19880:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
        !          19881: echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          19882:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
        !          19883: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
        !          19884:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
        !          19885: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.27      millert  19886:
                   19887:     ;;
                   19888: esac
1.37    ! millert  19889: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
        !          19890: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
        !          19891: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  19892:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19893: else
1.37    ! millert  19894:   ac_cv_header_bsd_auth_h=$ac_header_preproc
1.27      millert  19895: fi
1.37    ! millert  19896: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
        !          19897: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25      millert  19898:
                   19899: fi
1.37    ! millert  19900: if test $ac_cv_header_bsd_auth_h = yes; then
        !          19901:   cat >>confdefs.h <<\_ACEOF
        !          19902: #define HAVE_BSD_AUTH_H 1
1.27      millert  19903: _ACEOF
1.37    ! millert  19904:
        !          19905:        AUTH_OBJS="$AUTH_OBJS bsdauth.o"
        !          19906:        BSDAUTH_USAGE='[-a auth_type] '
        !          19907:        AUTH_EXCL=BSD_AUTH; BAMAN=""
        !          19908: else
        !          19909:   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
        !          19910: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
        !          19911:    { (exit 1); exit 1; }; }
1.27      millert  19912: fi
                   19913:
                   19914:
1.37    ! millert  19915: fi
1.25      millert  19916:
1.37    ! millert  19917: if test ${CHECKSIA-'false'} = "true"; then
1.30      millert  19918:
1.37    ! millert  19919: for ac_func in sia_ses_init
        !          19920: do
        !          19921: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          19922: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          19923: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          19924: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
        !          19925:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.30      millert  19926: else
1.37    ! millert  19927:   cat >conftest.$ac_ext <<_ACEOF
1.32      millert  19928: /* confdefs.h.  */
                   19929: _ACEOF
                   19930: cat confdefs.h >>conftest.$ac_ext
                   19931: cat >>conftest.$ac_ext <<_ACEOF
                   19932: /* end confdefs.h.  */
1.37    ! millert  19933: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          19934:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          19935: #define $ac_func innocuous_$ac_func
        !          19936:
        !          19937: /* System header to define __stub macros and hopefully few prototypes,
        !          19938:     which can conflict with char $ac_func (); below.
        !          19939:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          19940:     <limits.h> exists even on freestanding compilers.  */
        !          19941:
        !          19942: #ifdef __STDC__
        !          19943: # include <limits.h>
        !          19944: #else
        !          19945: # include <assert.h>
        !          19946: #endif
        !          19947:
        !          19948: #undef $ac_func
        !          19949:
        !          19950: /* Override any GCC internal prototype to avoid an error.
        !          19951:    Use char because int might match the return type of a GCC
        !          19952:    builtin and then its argument prototype would still apply.  */
        !          19953: #ifdef __cplusplus
        !          19954: extern "C"
        !          19955: #endif
        !          19956: char $ac_func ();
        !          19957: /* The GNU C library defines this for functions which it implements
        !          19958:     to always fail with ENOSYS.  Some functions are actually named
        !          19959:     something starting with __ and the normal name is an alias.  */
        !          19960: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          19961: choke me
        !          19962: #endif
        !          19963:
1.32      millert  19964: int
                   19965: main ()
                   19966: {
1.37    ! millert  19967: return $ac_func ();
1.32      millert  19968:   ;
                   19969:   return 0;
                   19970: }
                   19971: _ACEOF
                   19972: rm -f conftest.$ac_objext conftest$ac_exeext
                   19973: if { (ac_try="$ac_link"
                   19974: case "(($ac_try" in
                   19975:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19976:   *) ac_try_echo=$ac_try;;
                   19977: esac
                   19978: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19979:   (eval "$ac_link") 2>conftest.er1
                   19980:   ac_status=$?
                   19981:   grep -v '^ *+' conftest.er1 >conftest.err
                   19982:   rm -f conftest.er1
                   19983:   cat conftest.err >&5
                   19984:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19985:   (exit $ac_status); } && {
                   19986:         test -z "$ac_c_werror_flag" ||
                   19987:         test ! -s conftest.err
                   19988:        } && test -s conftest$ac_exeext &&
                   19989:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  19990:   eval "$as_ac_var=yes"
1.32      millert  19991: else
                   19992:   echo "$as_me: failed program was:" >&5
                   19993: sed 's/^/| /' conftest.$ac_ext >&5
                   19994:
1.37    ! millert  19995:        eval "$as_ac_var=no"
        !          19996: fi
        !          19997:
        !          19998: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          19999:       conftest$ac_exeext conftest.$ac_ext
        !          20000: fi
        !          20001: ac_res=`eval echo '${'$as_ac_var'}'`
        !          20002:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          20003: echo "${ECHO_T}$ac_res" >&6; }
        !          20004: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          20005:   cat >>confdefs.h <<_ACEOF
        !          20006: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          20007: _ACEOF
        !          20008:  found=true
        !          20009: else
        !          20010:   found=false
        !          20011: fi
        !          20012: done
        !          20013:
        !          20014:     if test "$found" = "true"; then
        !          20015:        AUTH_EXCL=SIA
        !          20016:        AUTH_OBJS="$AUTH_OBJS sia.o"
        !          20017:     fi
        !          20018: fi
        !          20019:
        !          20020: if test ${with_fwtk-'no'} != "no"; then
        !          20021:     if test "$with_fwtk" != "yes"; then
        !          20022:
        !          20023:     if test X"$with_rpath" = X"yes"; then
        !          20024:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
        !          20025:     else
        !          20026:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
        !          20027:     fi
        !          20028:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20029:        blibpath_add="${blibpath_add}:${with_fwtk}"
        !          20030:     fi
        !          20031:
        !          20032:        CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
        !          20033:        with_fwtk=yes
        !          20034:     fi
        !          20035:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
        !          20036:     AUTH_OBJS="$AUTH_OBJS fwtk.o"
        !          20037: fi
        !          20038:
        !          20039: if test ${with_SecurID-'no'} != "no"; then
        !          20040:     if test "$with_SecurID" != "yes"; then
        !          20041:        :
        !          20042:     elif test -d /usr/ace/examples; then
        !          20043:        with_SecurID=/usr/ace/examples
        !          20044:     else
        !          20045:        with_SecurID=/usr/ace
        !          20046:     fi
        !          20047:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
        !          20048:     _LDFLAGS="${LDFLAGS}"
        !          20049:
        !          20050:     if test X"$with_rpath" = X"yes"; then
        !          20051:        LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
        !          20052:     else
        !          20053:        LDFLAGS="${LDFLAGS} -L${with_SecurID}"
        !          20054:     fi
        !          20055:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20056:        blibpath_add="${blibpath_add}:${with_SecurID}"
        !          20057:     fi
        !          20058:
        !          20059:     #
        !          20060:     # Determine whether to use the new or old SecurID API
        !          20061:     #
        !          20062:     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
        !          20063: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
        !          20064: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.32      millert  20065:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20066: else
                   20067:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  20068: LIBS="-laceclnt
        !          20069:            -lpthread
        !          20070:
        !          20071:      $LIBS"
1.32      millert  20072: cat >conftest.$ac_ext <<_ACEOF
                   20073: /* confdefs.h.  */
                   20074: _ACEOF
                   20075: cat confdefs.h >>conftest.$ac_ext
                   20076: cat >>conftest.$ac_ext <<_ACEOF
                   20077: /* end confdefs.h.  */
                   20078:
                   20079: /* Override any GCC internal prototype to avoid an error.
                   20080:    Use char because int might match the return type of a GCC
                   20081:    builtin and then its argument prototype would still apply.  */
                   20082: #ifdef __cplusplus
                   20083: extern "C"
                   20084: #endif
1.37    ! millert  20085: char SD_Init ();
1.32      millert  20086: int
                   20087: main ()
                   20088: {
1.37    ! millert  20089: return SD_Init ();
1.32      millert  20090:   ;
                   20091:   return 0;
                   20092: }
                   20093: _ACEOF
                   20094: rm -f conftest.$ac_objext conftest$ac_exeext
                   20095: if { (ac_try="$ac_link"
                   20096: case "(($ac_try" in
                   20097:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20098:   *) ac_try_echo=$ac_try;;
                   20099: esac
                   20100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20101:   (eval "$ac_link") 2>conftest.er1
                   20102:   ac_status=$?
                   20103:   grep -v '^ *+' conftest.er1 >conftest.err
                   20104:   rm -f conftest.er1
                   20105:   cat conftest.err >&5
                   20106:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20107:   (exit $ac_status); } && {
                   20108:         test -z "$ac_c_werror_flag" ||
                   20109:         test ! -s conftest.err
                   20110:        } && test -s conftest$ac_exeext &&
                   20111:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  20112:   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.32      millert  20113: else
                   20114:   echo "$as_me: failed program was:" >&5
                   20115: sed 's/^/| /' conftest.$ac_ext >&5
                   20116:
1.37    ! millert  20117:        ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.32      millert  20118: fi
                   20119:
                   20120: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20121:       conftest$ac_exeext conftest.$ac_ext
                   20122: LIBS=$ac_check_lib_save_LIBS
                   20123: fi
1.37    ! millert  20124: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
        !          20125: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
        !          20126: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
        !          20127:
        !          20128:            AUTH_OBJS="$AUTH_OBJS securid5.o";
        !          20129:            SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
        !          20130:
        !          20131:
        !          20132:
        !          20133:     if test X"$with_rpath" = X"yes"; then
        !          20134:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
        !          20135:     else
        !          20136:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
        !          20137:     fi
        !          20138:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20139:        blibpath_add="${blibpath_add}:${with_SecurID}"
        !          20140:     fi
        !          20141:
        !          20142:
        !          20143: else
        !          20144:
        !          20145:            AUTH_OBJS="$AUTH_OBJS securid.o";
        !          20146:            SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
1.32      millert  20147:
                   20148: fi
                   20149:
1.37    ! millert  20150:     LDFLAGS="${_LDFLAGS}"
1.32      millert  20151: fi
                   20152:
1.37    ! millert  20153:
        !          20154: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
        !          20155:     for auth in $AUTH_DEF; do
        !          20156:        case $auth in
        !          20157:            passwd)     : ${with_passwd='maybe'};;
1.32      millert  20158:        esac
1.37    ! millert  20159:     done
1.27      millert  20160: fi
                   20161:
1.37    ! millert  20162: if test ${with_kerb4-'no'} != "no"; then
        !          20163:     cat >>confdefs.h <<\_ACEOF
        !          20164: #define HAVE_KERB4 1
1.27      millert  20165: _ACEOF
1.25      millert  20166:
1.37    ! millert  20167:                 O_LDFLAGS="$LDFLAGS"
        !          20168:     if test "$with_kerb4" = "yes"; then
        !          20169:        found=no
        !          20170:        O_CPPFLAGS="$CPPFLAGS"
        !          20171:        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
        !          20172:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
        !          20173:            cat >conftest.$ac_ext <<_ACEOF
        !          20174: #include <krb.h>
        !          20175: _ACEOF
        !          20176: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          20177: case "(($ac_try" in
        !          20178:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          20179:   *) ac_try_echo=$ac_try;;
        !          20180: esac
        !          20181: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          20182:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          20183:   ac_status=$?
        !          20184:   grep -v '^ *+' conftest.er1 >conftest.err
        !          20185:   rm -f conftest.er1
        !          20186:   cat conftest.err >&5
        !          20187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          20188:   (exit $ac_status); } >/dev/null && {
        !          20189:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
        !          20190:         test ! -s conftest.err
        !          20191:        }; then
        !          20192:   found=yes; break
        !          20193: else
        !          20194:   echo "$as_me: failed program was:" >&5
        !          20195: sed 's/^/| /' conftest.$ac_ext >&5
        !          20196:
        !          20197:
        !          20198: fi
        !          20199:
        !          20200: rm -f conftest.err conftest.$ac_ext
        !          20201:        done
        !          20202:        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
        !          20203:     else
        !          20204:
        !          20205:     if test X"$with_rpath" = X"yes"; then
        !          20206:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
        !          20207:     else
        !          20208:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
        !          20209:     fi
        !          20210:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20211:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
        !          20212:     fi
        !          20213:
        !          20214:
        !          20215:     if test X"$with_rpath" = X"yes"; then
        !          20216:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
        !          20217:     else
        !          20218:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
        !          20219:     fi
        !          20220:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20221:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.25      millert  20222:     fi
                   20223:
1.37    ! millert  20224:        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
        !          20225:        if test "${ac_cv_header_krb_h+set}" = set; then
        !          20226:   { echo "$as_me:$LINENO: checking for krb.h" >&5
        !          20227: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
        !          20228: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20229:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20230: fi
1.37    ! millert  20231: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
        !          20232: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.27      millert  20233: else
                   20234:   # Is the header compilable?
1.37    ! millert  20235: { echo "$as_me:$LINENO: checking krb.h usability" >&5
        !          20236: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.27      millert  20237: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20238: /* confdefs.h.  */
                   20239: _ACEOF
                   20240: cat confdefs.h >>conftest.$ac_ext
                   20241: cat >>conftest.$ac_ext <<_ACEOF
                   20242: /* end confdefs.h.  */
1.27      millert  20243: $ac_includes_default
1.37    ! millert  20244: #include <krb.h>
1.9       millert  20245: _ACEOF
1.25      millert  20246: rm -f conftest.$ac_objext
1.27      millert  20247: if { (ac_try="$ac_compile"
                   20248: case "(($ac_try" in
                   20249:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20250:   *) ac_try_echo=$ac_try;;
                   20251: esac
                   20252: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20253:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20254:   ac_status=$?
1.25      millert  20255:   grep -v '^ *+' conftest.er1 >conftest.err
                   20256:   rm -f conftest.er1
                   20257:   cat conftest.err >&5
1.16      millert  20258:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20259:   (exit $ac_status); } && {
                   20260:         test -z "$ac_c_werror_flag" ||
                   20261:         test ! -s conftest.err
                   20262:        } && test -s conftest.$ac_objext; then
                   20263:   ac_header_compiler=yes
                   20264: else
                   20265:   echo "$as_me: failed program was:" >&5
                   20266: sed 's/^/| /' conftest.$ac_ext >&5
                   20267:
                   20268:        ac_header_compiler=no
                   20269: fi
1.16      millert  20270:
1.27      millert  20271: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20272: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20273: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20274:
1.27      millert  20275: # Is the header present?
1.37    ! millert  20276: { echo "$as_me:$LINENO: checking krb.h presence" >&5
        !          20277: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9       millert  20278: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20279: /* confdefs.h.  */
                   20280: _ACEOF
                   20281: cat confdefs.h >>conftest.$ac_ext
                   20282: cat >>conftest.$ac_ext <<_ACEOF
                   20283: /* end confdefs.h.  */
1.37    ! millert  20284: #include <krb.h>
1.9       millert  20285: _ACEOF
1.27      millert  20286: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20287: case "(($ac_try" in
                   20288:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20289:   *) ac_try_echo=$ac_try;;
                   20290: esac
                   20291: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20292:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  20293:   ac_status=$?
1.25      millert  20294:   grep -v '^ *+' conftest.er1 >conftest.err
                   20295:   rm -f conftest.er1
                   20296:   cat conftest.err >&5
1.16      millert  20297:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20298:   (exit $ac_status); } >/dev/null && {
                   20299:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20300:         test ! -s conftest.err
                   20301:        }; then
                   20302:   ac_header_preproc=yes
1.9       millert  20303: else
                   20304:   echo "$as_me: failed program was:" >&5
1.16      millert  20305: sed 's/^/| /' conftest.$ac_ext >&5
                   20306:
1.27      millert  20307:   ac_header_preproc=no
1.25      millert  20308: fi
                   20309:
1.27      millert  20310: rm -f conftest.err conftest.$ac_ext
                   20311: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20312: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   20313:
                   20314: # So?  What about this header?
                   20315: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20316:   yes:no: )
1.37    ! millert  20317:     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
        !          20318: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          20319:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
        !          20320: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.27      millert  20321:     ac_header_preproc=yes
                   20322:     ;;
                   20323:   no:yes:* )
1.37    ! millert  20324:     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
        !          20325: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
        !          20326:     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
        !          20327: echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
        !          20328:     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
        !          20329: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
        !          20330:     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
        !          20331: echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          20332:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
        !          20333: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
        !          20334:     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
        !          20335: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.25      millert  20336:
1.27      millert  20337:     ;;
                   20338: esac
1.37    ! millert  20339: { echo "$as_me:$LINENO: checking for krb.h" >&5
        !          20340: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
        !          20341: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20342:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20343: else
1.37    ! millert  20344:   ac_cv_header_krb_h=$ac_header_preproc
1.27      millert  20345: fi
1.37    ! millert  20346: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
        !          20347: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25      millert  20348:
1.1       millert  20349: fi
1.37    ! millert  20350: if test $ac_cv_header_krb_h = yes; then
        !          20351:   found=yes
1.25      millert  20352: else
1.37    ! millert  20353:   found=no
1.1       millert  20354: fi
                   20355:
                   20356:
1.37    ! millert  20357:     fi
        !          20358:     if test X"$found" = X"no"; then
        !          20359:        { 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
        !          20360: 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;}
        !          20361:     fi
1.27      millert  20362:
1.37    ! millert  20363:                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
        !          20364: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
        !          20365: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9       millert  20366:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20367: else
1.37    ! millert  20368:   ac_check_lib_save_LIBS=$LIBS
        !          20369: LIBS="-ldes  $LIBS"
        !          20370: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20371: /* confdefs.h.  */
                   20372: _ACEOF
                   20373: cat confdefs.h >>conftest.$ac_ext
                   20374: cat >>conftest.$ac_ext <<_ACEOF
                   20375: /* end confdefs.h.  */
1.25      millert  20376:
1.27      millert  20377: /* Override any GCC internal prototype to avoid an error.
                   20378:    Use char because int might match the return type of a GCC
                   20379:    builtin and then its argument prototype would still apply.  */
1.9       millert  20380: #ifdef __cplusplus
                   20381: extern "C"
                   20382: #endif
1.37    ! millert  20383: char des_cbc_encrypt ();
1.16      millert  20384: int
                   20385: main ()
                   20386: {
1.37    ! millert  20387: return des_cbc_encrypt ();
1.9       millert  20388:   ;
                   20389:   return 0;
                   20390: }
                   20391: _ACEOF
                   20392: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20393: if { (ac_try="$ac_link"
                   20394: case "(($ac_try" in
                   20395:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20396:   *) ac_try_echo=$ac_try;;
                   20397: esac
                   20398: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20399:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20400:   ac_status=$?
1.25      millert  20401:   grep -v '^ *+' conftest.er1 >conftest.err
                   20402:   rm -f conftest.er1
                   20403:   cat conftest.err >&5
1.16      millert  20404:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20405:   (exit $ac_status); } && {
                   20406:         test -z "$ac_c_werror_flag" ||
                   20407:         test ! -s conftest.err
                   20408:        } && test -s conftest$ac_exeext &&
                   20409:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  20410:   ac_cv_lib_des_des_cbc_encrypt=yes
1.9       millert  20411: else
                   20412:   echo "$as_me: failed program was:" >&5
1.16      millert  20413: sed 's/^/| /' conftest.$ac_ext >&5
                   20414:
1.37    ! millert  20415:        ac_cv_lib_des_des_cbc_encrypt=no
1.25      millert  20416: fi
1.27      millert  20417:
                   20418: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20419:       conftest$ac_exeext conftest.$ac_ext
1.37    ! millert  20420: LIBS=$ac_check_lib_save_LIBS
1.25      millert  20421: fi
1.37    ! millert  20422: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
        !          20423: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
        !          20424: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
        !          20425:   K4LIBS="-ldes"
1.27      millert  20426: else
1.25      millert  20427:
1.37    ! millert  20428:        { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
        !          20429: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
        !          20430: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9       millert  20431:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20432: else
1.9       millert  20433:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  20434: LIBS="-ldes425  $LIBS"
1.9       millert  20435: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20436: /* confdefs.h.  */
                   20437: _ACEOF
                   20438: cat confdefs.h >>conftest.$ac_ext
                   20439: cat >>conftest.$ac_ext <<_ACEOF
                   20440: /* end confdefs.h.  */
1.9       millert  20441:
1.27      millert  20442: /* Override any GCC internal prototype to avoid an error.
                   20443:    Use char because int might match the return type of a GCC
                   20444:    builtin and then its argument prototype would still apply.  */
                   20445: #ifdef __cplusplus
                   20446: extern "C"
                   20447: #endif
1.37    ! millert  20448: char des_cbc_encrypt ();
1.9       millert  20449: int
                   20450: main ()
                   20451: {
1.37    ! millert  20452: return des_cbc_encrypt ();
1.9       millert  20453:   ;
                   20454:   return 0;
                   20455: }
                   20456: _ACEOF
                   20457: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20458: if { (ac_try="$ac_link"
                   20459: case "(($ac_try" in
                   20460:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20461:   *) ac_try_echo=$ac_try;;
                   20462: esac
                   20463: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20464:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20465:   ac_status=$?
1.25      millert  20466:   grep -v '^ *+' conftest.er1 >conftest.err
                   20467:   rm -f conftest.er1
                   20468:   cat conftest.err >&5
1.16      millert  20469:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20470:   (exit $ac_status); } && {
                   20471:         test -z "$ac_c_werror_flag" ||
                   20472:         test ! -s conftest.err
                   20473:        } && test -s conftest$ac_exeext &&
                   20474:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  20475:   ac_cv_lib_des425_des_cbc_encrypt=yes
1.9       millert  20476: else
                   20477:   echo "$as_me: failed program was:" >&5
1.16      millert  20478: sed 's/^/| /' conftest.$ac_ext >&5
                   20479:
1.37    ! millert  20480:        ac_cv_lib_des425_des_cbc_encrypt=no
1.9       millert  20481: fi
1.27      millert  20482:
                   20483: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20484:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20485: LIBS=$ac_check_lib_save_LIBS
                   20486: fi
1.37    ! millert  20487: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
        !          20488: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
        !          20489: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
        !          20490:   K4LIBS="-ldes425"
1.27      millert  20491: else
1.37    ! millert  20492:   K4LIBS=""
1.27      millert  20493: fi
                   20494:
                   20495:
                   20496: fi
                   20497:
1.37    ! millert  20498:                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
        !          20499: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
        !          20500:     cat >conftest.$ac_ext <<_ACEOF
        !          20501: /* confdefs.h.  */
1.27      millert  20502: _ACEOF
1.37    ! millert  20503: cat confdefs.h >>conftest.$ac_ext
        !          20504: cat >>conftest.$ac_ext <<_ACEOF
        !          20505: /* end confdefs.h.  */
1.27      millert  20506: #include <krb.h>
1.37    ! millert  20507: int
        !          20508: main ()
        !          20509: {
        !          20510: const char *tmp = krb4_version;
        !          20511:   ;
        !          20512:   return 0;
        !          20513: }
1.27      millert  20514: _ACEOF
1.37    ! millert  20515: rm -f conftest.$ac_objext
        !          20516: if { (ac_try="$ac_compile"
1.27      millert  20517: case "(($ac_try" in
                   20518:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20519:   *) ac_try_echo=$ac_try;;
                   20520: esac
                   20521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  20522:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  20523:   ac_status=$?
                   20524:   grep -v '^ *+' conftest.er1 >conftest.err
                   20525:   rm -f conftest.er1
                   20526:   cat conftest.err >&5
                   20527:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  20528:   (exit $ac_status); } && {
        !          20529:         test -z "$ac_c_werror_flag" ||
1.27      millert  20530:         test ! -s conftest.err
1.37    ! millert  20531:        } && test -s conftest.$ac_objext; then
1.27      millert  20532:
1.37    ! millert  20533:            { echo "$as_me:$LINENO: result: yes" >&5
        !          20534: echo "${ECHO_T}yes" >&6; }
        !          20535:            K4LIBS="${K4LIBS} -lcom_err"
        !          20536:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
        !          20537: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
        !          20538: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  20539:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20540: else
1.37    ! millert  20541:   ac_check_lib_save_LIBS=$LIBS
        !          20542: LIBS="-lroken  $LIBS"
1.9       millert  20543: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20544: /* confdefs.h.  */
                   20545: _ACEOF
                   20546: cat confdefs.h >>conftest.$ac_ext
                   20547: cat >>conftest.$ac_ext <<_ACEOF
                   20548: /* end confdefs.h.  */
1.37    ! millert  20549:
        !          20550:
        !          20551: int
        !          20552: main ()
        !          20553: {
        !          20554: return main ();
        !          20555:   ;
        !          20556:   return 0;
        !          20557: }
1.9       millert  20558: _ACEOF
1.37    ! millert  20559: rm -f conftest.$ac_objext conftest$ac_exeext
        !          20560: if { (ac_try="$ac_link"
1.27      millert  20561: case "(($ac_try" in
                   20562:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20563:   *) ac_try_echo=$ac_try;;
                   20564: esac
                   20565: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  20566:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20567:   ac_status=$?
1.25      millert  20568:   grep -v '^ *+' conftest.er1 >conftest.err
                   20569:   rm -f conftest.er1
                   20570:   cat conftest.err >&5
1.16      millert  20571:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20572:   (exit $ac_status); } && {
                   20573:         test -z "$ac_c_werror_flag" ||
                   20574:         test ! -s conftest.err
1.37    ! millert  20575:        } && test -s conftest$ac_exeext &&
        !          20576:        $as_test_x conftest$ac_exeext; then
        !          20577:   ac_cv_lib_roken_main=yes
        !          20578: else
        !          20579:   echo "$as_me: failed program was:" >&5
        !          20580: sed 's/^/| /' conftest.$ac_ext >&5
        !          20581:
        !          20582:        ac_cv_lib_roken_main=no
        !          20583: fi
        !          20584:
        !          20585: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          20586:       conftest$ac_exeext conftest.$ac_ext
        !          20587: LIBS=$ac_check_lib_save_LIBS
        !          20588: fi
        !          20589: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
        !          20590: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
        !          20591: if test $ac_cv_lib_roken_main = yes; then
        !          20592:   K4LIBS="${K4LIBS} -lroken"
        !          20593: fi
        !          20594:
        !          20595:
1.9       millert  20596: else
                   20597:   echo "$as_me: failed program was:" >&5
1.16      millert  20598: sed 's/^/| /' conftest.$ac_ext >&5
                   20599:
1.37    ! millert  20600:
        !          20601:            { echo "$as_me:$LINENO: result: no" >&5
        !          20602: echo "${ECHO_T}no" >&6; }
        !          20603:
        !          20604:
1.9       millert  20605: fi
1.27      millert  20606:
                   20607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.37    ! millert  20608:                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
        !          20609: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
        !          20610: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
        !          20611: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
        !          20612:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          20613: else
        !          20614:   ac_check_lib_save_LIBS=$LIBS
        !          20615: LIBS="-lkrb $K4LIBS $LIBS"
1.9       millert  20616: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20617: /* confdefs.h.  */
                   20618: _ACEOF
                   20619: cat confdefs.h >>conftest.$ac_ext
                   20620: cat >>conftest.$ac_ext <<_ACEOF
                   20621: /* end confdefs.h.  */
1.37    ! millert  20622:
        !          20623:
        !          20624: int
        !          20625: main ()
        !          20626: {
        !          20627: return main ();
        !          20628:   ;
        !          20629:   return 0;
        !          20630: }
1.9       millert  20631: _ACEOF
1.37    ! millert  20632: rm -f conftest.$ac_objext conftest$ac_exeext
        !          20633: if { (ac_try="$ac_link"
1.27      millert  20634: case "(($ac_try" in
                   20635:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20636:   *) ac_try_echo=$ac_try;;
                   20637: esac
                   20638: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  20639:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20640:   ac_status=$?
1.25      millert  20641:   grep -v '^ *+' conftest.er1 >conftest.err
                   20642:   rm -f conftest.er1
                   20643:   cat conftest.err >&5
1.16      millert  20644:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  20645:   (exit $ac_status); } && {
        !          20646:         test -z "$ac_c_werror_flag" ||
1.27      millert  20647:         test ! -s conftest.err
1.37    ! millert  20648:        } && test -s conftest$ac_exeext &&
        !          20649:        $as_test_x conftest$ac_exeext; then
        !          20650:   eval "$as_ac_Lib=yes"
1.9       millert  20651: else
                   20652:   echo "$as_me: failed program was:" >&5
1.25      millert  20653: sed 's/^/| /' conftest.$ac_ext >&5
                   20654:
1.37    ! millert  20655:        eval "$as_ac_Lib=no"
1.25      millert  20656: fi
1.27      millert  20657:
1.37    ! millert  20658: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          20659:       conftest$ac_exeext conftest.$ac_ext
        !          20660: LIBS=$ac_check_lib_save_LIBS
1.27      millert  20661: fi
1.37    ! millert  20662: ac_res=`eval echo '${'$as_ac_Lib'}'`
        !          20663:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          20664: echo "${ECHO_T}$ac_res" >&6; }
        !          20665: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
        !          20666:   K4LIBS="-lkrb $K4LIBS"
1.25      millert  20667: else
1.1       millert  20668:
1.37    ! millert  20669:        as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
        !          20670: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
        !          20671: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
        !          20672: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  20673:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20674: else
1.27      millert  20675:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  20676: LIBS="-lkrb4 $K4LIBS $LIBS"
1.27      millert  20677: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20678: /* confdefs.h.  */
                   20679: _ACEOF
                   20680: cat confdefs.h >>conftest.$ac_ext
                   20681: cat >>conftest.$ac_ext <<_ACEOF
                   20682: /* end confdefs.h.  */
1.25      millert  20683:
1.37    ! millert  20684:
1.16      millert  20685: int
                   20686: main ()
                   20687: {
1.37    ! millert  20688: return main ();
1.9       millert  20689:   ;
                   20690:   return 0;
                   20691: }
                   20692: _ACEOF
                   20693: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20694: if { (ac_try="$ac_link"
                   20695: case "(($ac_try" in
                   20696:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20697:   *) ac_try_echo=$ac_try;;
                   20698: esac
                   20699: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20700:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20701:   ac_status=$?
1.25      millert  20702:   grep -v '^ *+' conftest.er1 >conftest.err
                   20703:   rm -f conftest.er1
                   20704:   cat conftest.err >&5
1.16      millert  20705:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20706:   (exit $ac_status); } && {
                   20707:         test -z "$ac_c_werror_flag" ||
                   20708:         test ! -s conftest.err
                   20709:        } && test -s conftest$ac_exeext &&
                   20710:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  20711:   eval "$as_ac_Lib=yes"
1.9       millert  20712: else
                   20713:   echo "$as_me: failed program was:" >&5
1.16      millert  20714: sed 's/^/| /' conftest.$ac_ext >&5
                   20715:
1.37    ! millert  20716:        eval "$as_ac_Lib=no"
1.25      millert  20717: fi
1.27      millert  20718:
                   20719: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20720:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  20721: LIBS=$ac_check_lib_save_LIBS
1.9       millert  20722: fi
1.37    ! millert  20723: ac_res=`eval echo '${'$as_ac_Lib'}'`
        !          20724:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          20725: echo "${ECHO_T}$ac_res" >&6; }
        !          20726: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
        !          20727:   K4LIBS="-lkrb4 $K4LIBS"
1.27      millert  20728: else
1.37    ! millert  20729:   K4LIBS="-lkrb $K4LIBS"
        !          20730:            { 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
        !          20731: 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  20732:
1.37    ! millert  20733: fi
        !          20734:
        !          20735:
        !          20736: fi
        !          20737:
        !          20738:     LDFLAGS="$O_LDFLAGS"
        !          20739:     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
        !          20740:     AUTH_OBJS="$AUTH_OBJS kerb4.o"
        !          20741: fi
        !          20742:
        !          20743: if test ${with_kerb5-'no'} != "no"; then
        !          20744:     # Extract the first word of "krb5-config", so it can be a program name with args.
        !          20745: set dummy krb5-config; ac_word=$2
        !          20746: { echo "$as_me:$LINENO: checking for $ac_word" >&5
        !          20747: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
        !          20748: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9       millert  20749:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  20750: else
1.37    ! millert  20751:   if test -n "$KRB5CONFIG"; then
        !          20752:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
        !          20753: else
        !          20754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          20755: for as_dir in $PATH
        !          20756: do
        !          20757:   IFS=$as_save_IFS
        !          20758:   test -z "$as_dir" && as_dir=.
        !          20759:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          20760:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
        !          20761:     ac_cv_prog_KRB5CONFIG="yes"
        !          20762:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          20763:     break 2
        !          20764:   fi
        !          20765: done
        !          20766: done
        !          20767: IFS=$as_save_IFS
        !          20768:
        !          20769:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
        !          20770: fi
        !          20771: fi
        !          20772: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
        !          20773: if test -n "$KRB5CONFIG"; then
        !          20774:   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
        !          20775: echo "${ECHO_T}$KRB5CONFIG" >&6; }
        !          20776: else
        !          20777:   { echo "$as_me:$LINENO: result: no" >&5
        !          20778: echo "${ECHO_T}no" >&6; }
        !          20779: fi
        !          20780:
        !          20781:
        !          20782:     if test -n "$KRB5CONFIG"; then
        !          20783:        cat >>confdefs.h <<\_ACEOF
        !          20784: #define HAVE_KERB5 1
        !          20785: _ACEOF
        !          20786:
        !          20787:        AUTH_OBJS="$AUTH_OBJS kerb5.o"
        !          20788:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
        !          20789:        SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
        !          20790:                                { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
        !          20791: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
        !          20792:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20793: /* confdefs.h.  */
                   20794: _ACEOF
                   20795: cat confdefs.h >>conftest.$ac_ext
                   20796: cat >>conftest.$ac_ext <<_ACEOF
                   20797: /* end confdefs.h.  */
1.37    ! millert  20798: #include <krb5.h>
1.16      millert  20799: int
                   20800: main ()
                   20801: {
1.37    ! millert  20802: const char *tmp = heimdal_version;
1.9       millert  20803:   ;
                   20804:   return 0;
                   20805: }
                   20806: _ACEOF
1.37    ! millert  20807: rm -f conftest.$ac_objext
        !          20808: if { (ac_try="$ac_compile"
1.27      millert  20809: case "(($ac_try" in
                   20810:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20811:   *) ac_try_echo=$ac_try;;
                   20812: esac
                   20813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  20814:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20815:   ac_status=$?
1.25      millert  20816:   grep -v '^ *+' conftest.er1 >conftest.err
                   20817:   rm -f conftest.er1
                   20818:   cat conftest.err >&5
1.16      millert  20819:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20820:   (exit $ac_status); } && {
                   20821:         test -z "$ac_c_werror_flag" ||
                   20822:         test ! -s conftest.err
1.37    ! millert  20823:        } && test -s conftest.$ac_objext; then
        !          20824:
        !          20825:                { echo "$as_me:$LINENO: result: yes" >&5
        !          20826: echo "${ECHO_T}yes" >&6; }
        !          20827:                cat >>confdefs.h <<\_ACEOF
        !          20828: #define HAVE_HEIMDAL 1
        !          20829: _ACEOF
        !          20830:
        !          20831:
1.9       millert  20832: else
                   20833:   echo "$as_me: failed program was:" >&5
1.16      millert  20834: sed 's/^/| /' conftest.$ac_ext >&5
                   20835:
1.37    ! millert  20836:
        !          20837:                { echo "$as_me:$LINENO: result: no" >&5
        !          20838: echo "${ECHO_T}no" >&6; }
        !          20839:
        !          20840:
1.25      millert  20841: fi
1.27      millert  20842:
1.37    ! millert  20843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          20844:     fi
1.25      millert  20845: fi
1.37    ! millert  20846: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
        !          20847:     cat >>confdefs.h <<\_ACEOF
        !          20848: #define HAVE_KERB5 1
        !          20849: _ACEOF
        !          20850:
        !          20851:                 if test "$with_kerb5" = "yes"; then
        !          20852:        found=no
        !          20853:        O_CPPFLAGS="$CPPFLAGS"
        !          20854:        for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
        !          20855:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
        !          20856:            cat >conftest.$ac_ext <<_ACEOF
        !          20857: #include <krb5.h>
        !          20858: _ACEOF
        !          20859: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          20860: case "(($ac_try" in
        !          20861:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          20862:   *) ac_try_echo=$ac_try;;
        !          20863: esac
        !          20864: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          20865:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          20866:   ac_status=$?
        !          20867:   grep -v '^ *+' conftest.er1 >conftest.err
        !          20868:   rm -f conftest.er1
        !          20869:   cat conftest.err >&5
        !          20870:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          20871:   (exit $ac_status); } >/dev/null && {
        !          20872:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
        !          20873:         test ! -s conftest.err
        !          20874:        }; then
        !          20875:   found=yes; break
1.27      millert  20876: else
1.37    ! millert  20877:   echo "$as_me: failed program was:" >&5
        !          20878: sed 's/^/| /' conftest.$ac_ext >&5
        !          20879:
        !          20880:
1.9       millert  20881: fi
1.25      millert  20882:
1.37    ! millert  20883: rm -f conftest.err conftest.$ac_ext
        !          20884:        done
        !          20885:        if test X"$found" = X"no"; then
        !          20886:            CPPFLAGS="$O_CPPFLAGS"
        !          20887:            { 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
        !          20888: 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;}
        !          20889:        fi
        !          20890:     else
        !          20891:
        !          20892:     if test X"$with_rpath" = X"yes"; then
        !          20893:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
        !          20894:     else
        !          20895:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
        !          20896:     fi
        !          20897:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          20898:        blibpath_add="${blibpath_add}:${with_kerb5}/lib"
        !          20899:     fi
1.27      millert  20900:
1.37    ! millert  20901:        CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
        !          20902:     fi
1.25      millert  20903:
1.37    ! millert  20904:                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
        !          20905: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
1.27      millert  20906:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20907: /* confdefs.h.  */
                   20908: _ACEOF
                   20909: cat confdefs.h >>conftest.$ac_ext
                   20910: cat >>conftest.$ac_ext <<_ACEOF
                   20911: /* end confdefs.h.  */
1.37    ! millert  20912: #include <krb5.h>
1.9       millert  20913: int
                   20914: main ()
                   20915: {
1.37    ! millert  20916: const char *tmp = heimdal_version;
1.9       millert  20917:   ;
                   20918:   return 0;
                   20919: }
                   20920: _ACEOF
1.27      millert  20921: rm -f conftest.$ac_objext
                   20922: if { (ac_try="$ac_compile"
                   20923: case "(($ac_try" in
                   20924:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20925:   *) ac_try_echo=$ac_try;;
                   20926: esac
                   20927: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20928:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20929:   ac_status=$?
1.25      millert  20930:   grep -v '^ *+' conftest.er1 >conftest.err
                   20931:   rm -f conftest.er1
                   20932:   cat conftest.err >&5
1.16      millert  20933:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20934:   (exit $ac_status); } && {
                   20935:         test -z "$ac_c_werror_flag" ||
                   20936:         test ! -s conftest.err
                   20937:        } && test -s conftest.$ac_objext; then
1.16      millert  20938:
1.27      millert  20939:            { echo "$as_me:$LINENO: result: yes" >&5
                   20940: echo "${ECHO_T}yes" >&6; }
1.37    ! millert  20941:            cat >>confdefs.h <<\_ACEOF
        !          20942: #define HAVE_HEIMDAL 1
        !          20943: _ACEOF
        !          20944:
        !          20945:            # XXX - need to check whether -lcrypo is needed!
        !          20946:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
1.27      millert  20947:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   20948: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   20949: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  20950:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20951: else
1.9       millert  20952:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  20953: LIBS="-lroken  $LIBS"
1.9       millert  20954: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20955: /* confdefs.h.  */
                   20956: _ACEOF
                   20957: cat confdefs.h >>conftest.$ac_ext
                   20958: cat >>conftest.$ac_ext <<_ACEOF
                   20959: /* end confdefs.h.  */
1.9       millert  20960:
1.27      millert  20961:
1.9       millert  20962: int
                   20963: main ()
                   20964: {
1.27      millert  20965: return main ();
1.9       millert  20966:   ;
                   20967:   return 0;
                   20968: }
                   20969: _ACEOF
                   20970: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20971: if { (ac_try="$ac_link"
                   20972: case "(($ac_try" in
                   20973:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20974:   *) ac_try_echo=$ac_try;;
                   20975: esac
                   20976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20977:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20978:   ac_status=$?
1.25      millert  20979:   grep -v '^ *+' conftest.er1 >conftest.err
                   20980:   rm -f conftest.er1
                   20981:   cat conftest.err >&5
1.16      millert  20982:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20983:   (exit $ac_status); } && {
                   20984:         test -z "$ac_c_werror_flag" ||
                   20985:         test ! -s conftest.err
                   20986:        } && test -s conftest$ac_exeext &&
                   20987:        $as_test_x conftest$ac_exeext; then
                   20988:   ac_cv_lib_roken_main=yes
1.9       millert  20989: else
                   20990:   echo "$as_me: failed program was:" >&5
1.16      millert  20991: sed 's/^/| /' conftest.$ac_ext >&5
                   20992:
1.27      millert  20993:        ac_cv_lib_roken_main=no
1.9       millert  20994: fi
1.27      millert  20995:
                   20996: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20997:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20998: LIBS=$ac_check_lib_save_LIBS
                   20999: fi
1.27      millert  21000: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21001: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21002: if test $ac_cv_lib_roken_main = yes; then
1.37    ! millert  21003:   SUDO_LIBS="${SUDO_LIBS} -lroken"
1.1       millert  21004: fi
                   21005:
1.27      millert  21006:
                   21007: else
                   21008:   echo "$as_me: failed program was:" >&5
                   21009: sed 's/^/| /' conftest.$ac_ext >&5
                   21010:
                   21011:
                   21012:            { echo "$as_me:$LINENO: result: no" >&5
                   21013: echo "${ECHO_T}no" >&6; }
1.37    ! millert  21014:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
        !          21015:            { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
        !          21016: echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
        !          21017: if test "${ac_cv_lib_krb5support_main+set}" = set; then
1.9       millert  21018:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21019: else
1.27      millert  21020:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  21021: LIBS="-lkrb5support  $LIBS"
1.27      millert  21022: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21023: /* confdefs.h.  */
                   21024: _ACEOF
                   21025: cat confdefs.h >>conftest.$ac_ext
                   21026: cat >>conftest.$ac_ext <<_ACEOF
                   21027: /* end confdefs.h.  */
1.25      millert  21028:
1.1       millert  21029:
1.16      millert  21030: int
                   21031: main ()
                   21032: {
1.27      millert  21033: return main ();
1.9       millert  21034:   ;
                   21035:   return 0;
                   21036: }
                   21037: _ACEOF
                   21038: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21039: if { (ac_try="$ac_link"
                   21040: case "(($ac_try" in
                   21041:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21042:   *) ac_try_echo=$ac_try;;
                   21043: esac
                   21044: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21045:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21046:   ac_status=$?
1.25      millert  21047:   grep -v '^ *+' conftest.er1 >conftest.err
                   21048:   rm -f conftest.er1
                   21049:   cat conftest.err >&5
1.16      millert  21050:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21051:   (exit $ac_status); } && {
                   21052:         test -z "$ac_c_werror_flag" ||
                   21053:         test ! -s conftest.err
                   21054:        } && test -s conftest$ac_exeext &&
                   21055:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21056:   ac_cv_lib_krb5support_main=yes
1.9       millert  21057: else
                   21058:   echo "$as_me: failed program was:" >&5
1.16      millert  21059: sed 's/^/| /' conftest.$ac_ext >&5
                   21060:
1.37    ! millert  21061:        ac_cv_lib_krb5support_main=no
1.9       millert  21062: fi
1.27      millert  21063:
                   21064: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21065:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21066: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21067: fi
1.37    ! millert  21068: { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
        !          21069: echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
        !          21070: if test $ac_cv_lib_krb5support_main = yes; then
        !          21071:   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
        !          21072: fi
        !          21073:
        !          21074:
        !          21075: fi
        !          21076:
        !          21077: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          21078:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
        !          21079:     _LIBS="$LIBS"
        !          21080:     LIBS="${LIBS} ${SUDO_LIBS}"
        !          21081:
        !          21082:
        !          21083:
        !          21084: for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
        !          21085: do
        !          21086: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          21087: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          21088: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          21089: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  21090:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21091: else
1.37    ! millert  21092:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21093: /* confdefs.h.  */
                   21094: _ACEOF
                   21095: cat confdefs.h >>conftest.$ac_ext
                   21096: cat >>conftest.$ac_ext <<_ACEOF
                   21097: /* end confdefs.h.  */
1.37    ! millert  21098: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          21099:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          21100: #define $ac_func innocuous_$ac_func
        !          21101:
        !          21102: /* System header to define __stub macros and hopefully few prototypes,
        !          21103:     which can conflict with char $ac_func (); below.
        !          21104:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          21105:     <limits.h> exists even on freestanding compilers.  */
        !          21106:
        !          21107: #ifdef __STDC__
        !          21108: # include <limits.h>
        !          21109: #else
        !          21110: # include <assert.h>
        !          21111: #endif
1.9       millert  21112:
1.37    ! millert  21113: #undef $ac_func
        !          21114:
        !          21115: /* Override any GCC internal prototype to avoid an error.
        !          21116:    Use char because int might match the return type of a GCC
        !          21117:    builtin and then its argument prototype would still apply.  */
        !          21118: #ifdef __cplusplus
        !          21119: extern "C"
        !          21120: #endif
        !          21121: char $ac_func ();
        !          21122: /* The GNU C library defines this for functions which it implements
        !          21123:     to always fail with ENOSYS.  Some functions are actually named
        !          21124:     something starting with __ and the normal name is an alias.  */
        !          21125: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          21126: choke me
        !          21127: #endif
1.27      millert  21128:
1.9       millert  21129: int
                   21130: main ()
                   21131: {
1.37    ! millert  21132: return $ac_func ();
1.9       millert  21133:   ;
                   21134:   return 0;
                   21135: }
                   21136: _ACEOF
                   21137: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21138: if { (ac_try="$ac_link"
                   21139: case "(($ac_try" in
                   21140:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21141:   *) ac_try_echo=$ac_try;;
                   21142: esac
                   21143: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21144:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21145:   ac_status=$?
1.25      millert  21146:   grep -v '^ *+' conftest.er1 >conftest.err
                   21147:   rm -f conftest.er1
                   21148:   cat conftest.err >&5
1.16      millert  21149:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21150:   (exit $ac_status); } && {
                   21151:         test -z "$ac_c_werror_flag" ||
                   21152:         test ! -s conftest.err
                   21153:        } && test -s conftest$ac_exeext &&
                   21154:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21155:   eval "$as_ac_var=yes"
1.9       millert  21156: else
                   21157:   echo "$as_me: failed program was:" >&5
1.16      millert  21158: sed 's/^/| /' conftest.$ac_ext >&5
                   21159:
1.37    ! millert  21160:        eval "$as_ac_var=no"
1.9       millert  21161: fi
1.27      millert  21162:
                   21163: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21164:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21165: fi
1.37    ! millert  21166: ac_res=`eval echo '${'$as_ac_var'}'`
1.27      millert  21167:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21168: echo "${ECHO_T}$ac_res" >&6; }
1.37    ! millert  21169: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          21170:   cat >>confdefs.h <<_ACEOF
        !          21171: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          21172: _ACEOF
1.27      millert  21173:
                   21174: fi
1.37    ! millert  21175: done
1.27      millert  21176:
1.37    ! millert  21177:     { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
        !          21178: echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
        !          21179: if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
1.9       millert  21180:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21181: else
1.27      millert  21182:
1.37    ! millert  21183:            cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21184: /* confdefs.h.  */
                   21185: _ACEOF
                   21186: cat confdefs.h >>conftest.$ac_ext
                   21187: cat >>conftest.$ac_ext <<_ACEOF
                   21188: /* end confdefs.h.  */
1.27      millert  21189: #include <krb5.h>
1.9       millert  21190: int
                   21191: main ()
                   21192: {
1.37    ! millert  21193:
        !          21194:                    krb5_context context = NULL;
        !          21195:                    krb5_get_init_creds_opt *opts = NULL;
        !          21196:                    krb5_get_init_creds_opt_free(context, opts);
        !          21197:
1.9       millert  21198:   ;
                   21199:   return 0;
                   21200: }
                   21201: _ACEOF
1.27      millert  21202: rm -f conftest.$ac_objext
                   21203: if { (ac_try="$ac_compile"
                   21204: case "(($ac_try" in
                   21205:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21206:   *) ac_try_echo=$ac_try;;
                   21207: esac
                   21208: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21209:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21210:   ac_status=$?
1.25      millert  21211:   grep -v '^ *+' conftest.er1 >conftest.err
                   21212:   rm -f conftest.er1
                   21213:   cat conftest.err >&5
1.16      millert  21214:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21215:   (exit $ac_status); } && {
                   21216:         test -z "$ac_c_werror_flag" ||
                   21217:         test ! -s conftest.err
                   21218:        } && test -s conftest.$ac_objext; then
1.37    ! millert  21219:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
1.27      millert  21220: else
                   21221:   echo "$as_me: failed program was:" >&5
                   21222: sed 's/^/| /' conftest.$ac_ext >&5
                   21223:
1.37    ! millert  21224:        sudo_cv_krb5_get_init_creds_opt_free_two_args=no
        !          21225:
        !          21226: fi
1.27      millert  21227:
1.37    ! millert  21228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.27      millert  21229:
                   21230:
                   21231: fi
1.37    ! millert  21232: { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
        !          21233: echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
        !          21234:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
        !          21235:        cat >>confdefs.h <<\_ACEOF
        !          21236: #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
        !          21237: _ACEOF
1.27      millert  21238:
                   21239:     fi
1.37    ! millert  21240:     LIBS="$_LIBS"
1.27      millert  21241: fi
                   21242:
1.37    ! millert  21243: if test ${with_AFS-'no'} = "yes"; then
        !          21244:
        !          21245:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
        !          21246:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
        !          21247:     for i in $AFSLIBDIRS; do
        !          21248:        if test -d ${i}; then
        !          21249:
        !          21250:     if test X"$with_rpath" = X"yes"; then
        !          21251:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
        !          21252:     else
        !          21253:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
        !          21254:     fi
        !          21255:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          21256:        blibpath_add="${blibpath_add}:$i"
        !          21257:     fi
        !          21258:
        !          21259:            FOUND_AFSLIBDIR=true
        !          21260:        fi
        !          21261:     done
        !          21262:     if test -z "$FOUND_AFSLIBDIR"; then
        !          21263:        { 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
        !          21264: 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;}
        !          21265:     fi
        !          21266:
        !          21267:     # Order is important here.  Note that we build AFS_LIBS from right to left
        !          21268:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
        !          21269:     AFS_LIBS="-laudit ${AFS_LIBS}"
        !          21270:     for i in $AFSLIBDIRS; do
        !          21271:        if test -f ${i}/util.a; then
        !          21272:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
        !          21273:            FOUND_UTIL_A=true
        !          21274:            break;
        !          21275:        fi
        !          21276:     done
        !          21277:     if test -z "$FOUND_UTIL_A"; then
        !          21278:        AFS_LIBS="-lutil ${AFS_LIBS}"
        !          21279:     fi
        !          21280:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
        !          21281:
        !          21282:     # AFS includes may live in /usr/include on some machines...
        !          21283:     for i in /usr/afsws/include; do
        !          21284:        if test -d ${i}; then
        !          21285:            CPPFLAGS="${CPPFLAGS} -I${i}"
        !          21286:            FOUND_AFSINCDIR=true
        !          21287:        fi
        !          21288:     done
        !          21289:
        !          21290:     if test -z "$FOUND_AFSLIBDIR"; then
        !          21291:        { 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
        !          21292: 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;}
        !          21293:     fi
1.16      millert  21294:
1.37    ! millert  21295:     AUTH_OBJS="$AUTH_OBJS afs.o"
        !          21296: fi
1.27      millert  21297:
1.37    ! millert  21298: if test ${with_DCE-'no'} = "yes"; then
        !          21299:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
        !          21300:     SUDO_LIBS="${SUDO_LIBS} -ldce"
        !          21301:     AUTH_OBJS="$AUTH_OBJS dce.o"
1.9       millert  21302: fi
1.27      millert  21303:
1.37    ! millert  21304: if test ${with_skey-'no'} = "yes"; then
        !          21305:     O_LDFLAGS="$LDFLAGS"
        !          21306:     if test "$with_skey" != "yes"; then
        !          21307:        CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
        !          21308:
        !          21309:     if test X"$with_rpath" = X"yes"; then
        !          21310:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27      millert  21311:     else
1.37    ! millert  21312:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
        !          21313:     fi
        !          21314:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
        !          21315:        blibpath_add="${blibpath_add}:${with_skey}/lib"
        !          21316:     fi
        !          21317:
1.27      millert  21318:
                   21319:     if test X"$with_rpath" = X"yes"; then
1.37    ! millert  21320:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27      millert  21321:     else
1.37    ! millert  21322:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
1.27      millert  21323:     fi
                   21324:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37    ! millert  21325:        blibpath_add="${blibpath_add}:${with_skey}/lib"
1.27      millert  21326:     fi
                   21327:
1.37    ! millert  21328:        cat >conftest.$ac_ext <<_ACEOF
        !          21329: #include <skey.h>
1.27      millert  21330: _ACEOF
1.37    ! millert  21331: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  21332: case "(($ac_try" in
                   21333:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21334:   *) ac_try_echo=$ac_try;;
                   21335: esac
                   21336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  21337:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  21338:   ac_status=$?
                   21339:   grep -v '^ *+' conftest.er1 >conftest.err
                   21340:   rm -f conftest.er1
                   21341:   cat conftest.err >&5
                   21342:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  21343:   (exit $ac_status); } >/dev/null && {
        !          21344:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  21345:         test ! -s conftest.err
1.37    ! millert  21346:        }; then
        !          21347:   found=yes
1.1       millert  21348: else
1.37    ! millert  21349:   echo "$as_me: failed program was:" >&5
        !          21350: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  21351:
1.37    ! millert  21352:   found=no
        !          21353: fi
1.27      millert  21354:
1.37    ! millert  21355: rm -f conftest.err conftest.$ac_ext
        !          21356:     else
        !          21357:        found=no
        !          21358:        O_CPPFLAGS="$CPPFLAGS"
        !          21359:        for dir in "" "/usr/local" "/usr/contrib"; do
        !          21360:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
        !          21361:            cat >conftest.$ac_ext <<_ACEOF
        !          21362: #include <skey.h>
1.25      millert  21363: _ACEOF
1.37    ! millert  21364: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  21365: case "(($ac_try" in
                   21366:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21367:   *) ac_try_echo=$ac_try;;
                   21368: esac
                   21369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  21370:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  21371:   ac_status=$?
                   21372:   grep -v '^ *+' conftest.er1 >conftest.err
                   21373:   rm -f conftest.er1
                   21374:   cat conftest.err >&5
                   21375:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  21376:   (exit $ac_status); } >/dev/null && {
        !          21377:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  21378:         test ! -s conftest.err
1.37    ! millert  21379:        }; then
        !          21380:   found=yes; break
1.25      millert  21381: else
                   21382:   echo "$as_me: failed program was:" >&5
                   21383: sed 's/^/| /' conftest.$ac_ext >&5
                   21384:
1.37    ! millert  21385:
1.25      millert  21386: fi
1.27      millert  21387:
1.37    ! millert  21388: rm -f conftest.err conftest.$ac_ext
        !          21389:        done
        !          21390:        if test "$found" = "no" -o -z "$dir"; then
        !          21391:            CPPFLAGS="$O_CPPFLAGS"
        !          21392:        else
1.25      millert  21393:
1.37    ! millert  21394:     if test X"$with_rpath" = X"yes"; then
        !          21395:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
        !          21396:     else
        !          21397:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
        !          21398:     fi
        !          21399:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
        !          21400:        blibpath_add="${blibpath_add}:${dir}/lib"
        !          21401:     fi
1.25      millert  21402:
1.27      millert  21403:
1.37    ! millert  21404:     if test X"$with_rpath" = X"yes"; then
        !          21405:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
        !          21406:     else
        !          21407:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
        !          21408:     fi
        !          21409:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          21410:        blibpath_add="${blibpath_add}:${dir}/lib"
        !          21411:     fi
1.27      millert  21412:
1.37    ! millert  21413:        fi
        !          21414:     fi
        !          21415:     if test "$found" = "no"; then
        !          21416:        { 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
        !          21417: 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;}
        !          21418:     fi
        !          21419:     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
        !          21420: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
        !          21421: if test "${ac_cv_lib_skey_main+set}" = set; then
1.33      millert  21422:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21423: else
                   21424:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  21425: LIBS="-lskey  $LIBS"
1.33      millert  21426: cat >conftest.$ac_ext <<_ACEOF
                   21427: /* confdefs.h.  */
                   21428: _ACEOF
                   21429: cat confdefs.h >>conftest.$ac_ext
                   21430: cat >>conftest.$ac_ext <<_ACEOF
                   21431: /* end confdefs.h.  */
                   21432:
                   21433:
                   21434: int
                   21435: main ()
                   21436: {
                   21437: return main ();
                   21438:   ;
                   21439:   return 0;
                   21440: }
                   21441: _ACEOF
                   21442: rm -f conftest.$ac_objext conftest$ac_exeext
                   21443: if { (ac_try="$ac_link"
                   21444: case "(($ac_try" in
                   21445:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21446:   *) ac_try_echo=$ac_try;;
                   21447: esac
                   21448: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21449:   (eval "$ac_link") 2>conftest.er1
                   21450:   ac_status=$?
                   21451:   grep -v '^ *+' conftest.er1 >conftest.err
                   21452:   rm -f conftest.er1
                   21453:   cat conftest.err >&5
                   21454:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21455:   (exit $ac_status); } && {
                   21456:         test -z "$ac_c_werror_flag" ||
                   21457:         test ! -s conftest.err
                   21458:        } && test -s conftest$ac_exeext &&
                   21459:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21460:   ac_cv_lib_skey_main=yes
1.33      millert  21461: else
                   21462:   echo "$as_me: failed program was:" >&5
                   21463: sed 's/^/| /' conftest.$ac_ext >&5
                   21464:
1.37    ! millert  21465:        ac_cv_lib_skey_main=no
1.33      millert  21466: fi
                   21467:
                   21468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21469:       conftest$ac_exeext conftest.$ac_ext
                   21470: LIBS=$ac_check_lib_save_LIBS
                   21471: fi
1.37    ! millert  21472: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
        !          21473: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
        !          21474: if test $ac_cv_lib_skey_main = yes; then
        !          21475:   found=yes
        !          21476: else
        !          21477:   { 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
        !          21478: 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  21479: fi
1.25      millert  21480:
1.37    ! millert  21481:     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
        !          21482: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
        !          21483: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.25      millert  21484:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21485: else
1.37    ! millert  21486:   ac_check_lib_save_LIBS=$LIBS
        !          21487: LIBS="-lskey  $LIBS"
        !          21488: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  21489: /* confdefs.h.  */
                   21490: _ACEOF
                   21491: cat confdefs.h >>conftest.$ac_ext
                   21492: cat >>conftest.$ac_ext <<_ACEOF
                   21493: /* end confdefs.h.  */
                   21494:
1.27      millert  21495: /* Override any GCC internal prototype to avoid an error.
                   21496:    Use char because int might match the return type of a GCC
                   21497:    builtin and then its argument prototype would still apply.  */
1.25      millert  21498: #ifdef __cplusplus
                   21499: extern "C"
                   21500: #endif
1.37    ! millert  21501: char skeyaccess ();
1.9       millert  21502: int
                   21503: main ()
                   21504: {
1.37    ! millert  21505: return skeyaccess ();
1.9       millert  21506:   ;
                   21507:   return 0;
                   21508: }
                   21509: _ACEOF
                   21510: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21511: if { (ac_try="$ac_link"
                   21512: case "(($ac_try" in
                   21513:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21514:   *) ac_try_echo=$ac_try;;
                   21515: esac
                   21516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21517:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21518:   ac_status=$?
1.25      millert  21519:   grep -v '^ *+' conftest.er1 >conftest.err
                   21520:   rm -f conftest.er1
                   21521:   cat conftest.err >&5
1.16      millert  21522:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21523:   (exit $ac_status); } && {
                   21524:         test -z "$ac_c_werror_flag" ||
                   21525:         test ! -s conftest.err
                   21526:        } && test -s conftest$ac_exeext &&
                   21527:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21528:   ac_cv_lib_skey_skeyaccess=yes
1.9       millert  21529: else
                   21530:   echo "$as_me: failed program was:" >&5
1.16      millert  21531: sed 's/^/| /' conftest.$ac_ext >&5
                   21532:
1.37    ! millert  21533:        ac_cv_lib_skey_skeyaccess=no
1.1       millert  21534: fi
                   21535:
1.37    ! millert  21536: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          21537:       conftest$ac_exeext conftest.$ac_ext
        !          21538: LIBS=$ac_check_lib_save_LIBS
        !          21539: fi
        !          21540: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
        !          21541: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
        !          21542: if test $ac_cv_lib_skey_skeyaccess = yes; then
        !          21543:   cat >>confdefs.h <<\_ACEOF
        !          21544: #define HAVE_SKEYACCESS 1
        !          21545: _ACEOF
1.27      millert  21546:
1.1       millert  21547: fi
                   21548:
1.37    ! millert  21549:     LDFLAGS="$O_LDFLAGS"
        !          21550:     SUDO_LIBS="${SUDO_LIBS} -lskey"
        !          21551:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.1       millert  21552: fi
                   21553:
1.37    ! millert  21554: if test ${with_opie-'no'} = "yes"; then
1.25      millert  21555:     O_LDFLAGS="$LDFLAGS"
1.37    ! millert  21556:     if test "$with_opie" != "yes"; then
        !          21557:        CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.25      millert  21558:
                   21559:     if test X"$with_rpath" = X"yes"; then
1.37    ! millert  21560:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25      millert  21561:     else
1.37    ! millert  21562:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25      millert  21563:     fi
                   21564:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
1.37    ! millert  21565:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  21566:     fi
                   21567:
                   21568:
                   21569:     if test X"$with_rpath" = X"yes"; then
1.37    ! millert  21570:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25      millert  21571:     else
1.37    ! millert  21572:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25      millert  21573:     fi
                   21574:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37    ! millert  21575:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  21576:     fi
                   21577:
                   21578:        cat >conftest.$ac_ext <<_ACEOF
1.37    ! millert  21579: #include <opie.h>
1.16      millert  21580: _ACEOF
1.27      millert  21581: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21582: case "(($ac_try" in
                   21583:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21584:   *) ac_try_echo=$ac_try;;
                   21585: esac
                   21586: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21587:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  21588:   ac_status=$?
1.25      millert  21589:   grep -v '^ *+' conftest.er1 >conftest.err
                   21590:   rm -f conftest.er1
                   21591:   cat conftest.err >&5
1.16      millert  21592:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21593:   (exit $ac_status); } >/dev/null && {
                   21594:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21595:         test ! -s conftest.err
                   21596:        }; then
1.25      millert  21597:   found=yes
                   21598: else
                   21599:   echo "$as_me: failed program was:" >&5
                   21600: sed 's/^/| /' conftest.$ac_ext >&5
                   21601:
                   21602:   found=no
                   21603: fi
1.27      millert  21604:
1.25      millert  21605: rm -f conftest.err conftest.$ac_ext
                   21606:     else
                   21607:        found=no
                   21608:        O_CPPFLAGS="$CPPFLAGS"
                   21609:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21610:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21611:            cat >conftest.$ac_ext <<_ACEOF
1.37    ! millert  21612: #include <opie.h>
1.25      millert  21613: _ACEOF
1.27      millert  21614: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21615: case "(($ac_try" in
                   21616:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21617:   *) ac_try_echo=$ac_try;;
                   21618: esac
                   21619: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21620:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  21621:   ac_status=$?
1.25      millert  21622:   grep -v '^ *+' conftest.er1 >conftest.err
                   21623:   rm -f conftest.er1
                   21624:   cat conftest.err >&5
1.16      millert  21625:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21626:   (exit $ac_status); } >/dev/null && {
                   21627:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21628:         test ! -s conftest.err
                   21629:        }; then
1.25      millert  21630:   found=yes; break
1.9       millert  21631: else
                   21632:   echo "$as_me: failed program was:" >&5
1.16      millert  21633: sed 's/^/| /' conftest.$ac_ext >&5
                   21634:
1.25      millert  21635:
1.9       millert  21636: fi
1.27      millert  21637:
1.25      millert  21638: rm -f conftest.err conftest.$ac_ext
                   21639:        done
                   21640:        if test "$found" = "no" -o -z "$dir"; then
                   21641:            CPPFLAGS="$O_CPPFLAGS"
                   21642:        else
                   21643:
                   21644:     if test X"$with_rpath" = X"yes"; then
                   21645:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21646:     else
                   21647:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   21648:     fi
                   21649:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21650:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21651:     fi
1.1       millert  21652:
                   21653:
1.25      millert  21654:     if test X"$with_rpath" = X"yes"; then
                   21655:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21656:     else
                   21657:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   21658:     fi
                   21659:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21660:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21661:     fi
1.1       millert  21662:
1.25      millert  21663:        fi
                   21664:     fi
                   21665:     if test "$found" = "no"; then
1.37    ! millert  21666:        { 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
        !          21667: 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  21668:     fi
1.37    ! millert  21669:     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
        !          21670: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
        !          21671: if test "${ac_cv_lib_opie_main+set}" = set; then
1.9       millert  21672:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21673: else
1.25      millert  21674:   ac_check_lib_save_LIBS=$LIBS
1.37    ! millert  21675: LIBS="-lopie  $LIBS"
        !          21676: cat >conftest.$ac_ext <<_ACEOF
        !          21677: /* confdefs.h.  */
        !          21678: _ACEOF
        !          21679: cat confdefs.h >>conftest.$ac_ext
        !          21680: cat >>conftest.$ac_ext <<_ACEOF
        !          21681: /* end confdefs.h.  */
        !          21682:
        !          21683:
        !          21684: int
        !          21685: main ()
        !          21686: {
        !          21687: return main ();
        !          21688:   ;
        !          21689:   return 0;
        !          21690: }
        !          21691: _ACEOF
        !          21692: rm -f conftest.$ac_objext conftest$ac_exeext
        !          21693: if { (ac_try="$ac_link"
        !          21694: case "(($ac_try" in
        !          21695:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          21696:   *) ac_try_echo=$ac_try;;
        !          21697: esac
        !          21698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          21699:   (eval "$ac_link") 2>conftest.er1
        !          21700:   ac_status=$?
        !          21701:   grep -v '^ *+' conftest.er1 >conftest.err
        !          21702:   rm -f conftest.er1
        !          21703:   cat conftest.err >&5
        !          21704:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          21705:   (exit $ac_status); } && {
        !          21706:         test -z "$ac_c_werror_flag" ||
        !          21707:         test ! -s conftest.err
        !          21708:        } && test -s conftest$ac_exeext &&
        !          21709:        $as_test_x conftest$ac_exeext; then
        !          21710:   ac_cv_lib_opie_main=yes
        !          21711: else
        !          21712:   echo "$as_me: failed program was:" >&5
        !          21713: sed 's/^/| /' conftest.$ac_ext >&5
        !          21714:
        !          21715:        ac_cv_lib_opie_main=no
        !          21716: fi
        !          21717:
        !          21718: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          21719:       conftest$ac_exeext conftest.$ac_ext
        !          21720: LIBS=$ac_check_lib_save_LIBS
        !          21721: fi
        !          21722: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
        !          21723: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
        !          21724: if test $ac_cv_lib_opie_main = yes; then
        !          21725:   found=yes
        !          21726: else
        !          21727:   { 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
        !          21728: 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;}
        !          21729: fi
        !          21730:
        !          21731:     LDFLAGS="$O_LDFLAGS"
        !          21732:     SUDO_LIBS="${SUDO_LIBS} -lopie"
        !          21733:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
        !          21734: fi
        !          21735:
        !          21736: if test ${with_passwd-'no'} != "no"; then
        !          21737:                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
        !          21738:        { echo "$as_me:$LINENO: checking for library containing crypt" >&5
        !          21739: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
        !          21740: if test "${ac_cv_search_crypt+set}" = set; then
        !          21741:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          21742: else
        !          21743:   ac_func_search_save_LIBS=$LIBS
1.25      millert  21744: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21745: /* confdefs.h.  */
1.37    ! millert  21746: _ACEOF
        !          21747: cat confdefs.h >>conftest.$ac_ext
        !          21748: cat >>conftest.$ac_ext <<_ACEOF
        !          21749: /* end confdefs.h.  */
        !          21750:
        !          21751: /* Override any GCC internal prototype to avoid an error.
        !          21752:    Use char because int might match the return type of a GCC
        !          21753:    builtin and then its argument prototype would still apply.  */
        !          21754: #ifdef __cplusplus
        !          21755: extern "C"
        !          21756: #endif
        !          21757: char crypt ();
        !          21758: int
        !          21759: main ()
        !          21760: {
        !          21761: return crypt ();
        !          21762:   ;
        !          21763:   return 0;
        !          21764: }
        !          21765: _ACEOF
        !          21766: for ac_lib in '' crypt crypt_d ufc; do
        !          21767:   if test -z "$ac_lib"; then
        !          21768:     ac_res="none required"
        !          21769:   else
        !          21770:     ac_res=-l$ac_lib
        !          21771:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
        !          21772:   fi
        !          21773:   rm -f conftest.$ac_objext conftest$ac_exeext
        !          21774: if { (ac_try="$ac_link"
        !          21775: case "(($ac_try" in
        !          21776:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          21777:   *) ac_try_echo=$ac_try;;
        !          21778: esac
        !          21779: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          21780:   (eval "$ac_link") 2>conftest.er1
        !          21781:   ac_status=$?
        !          21782:   grep -v '^ *+' conftest.er1 >conftest.err
        !          21783:   rm -f conftest.er1
        !          21784:   cat conftest.err >&5
        !          21785:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          21786:   (exit $ac_status); } && {
        !          21787:         test -z "$ac_c_werror_flag" ||
        !          21788:         test ! -s conftest.err
        !          21789:        } && test -s conftest$ac_exeext &&
        !          21790:        $as_test_x conftest$ac_exeext; then
        !          21791:   ac_cv_search_crypt=$ac_res
        !          21792: else
        !          21793:   echo "$as_me: failed program was:" >&5
        !          21794: sed 's/^/| /' conftest.$ac_ext >&5
        !          21795:
        !          21796:
        !          21797: fi
        !          21798:
        !          21799: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          21800:       conftest$ac_exeext
        !          21801:   if test "${ac_cv_search_crypt+set}" = set; then
        !          21802:   break
        !          21803: fi
        !          21804: done
        !          21805: if test "${ac_cv_search_crypt+set}" = set; then
        !          21806:   :
        !          21807: else
        !          21808:   ac_cv_search_crypt=no
        !          21809: fi
        !          21810: rm conftest.$ac_ext
        !          21811: LIBS=$ac_func_search_save_LIBS
        !          21812: fi
        !          21813: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
        !          21814: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
        !          21815: ac_res=$ac_cv_search_crypt
        !          21816: if test "$ac_res" != no; then
        !          21817:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
        !          21818:   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
        !          21819: fi
        !          21820:
        !          21821:     fi
        !          21822:
        !          21823:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
        !          21824:        _LIBS="$LIBS"
        !          21825:        LIBS="$LIBS $shadow_libs"
        !          21826:        found=no
        !          21827:
        !          21828: for ac_func in $shadow_funcs
        !          21829: do
        !          21830: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          21831: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          21832: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          21833: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
        !          21834:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          21835: else
        !          21836:   cat >conftest.$ac_ext <<_ACEOF
        !          21837: /* confdefs.h.  */
        !          21838: _ACEOF
        !          21839: cat confdefs.h >>conftest.$ac_ext
        !          21840: cat >>conftest.$ac_ext <<_ACEOF
        !          21841: /* end confdefs.h.  */
        !          21842: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          21843:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          21844: #define $ac_func innocuous_$ac_func
        !          21845:
        !          21846: /* System header to define __stub macros and hopefully few prototypes,
        !          21847:     which can conflict with char $ac_func (); below.
        !          21848:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          21849:     <limits.h> exists even on freestanding compilers.  */
        !          21850:
        !          21851: #ifdef __STDC__
        !          21852: # include <limits.h>
        !          21853: #else
        !          21854: # include <assert.h>
        !          21855: #endif
        !          21856:
        !          21857: #undef $ac_func
        !          21858:
        !          21859: /* Override any GCC internal prototype to avoid an error.
        !          21860:    Use char because int might match the return type of a GCC
        !          21861:    builtin and then its argument prototype would still apply.  */
        !          21862: #ifdef __cplusplus
        !          21863: extern "C"
        !          21864: #endif
        !          21865: char $ac_func ();
        !          21866: /* The GNU C library defines this for functions which it implements
        !          21867:     to always fail with ENOSYS.  Some functions are actually named
        !          21868:     something starting with __ and the normal name is an alias.  */
        !          21869: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          21870: choke me
        !          21871: #endif
1.1       millert  21872:
1.9       millert  21873: int
                   21874: main ()
                   21875: {
1.37    ! millert  21876: return $ac_func ();
1.9       millert  21877:   ;
                   21878:   return 0;
                   21879: }
                   21880: _ACEOF
                   21881: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21882: if { (ac_try="$ac_link"
                   21883: case "(($ac_try" in
                   21884:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21885:   *) ac_try_echo=$ac_try;;
                   21886: esac
                   21887: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21888:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21889:   ac_status=$?
1.25      millert  21890:   grep -v '^ *+' conftest.er1 >conftest.err
                   21891:   rm -f conftest.er1
                   21892:   cat conftest.err >&5
1.16      millert  21893:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21894:   (exit $ac_status); } && {
                   21895:         test -z "$ac_c_werror_flag" ||
                   21896:         test ! -s conftest.err
                   21897:        } && test -s conftest$ac_exeext &&
                   21898:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21899:   eval "$as_ac_var=yes"
1.1       millert  21900: else
1.9       millert  21901:   echo "$as_me: failed program was:" >&5
1.16      millert  21902: sed 's/^/| /' conftest.$ac_ext >&5
                   21903:
1.37    ! millert  21904:        eval "$as_ac_var=no"
1.18      millert  21905: fi
                   21906:
1.27      millert  21907: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21908:       conftest$ac_exeext conftest.$ac_ext
                   21909: fi
1.37    ! millert  21910: ac_res=`eval echo '${'$as_ac_var'}'`
        !          21911:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          21912: echo "${ECHO_T}$ac_res" >&6; }
        !          21913: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          21914:   cat >>confdefs.h <<_ACEOF
        !          21915: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          21916: _ACEOF
        !          21917:  found=yes
1.27      millert  21918: fi
1.37    ! millert  21919: done
        !          21920:
        !          21921:        if test "$found" = "yes"; then
        !          21922:            SUDO_LIBS="$SUDO_LIBS $shadow_libs"
        !          21923:        elif test -n "$shadow_libs_optional"; then
        !          21924:            LIBS="$LIBS $shadow_libs_optional"
1.18      millert  21925:
1.37    ! millert  21926: for ac_func in $shadow_funcs
        !          21927: do
        !          21928: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          21929: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          21930: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          21931: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  21932:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21933: else
1.37    ! millert  21934:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  21935: /* confdefs.h.  */
                   21936: _ACEOF
                   21937: cat confdefs.h >>conftest.$ac_ext
                   21938: cat >>conftest.$ac_ext <<_ACEOF
                   21939: /* end confdefs.h.  */
1.37    ! millert  21940: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          21941:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          21942: #define $ac_func innocuous_$ac_func
        !          21943:
        !          21944: /* System header to define __stub macros and hopefully few prototypes,
        !          21945:     which can conflict with char $ac_func (); below.
        !          21946:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          21947:     <limits.h> exists even on freestanding compilers.  */
        !          21948:
        !          21949: #ifdef __STDC__
        !          21950: # include <limits.h>
        !          21951: #else
        !          21952: # include <assert.h>
        !          21953: #endif
        !          21954:
        !          21955: #undef $ac_func
1.18      millert  21956:
1.27      millert  21957: /* Override any GCC internal prototype to avoid an error.
                   21958:    Use char because int might match the return type of a GCC
                   21959:    builtin and then its argument prototype would still apply.  */
1.25      millert  21960: #ifdef __cplusplus
                   21961: extern "C"
                   21962: #endif
1.37    ! millert  21963: char $ac_func ();
        !          21964: /* The GNU C library defines this for functions which it implements
        !          21965:     to always fail with ENOSYS.  Some functions are actually named
        !          21966:     something starting with __ and the normal name is an alias.  */
        !          21967: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          21968: choke me
        !          21969: #endif
        !          21970:
1.18      millert  21971: int
                   21972: main ()
                   21973: {
1.37    ! millert  21974: return $ac_func ();
1.18      millert  21975:   ;
                   21976:   return 0;
                   21977: }
                   21978: _ACEOF
                   21979: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21980: if { (ac_try="$ac_link"
                   21981: case "(($ac_try" in
                   21982:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21983:   *) ac_try_echo=$ac_try;;
                   21984: esac
                   21985: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21986:   (eval "$ac_link") 2>conftest.er1
1.18      millert  21987:   ac_status=$?
1.25      millert  21988:   grep -v '^ *+' conftest.er1 >conftest.err
                   21989:   rm -f conftest.er1
                   21990:   cat conftest.err >&5
1.18      millert  21991:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21992:   (exit $ac_status); } && {
                   21993:         test -z "$ac_c_werror_flag" ||
                   21994:         test ! -s conftest.err
                   21995:        } && test -s conftest$ac_exeext &&
                   21996:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  21997:   eval "$as_ac_var=yes"
1.18      millert  21998: else
                   21999:   echo "$as_me: failed program was:" >&5
                   22000: sed 's/^/| /' conftest.$ac_ext >&5
                   22001:
1.37    ! millert  22002:        eval "$as_ac_var=no"
1.25      millert  22003: fi
1.27      millert  22004:
                   22005: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22006:       conftest$ac_exeext conftest.$ac_ext
1.18      millert  22007: fi
1.37    ! millert  22008: ac_res=`eval echo '${'$as_ac_var'}'`
        !          22009:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          22010: echo "${ECHO_T}$ac_res" >&6; }
        !          22011: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          22012:   cat >>confdefs.h <<_ACEOF
        !          22013: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  22014: _ACEOF
1.37    ! millert  22015:  found=yes
1.27      millert  22016: fi
1.37    ! millert  22017: done
1.25      millert  22018:
1.37    ! millert  22019:            if test "$found" = "yes"; then
        !          22020:                SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
        !          22021:            fi
        !          22022:        fi
        !          22023:        if test "$found" = "yes"; then
        !          22024:            case "$shadow_funcs" in
        !          22025:                *getprpwnam*) SECUREWARE=1;;
        !          22026:            esac
        !          22027:            test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
1.27      millert  22028:        else
1.37    ! millert  22029:            LIBS="$_LIBS"
1.27      millert  22030:        fi
1.37    ! millert  22031:        CHECKSHADOW=false
1.27      millert  22032:     fi
1.37    ! millert  22033:     if test "$CHECKSHADOW" = "true"; then
        !          22034:        { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
        !          22035: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
        !          22036: if test "${ac_cv_search_getspnam+set}" = set; then
1.27      millert  22037:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22038: else
1.37    ! millert  22039:   ac_func_search_save_LIBS=$LIBS
1.27      millert  22040: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22041: /* confdefs.h.  */
                   22042: _ACEOF
                   22043: cat confdefs.h >>conftest.$ac_ext
                   22044: cat >>conftest.$ac_ext <<_ACEOF
                   22045: /* end confdefs.h.  */
1.27      millert  22046:
1.37    ! millert  22047: /* Override any GCC internal prototype to avoid an error.
        !          22048:    Use char because int might match the return type of a GCC
        !          22049:    builtin and then its argument prototype would still apply.  */
        !          22050: #ifdef __cplusplus
        !          22051: extern "C"
        !          22052: #endif
        !          22053: char getspnam ();
1.17      millert  22054: int
                   22055: main ()
                   22056: {
1.37    ! millert  22057: return getspnam ();
1.17      millert  22058:   ;
                   22059:   return 0;
                   22060: }
                   22061: _ACEOF
1.37    ! millert  22062: for ac_lib in '' gen; do
        !          22063:   if test -z "$ac_lib"; then
        !          22064:     ac_res="none required"
        !          22065:   else
        !          22066:     ac_res=-l$ac_lib
        !          22067:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
        !          22068:   fi
        !          22069:   rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22070: if { (ac_try="$ac_link"
                   22071: case "(($ac_try" in
                   22072:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22073:   *) ac_try_echo=$ac_try;;
                   22074: esac
                   22075: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22076:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22077:   ac_status=$?
1.25      millert  22078:   grep -v '^ *+' conftest.er1 >conftest.err
                   22079:   rm -f conftest.er1
                   22080:   cat conftest.err >&5
1.17      millert  22081:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22082:   (exit $ac_status); } && {
                   22083:         test -z "$ac_c_werror_flag" ||
                   22084:         test ! -s conftest.err
                   22085:        } && test -s conftest$ac_exeext &&
                   22086:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22087:   ac_cv_search_getspnam=$ac_res
1.17      millert  22088: else
                   22089:   echo "$as_me: failed program was:" >&5
                   22090: sed 's/^/| /' conftest.$ac_ext >&5
                   22091:
1.37    ! millert  22092:
1.17      millert  22093: fi
1.27      millert  22094:
                   22095: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37    ! millert  22096:       conftest$ac_exeext
        !          22097:   if test "${ac_cv_search_getspnam+set}" = set; then
        !          22098:   break
1.27      millert  22099: fi
1.37    ! millert  22100: done
        !          22101: if test "${ac_cv_search_getspnam+set}" = set; then
        !          22102:   :
1.27      millert  22103: else
1.37    ! millert  22104:   ac_cv_search_getspnam=no
        !          22105: fi
        !          22106: rm conftest.$ac_ext
        !          22107: LIBS=$ac_func_search_save_LIBS
1.27      millert  22108: fi
1.37    ! millert  22109: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
        !          22110: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
        !          22111: ac_res=$ac_cv_search_getspnam
        !          22112: if test "$ac_res" != no; then
        !          22113:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
        !          22114:   cat >>confdefs.h <<\_ACEOF
        !          22115: #define HAVE_GETSPNAM 1
        !          22116: _ACEOF
        !          22117:  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.27      millert  22118: fi
                   22119:
1.37    ! millert  22120:     fi
        !          22121:     if test "$CHECKSHADOW" = "true"; then
        !          22122:        { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
        !          22123: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
        !          22124: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22125:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22126: else
                   22127:   ac_func_search_save_LIBS=$LIBS
                   22128: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22129: /* confdefs.h.  */
                   22130: _ACEOF
                   22131: cat confdefs.h >>conftest.$ac_ext
                   22132: cat >>conftest.$ac_ext <<_ACEOF
                   22133: /* end confdefs.h.  */
1.27      millert  22134:
                   22135: /* Override any GCC internal prototype to avoid an error.
                   22136:    Use char because int might match the return type of a GCC
                   22137:    builtin and then its argument prototype would still apply.  */
                   22138: #ifdef __cplusplus
                   22139: extern "C"
                   22140: #endif
1.37    ! millert  22141: char getprpwnam ();
1.17      millert  22142: int
                   22143: main ()
                   22144: {
1.37    ! millert  22145: return getprpwnam ();
1.17      millert  22146:   ;
                   22147:   return 0;
                   22148: }
                   22149: _ACEOF
1.37    ! millert  22150: for ac_lib in '' sec security prot; do
1.27      millert  22151:   if test -z "$ac_lib"; then
                   22152:     ac_res="none required"
                   22153:   else
                   22154:     ac_res=-l$ac_lib
                   22155:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22156:   fi
                   22157:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22158: if { (ac_try="$ac_link"
                   22159: case "(($ac_try" in
                   22160:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22161:   *) ac_try_echo=$ac_try;;
                   22162: esac
                   22163: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22164:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22165:   ac_status=$?
1.25      millert  22166:   grep -v '^ *+' conftest.er1 >conftest.err
                   22167:   rm -f conftest.er1
                   22168:   cat conftest.err >&5
1.17      millert  22169:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22170:   (exit $ac_status); } && {
                   22171:         test -z "$ac_c_werror_flag" ||
                   22172:         test ! -s conftest.err
                   22173:        } && test -s conftest$ac_exeext &&
                   22174:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22175:   ac_cv_search_getprpwnam=$ac_res
1.17      millert  22176: else
                   22177:   echo "$as_me: failed program was:" >&5
                   22178: sed 's/^/| /' conftest.$ac_ext >&5
                   22179:
1.25      millert  22180:
1.27      millert  22181: fi
1.25      millert  22182:
1.27      millert  22183: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22184:       conftest$ac_exeext
1.37    ! millert  22185:   if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22186:   break
                   22187: fi
                   22188: done
1.37    ! millert  22189: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22190:   :
                   22191: else
1.37    ! millert  22192:   ac_cv_search_getprpwnam=no
1.27      millert  22193: fi
                   22194: rm conftest.$ac_ext
                   22195: LIBS=$ac_func_search_save_LIBS
                   22196: fi
1.37    ! millert  22197: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
        !          22198: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
        !          22199: ac_res=$ac_cv_search_getprpwnam
1.27      millert  22200: if test "$ac_res" != no; then
                   22201:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37    ! millert  22202:   cat >>confdefs.h <<\_ACEOF
        !          22203: #define HAVE_GETPRPWNAM 1
        !          22204: _ACEOF
        !          22205:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17      millert  22206: fi
1.25      millert  22207:
1.27      millert  22208:     fi
1.37    ! millert  22209:     if test -n "$SECUREWARE"; then
        !          22210:
1.25      millert  22211:
1.17      millert  22212:
1.37    ! millert  22213: for ac_func in bigcrypt set_auth_parameters initprivs
1.25      millert  22214: do
                   22215: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  22216: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22217: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22218: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17      millert  22219:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22220: else
1.25      millert  22221:   cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22222: /* confdefs.h.  */
                   22223: _ACEOF
                   22224: cat confdefs.h >>conftest.$ac_ext
                   22225: cat >>conftest.$ac_ext <<_ACEOF
                   22226: /* end confdefs.h.  */
1.25      millert  22227: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22228:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22229: #define $ac_func innocuous_$ac_func
                   22230:
                   22231: /* System header to define __stub macros and hopefully few prototypes,
                   22232:     which can conflict with char $ac_func (); below.
                   22233:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22234:     <limits.h> exists even on freestanding compilers.  */
                   22235:
                   22236: #ifdef __STDC__
                   22237: # include <limits.h>
                   22238: #else
                   22239: # include <assert.h>
                   22240: #endif
1.17      millert  22241:
1.25      millert  22242: #undef $ac_func
                   22243:
1.27      millert  22244: /* Override any GCC internal prototype to avoid an error.
                   22245:    Use char because int might match the return type of a GCC
                   22246:    builtin and then its argument prototype would still apply.  */
1.25      millert  22247: #ifdef __cplusplus
                   22248: extern "C"
                   22249: #endif
                   22250: char $ac_func ();
                   22251: /* The GNU C library defines this for functions which it implements
                   22252:     to always fail with ENOSYS.  Some functions are actually named
                   22253:     something starting with __ and the normal name is an alias.  */
1.27      millert  22254: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  22255: choke me
                   22256: #endif
1.17      millert  22257:
                   22258: int
                   22259: main ()
                   22260: {
1.27      millert  22261: return $ac_func ();
1.17      millert  22262:   ;
                   22263:   return 0;
                   22264: }
                   22265: _ACEOF
                   22266: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22267: if { (ac_try="$ac_link"
                   22268: case "(($ac_try" in
                   22269:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22270:   *) ac_try_echo=$ac_try;;
                   22271: esac
                   22272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22273:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22274:   ac_status=$?
1.25      millert  22275:   grep -v '^ *+' conftest.er1 >conftest.err
                   22276:   rm -f conftest.er1
                   22277:   cat conftest.err >&5
1.17      millert  22278:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22279:   (exit $ac_status); } && {
                   22280:         test -z "$ac_c_werror_flag" ||
                   22281:         test ! -s conftest.err
                   22282:        } && test -s conftest$ac_exeext &&
                   22283:        $as_test_x conftest$ac_exeext; then
1.25      millert  22284:   eval "$as_ac_var=yes"
1.17      millert  22285: else
                   22286:   echo "$as_me: failed program was:" >&5
                   22287: sed 's/^/| /' conftest.$ac_ext >&5
                   22288:
1.27      millert  22289:        eval "$as_ac_var=no"
1.17      millert  22290: fi
1.27      millert  22291:
                   22292: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22293:       conftest$ac_exeext conftest.$ac_ext
1.17      millert  22294: fi
1.27      millert  22295: ac_res=`eval echo '${'$as_ac_var'}'`
                   22296:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22297: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  22298: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22299:   cat >>confdefs.h <<_ACEOF
                   22300: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22301: _ACEOF
1.37    ! millert  22302:
1.17      millert  22303: fi
1.27      millert  22304: done
1.17      millert  22305:
1.37    ! millert  22306:        AUTH_OBJS="$AUTH_OBJS secureware.o"
        !          22307:     fi
        !          22308: fi
        !          22309:
        !          22310: if test ${with_ldap-'no'} != "no"; then
        !          22311:     _LDFLAGS="$LDFLAGS"
        !          22312:     if test "$with_ldap" != "yes"; then
        !          22313:
        !          22314:     if test X"$with_rpath" = X"yes"; then
        !          22315:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
        !          22316:     else
        !          22317:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
        !          22318:     fi
        !          22319:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
        !          22320:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
        !          22321:     fi
        !          22322:
        !          22323:
        !          22324:     if test X"$with_rpath" = X"yes"; then
        !          22325:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
        !          22326:     else
        !          22327:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
        !          22328:     fi
        !          22329:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
        !          22330:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
        !          22331:     fi
        !          22332:
        !          22333:        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
        !          22334:        with_ldap=yes
        !          22335:        LDAP=""
        !          22336:     fi
        !          22337:     SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17      millert  22338:
1.37    ! millert  22339:     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
        !          22340: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
        !          22341:     LDAP_LIBS=""
        !          22342:     _LIBS="$LIBS"
        !          22343:     found=no
        !          22344:     for l in -lldap -llber '-lssl -lcrypto'; do
        !          22345:        LIBS="${LIBS} $l"
        !          22346:        LDAP_LIBS="${LDAP_LIBS} $l"
        !          22347:        cat >conftest.$ac_ext <<_ACEOF
1.27      millert  22348: /* confdefs.h.  */
                   22349: _ACEOF
                   22350: cat confdefs.h >>conftest.$ac_ext
                   22351: cat >>conftest.$ac_ext <<_ACEOF
                   22352: /* end confdefs.h.  */
1.37    ! millert  22353: #include <sys/types.h>
        !          22354:        #include <lber.h>
        !          22355:        #include <ldap.h>
1.27      millert  22356: int
                   22357: main ()
                   22358: {
1.37    ! millert  22359: (void)ldap_init(0, 0)
1.27      millert  22360:   ;
                   22361:   return 0;
                   22362: }
1.17      millert  22363: _ACEOF
1.27      millert  22364: rm -f conftest.$ac_objext conftest$ac_exeext
                   22365: if { (ac_try="$ac_link"
                   22366: case "(($ac_try" in
                   22367:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22368:   *) ac_try_echo=$ac_try;;
                   22369: esac
                   22370: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22371:   (eval "$ac_link") 2>conftest.er1
                   22372:   ac_status=$?
                   22373:   grep -v '^ *+' conftest.er1 >conftest.err
                   22374:   rm -f conftest.er1
                   22375:   cat conftest.err >&5
                   22376:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22377:   (exit $ac_status); } && {
                   22378:         test -z "$ac_c_werror_flag" ||
                   22379:         test ! -s conftest.err
                   22380:        } && test -s conftest$ac_exeext &&
                   22381:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22382:   found=yes; break
1.27      millert  22383: else
                   22384:   echo "$as_me: failed program was:" >&5
                   22385: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  22386:
1.37    ! millert  22387:
1.27      millert  22388: fi
1.25      millert  22389:
1.27      millert  22390: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22391:       conftest$ac_exeext conftest.$ac_ext
1.37    ! millert  22392:     done
        !          22393:         if test "$found" = "no"; then
        !          22394:        LIBS="${_LIBS} -lldap"
        !          22395:        LDAP_LIBS="-lldap"
        !          22396:        { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
        !          22397: echo "${ECHO_T}not found, using -lldap" >&6; }
        !          22398:     else
        !          22399:        { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
        !          22400: echo "${ECHO_T}$LDAP_LIBS" >&6; }
1.27      millert  22401:     fi
1.37    ! millert  22402:         OLIBS="$LIBS"
        !          22403:     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
        !          22404: echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
        !          22405: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  22406:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  22407: else
1.27      millert  22408:   ac_func_search_save_LIBS=$LIBS
                   22409: cat >conftest.$ac_ext <<_ACEOF
                   22410: /* confdefs.h.  */
                   22411: _ACEOF
                   22412: cat confdefs.h >>conftest.$ac_ext
                   22413: cat >>conftest.$ac_ext <<_ACEOF
                   22414: /* end confdefs.h.  */
1.25      millert  22415:
1.27      millert  22416: /* Override any GCC internal prototype to avoid an error.
                   22417:    Use char because int might match the return type of a GCC
                   22418:    builtin and then its argument prototype would still apply.  */
                   22419: #ifdef __cplusplus
                   22420: extern "C"
                   22421: #endif
1.37    ! millert  22422: char ber_set_option ();
1.27      millert  22423: int
                   22424: main ()
                   22425: {
1.37    ! millert  22426: return ber_set_option ();
1.27      millert  22427:   ;
                   22428:   return 0;
                   22429: }
                   22430: _ACEOF
1.37    ! millert  22431: for ac_lib in '' lber; do
1.27      millert  22432:   if test -z "$ac_lib"; then
                   22433:     ac_res="none required"
1.25      millert  22434:   else
1.27      millert  22435:     ac_res=-l$ac_lib
                   22436:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1.25      millert  22437:   fi
1.27      millert  22438:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22439: if { (ac_try="$ac_link"
                   22440: case "(($ac_try" in
                   22441:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22442:   *) ac_try_echo=$ac_try;;
                   22443: esac
                   22444: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22445:   (eval "$ac_link") 2>conftest.er1
                   22446:   ac_status=$?
                   22447:   grep -v '^ *+' conftest.er1 >conftest.err
                   22448:   rm -f conftest.er1
                   22449:   cat conftest.err >&5
                   22450:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22451:   (exit $ac_status); } && {
                   22452:         test -z "$ac_c_werror_flag" ||
                   22453:         test ! -s conftest.err
                   22454:        } && test -s conftest$ac_exeext &&
                   22455:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22456:   ac_cv_search_ber_set_option=$ac_res
1.27      millert  22457: else
                   22458:   echo "$as_me: failed program was:" >&5
                   22459: sed 's/^/| /' conftest.$ac_ext >&5
                   22460:
1.25      millert  22461:
1.17      millert  22462: fi
                   22463:
1.27      millert  22464: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22465:       conftest$ac_exeext
1.37    ! millert  22466:   if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  22467:   break
                   22468: fi
                   22469: done
1.37    ! millert  22470: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  22471:   :
1.25      millert  22472: else
1.37    ! millert  22473:   ac_cv_search_ber_set_option=no
1.27      millert  22474: fi
                   22475: rm conftest.$ac_ext
                   22476: LIBS=$ac_func_search_save_LIBS
1.25      millert  22477: fi
1.37    ! millert  22478: { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
        !          22479: echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
        !          22480: ac_res=$ac_cv_search_ber_set_option
1.27      millert  22481: if test "$ac_res" != no; then
                   22482:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37    ! millert  22483:   found=yes
        !          22484: else
        !          22485:   found=no
1.17      millert  22486: fi
                   22487:
1.37    ! millert  22488:     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
        !          22489:        LDAP_LIBS="$LDAP_LIBS -llber"
1.27      millert  22490:     fi
1.37    ! millert  22491:         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
        !          22492: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
        !          22493:     cat >conftest.$ac_ext <<_ACEOF
1.27      millert  22494: /* confdefs.h.  */
                   22495: _ACEOF
                   22496: cat confdefs.h >>conftest.$ac_ext
                   22497: cat >>conftest.$ac_ext <<_ACEOF
                   22498: /* end confdefs.h.  */
1.37    ! millert  22499: #include <sys/types.h>
        !          22500:     #include <ldap.h>
1.27      millert  22501: int
                   22502: main ()
                   22503: {
1.37    ! millert  22504: (void)ldap_init(0, 0)
1.27      millert  22505:   ;
                   22506:   return 0;
1.23      millert  22507: }
1.27      millert  22508: _ACEOF
1.37    ! millert  22509: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22510: if { (ac_try="$ac_link"
                   22511: case "(($ac_try" in
                   22512:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22513:   *) ac_try_echo=$ac_try;;
                   22514: esac
                   22515: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22516:   (eval "$ac_link") 2>conftest.er1
                   22517:   ac_status=$?
                   22518:   grep -v '^ *+' conftest.er1 >conftest.err
                   22519:   rm -f conftest.er1
                   22520:   cat conftest.err >&5
                   22521:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22522:   (exit $ac_status); } && {
                   22523:         test -z "$ac_c_werror_flag" ||
                   22524:         test ! -s conftest.err
                   22525:        } && test -s conftest$ac_exeext &&
                   22526:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22527:   { echo "$as_me:$LINENO: result: no" >&5
        !          22528: echo "${ECHO_T}no" >&6; }
1.27      millert  22529: else
                   22530:   echo "$as_me: failed program was:" >&5
                   22531: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  22532:
                   22533:
1.37    ! millert  22534:     { echo "$as_me:$LINENO: result: yes" >&5
        !          22535: echo "${ECHO_T}yes" >&6; }
        !          22536:     cat >>confdefs.h <<\_ACEOF
        !          22537: #define HAVE_LBER_H 1
        !          22538: _ACEOF
        !          22539:
1.27      millert  22540: fi
1.23      millert  22541:
1.27      millert  22542: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37    ! millert  22543:       conftest$ac_exeext conftest.$ac_ext
        !          22544:
        !          22545:
        !          22546:
        !          22547:
        !          22548:
        !          22549:
        !          22550:
1.25      millert  22551:
                   22552:
                   22553:
                   22554:
1.37    ! millert  22555: for ac_func in ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s
1.27      millert  22556: do
                   22557: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22558: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22559: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22560: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   22561:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22562: else
                   22563:   cat >conftest.$ac_ext <<_ACEOF
                   22564: /* confdefs.h.  */
                   22565: _ACEOF
                   22566: cat confdefs.h >>conftest.$ac_ext
                   22567: cat >>conftest.$ac_ext <<_ACEOF
                   22568: /* end confdefs.h.  */
                   22569: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22570:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22571: #define $ac_func innocuous_$ac_func
1.25      millert  22572:
1.27      millert  22573: /* System header to define __stub macros and hopefully few prototypes,
                   22574:     which can conflict with char $ac_func (); below.
                   22575:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22576:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  22577:
1.27      millert  22578: #ifdef __STDC__
                   22579: # include <limits.h>
                   22580: #else
                   22581: # include <assert.h>
                   22582: #endif
1.25      millert  22583:
1.27      millert  22584: #undef $ac_func
1.23      millert  22585:
1.27      millert  22586: /* Override any GCC internal prototype to avoid an error.
                   22587:    Use char because int might match the return type of a GCC
                   22588:    builtin and then its argument prototype would still apply.  */
                   22589: #ifdef __cplusplus
                   22590: extern "C"
                   22591: #endif
                   22592: char $ac_func ();
                   22593: /* The GNU C library defines this for functions which it implements
                   22594:     to always fail with ENOSYS.  Some functions are actually named
                   22595:     something starting with __ and the normal name is an alias.  */
                   22596: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22597: choke me
                   22598: #endif
1.23      millert  22599:
1.27      millert  22600: int
                   22601: main ()
1.25      millert  22602: {
1.27      millert  22603: return $ac_func ();
                   22604:   ;
                   22605:   return 0;
                   22606: }
1.23      millert  22607: _ACEOF
1.27      millert  22608: rm -f conftest.$ac_objext conftest$ac_exeext
                   22609: if { (ac_try="$ac_link"
                   22610: case "(($ac_try" in
                   22611:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22612:   *) ac_try_echo=$ac_try;;
                   22613: esac
                   22614: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22615:   (eval "$ac_link") 2>conftest.er1
                   22616:   ac_status=$?
                   22617:   grep -v '^ *+' conftest.er1 >conftest.err
                   22618:   rm -f conftest.er1
                   22619:   cat conftest.err >&5
                   22620:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22621:   (exit $ac_status); } && {
                   22622:         test -z "$ac_c_werror_flag" ||
                   22623:         test ! -s conftest.err
                   22624:        } && test -s conftest$ac_exeext &&
1.37    ! millert  22625:        $as_test_x conftest$ac_exeext; then
        !          22626:   eval "$as_ac_var=yes"
        !          22627: else
        !          22628:   echo "$as_me: failed program was:" >&5
        !          22629: sed 's/^/| /' conftest.$ac_ext >&5
        !          22630:
        !          22631:        eval "$as_ac_var=no"
        !          22632: fi
        !          22633:
        !          22634: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          22635:       conftest$ac_exeext conftest.$ac_ext
        !          22636: fi
        !          22637: ac_res=`eval echo '${'$as_ac_var'}'`
        !          22638:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          22639: echo "${ECHO_T}$ac_res" >&6; }
        !          22640: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          22641:   cat >>confdefs.h <<_ACEOF
        !          22642: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          22643: _ACEOF
        !          22644:
        !          22645: fi
        !          22646: done
        !          22647:
        !          22648:
        !          22649: for ac_header in sasl/sasl.h
        !          22650: do
        !          22651: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          22652: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          22653:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          22654: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          22655: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          22656:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          22657: fi
        !          22658: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          22659:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          22660: echo "${ECHO_T}$ac_res" >&6; }
        !          22661: else
        !          22662:   # Is the header compilable?
        !          22663: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          22664: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
        !          22665: cat >conftest.$ac_ext <<_ACEOF
        !          22666: /* confdefs.h.  */
        !          22667: _ACEOF
        !          22668: cat confdefs.h >>conftest.$ac_ext
        !          22669: cat >>conftest.$ac_ext <<_ACEOF
        !          22670: /* end confdefs.h.  */
        !          22671: $ac_includes_default
        !          22672: #include <$ac_header>
        !          22673: _ACEOF
        !          22674: rm -f conftest.$ac_objext
        !          22675: if { (ac_try="$ac_compile"
        !          22676: case "(($ac_try" in
        !          22677:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          22678:   *) ac_try_echo=$ac_try;;
        !          22679: esac
        !          22680: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          22681:   (eval "$ac_compile") 2>conftest.er1
        !          22682:   ac_status=$?
        !          22683:   grep -v '^ *+' conftest.er1 >conftest.err
        !          22684:   rm -f conftest.er1
        !          22685:   cat conftest.err >&5
        !          22686:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          22687:   (exit $ac_status); } && {
        !          22688:         test -z "$ac_c_werror_flag" ||
        !          22689:         test ! -s conftest.err
        !          22690:        } && test -s conftest.$ac_objext; then
        !          22691:   ac_header_compiler=yes
        !          22692: else
        !          22693:   echo "$as_me: failed program was:" >&5
        !          22694: sed 's/^/| /' conftest.$ac_ext >&5
        !          22695:
        !          22696:        ac_header_compiler=no
        !          22697: fi
        !          22698:
        !          22699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          22700: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          22701: echo "${ECHO_T}$ac_header_compiler" >&6; }
        !          22702:
        !          22703: # Is the header present?
        !          22704: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          22705: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
        !          22706: cat >conftest.$ac_ext <<_ACEOF
        !          22707: /* confdefs.h.  */
        !          22708: _ACEOF
        !          22709: cat confdefs.h >>conftest.$ac_ext
        !          22710: cat >>conftest.$ac_ext <<_ACEOF
        !          22711: /* end confdefs.h.  */
        !          22712: #include <$ac_header>
        !          22713: _ACEOF
        !          22714: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          22715: case "(($ac_try" in
        !          22716:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          22717:   *) ac_try_echo=$ac_try;;
        !          22718: esac
        !          22719: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          22720:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          22721:   ac_status=$?
        !          22722:   grep -v '^ *+' conftest.er1 >conftest.err
        !          22723:   rm -f conftest.er1
        !          22724:   cat conftest.err >&5
        !          22725:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          22726:   (exit $ac_status); } >/dev/null && {
        !          22727:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
        !          22728:         test ! -s conftest.err
        !          22729:        }; then
        !          22730:   ac_header_preproc=yes
        !          22731: else
        !          22732:   echo "$as_me: failed program was:" >&5
        !          22733: sed 's/^/| /' conftest.$ac_ext >&5
        !          22734:
        !          22735:   ac_header_preproc=no
        !          22736: fi
        !          22737:
        !          22738: rm -f conftest.err conftest.$ac_ext
        !          22739: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          22740: echo "${ECHO_T}$ac_header_preproc" >&6; }
        !          22741:
        !          22742: # So?  What about this header?
        !          22743: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          22744:   yes:no: )
        !          22745:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          22746: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          22747:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          22748: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          22749:     ac_header_preproc=yes
        !          22750:     ;;
        !          22751:   no:yes:* )
        !          22752:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          22753: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          22754:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          22755: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          22756:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          22757: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          22758:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          22759: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          22760:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          22761: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          22762:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          22763: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
        !          22764:
        !          22765:     ;;
        !          22766: esac
        !          22767: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          22768: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          22769: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          22770:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          22771: else
        !          22772:   eval "$as_ac_Header=\$ac_header_preproc"
        !          22773: fi
        !          22774: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          22775:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          22776: echo "${ECHO_T}$ac_res" >&6; }
        !          22777:
        !          22778: fi
        !          22779: if test `eval echo '${'$as_ac_Header'}'` = yes; then
        !          22780:   cat >>confdefs.h <<_ACEOF
        !          22781: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          22782: _ACEOF
        !          22783:
        !          22784: fi
        !          22785:
        !          22786: done
        !          22787:
        !          22788:
        !          22789:
        !          22790: for ac_header in ldap_ssl.h mps/ldap_ssl.h
        !          22791: do
        !          22792: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          22793: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          22794: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          22795: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          22796:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          22797: else
        !          22798:   cat >conftest.$ac_ext <<_ACEOF
        !          22799: /* confdefs.h.  */
        !          22800: _ACEOF
        !          22801: cat confdefs.h >>conftest.$ac_ext
        !          22802: cat >>conftest.$ac_ext <<_ACEOF
        !          22803: /* end confdefs.h.  */
        !          22804: #include <ldap.h>
        !          22805:
        !          22806: #include <$ac_header>
        !          22807: _ACEOF
        !          22808: rm -f conftest.$ac_objext
        !          22809: if { (ac_try="$ac_compile"
        !          22810: case "(($ac_try" in
        !          22811:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          22812:   *) ac_try_echo=$ac_try;;
        !          22813: esac
        !          22814: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          22815:   (eval "$ac_compile") 2>conftest.er1
        !          22816:   ac_status=$?
        !          22817:   grep -v '^ *+' conftest.er1 >conftest.err
        !          22818:   rm -f conftest.er1
        !          22819:   cat conftest.err >&5
        !          22820:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          22821:   (exit $ac_status); } && {
        !          22822:         test -z "$ac_c_werror_flag" ||
        !          22823:         test ! -s conftest.err
        !          22824:        } && test -s conftest.$ac_objext; then
        !          22825:   eval "$as_ac_Header=yes"
1.27      millert  22826: else
                   22827:   echo "$as_me: failed program was:" >&5
                   22828: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  22829:
1.37    ! millert  22830:        eval "$as_ac_Header=no"
1.17      millert  22831: fi
1.23      millert  22832:
1.37    ! millert  22833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  22834: fi
1.37    ! millert  22835: ac_res=`eval echo '${'$as_ac_Header'}'`
1.27      millert  22836:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22837: echo "${ECHO_T}$ac_res" >&6; }
1.37    ! millert  22838: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.27      millert  22839:   cat >>confdefs.h <<_ACEOF
1.37    ! millert  22840: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.27      millert  22841: _ACEOF
1.37    ! millert  22842:  break
        !          22843: fi
1.17      millert  22844:
1.27      millert  22845: done
1.17      millert  22846:
                   22847:
1.37    ! millert  22848:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
        !          22849:        { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
        !          22850: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
        !          22851: if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
        !          22852:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          22853: else
        !          22854:   ac_check_lib_save_LIBS=$LIBS
        !          22855: LIBS="-lgssapi  $LIBS"
        !          22856: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  22857: /* confdefs.h.  */
1.25      millert  22858: _ACEOF
1.27      millert  22859: cat confdefs.h >>conftest.$ac_ext
                   22860: cat >>conftest.$ac_ext <<_ACEOF
                   22861: /* end confdefs.h.  */
1.37    ! millert  22862:
        !          22863: /* Override any GCC internal prototype to avoid an error.
        !          22864:    Use char because int might match the return type of a GCC
        !          22865:    builtin and then its argument prototype would still apply.  */
        !          22866: #ifdef __cplusplus
        !          22867: extern "C"
        !          22868: #endif
        !          22869: char gss_krb5_ccache_name ();
1.27      millert  22870: int
                   22871: main ()
                   22872: {
1.37    ! millert  22873: return gss_krb5_ccache_name ();
1.27      millert  22874:   ;
                   22875:   return 0;
                   22876: }
1.25      millert  22877: _ACEOF
1.27      millert  22878: rm -f conftest.$ac_objext conftest$ac_exeext
                   22879: if { (ac_try="$ac_link"
                   22880: case "(($ac_try" in
                   22881:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22882:   *) ac_try_echo=$ac_try;;
                   22883: esac
                   22884: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22885:   (eval "$ac_link") 2>conftest.er1
                   22886:   ac_status=$?
                   22887:   grep -v '^ *+' conftest.er1 >conftest.err
                   22888:   rm -f conftest.er1
                   22889:   cat conftest.err >&5
                   22890:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22891:   (exit $ac_status); } && {
                   22892:         test -z "$ac_c_werror_flag" ||
                   22893:         test ! -s conftest.err
                   22894:        } && test -s conftest$ac_exeext &&
                   22895:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22896:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
1.27      millert  22897: else
                   22898:   echo "$as_me: failed program was:" >&5
                   22899: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  22900:
1.37    ! millert  22901:        ac_cv_lib_gssapi_gss_krb5_ccache_name=no
1.17      millert  22902: fi
                   22903:
1.27      millert  22904: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22905:       conftest$ac_exeext conftest.$ac_ext
1.37    ! millert  22906: LIBS=$ac_check_lib_save_LIBS
        !          22907: fi
        !          22908: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
        !          22909: echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
        !          22910: if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
        !          22911:   cat >>confdefs.h <<\_ACEOF
        !          22912: #define HAVE_GSS_KRB5_CCACHE_NAME 1
        !          22913: _ACEOF
        !          22914:
        !          22915:            LDAP_LIBS="${LDAP_LIBS} -lgssapi"
        !          22916: else
        !          22917:   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
        !          22918: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
        !          22919: if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
1.35      millert  22920:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22921: else
1.37    ! millert  22922:   ac_check_lib_save_LIBS=$LIBS
        !          22923: LIBS="-lgssapi_krb5  $LIBS"
1.35      millert  22924: cat >conftest.$ac_ext <<_ACEOF
                   22925: /* confdefs.h.  */
                   22926: _ACEOF
                   22927: cat confdefs.h >>conftest.$ac_ext
                   22928: cat >>conftest.$ac_ext <<_ACEOF
                   22929: /* end confdefs.h.  */
                   22930:
                   22931: /* Override any GCC internal prototype to avoid an error.
                   22932:    Use char because int might match the return type of a GCC
                   22933:    builtin and then its argument prototype would still apply.  */
                   22934: #ifdef __cplusplus
                   22935: extern "C"
                   22936: #endif
1.37    ! millert  22937: char gss_krb5_ccache_name ();
1.35      millert  22938: int
                   22939: main ()
                   22940: {
1.37    ! millert  22941: return gss_krb5_ccache_name ();
1.35      millert  22942:   ;
                   22943:   return 0;
                   22944: }
                   22945: _ACEOF
1.37    ! millert  22946: rm -f conftest.$ac_objext conftest$ac_exeext
1.35      millert  22947: if { (ac_try="$ac_link"
                   22948: case "(($ac_try" in
                   22949:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22950:   *) ac_try_echo=$ac_try;;
                   22951: esac
                   22952: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22953:   (eval "$ac_link") 2>conftest.er1
                   22954:   ac_status=$?
                   22955:   grep -v '^ *+' conftest.er1 >conftest.err
                   22956:   rm -f conftest.er1
                   22957:   cat conftest.err >&5
                   22958:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22959:   (exit $ac_status); } && {
                   22960:         test -z "$ac_c_werror_flag" ||
                   22961:         test ! -s conftest.err
                   22962:        } && test -s conftest$ac_exeext &&
                   22963:        $as_test_x conftest$ac_exeext; then
1.37    ! millert  22964:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
1.35      millert  22965: else
                   22966:   echo "$as_me: failed program was:" >&5
                   22967: sed 's/^/| /' conftest.$ac_ext >&5
                   22968:
1.37    ! millert  22969:        ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
        !          22970: fi
        !          22971:
        !          22972: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          22973:       conftest$ac_exeext conftest.$ac_ext
        !          22974: LIBS=$ac_check_lib_save_LIBS
        !          22975: fi
        !          22976: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
        !          22977: echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
        !          22978: if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
        !          22979:   cat >>confdefs.h <<\_ACEOF
        !          22980: #define HAVE_GSS_KRB5_CCACHE_NAME 1
        !          22981: _ACEOF
1.35      millert  22982:
1.37    ! millert  22983:                LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
1.35      millert  22984: fi
                   22985:
1.37    ! millert  22986:
1.35      millert  22987: fi
1.37    ! millert  22988:
        !          22989:
        !          22990:        # gssapi headers may be separate or part of Kerberos V
        !          22991:        found=no
        !          22992:        O_CPPFLAGS="$CPPFLAGS"
        !          22993:        for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
        !          22994:            test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
        !          22995:            cat >conftest.$ac_ext <<_ACEOF
        !          22996: #include <gssapi/gssapi.h>
        !          22997: _ACEOF
        !          22998: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          22999: case "(($ac_try" in
        !          23000:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          23001:   *) ac_try_echo=$ac_try;;
        !          23002: esac
        !          23003: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          23004:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          23005:   ac_status=$?
        !          23006:   grep -v '^ *+' conftest.er1 >conftest.err
        !          23007:   rm -f conftest.er1
        !          23008:   cat conftest.err >&5
        !          23009:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          23010:   (exit $ac_status); } >/dev/null && {
        !          23011:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
        !          23012:         test ! -s conftest.err
        !          23013:        }; then
        !          23014:   found="gssapi/gssapi.h"; break
        !          23015: else
        !          23016:   echo "$as_me: failed program was:" >&5
        !          23017: sed 's/^/| /' conftest.$ac_ext >&5
        !          23018:
        !          23019:   cat >conftest.$ac_ext <<_ACEOF
        !          23020: #include <gssapi.h>
        !          23021: _ACEOF
        !          23022: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          23023: case "(($ac_try" in
        !          23024:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          23025:   *) ac_try_echo=$ac_try;;
        !          23026: esac
        !          23027: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          23028:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          23029:   ac_status=$?
        !          23030:   grep -v '^ *+' conftest.er1 >conftest.err
        !          23031:   rm -f conftest.er1
        !          23032:   cat conftest.err >&5
        !          23033:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          23034:   (exit $ac_status); } >/dev/null && {
        !          23035:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
        !          23036:         test ! -s conftest.err
        !          23037:        }; then
        !          23038:   found="gssapi.h"; break
1.35      millert  23039: else
1.37    ! millert  23040:   echo "$as_me: failed program was:" >&5
        !          23041: sed 's/^/| /' conftest.$ac_ext >&5
        !          23042:
        !          23043:
        !          23044: fi
        !          23045:
        !          23046: rm -f conftest.err conftest.$ac_ext
1.35      millert  23047: fi
1.37    ! millert  23048:
        !          23049: rm -f conftest.err conftest.$ac_ext
        !          23050:        done
        !          23051:        if test X"$found" != X"no"; then
        !          23052:
        !          23053: for ac_header in $found
        !          23054: do
        !          23055: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          23056: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          23057:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          23058: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          23059: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          23060:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.35      millert  23061: fi
1.37    ! millert  23062: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          23063:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          23064: echo "${ECHO_T}$ac_res" >&6; }
        !          23065: else
        !          23066:   # Is the header compilable?
        !          23067: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          23068: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
        !          23069: cat >conftest.$ac_ext <<_ACEOF
        !          23070: /* confdefs.h.  */
        !          23071: _ACEOF
        !          23072: cat confdefs.h >>conftest.$ac_ext
        !          23073: cat >>conftest.$ac_ext <<_ACEOF
        !          23074: /* end confdefs.h.  */
        !          23075: $ac_includes_default
        !          23076: #include <$ac_header>
        !          23077: _ACEOF
        !          23078: rm -f conftest.$ac_objext
        !          23079: if { (ac_try="$ac_compile"
        !          23080: case "(($ac_try" in
        !          23081:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          23082:   *) ac_try_echo=$ac_try;;
        !          23083: esac
        !          23084: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          23085:   (eval "$ac_compile") 2>conftest.er1
        !          23086:   ac_status=$?
        !          23087:   grep -v '^ *+' conftest.er1 >conftest.err
        !          23088:   rm -f conftest.er1
        !          23089:   cat conftest.err >&5
        !          23090:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          23091:   (exit $ac_status); } && {
        !          23092:         test -z "$ac_c_werror_flag" ||
        !          23093:         test ! -s conftest.err
        !          23094:        } && test -s conftest.$ac_objext; then
        !          23095:   ac_header_compiler=yes
1.35      millert  23096: else
1.37    ! millert  23097:   echo "$as_me: failed program was:" >&5
        !          23098: sed 's/^/| /' conftest.$ac_ext >&5
        !          23099:
        !          23100:        ac_header_compiler=no
1.35      millert  23101: fi
                   23102:
1.37    ! millert  23103: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          23104: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          23105: echo "${ECHO_T}$ac_header_compiler" >&6; }
        !          23106:
        !          23107: # Is the header present?
        !          23108: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          23109: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
        !          23110: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23111: /* confdefs.h.  */
1.17      millert  23112: _ACEOF
1.27      millert  23113: cat confdefs.h >>conftest.$ac_ext
                   23114: cat >>conftest.$ac_ext <<_ACEOF
                   23115: /* end confdefs.h.  */
1.37    ! millert  23116: #include <$ac_header>
1.25      millert  23117: _ACEOF
1.37    ! millert  23118: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  23119: case "(($ac_try" in
                   23120:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23121:   *) ac_try_echo=$ac_try;;
                   23122: esac
                   23123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  23124:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  23125:   ac_status=$?
                   23126:   grep -v '^ *+' conftest.er1 >conftest.err
                   23127:   rm -f conftest.er1
                   23128:   cat conftest.err >&5
                   23129:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  23130:   (exit $ac_status); } >/dev/null && {
        !          23131:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  23132:         test ! -s conftest.err
1.37    ! millert  23133:        }; then
        !          23134:   ac_header_preproc=yes
1.27      millert  23135: else
                   23136:   echo "$as_me: failed program was:" >&5
                   23137: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23138:
1.37    ! millert  23139:   ac_header_preproc=no
        !          23140: fi
        !          23141:
        !          23142: rm -f conftest.err conftest.$ac_ext
        !          23143: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          23144: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  23145:
1.37    ! millert  23146: # So?  What about this header?
        !          23147: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          23148:   yes:no: )
        !          23149:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          23150: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          23151:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          23152: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          23153:     ac_header_preproc=yes
        !          23154:     ;;
        !          23155:   no:yes:* )
        !          23156:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          23157: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          23158:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          23159: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          23160:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          23161: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          23162:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          23163: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          23164:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          23165: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          23166:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          23167: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1       millert  23168:
1.37    ! millert  23169:     ;;
        !          23170: esac
        !          23171: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          23172: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          23173: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          23174:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          23175: else
        !          23176:   eval "$as_ac_Header=\$ac_header_preproc"
1.25      millert  23177: fi
1.37    ! millert  23178: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          23179:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          23180: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  23181:
1.37    ! millert  23182: fi
        !          23183: if test `eval echo '${'$as_ac_Header'}'` = yes; then
        !          23184:   cat >>confdefs.h <<_ACEOF
        !          23185: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          23186: _ACEOF
1.1       millert  23187:
1.37    ! millert  23188: fi
1.1       millert  23189:
1.37    ! millert  23190: done
1.33      millert  23191:
1.37    ! millert  23192:            if test X"$found" = X"gssapi/gssapi.h"; then
1.35      millert  23193:
1.37    ! millert  23194: for ac_header in gssapi/gssapi_krb5.h
1.27      millert  23195: do
1.37    ! millert  23196: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          23197: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          23198:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          23199: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          23200: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  23201:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37    ! millert  23202: fi
        !          23203: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          23204:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          23205: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  23206: else
1.37    ! millert  23207:   # Is the header compilable?
        !          23208: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          23209: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
        !          23210: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23211: /* confdefs.h.  */
1.16      millert  23212: _ACEOF
1.27      millert  23213: cat confdefs.h >>conftest.$ac_ext
                   23214: cat >>conftest.$ac_ext <<_ACEOF
                   23215: /* end confdefs.h.  */
1.37    ! millert  23216: $ac_includes_default
        !          23217: #include <$ac_header>
1.27      millert  23218: _ACEOF
1.37    ! millert  23219: rm -f conftest.$ac_objext
        !          23220: if { (ac_try="$ac_compile"
1.27      millert  23221: case "(($ac_try" in
                   23222:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23223:   *) ac_try_echo=$ac_try;;
                   23224: esac
                   23225: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  23226:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  23227:   ac_status=$?
                   23228:   grep -v '^ *+' conftest.er1 >conftest.err
                   23229:   rm -f conftest.er1
                   23230:   cat conftest.err >&5
                   23231:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23232:   (exit $ac_status); } && {
                   23233:         test -z "$ac_c_werror_flag" ||
                   23234:         test ! -s conftest.err
1.37    ! millert  23235:        } && test -s conftest.$ac_objext; then
        !          23236:   ac_header_compiler=yes
1.27      millert  23237: else
                   23238:   echo "$as_me: failed program was:" >&5
                   23239: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  23240:
1.37    ! millert  23241:        ac_header_compiler=no
1.27      millert  23242: fi
1.17      millert  23243:
1.37    ! millert  23244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          23245: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          23246: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.17      millert  23247:
1.37    ! millert  23248: # Is the header present?
        !          23249: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          23250: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
        !          23251: cat >conftest.$ac_ext <<_ACEOF
1.35      millert  23252: /* confdefs.h.  */
                   23253: _ACEOF
                   23254: cat confdefs.h >>conftest.$ac_ext
                   23255: cat >>conftest.$ac_ext <<_ACEOF
                   23256: /* end confdefs.h.  */
                   23257: #include <$ac_header>
                   23258: _ACEOF
1.37    ! millert  23259: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.35      millert  23260: case "(($ac_try" in
                   23261:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23262:   *) ac_try_echo=$ac_try;;
                   23263: esac
                   23264: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37    ! millert  23265:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.35      millert  23266:   ac_status=$?
                   23267:   grep -v '^ *+' conftest.er1 >conftest.err
                   23268:   rm -f conftest.er1
                   23269:   cat conftest.err >&5
                   23270:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37    ! millert  23271:   (exit $ac_status); } >/dev/null && {
        !          23272:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.35      millert  23273:         test ! -s conftest.err
1.37    ! millert  23274:        }; then
        !          23275:   ac_header_preproc=yes
1.35      millert  23276: else
                   23277:   echo "$as_me: failed program was:" >&5
                   23278: sed 's/^/| /' conftest.$ac_ext >&5
                   23279:
1.37    ! millert  23280:   ac_header_preproc=no
1.35      millert  23281: fi
                   23282:
1.37    ! millert  23283: rm -f conftest.err conftest.$ac_ext
        !          23284: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          23285: echo "${ECHO_T}$ac_header_preproc" >&6; }
        !          23286:
        !          23287: # So?  What about this header?
        !          23288: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          23289:   yes:no: )
        !          23290:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          23291: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          23292:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          23293: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          23294:     ac_header_preproc=yes
        !          23295:     ;;
        !          23296:   no:yes:* )
        !          23297:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          23298: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          23299:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          23300: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          23301:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          23302: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          23303:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          23304: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          23305:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          23306: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          23307:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          23308: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
        !          23309:
        !          23310:     ;;
        !          23311: esac
        !          23312: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          23313: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          23314: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          23315:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          23316: else
        !          23317:   eval "$as_ac_Header=\$ac_header_preproc"
1.35      millert  23318: fi
                   23319: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23320:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23321: echo "${ECHO_T}$ac_res" >&6; }
1.37    ! millert  23322:
        !          23323: fi
1.35      millert  23324: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   23325:   cat >>confdefs.h <<_ACEOF
                   23326: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   23327: _ACEOF
1.37    ! millert  23328:
1.35      millert  23329: fi
                   23330:
1.27      millert  23331: done
1.17      millert  23332:
1.37    ! millert  23333:            fi
        !          23334:        else
        !          23335:            CPPFLAGS="$O_CPPFLAGS"
        !          23336:            { 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
        !          23337: 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;}
        !          23338:        fi
        !          23339:     fi
1.17      millert  23340:
1.36      millert  23341:     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
1.27      millert  23342:     LIBS="$_LIBS"
                   23343:     LDFLAGS="$_LDFLAGS"
                   23344: fi
1.17      millert  23345:
1.27      millert  23346: if test -n "$blibpath"; then
                   23347:     if test -n "$blibpath_add"; then
                   23348:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
                   23349:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   23350:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17      millert  23351:     fi
1.27      millert  23352: fi
                   23353:
                   23354: { echo "$as_me:$LINENO: checking for log file location" >&5
                   23355: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
                   23356: if test -n "$with_logpath"; then
                   23357:     { echo "$as_me:$LINENO: result: $with_logpath" >&5
                   23358: echo "${ECHO_T}$with_logpath" >&6; }
                   23359:     cat >>confdefs.h <<EOF
                   23360: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   23361: EOF
1.17      millert  23362:
1.27      millert  23363: elif test -d "/var/log"; then
                   23364:     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
                   23365: echo "${ECHO_T}/var/log/sudo.log" >&6; }
                   23366:     cat >>confdefs.h <<\EOF
                   23367: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   23368: EOF
1.17      millert  23369:
1.27      millert  23370: elif test -d "/var/adm"; then
                   23371:     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
                   23372: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
                   23373:     cat >>confdefs.h <<\EOF
                   23374: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   23375: EOF
1.17      millert  23376:
1.27      millert  23377: elif test -d "/usr/adm"; then
                   23378:     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
                   23379: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
                   23380:     cat >>confdefs.h <<\EOF
                   23381: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   23382: EOF
1.23      millert  23383:
                   23384: else
1.27      millert  23385:     { echo "$as_me:$LINENO: result: unknown" >&5
                   23386: echo "${ECHO_T}unknown" >&6; }
1.23      millert  23387: fi
                   23388:
1.27      millert  23389: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
                   23390: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
                   23391: if test -n "$with_timedir"; then
                   23392:     { echo "$as_me:$LINENO: result: $with_timedir" >&5
                   23393: echo "${ECHO_T}$with_timedir" >&6; }
                   23394:     cat >>confdefs.h <<EOF
                   23395: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   23396: EOF
1.23      millert  23397:
1.27      millert  23398:     timedir="$with_timedir"
                   23399: elif test -d "/var/run"; then
                   23400:     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
                   23401: echo "${ECHO_T}/var/run/sudo" >&6; }
                   23402:     cat >>confdefs.h <<\EOF
                   23403: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   23404: EOF
1.23      millert  23405:
1.27      millert  23406:     timedir="/var/run/sudo"
                   23407: elif test -d "/var/adm"; then
                   23408:     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
                   23409: echo "${ECHO_T}/var/adm/sudo" >&6; }
                   23410:     cat >>confdefs.h <<\EOF
                   23411: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
                   23412: EOF
1.23      millert  23413:
1.27      millert  23414:     timedir="/var/adm/sudo"
                   23415: else
                   23416:     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
                   23417: echo "${ECHO_T}/usr/adm/sudo" >&6; }
                   23418:     cat >>confdefs.h <<\EOF
                   23419: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
                   23420: EOF
1.23      millert  23421:
1.27      millert  23422:     timedir="/usr/adm/sudo"
                   23423: fi
1.23      millert  23424:
                   23425:
1.27      millert  23426: case "$with_passwd" in
                   23427: yes|maybe)
                   23428:     AUTH_OBJS="$AUTH_OBJS passwd.o"
                   23429:     ;;
                   23430: *)
                   23431:     cat >>confdefs.h <<\_ACEOF
                   23432: #define WITHOUT_PASSWD 1
1.23      millert  23433: _ACEOF
1.25      millert  23434:
1.27      millert  23435:     if test -z "$AUTH_OBJS"; then
                   23436:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
                   23437: echo "$as_me: error: no authentication methods defined." >&2;}
                   23438:    { (exit 1); exit 1; }; }
                   23439:     fi
                   23440:     ;;
                   23441: esac
                   23442: AUTH_OBJS=${AUTH_OBJS# }
                   23443: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   23444: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
                   23445: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25      millert  23446:
1.27      millert  23447: if test -n "$LIBS"; then
                   23448:     L="$LIBS"
                   23449:     LIBS=
                   23450:     for l in ${L}; do
                   23451:        dupe=0
                   23452:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   23453:            test $l = $sl && dupe=1
                   23454:        done
                   23455:        test $dupe = 0 && LIBS="${LIBS} $l"
                   23456:     done
                   23457: fi
1.23      millert  23458:
1.27      millert  23459: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23      millert  23460:
1.36      millert  23461: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
1.27      millert  23462:     oexec_prefix="$exec_prefix"
                   23463:     if test "$exec_prefix" = '$(prefix)'; then
                   23464:        if test "$prefix" = "NONE"; then
                   23465:            exec_prefix="$ac_default_prefix"
                   23466:        else
                   23467:            exec_prefix="$prefix"
                   23468:        fi
                   23469:     fi
1.36      millert  23470:     if test X"$with_noexec" != X"no"; then
                   23471:        PROGS="${PROGS} sudo_noexec.la"
                   23472:        INSTALL_NOEXEC="install-noexec"
                   23473:
                   23474:        eval noexec_file="$with_noexec"
1.23      millert  23475:
1.27      millert  23476: cat >>confdefs.h <<_ACEOF
                   23477: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16      millert  23478: _ACEOF
1.23      millert  23479:
1.36      millert  23480:     fi
                   23481:     if test X"$with_selinux" != X"no"; then
                   23482:        eval sesh_file="$libexecdir/sesh"
                   23483:
                   23484: cat >>confdefs.h <<_ACEOF
                   23485: #define _PATH_SUDO_SESH "$sesh_file"
                   23486: _ACEOF
                   23487:
                   23488:     fi
1.27      millert  23489:     exec_prefix="$oexec_prefix"
                   23490: fi
                   23491:
1.37    ! millert  23492: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
1.27      millert  23493:
                   23494: cat >confcache <<\_ACEOF
                   23495: # This file is a shell script that caches the results of configure
                   23496: # tests run on this system so they can be shared between configure
                   23497: # scripts and configure runs, see configure's option --config-cache.
                   23498: # It is not useful on other systems.  If it contains results you don't
                   23499: # want to keep, you may remove or edit it.
                   23500: #
                   23501: # config.status only pays attention to the cache file if you give it
                   23502: # the --recheck option to rerun configure.
1.25      millert  23503: #
1.27      millert  23504: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   23505: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   23506: # following values.
1.16      millert  23507:
1.23      millert  23508: _ACEOF
1.17      millert  23509:
1.27      millert  23510: # The following way of writing the cache mishandles newlines in values,
                   23511: # but we know of no workaround that is simple, portable, and efficient.
                   23512: # So, we kill variables containing newlines.
                   23513: # Ultrix sh set writes to stderr and can't be redirected directly,
                   23514: # and sets the high bit in the cache file unless we assign to the vars.
                   23515: (
                   23516:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   23517:     eval ac_val=\$$ac_var
                   23518:     case $ac_val in #(
                   23519:     *${as_nl}*)
                   23520:       case $ac_var in #(
                   23521:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   23522: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   23523:       esac
                   23524:       case $ac_var in #(
                   23525:       _ | IFS | as_nl) ;; #(
                   23526:       *) $as_unset $ac_var ;;
                   23527:       esac ;;
                   23528:     esac
                   23529:   done
1.1       millert  23530:
1.27      millert  23531:   (set) 2>&1 |
                   23532:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   23533:     *${as_nl}ac_space=\ *)
                   23534:       # `set' does not quote correctly, so add quotes (double-quote
                   23535:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   23536:       sed -n \
                   23537:        "s/'/'\\\\''/g;
                   23538:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   23539:       ;; #(
                   23540:     *)
                   23541:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   23542:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   23543:       ;;
                   23544:     esac |
                   23545:     sort
                   23546: ) |
                   23547:   sed '
                   23548:      /^ac_cv_env_/b end
                   23549:      t clear
                   23550:      :clear
                   23551:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   23552:      t end
                   23553:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   23554:      :end' >>confcache
                   23555: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   23556:   if test -w "$cache_file"; then
                   23557:     test "x$cache_file" != "x/dev/null" &&
                   23558:       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
                   23559: echo "$as_me: updating cache $cache_file" >&6;}
                   23560:     cat confcache >$cache_file
1.25      millert  23561:   else
1.27      millert  23562:     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
                   23563: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25      millert  23564:   fi
1.27      millert  23565: fi
                   23566: rm -f confcache
1.1       millert  23567:
1.27      millert  23568: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   23569: # Let make expand exec_prefix.
                   23570: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       millert  23571:
1.27      millert  23572: DEFS=-DHAVE_CONFIG_H
1.1       millert  23573:
1.27      millert  23574: ac_libobjs=
                   23575: ac_ltlibobjs=
                   23576: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   23577:   # 1. Remove the extension, and $U if already installed.
                   23578:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   23579:   ac_i=`echo "$ac_i" | sed "$ac_script"`
                   23580:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   23581:   #    will be set to the directory where LIBOBJS objects are built.
                   23582:   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   23583:   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
                   23584: done
                   23585: LIBOBJS=$ac_libobjs
1.1       millert  23586:
1.27      millert  23587: LTLIBOBJS=$ac_ltlibobjs
1.1       millert  23588:
                   23589:
                   23590:
1.27      millert  23591: : ${CONFIG_STATUS=./config.status}
                   23592: ac_clean_files_save=$ac_clean_files
                   23593: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   23594: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   23595: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   23596: cat >$CONFIG_STATUS <<_ACEOF
                   23597: #! $SHELL
                   23598: # Generated by $as_me.
                   23599: # Run this file to recreate the current configuration.
                   23600: # Compiler output produced by configure, useful for debugging
                   23601: # configure, is in config.log if it exists.
1.1       millert  23602:
1.27      millert  23603: debug=false
                   23604: ac_cs_recheck=false
                   23605: ac_cs_silent=false
                   23606: SHELL=\${CONFIG_SHELL-$SHELL}
                   23607: _ACEOF
1.23      millert  23608:
1.27      millert  23609: cat >>$CONFIG_STATUS <<\_ACEOF
                   23610: ## --------------------- ##
                   23611: ## M4sh Initialization.  ##
                   23612: ## --------------------- ##
1.23      millert  23613:
1.27      millert  23614: # Be more Bourne compatible
                   23615: DUALCASE=1; export DUALCASE # for MKS sh
                   23616: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   23617:   emulate sh
                   23618:   NULLCMD=:
                   23619:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   23620:   # is contrary to our usage.  Disable this feature.
                   23621:   alias -g '${1+"$@"}'='"$@"'
                   23622:   setopt NO_GLOB_SUBST
                   23623: else
                   23624:   case `(set -o) 2>/dev/null` in
                   23625:   *posix*) set -o posix ;;
                   23626: esac
1.25      millert  23627:
1.27      millert  23628: fi
1.25      millert  23629:
1.9       millert  23630:
                   23631:
1.1       millert  23632:
1.27      millert  23633: # PATH needs CR
                   23634: # Avoid depending upon Character Ranges.
                   23635: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   23636: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   23637: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   23638: as_cr_digits='0123456789'
                   23639: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       millert  23640:
1.27      millert  23641: # The user is always right.
                   23642: if test "${PATH_SEPARATOR+set}" != set; then
                   23643:   echo "#! /bin/sh" >conf$$.sh
                   23644:   echo  "exit 0"   >>conf$$.sh
                   23645:   chmod +x conf$$.sh
                   23646:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   23647:     PATH_SEPARATOR=';'
                   23648:   else
                   23649:     PATH_SEPARATOR=:
                   23650:   fi
                   23651:   rm -f conf$$.sh
                   23652: fi
1.1       millert  23653:
1.27      millert  23654: # Support unset when possible.
                   23655: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   23656:   as_unset=unset
                   23657: else
                   23658:   as_unset=false
                   23659: fi
1.1       millert  23660:
1.16      millert  23661:
1.27      millert  23662: # IFS
                   23663: # We need space, tab and new line, in precisely that order.  Quoting is
                   23664: # there to prevent editors from complaining about space-tab.
                   23665: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   23666: # splitting by setting IFS to empty value.)
                   23667: as_nl='
                   23668: '
                   23669: IFS=" ""       $as_nl"
1.16      millert  23670:
1.27      millert  23671: # Find who we are.  Look in the path if we contain no directory separator.
                   23672: case $0 in
                   23673:   *[\\/]* ) as_myself=$0 ;;
                   23674:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   23675: for as_dir in $PATH
                   23676: do
                   23677:   IFS=$as_save_IFS
                   23678:   test -z "$as_dir" && as_dir=.
                   23679:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   23680: done
                   23681: IFS=$as_save_IFS
1.16      millert  23682:
1.27      millert  23683:      ;;
                   23684: esac
                   23685: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   23686: # in which case we are not to be found in the path.
                   23687: if test "x$as_myself" = x; then
                   23688:   as_myself=$0
                   23689: fi
                   23690: if test ! -f "$as_myself"; then
                   23691:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   23692:   { (exit 1); exit 1; }
                   23693: fi
1.16      millert  23694:
1.27      millert  23695: # Work around bugs in pre-3.0 UWIN ksh.
                   23696: for as_var in ENV MAIL MAILPATH
                   23697: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   23698: done
                   23699: PS1='$ '
                   23700: PS2='> '
                   23701: PS4='+ '
1.9       millert  23702:
1.27      millert  23703: # NLS nuisances.
                   23704: for as_var in \
                   23705:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   23706:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   23707:   LC_TELEPHONE LC_TIME
                   23708: do
                   23709:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   23710:     eval $as_var=C; export $as_var
                   23711:   else
                   23712:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   23713:   fi
                   23714: done
1.9       millert  23715:
1.27      millert  23716: # Required to use basename.
                   23717: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   23718:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   23719:   as_expr=expr
                   23720: else
                   23721:   as_expr=false
                   23722: fi
1.16      millert  23723:
1.27      millert  23724: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   23725:   as_basename=basename
                   23726: else
                   23727:   as_basename=false
                   23728: fi
1.9       millert  23729:
1.16      millert  23730:
1.27      millert  23731: # Name of the executable.
                   23732: as_me=`$as_basename -- "$0" ||
                   23733: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   23734:         X"$0" : 'X\(//\)$' \| \
                   23735:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   23736: echo X/"$0" |
                   23737:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   23738:            s//\1/
                   23739:            q
                   23740:          }
                   23741:          /^X\/\(\/\/\)$/{
                   23742:            s//\1/
                   23743:            q
                   23744:          }
                   23745:          /^X\/\(\/\).*/{
                   23746:            s//\1/
                   23747:            q
                   23748:          }
                   23749:          s/.*/./; q'`
1.16      millert  23750:
1.27      millert  23751: # CDPATH.
                   23752: $as_unset CDPATH
1.16      millert  23753:
                   23754:
                   23755:
1.27      millert  23756:   as_lineno_1=$LINENO
                   23757:   as_lineno_2=$LINENO
                   23758:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   23759:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16      millert  23760:
1.27      millert  23761:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   23762:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   23763:   # line-number line after each line using $LINENO; the second 'sed'
                   23764:   # does the real work.  The second script uses 'N' to pair each
                   23765:   # line-number line with the line containing $LINENO, and appends
                   23766:   # trailing '-' during substitution so that $LINENO is not a special
                   23767:   # case at line end.
                   23768:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   23769:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                   23770:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                   23771:   sed -n '
                   23772:     p
                   23773:     /[$]LINENO/=
                   23774:   ' <$as_myself |
                   23775:     sed '
                   23776:       s/[$]LINENO.*/&-/
                   23777:       t lineno
                   23778:       b
                   23779:       :lineno
                   23780:       N
                   23781:       :loop
                   23782:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                   23783:       t loop
                   23784:       s/-\n.*//
                   23785:     ' >$as_me.lineno &&
                   23786:   chmod +x "$as_me.lineno" ||
                   23787:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                   23788:    { (exit 1); exit 1; }; }
1.16      millert  23789:
1.27      millert  23790:   # Don't try to exec as it changes $[0], causing all sort of problems
                   23791:   # (the dirname of $[0] is not the place where we might find the
                   23792:   # original and so on.  Autoconf is especially sensitive to this).
                   23793:   . "./$as_me.lineno"
                   23794:   # Exit status is that of the last command.
                   23795:   exit
                   23796: }
1.16      millert  23797:
                   23798:
1.27      millert  23799: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   23800:   as_dirname=dirname
                   23801: else
                   23802:   as_dirname=false
                   23803: fi
1.16      millert  23804:
1.27      millert  23805: ECHO_C= ECHO_N= ECHO_T=
                   23806: case `echo -n x` in
                   23807: -n*)
                   23808:   case `echo 'x\c'` in
                   23809:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   23810:   *)   ECHO_C='\c';;
                   23811:   esac;;
                   23812: *)
                   23813:   ECHO_N='-n';;
                   23814: esac
1.16      millert  23815:
1.27      millert  23816: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   23817:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   23818:   as_expr=expr
                   23819: else
                   23820:   as_expr=false
                   23821: fi
1.16      millert  23822:
1.27      millert  23823: rm -f conf$$ conf$$.exe conf$$.file
                   23824: if test -d conf$$.dir; then
                   23825:   rm -f conf$$.dir/conf$$.file
                   23826: else
                   23827:   rm -f conf$$.dir
                   23828:   mkdir conf$$.dir
                   23829: fi
                   23830: echo >conf$$.file
                   23831: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   23832:   as_ln_s='ln -s'
                   23833:   # ... but there are two gotchas:
                   23834:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   23835:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   23836:   # In both cases, we have to default to `cp -p'.
                   23837:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   23838:     as_ln_s='cp -p'
                   23839: elif ln conf$$.file conf$$ 2>/dev/null; then
                   23840:   as_ln_s=ln
                   23841: else
                   23842:   as_ln_s='cp -p'
                   23843: fi
                   23844: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   23845: rmdir conf$$.dir 2>/dev/null
1.16      millert  23846:
1.27      millert  23847: if mkdir -p . 2>/dev/null; then
                   23848:   as_mkdir_p=:
                   23849: else
                   23850:   test -d ./-p && rmdir ./-p
                   23851:   as_mkdir_p=false
                   23852: fi
1.16      millert  23853:
1.27      millert  23854: if test -x / >/dev/null 2>&1; then
                   23855:   as_test_x='test -x'
                   23856: else
                   23857:   if ls -dL / >/dev/null 2>&1; then
                   23858:     as_ls_L_option=L
                   23859:   else
                   23860:     as_ls_L_option=
                   23861:   fi
                   23862:   as_test_x='
                   23863:     eval sh -c '\''
                   23864:       if test -d "$1"; then
                   23865:         test -d "$1/.";
                   23866:       else
                   23867:        case $1 in
                   23868:         -*)set "./$1";;
                   23869:        esac;
                   23870:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                   23871:        ???[sx]*):;;*)false;;esac;fi
                   23872:     '\'' sh
                   23873:   '
                   23874: fi
                   23875: as_executable_p=$as_test_x
1.16      millert  23876:
1.27      millert  23877: # Sed expression to map a string onto a valid CPP name.
                   23878: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  23879:
1.27      millert  23880: # Sed expression to map a string onto a valid variable name.
                   23881: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  23882:
1.9       millert  23883:
1.27      millert  23884: exec 6>&1
1.9       millert  23885:
1.27      millert  23886: # Save the log message, to keep $[0] and so on meaningful, and to
                   23887: # report actual input values of CONFIG_FILES etc. instead of their
                   23888: # values after options handling.
                   23889: ac_log="
1.37    ! millert  23890: This file was extended by sudo $as_me 1.7, which was
1.27      millert  23891: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  23892:
1.27      millert  23893:   CONFIG_FILES    = $CONFIG_FILES
                   23894:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   23895:   CONFIG_LINKS    = $CONFIG_LINKS
                   23896:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   23897:   $ $0 $@
1.16      millert  23898:
1.27      millert  23899: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   23900: "
1.9       millert  23901:
1.27      millert  23902: _ACEOF
1.16      millert  23903:
1.27      millert  23904: cat >>$CONFIG_STATUS <<_ACEOF
                   23905: # Files that config.status was made for.
                   23906: config_files="$ac_config_files"
                   23907: config_headers="$ac_config_headers"
1.9       millert  23908:
1.27      millert  23909: _ACEOF
1.9       millert  23910:
1.27      millert  23911: cat >>$CONFIG_STATUS <<\_ACEOF
                   23912: ac_cs_usage="\
                   23913: \`$as_me' instantiates files from templates according to the
                   23914: current configuration.
1.9       millert  23915:
1.27      millert  23916: Usage: $0 [OPTIONS] [FILE]...
1.9       millert  23917:
1.27      millert  23918:   -h, --help       print this help, then exit
                   23919:   -V, --version    print version number and configuration settings, then exit
                   23920:   -q, --quiet      do not print progress messages
                   23921:   -d, --debug      don't remove temporary files
                   23922:       --recheck    update $as_me by reconfiguring in the same conditions
                   23923:   --file=FILE[:TEMPLATE]
                   23924:                   instantiate the configuration file FILE
                   23925:   --header=FILE[:TEMPLATE]
                   23926:                   instantiate the configuration header FILE
1.9       millert  23927:
1.27      millert  23928: Configuration files:
                   23929: $config_files
1.16      millert  23930:
1.27      millert  23931: Configuration headers:
                   23932: $config_headers
1.16      millert  23933:
1.27      millert  23934: Report bugs to <bug-autoconf@gnu.org>."
1.16      millert  23935:
1.27      millert  23936: _ACEOF
                   23937: cat >>$CONFIG_STATUS <<_ACEOF
                   23938: ac_cs_version="\\
1.37    ! millert  23939: sudo config.status 1.7
1.27      millert  23940: configured by $0, generated by GNU Autoconf 2.61,
                   23941:   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9       millert  23942:
1.27      millert  23943: Copyright (C) 2006 Free Software Foundation, Inc.
                   23944: This config.status script is free software; the Free Software Foundation
                   23945: gives unlimited permission to copy, distribute and modify it."
1.9       millert  23946:
1.27      millert  23947: ac_pwd='$ac_pwd'
                   23948: srcdir='$srcdir'
                   23949: _ACEOF
1.9       millert  23950:
1.27      millert  23951: cat >>$CONFIG_STATUS <<\_ACEOF
                   23952: # If no file are specified by the user, then we need to provide default
                   23953: # value.  By we need to know if files were specified by the user.
                   23954: ac_need_defaults=:
                   23955: while test $# != 0
                   23956: do
                   23957:   case $1 in
                   23958:   --*=*)
                   23959:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   23960:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   23961:     ac_shift=:
                   23962:     ;;
                   23963:   *)
                   23964:     ac_option=$1
                   23965:     ac_optarg=$2
                   23966:     ac_shift=shift
                   23967:     ;;
                   23968:   esac
1.9       millert  23969:
1.27      millert  23970:   case $ac_option in
                   23971:   # Handling of the options.
                   23972:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   23973:     ac_cs_recheck=: ;;
                   23974:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   23975:     echo "$ac_cs_version"; exit ;;
                   23976:   --debug | --debu | --deb | --de | --d | -d )
                   23977:     debug=: ;;
                   23978:   --file | --fil | --fi | --f )
                   23979:     $ac_shift
                   23980:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   23981:     ac_need_defaults=false;;
                   23982:   --header | --heade | --head | --hea )
                   23983:     $ac_shift
                   23984:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   23985:     ac_need_defaults=false;;
                   23986:   --he | --h)
                   23987:     # Conflict between --help and --header
                   23988:     { echo "$as_me: error: ambiguous option: $1
                   23989: Try \`$0 --help' for more information." >&2
                   23990:    { (exit 1); exit 1; }; };;
                   23991:   --help | --hel | -h )
                   23992:     echo "$ac_cs_usage"; exit ;;
                   23993:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   23994:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   23995:     ac_cs_silent=: ;;
1.9       millert  23996:
1.27      millert  23997:   # This is an error.
                   23998:   -*) { echo "$as_me: error: unrecognized option: $1
                   23999: Try \`$0 --help' for more information." >&2
                   24000:    { (exit 1); exit 1; }; } ;;
1.9       millert  24001:
1.27      millert  24002:   *) ac_config_targets="$ac_config_targets $1"
                   24003:      ac_need_defaults=false ;;
1.9       millert  24004:
1.27      millert  24005:   esac
                   24006:   shift
                   24007: done
1.9       millert  24008:
1.27      millert  24009: ac_configure_extra_args=
1.9       millert  24010:
1.27      millert  24011: if $ac_cs_silent; then
                   24012:   exec 6>/dev/null
                   24013:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   24014: fi
1.9       millert  24015:
1.27      millert  24016: _ACEOF
                   24017: cat >>$CONFIG_STATUS <<_ACEOF
                   24018: if \$ac_cs_recheck; then
                   24019:   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   24020:   CONFIG_SHELL=$SHELL
                   24021:   export CONFIG_SHELL
                   24022:   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   24023: fi
1.9       millert  24024:
1.27      millert  24025: _ACEOF
                   24026: cat >>$CONFIG_STATUS <<\_ACEOF
                   24027: exec 5>>config.log
                   24028: {
                   24029:   echo
                   24030:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   24031: ## Running $as_me. ##
                   24032: _ASBOX
                   24033:   echo "$ac_log"
                   24034: } >&5
1.9       millert  24035:
1.27      millert  24036: _ACEOF
                   24037: cat >>$CONFIG_STATUS <<_ACEOF
                   24038: _ACEOF
1.9       millert  24039:
1.27      millert  24040: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  24041:
1.27      millert  24042: # Handling of arguments.
                   24043: for ac_config_target in $ac_config_targets
                   24044: do
                   24045:   case $ac_config_target in
                   24046:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   24047:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   24048:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   24049:     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   24050:     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   24051:     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.37    ! millert  24052:     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
        !          24053:     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
1.9       millert  24054:
1.27      millert  24055:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   24056: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   24057:    { (exit 1); exit 1; }; };;
                   24058:   esac
                   24059: done
1.9       millert  24060:
                   24061:
1.27      millert  24062: # If the user did not use the arguments to specify the items to instantiate,
                   24063: # then the envvar interface is used.  Set only those that are not.
                   24064: # We use the long form for the default assignment because of an extremely
                   24065: # bizarre bug on SunOS 4.1.3.
                   24066: if $ac_need_defaults; then
                   24067:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   24068:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   24069: fi
1.9       millert  24070:
1.27      millert  24071: # Have a temporary directory for convenience.  Make it in the build tree
                   24072: # simply because there is no reason against having it here, and in addition,
                   24073: # creating and moving files from /tmp can sometimes cause problems.
                   24074: # Hook for its removal unless debugging.
                   24075: # Note that there is a small window in which the directory will not be cleaned:
                   24076: # after its creation but before its name has been assigned to `$tmp'.
                   24077: $debug ||
                   24078: {
                   24079:   tmp=
                   24080:   trap 'exit_status=$?
                   24081:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   24082: ' 0
                   24083:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   24084: }
                   24085: # Create a (secure) tmp directory for tmp files.
1.9       millert  24086:
1.27      millert  24087: {
                   24088:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   24089:   test -n "$tmp" && test -d "$tmp"
                   24090: }  ||
                   24091: {
                   24092:   tmp=./conf$$-$RANDOM
                   24093:   (umask 077 && mkdir "$tmp")
                   24094: } ||
                   24095: {
                   24096:    echo "$me: cannot create a temporary directory in ." >&2
                   24097:    { (exit 1); exit 1; }
                   24098: }
1.9       millert  24099:
1.27      millert  24100: #
                   24101: # Set up the sed scripts for CONFIG_FILES section.
                   24102: #
1.16      millert  24103:
1.27      millert  24104: # No need to generate the scripts if there are no CONFIG_FILES.
                   24105: # This happens for instance when ./config.status config.h
                   24106: if test -n "$CONFIG_FILES"; then
1.16      millert  24107:
1.27      millert  24108: _ACEOF
1.16      millert  24109:
                   24110:
1.1       millert  24111:
1.27      millert  24112: ac_delim='%!_!# '
                   24113: for ac_last_try in false false false false false :; do
                   24114:   cat >conf$$subs.sed <<_ACEOF
                   24115: SHELL!$SHELL$ac_delim
                   24116: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
                   24117: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
                   24118: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
                   24119: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
                   24120: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
                   24121: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
                   24122: exec_prefix!$exec_prefix$ac_delim
                   24123: prefix!$prefix$ac_delim
                   24124: program_transform_name!$program_transform_name$ac_delim
                   24125: bindir!$bindir$ac_delim
                   24126: sbindir!$sbindir$ac_delim
                   24127: libexecdir!$libexecdir$ac_delim
                   24128: datarootdir!$datarootdir$ac_delim
                   24129: datadir!$datadir$ac_delim
                   24130: sysconfdir!$sysconfdir$ac_delim
                   24131: sharedstatedir!$sharedstatedir$ac_delim
                   24132: localstatedir!$localstatedir$ac_delim
                   24133: includedir!$includedir$ac_delim
                   24134: oldincludedir!$oldincludedir$ac_delim
                   24135: docdir!$docdir$ac_delim
                   24136: infodir!$infodir$ac_delim
                   24137: htmldir!$htmldir$ac_delim
                   24138: dvidir!$dvidir$ac_delim
                   24139: pdfdir!$pdfdir$ac_delim
                   24140: psdir!$psdir$ac_delim
                   24141: libdir!$libdir$ac_delim
                   24142: localedir!$localedir$ac_delim
                   24143: mandir!$mandir$ac_delim
                   24144: DEFS!$DEFS$ac_delim
                   24145: ECHO_C!$ECHO_C$ac_delim
                   24146: ECHO_N!$ECHO_N$ac_delim
                   24147: ECHO_T!$ECHO_T$ac_delim
                   24148: LIBS!$LIBS$ac_delim
                   24149: build_alias!$build_alias$ac_delim
                   24150: host_alias!$host_alias$ac_delim
                   24151: target_alias!$target_alias$ac_delim
                   24152: LIBTOOL!$LIBTOOL$ac_delim
                   24153: CFLAGS!$CFLAGS$ac_delim
                   24154: PROGS!$PROGS$ac_delim
                   24155: CPPFLAGS!$CPPFLAGS$ac_delim
                   24156: LDFLAGS!$LDFLAGS$ac_delim
                   24157: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
                   24158: SUDO_OBJS!$SUDO_OBJS$ac_delim
                   24159: SUDO_LIBS!$SUDO_LIBS$ac_delim
                   24160: NET_LIBS!$NET_LIBS$ac_delim
                   24161: AFS_LIBS!$AFS_LIBS$ac_delim
1.32      millert  24162: GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
1.27      millert  24163: OSDEFS!$OSDEFS$ac_delim
                   24164: AUTH_OBJS!$AUTH_OBJS$ac_delim
                   24165: MANTYPE!$MANTYPE$ac_delim
                   24166: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
                   24167: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
                   24168: SUDOERS_UID!$SUDOERS_UID$ac_delim
                   24169: SUDOERS_GID!$SUDOERS_GID$ac_delim
                   24170: DEV!$DEV$ac_delim
1.36      millert  24171: SELINUX!$SELINUX$ac_delim
                   24172: BAMAN!$BAMAN$ac_delim
                   24173: LCMAN!$LCMAN$ac_delim
                   24174: SEMAN!$SEMAN$ac_delim
1.37    ! millert  24175: devdir!$devdir$ac_delim
1.27      millert  24176: mansectsu!$mansectsu$ac_delim
                   24177: mansectform!$mansectform$ac_delim
                   24178: mansrcdir!$mansrcdir$ac_delim
1.36      millert  24179: NOEXECFILE!$NOEXECFILE$ac_delim
1.27      millert  24180: NOEXECDIR!$NOEXECDIR$ac_delim
                   24181: noexec_file!$noexec_file$ac_delim
                   24182: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
                   24183: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
1.37    ! millert  24184: BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
        !          24185: SELINUX_USAGE!$SELINUX_USAGE$ac_delim
        !          24186: LDAP!$LDAP$ac_delim
        !          24187: LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
1.27      millert  24188: timedir!$timedir$ac_delim
                   24189: timeout!$timeout$ac_delim
                   24190: password_timeout!$password_timeout$ac_delim
                   24191: sudo_umask!$sudo_umask$ac_delim
                   24192: passprompt!$passprompt$ac_delim
                   24193: long_otp_prompt!$long_otp_prompt$ac_delim
                   24194: lecture!$lecture$ac_delim
                   24195: logfac!$logfac$ac_delim
                   24196: goodpri!$goodpri$ac_delim
                   24197: badpri!$badpri$ac_delim
                   24198: loglen!$loglen$ac_delim
                   24199: ignore_dot!$ignore_dot$ac_delim
                   24200: mail_no_user!$mail_no_user$ac_delim
                   24201: mail_no_host!$mail_no_host$ac_delim
                   24202: mail_no_perms!$mail_no_perms$ac_delim
                   24203: mailto!$mailto$ac_delim
                   24204: mailsub!$mailsub$ac_delim
                   24205: badpass_message!$badpass_message$ac_delim
                   24206: fqdn!$fqdn$ac_delim
                   24207: runas_default!$runas_default$ac_delim
                   24208: env_editor!$env_editor$ac_delim
                   24209: passwd_tries!$passwd_tries$ac_delim
                   24210: tty_tickets!$tty_tickets$ac_delim
                   24211: insults!$insults$ac_delim
                   24212: _ACEOF
1.9       millert  24213:
1.27      millert  24214:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
                   24215:     break
                   24216:   elif $ac_last_try; then
                   24217:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   24218: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   24219:    { (exit 1); exit 1; }; }
                   24220:   else
                   24221:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   24222:   fi
                   24223: done
1.9       millert  24224:
1.27      millert  24225: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   24226: if test -n "$ac_eof"; then
                   24227:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   24228:   ac_eof=`expr $ac_eof + 1`
                   24229: fi
1.16      millert  24230:
1.27      millert  24231: cat >>$CONFIG_STATUS <<_ACEOF
                   24232: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
                   24233: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   24234: _ACEOF
                   24235: sed '
                   24236: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   24237: s/^/s,@/; s/!/@,|#_!!_#|/
                   24238: :n
                   24239: t n
                   24240: s/'"$ac_delim"'$/,g/; t
                   24241: s/$/\\/; p
                   24242: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   24243: ' >>$CONFIG_STATUS <conf$$subs.sed
                   24244: rm -f conf$$subs.sed
                   24245: cat >>$CONFIG_STATUS <<_ACEOF
                   24246: CEOF$ac_eof
                   24247: _ACEOF
1.1       millert  24248:
                   24249:
1.27      millert  24250: ac_delim='%!_!# '
                   24251: for ac_last_try in false false false false false :; do
                   24252:   cat >conf$$subs.sed <<_ACEOF
1.37    ! millert  24253: root_sudo!$root_sudo$ac_delim
        !          24254: path_info!$path_info$ac_delim
        !          24255: ldap_conf!$ldap_conf$ac_delim
        !          24256: ldap_secret!$ldap_secret$ac_delim
        !          24257: nsswitch_conf!$nsswitch_conf$ac_delim
        !          24258: EGREPPROG!$EGREPPROG$ac_delim
        !          24259: CC!$CC$ac_delim
        !          24260: ac_ct_CC!$ac_ct_CC$ac_delim
1.36      millert  24261: EXEEXT!$EXEEXT$ac_delim
                   24262: OBJEXT!$OBJEXT$ac_delim
                   24263: CPP!$CPP$ac_delim
                   24264: build!$build$ac_delim
                   24265: build_cpu!$build_cpu$ac_delim
1.32      millert  24266: build_vendor!$build_vendor$ac_delim
1.27      millert  24267: build_os!$build_os$ac_delim
                   24268: host!$host$ac_delim
                   24269: host_cpu!$host_cpu$ac_delim
                   24270: host_vendor!$host_vendor$ac_delim
                   24271: host_os!$host_os$ac_delim
                   24272: target!$target$ac_delim
                   24273: target_cpu!$target_cpu$ac_delim
                   24274: target_vendor!$target_vendor$ac_delim
                   24275: target_os!$target_os$ac_delim
                   24276: SED!$SED$ac_delim
                   24277: GREP!$GREP$ac_delim
                   24278: EGREP!$EGREP$ac_delim
                   24279: LN_S!$LN_S$ac_delim
                   24280: ECHO!$ECHO$ac_delim
                   24281: AR!$AR$ac_delim
                   24282: RANLIB!$RANLIB$ac_delim
                   24283: STRIP!$STRIP$ac_delim
1.36      millert  24284: DSYMUTIL!$DSYMUTIL$ac_delim
                   24285: NMEDIT!$NMEDIT$ac_delim
1.27      millert  24286: UNAMEPROG!$UNAMEPROG$ac_delim
                   24287: TRPROG!$TRPROG$ac_delim
                   24288: NROFFPROG!$NROFFPROG$ac_delim
                   24289: YACC!$YACC$ac_delim
                   24290: YFLAGS!$YFLAGS$ac_delim
                   24291: LIBOBJS!$LIBOBJS$ac_delim
                   24292: KRB5CONFIG!$KRB5CONFIG$ac_delim
                   24293: LTLIBOBJS!$LTLIBOBJS$ac_delim
                   24294: _ACEOF
1.9       millert  24295:
1.37    ! millert  24296:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
1.27      millert  24297:     break
                   24298:   elif $ac_last_try; then
                   24299:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   24300: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   24301:    { (exit 1); exit 1; }; }
                   24302:   else
                   24303:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   24304:   fi
                   24305: done
1.1       millert  24306:
1.27      millert  24307: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   24308: if test -n "$ac_eof"; then
                   24309:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   24310:   ac_eof=`expr $ac_eof + 1`
                   24311: fi
1.9       millert  24312:
1.27      millert  24313: cat >>$CONFIG_STATUS <<_ACEOF
                   24314: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
                   24315: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
                   24316: _ACEOF
                   24317: sed '
                   24318: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   24319: s/^/s,@/; s/!/@,|#_!!_#|/
                   24320: :n
                   24321: t n
                   24322: s/'"$ac_delim"'$/,g/; t
                   24323: s/$/\\/; p
                   24324: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   24325: ' >>$CONFIG_STATUS <conf$$subs.sed
                   24326: rm -f conf$$subs.sed
                   24327: cat >>$CONFIG_STATUS <<_ACEOF
                   24328: :end
                   24329: s/|#_!!_#|//g
                   24330: CEOF$ac_eof
                   24331: _ACEOF
1.1       millert  24332:
                   24333:
1.27      millert  24334: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   24335: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   24336: # trailing colons and then remove the whole line if VPATH becomes empty
                   24337: # (actually we leave an empty line to preserve line numbers).
                   24338: if test "x$srcdir" = x.; then
                   24339:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   24340: s/:*\$(srcdir):*/:/
                   24341: s/:*\${srcdir}:*/:/
                   24342: s/:*@srcdir@:*/:/
                   24343: s/^\([^=]*=[    ]*\):*/\1/
                   24344: s/:*$//
                   24345: s/^[^=]*=[      ]*$//
                   24346: }'
                   24347: fi
1.1       millert  24348:
1.27      millert  24349: cat >>$CONFIG_STATUS <<\_ACEOF
                   24350: fi # test -n "$CONFIG_FILES"
1.16      millert  24351:
                   24352:
1.27      millert  24353: for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
                   24354: do
                   24355:   case $ac_tag in
                   24356:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   24357:   esac
                   24358:   case $ac_mode$ac_tag in
                   24359:   :[FHL]*:*);;
                   24360:   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
                   24361: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
                   24362:    { (exit 1); exit 1; }; };;
                   24363:   :[FH]-) ac_tag=-:-;;
                   24364:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   24365:   esac
                   24366:   ac_save_IFS=$IFS
                   24367:   IFS=:
                   24368:   set x $ac_tag
                   24369:   IFS=$ac_save_IFS
                   24370:   shift
                   24371:   ac_file=$1
                   24372:   shift
1.16      millert  24373:
1.27      millert  24374:   case $ac_mode in
                   24375:   :L) ac_source=$1;;
                   24376:   :[FH])
                   24377:     ac_file_inputs=
                   24378:     for ac_f
                   24379:     do
                   24380:       case $ac_f in
                   24381:       -) ac_f="$tmp/stdin";;
                   24382:       *) # Look for the file first in the build tree, then in the source tree
                   24383:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   24384:         # because $ac_f cannot contain `:'.
                   24385:         test -f "$ac_f" ||
                   24386:           case $ac_f in
                   24387:           [\\/$]*) false;;
                   24388:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   24389:           esac ||
                   24390:           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
                   24391: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
                   24392:    { (exit 1); exit 1; }; };;
                   24393:       esac
                   24394:       ac_file_inputs="$ac_file_inputs $ac_f"
                   24395:     done
1.1       millert  24396:
1.27      millert  24397:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   24398:     # use $as_me), people would be surprised to read:
                   24399:     #    /* config.h.  Generated by config.status.  */
                   24400:     configure_input="Generated from "`IFS=:
                   24401:          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
                   24402:     if test x"$ac_file" != x-; then
                   24403:       configure_input="$ac_file.  $configure_input"
                   24404:       { echo "$as_me:$LINENO: creating $ac_file" >&5
                   24405: echo "$as_me: creating $ac_file" >&6;}
                   24406:     fi
1.1       millert  24407:
1.27      millert  24408:     case $ac_tag in
                   24409:     *:-:* | *:-) cat >"$tmp/stdin";;
                   24410:     esac
                   24411:     ;;
                   24412:   esac
1.1       millert  24413:
1.27      millert  24414:   ac_dir=`$as_dirname -- "$ac_file" ||
                   24415: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   24416:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   24417:         X"$ac_file" : 'X\(//\)$' \| \
                   24418:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   24419: echo X"$ac_file" |
                   24420:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   24421:            s//\1/
                   24422:            q
                   24423:          }
                   24424:          /^X\(\/\/\)[^/].*/{
                   24425:            s//\1/
                   24426:            q
                   24427:          }
                   24428:          /^X\(\/\/\)$/{
                   24429:            s//\1/
                   24430:            q
                   24431:          }
                   24432:          /^X\(\/\).*/{
                   24433:            s//\1/
                   24434:            q
                   24435:          }
                   24436:          s/.*/./; q'`
                   24437:   { as_dir="$ac_dir"
                   24438:   case $as_dir in #(
                   24439:   -*) as_dir=./$as_dir;;
                   24440:   esac
                   24441:   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
                   24442:     as_dirs=
                   24443:     while :; do
                   24444:       case $as_dir in #(
                   24445:       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
                   24446:       *) as_qdir=$as_dir;;
                   24447:       esac
                   24448:       as_dirs="'$as_qdir' $as_dirs"
                   24449:       as_dir=`$as_dirname -- "$as_dir" ||
                   24450: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   24451:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   24452:         X"$as_dir" : 'X\(//\)$' \| \
                   24453:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   24454: echo X"$as_dir" |
                   24455:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   24456:            s//\1/
                   24457:            q
                   24458:          }
                   24459:          /^X\(\/\/\)[^/].*/{
                   24460:            s//\1/
                   24461:            q
                   24462:          }
                   24463:          /^X\(\/\/\)$/{
                   24464:            s//\1/
                   24465:            q
                   24466:          }
                   24467:          /^X\(\/\).*/{
                   24468:            s//\1/
                   24469:            q
                   24470:          }
                   24471:          s/.*/./; q'`
                   24472:       test -d "$as_dir" && break
                   24473:     done
                   24474:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   24475:   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
                   24476: echo "$as_me: error: cannot create directory $as_dir" >&2;}
                   24477:    { (exit 1); exit 1; }; }; }
                   24478:   ac_builddir=.
1.9       millert  24479:
1.27      millert  24480: case "$ac_dir" in
                   24481: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   24482: *)
                   24483:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   24484:   # A ".." for each directory in $ac_dir_suffix.
                   24485:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   24486:   case $ac_top_builddir_sub in
                   24487:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   24488:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   24489:   esac ;;
                   24490: esac
                   24491: ac_abs_top_builddir=$ac_pwd
                   24492: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   24493: # for backward compatibility:
                   24494: ac_top_builddir=$ac_top_build_prefix
1.1       millert  24495:
1.27      millert  24496: case $srcdir in
                   24497:   .)  # We are building in place.
                   24498:     ac_srcdir=.
                   24499:     ac_top_srcdir=$ac_top_builddir_sub
                   24500:     ac_abs_top_srcdir=$ac_pwd ;;
                   24501:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   24502:     ac_srcdir=$srcdir$ac_dir_suffix;
                   24503:     ac_top_srcdir=$srcdir
                   24504:     ac_abs_top_srcdir=$srcdir ;;
                   24505:   *) # Relative name.
                   24506:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   24507:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   24508:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   24509: esac
                   24510: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1       millert  24511:
                   24512:
1.27      millert  24513:   case $ac_mode in
                   24514:   :F)
                   24515:   #
                   24516:   # CONFIG_FILE
                   24517:   #
1.1       millert  24518:
1.27      millert  24519: _ACEOF
1.1       millert  24520:
1.27      millert  24521: cat >>$CONFIG_STATUS <<\_ACEOF
                   24522: # If the template does not know about datarootdir, expand it.
                   24523: # FIXME: This hack should be removed a few years after 2.60.
                   24524: ac_datarootdir_hack=; ac_datarootdir_seen=
                   24525:
                   24526: case `sed -n '/datarootdir/ {
                   24527:   p
                   24528:   q
                   24529: }
                   24530: /@datadir@/p
                   24531: /@docdir@/p
                   24532: /@infodir@/p
                   24533: /@localedir@/p
                   24534: /@mandir@/p
                   24535: ' $ac_file_inputs` in
                   24536: *datarootdir*) ac_datarootdir_seen=yes;;
                   24537: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   24538:   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   24539: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   24540: _ACEOF
                   24541: cat >>$CONFIG_STATUS <<_ACEOF
                   24542:   ac_datarootdir_hack='
                   24543:   s&@datadir@&$datadir&g
                   24544:   s&@docdir@&$docdir&g
                   24545:   s&@infodir@&$infodir&g
                   24546:   s&@localedir@&$localedir&g
                   24547:   s&@mandir@&$mandir&g
                   24548:     s&\\\${datarootdir}&$datarootdir&g' ;;
                   24549: esac
                   24550: _ACEOF
1.1       millert  24551:
1.27      millert  24552: # Neutralize VPATH when `$srcdir' = `.'.
                   24553: # Shell code in configure.ac might set extrasub.
                   24554: # FIXME: do we really want to maintain this feature?
                   24555: cat >>$CONFIG_STATUS <<_ACEOF
                   24556:   sed "$ac_vpsub
                   24557: $extrasub
                   24558: _ACEOF
                   24559: cat >>$CONFIG_STATUS <<\_ACEOF
                   24560: :t
                   24561: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   24562: s&@configure_input@&$configure_input&;t t
                   24563: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   24564: s&@srcdir@&$ac_srcdir&;t t
                   24565: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   24566: s&@top_srcdir@&$ac_top_srcdir&;t t
                   24567: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   24568: s&@builddir@&$ac_builddir&;t t
                   24569: s&@abs_builddir@&$ac_abs_builddir&;t t
                   24570: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   24571: $ac_datarootdir_hack
                   24572: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
                   24573:
                   24574: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   24575:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   24576:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
                   24577:   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   24578: which seems to be undefined.  Please make sure it is defined." >&5
                   24579: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   24580: which seems to be undefined.  Please make sure it is defined." >&2;}
1.1       millert  24581:
1.27      millert  24582:   rm -f "$tmp/stdin"
                   24583:   case $ac_file in
                   24584:   -) cat "$tmp/out"; rm -f "$tmp/out";;
                   24585:   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25      millert  24586:   esac
1.27      millert  24587:  ;;
                   24588:   :H)
                   24589:   #
                   24590:   # CONFIG_HEADER
                   24591:   #
                   24592: _ACEOF
                   24593:
                   24594: # Transform confdefs.h into a sed script `conftest.defines', that
                   24595: # substitutes the proper values into config.h.in to produce config.h.
                   24596: rm -f conftest.defines conftest.tail
                   24597: # First, append a space to every undef/define line, to ease matching.
                   24598: echo 's/$/ /' >conftest.defines
                   24599: # Then, protect against being on the right side of a sed subst, or in
                   24600: # an unquoted here document, in config.status.  If some macros were
                   24601: # called several times there might be several #defines for the same
                   24602: # symbol, which is useless.  But do not sort them, since the last
                   24603: # AC_DEFINE must be honored.
                   24604: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   24605: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
                   24606: # NAME is the cpp macro being defined, VALUE is the value it is being given.
                   24607: # PARAMS is the parameter list in the macro definition--in most cases, it's
                   24608: # just an empty string.
                   24609: ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
                   24610: ac_dB='\\)[     (].*,\\1define\\2'
                   24611: ac_dC=' '
                   24612: ac_dD=' ,'
1.1       millert  24613:
1.27      millert  24614: uniq confdefs.h |
                   24615:   sed -n '
                   24616:        t rset
                   24617:        :rset
                   24618:        s/^[     ]*#[    ]*define[       ][      ]*//
                   24619:        t ok
                   24620:        d
                   24621:        :ok
                   24622:        s/[\\&,]/\\&/g
                   24623:        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
                   24624:        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
                   24625:   ' >>conftest.defines
1.1       millert  24626:
1.27      millert  24627: # Remove the space that was appended to ease matching.
                   24628: # Then replace #undef with comments.  This is necessary, for
                   24629: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   24630: # on some systems where configure will not decide to define it.
                   24631: # (The regexp can be short, since the line contains either #define or #undef.)
                   24632: echo 's/ $//
                   24633: s,^[    #]*u.*,/* & */,' >>conftest.defines
                   24634:
                   24635: # Break up conftest.defines:
                   24636: ac_max_sed_lines=50
                   24637:
                   24638: # First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
                   24639: # Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
                   24640: # Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
                   24641: # et cetera.
                   24642: ac_in='$ac_file_inputs'
                   24643: ac_out='"$tmp/out1"'
                   24644: ac_nxt='"$tmp/out2"'
1.1       millert  24645:
1.27      millert  24646: while :
                   24647: do
                   24648:   # Write a here document:
                   24649:     cat >>$CONFIG_STATUS <<_ACEOF
                   24650:     # First, check the format of the line:
                   24651:     cat >"\$tmp/defines.sed" <<\\CEOF
                   24652: /^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
                   24653: /^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
                   24654: b
                   24655: :def
                   24656: _ACEOF
                   24657:   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
                   24658:   echo 'CEOF
                   24659:     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
                   24660:   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
                   24661:   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
                   24662:   grep . conftest.tail >/dev/null || break
                   24663:   rm -f conftest.defines
                   24664:   mv conftest.tail conftest.defines
                   24665: done
                   24666: rm -f conftest.defines conftest.tail
1.9       millert  24667:
1.27      millert  24668: echo "ac_result=$ac_in" >>$CONFIG_STATUS
                   24669: cat >>$CONFIG_STATUS <<\_ACEOF
                   24670:   if test x"$ac_file" != x-; then
                   24671:     echo "/* $configure_input  */" >"$tmp/config.h"
                   24672:     cat "$ac_result" >>"$tmp/config.h"
                   24673:     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
                   24674:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   24675: echo "$as_me: $ac_file is unchanged" >&6;}
                   24676:     else
                   24677:       rm -f $ac_file
                   24678:       mv "$tmp/config.h" $ac_file
                   24679:     fi
                   24680:   else
                   24681:     echo "/* $configure_input  */"
                   24682:     cat "$ac_result"
                   24683:   fi
                   24684:   rm -f "$tmp/out12"
                   24685: # Compute $ac_file's index in $config_headers.
1.36      millert  24686: _am_arg=$ac_file
1.27      millert  24687: _am_stamp_count=1
                   24688: for _am_header in $config_headers :; do
                   24689:   case $_am_header in
1.36      millert  24690:     $_am_arg | $_am_arg:* )
1.27      millert  24691:       break ;;
                   24692:     * )
                   24693:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   24694:   esac
                   24695: done
1.36      millert  24696: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   24697: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   24698:         X"$_am_arg" : 'X\(//\)[^/]' \| \
                   24699:         X"$_am_arg" : 'X\(//\)$' \| \
                   24700:         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
                   24701: echo X"$_am_arg" |
1.27      millert  24702:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   24703:            s//\1/
                   24704:            q
                   24705:          }
                   24706:          /^X\(\/\/\)[^/].*/{
                   24707:            s//\1/
                   24708:            q
                   24709:          }
                   24710:          /^X\(\/\/\)$/{
                   24711:            s//\1/
                   24712:            q
                   24713:          }
                   24714:          /^X\(\/\).*/{
                   24715:            s//\1/
                   24716:            q
                   24717:          }
                   24718:          s/.*/./; q'`/stamp-h$_am_stamp_count
                   24719:  ;;
1.9       millert  24720:
                   24721:
1.25      millert  24722:   esac
1.1       millert  24723:
1.27      millert  24724: done # for ac_tag
                   24725:
1.1       millert  24726:
1.9       millert  24727: { (exit 0); exit 0; }
1.16      millert  24728: _ACEOF
1.1       millert  24729: chmod +x $CONFIG_STATUS
1.9       millert  24730: ac_clean_files=$ac_clean_files_save
1.1       millert  24731:
1.16      millert  24732:
1.9       millert  24733: # configure is writing to config.log, and then calls config.status.
                   24734: # config.status does its own redirection, appending to config.log.
                   24735: # Unfortunately, on DOS this fails, as config.log is still kept open
                   24736: # by configure, so config.status won't be able to write to it; its
                   24737: # output is simply discarded.  So we exec the FD to /dev/null,
                   24738: # effectively closing config.log, so it can be properly (re)opened and
                   24739: # appended to by config.status.  When coming back to configure, we
                   24740: # need to make the FD available again.
                   24741: if test "$no_create" != yes; then
                   24742:   ac_cs_success=:
1.16      millert  24743:   ac_config_status_args=
                   24744:   test "$silent" = yes &&
                   24745:     ac_config_status_args="$ac_config_status_args --quiet"
1.9       millert  24746:   exec 5>/dev/null
1.16      millert  24747:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9       millert  24748:   exec 5>>config.log
                   24749:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   24750:   # would make configure fail if this is the last instruction.
                   24751:   $ac_cs_success || { (exit 1); exit 1; }
                   24752: fi
1.1       millert  24753:
1.16      millert  24754:
1.1       millert  24755: if test "$with_pam" = "yes"; then
                   24756:     case $host in
                   24757:        *-*-linux*)
1.17      millert  24758:            { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
                   24759: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1       millert  24760:            ;;
                   24761:     esac
                   24762: fi
1.37    ! millert  24763:
        !          24764:
        !          24765:
        !          24766:
        !          24767:
        !          24768:
        !          24769:
        !          24770:
        !          24771:
        !          24772:
        !          24773:
        !          24774:
1.36      millert  24775:
                   24776:
1.34      millert  24777:
                   24778:
1.32      millert  24779:
                   24780:
1.31      millert  24781:
                   24782:
1.23      millert  24783:
                   24784:
                   24785:
                   24786:
                   24787:
                   24788:
                   24789:
                   24790:
                   24791:
                   24792:
                   24793:
                   24794:
                   24795:
                   24796:
                   24797:
                   24798:
                   24799:
                   24800:
                   24801:
                   24802:
                   24803:
                   24804:
                   24805:
                   24806:
                   24807:
                   24808:
                   24809:
                   24810:
                   24811:
                   24812:
                   24813:
                   24814:
                   24815:
                   24816:
                   24817:
                   24818:
                   24819:
                   24820:
                   24821:
                   24822:
                   24823:
                   24824:
                   24825:
                   24826:
                   24827:
                   24828:
                   24829:
                   24830:
                   24831:
                   24832:
                   24833:
                   24834:
                   24835:
                   24836:
                   24837:
                   24838:
                   24839:
                   24840:
                   24841:
                   24842:
                   24843:
                   24844:
                   24845:
                   24846:
                   24847:
                   24848:
                   24849:
                   24850:
                   24851:
                   24852:
                   24853:
                   24854:
                   24855:
                   24856:
                   24857:
                   24858:
                   24859:
                   24860:
                   24861:
                   24862:
                   24863:
                   24864:
                   24865:
                   24866:
                   24867:
                   24868:
                   24869:
                   24870:
                   24871:
                   24872:
                   24873:
                   24874:
                   24875:
                   24876:
                   24877:
                   24878:
                   24879:
                   24880:
                   24881:
                   24882:
                   24883:
                   24884:
                   24885:
                   24886:
                   24887:
                   24888:
                   24889:
                   24890:
                   24891:
                   24892:
                   24893:
                   24894:
                   24895:
                   24896:
                   24897:
                   24898:
                   24899:
                   24900:
                   24901:
                   24902:
                   24903:
                   24904:
                   24905:
                   24906:
1.16      millert  24907:
                   24908:
                   24909:
                   24910:
                   24911:
                   24912:
                   24913:
                   24914:
                   24915:
                   24916:
                   24917:
                   24918:
                   24919:
                   24920:
1.9       millert  24921: