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

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

1.1       millert     1: #! /bin/sh
                      2:
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.12
                      5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
                      6: #
                      7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9:
                     10: # Defaults:
                     11: ac_help=
                     12: ac_default_prefix=/usr/local
                     13: # Any additions from configure.in:
                     14: ac_help="$ac_help
                     15:   --with-otp-only         deprecated"
                     16: ac_help="$ac_help
                     17:   --with-alertmail        deprecated"
                     18: ac_help="$ac_help
                     19:   --with-CC               C compiler to use"
                     20: ac_help="$ac_help
                     21:   --with-incpath          additional places to look for include files"
                     22: ac_help="$ac_help
                     23:   --with-libpath          additional places to look for libraries"
                     24: ac_help="$ac_help
                     25:   --with-libraries        additional libraries to link with"
                     26: ac_help="$ac_help
                     27:   --with-devel            add developement options"
                     28: ac_help="$ac_help
                     29:   --with-csops            add CSOps standard options"
                     30: ac_help="$ac_help
                     31:   --without-passwd        don't use passwd/shadow file for authentication"
                     32: ac_help="$ac_help
                     33:   --with-skey             enable S/Key support "
                     34: ac_help="$ac_help
                     35:   --with-opie             enable OPIE support "
                     36: ac_help="$ac_help
                     37:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt"
                     38: ac_help="$ac_help
                     39:   --with-SecurID          enable SecurID support"
                     40: ac_help="$ac_help
                     41:   --with-fwtk             enable FWTK AuthSRV support"
                     42: ac_help="$ac_help
                     43:   --with-kerb4            enable kerberos v4 support"
                     44: ac_help="$ac_help
                     45:   --with-kerb5            enable kerberos v5 support"
                     46: ac_help="$ac_help
                     47:   --with-authenticate     enable AIX general authentication support"
                     48: ac_help="$ac_help
                     49:   --with-pam              enable PAM support"
                     50: ac_help="$ac_help
                     51:   --with-AFS              enable AFS support"
                     52: ac_help="$ac_help
                     53:   --with-DCE              enable DCE support"
                     54: ac_help="$ac_help
                     55:   --without-lecture       don't print lecture for first-time sudoer"
                     56: ac_help="$ac_help
                     57:   --with-logging          log via syslog, file, or both"
                     58: ac_help="$ac_help
                     59:   --with-logfac           syslog facility to log with (default is local2)"
                     60: ac_help="$ac_help
                     61:   --with-goodpri          syslog priority for commands (def is notice)"
                     62: ac_help="$ac_help
                     63:   --with-badpri           syslog priority for failures (def is LOG_ALERT)"
                     64: ac_help="$ac_help
                     65:   --with-logpath          path to the sudo log file"
                     66: ac_help="$ac_help
                     67:   --with-loglen           maximum length of a log file line (default is 80)"
                     68: ac_help="$ac_help
                     69:   --with-ignore-dot       ignore '.' in the PATH"
                     70: ac_help="$ac_help
                     71:   --with-mailto           who should get sudo mail (default is "root")"
                     72: ac_help="$ac_help
                     73:   --with-mailsubject      subject of sudo mail"
                     74: ac_help="$ac_help
                     75:   --without-mail-if-no-user do not send mail if user not in sudoers"
                     76: ac_help="$ac_help
                     77:   --with-mail-if-no-host  send mail if user in sudoers but not for this host"
                     78: ac_help="$ac_help
                     79:   --with-mail-if-noperms  send mail if user not allowed to run command"
                     80: ac_help="$ac_help
                     81:   --with-passprompt       default password prompt"
                     82: ac_help="$ac_help
                     83:   --with-badpass-message  message the user sees when the password is wrong"
                     84: ac_help="$ac_help
                     85:   --with-fqdn             expect fully qualified hosts in sudoers"
                     86: ac_help="$ac_help
                     87:   --with-timedir          path to the sudo timestamp dir"
                     88: ac_help="$ac_help
                     89:   --with-sendmail=path    set path to sendmail
                     90:   --without-sendmail      do not send mail at all"
                     91: ac_help="$ac_help
                     92:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)"
                     93: ac_help="$ac_help
                     94:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)"
                     95: ac_help="$ac_help
                     96:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)"
                     97: ac_help="$ac_help
                     98:   --with-umask            umask with which the prog should run (default is 0022)
                     99:   --without-umask         Preserves the umask of the user invoking sudo."
                    100: ac_help="$ac_help
                    101:   --with-runas-default    User to run commands as (default is "root""
                    102: ac_help="$ac_help
                    103:   --with-exempt=group     no passwd needed for users in this group"
                    104: ac_help="$ac_help
                    105:   --with-editor=path      Default editor for visudo (defaults to vi)"
                    106: ac_help="$ac_help
                    107:   --with-env-editor       Use the environment variable EDITOR for visudo"
                    108: ac_help="$ac_help
                    109:   --with-passwd-tries     number of tries to enter password (default is 3)"
                    110: ac_help="$ac_help
                    111:   --with-timeout          minutes before sudo asks for passwd again (def is 5)"
                    112: ac_help="$ac_help
                    113:   --with-password-timeout passwd prompt timeout in minutes (default is 5)"
                    114: ac_help="$ac_help
                    115:   --with-execv            use execv() instead of execvp()"
                    116: ac_help="$ac_help
                    117:   --with-tty-tickets      use a different ticket file for each tty"
                    118: ac_help="$ac_help
                    119:   --with-insults          insult the user for entering an incorrect password"
                    120: ac_help="$ac_help
                    121:   --with-all-insults      include all the sudo insult sets"
                    122: ac_help="$ac_help
                    123:   --with-classic-insults  include the insults from the "classic" sudo"
                    124: ac_help="$ac_help
                    125:   --with-csops-insults    include CSOps insults"
                    126: ac_help="$ac_help
                    127:   --with-hal-insults      include 2001-like insults"
                    128: ac_help="$ac_help
                    129:   --with-goons-insults    include the insults from the \"Goon Show\""
                    130: ac_help="$ac_help
                    131:   --with-secure-path      override the user's path with a builtin one"
                    132: ac_help="$ac_help
                    133:   --without-interfaces    don't try to read the ip addr of ether interfaces"
                    134: ac_help="$ac_help
                    135:   --disable-authentication
                    136:                           Do not require authentication by default"
                    137: ac_help="$ac_help
                    138:   --disable-shadow        Never use shadow passwords"
                    139: ac_help="$ac_help
                    140:   --disable-root-sudo     don't allow root to run sudo"
                    141: ac_help="$ac_help
                    142:   --enable-log-host       Log the hostname in the log file"
                    143: ac_help="$ac_help
                    144:   --enable-noargs-shell   If sudo is given no arguments run a shell"
                    145: ac_help="$ac_help
                    146:   --enable-shell-sets-home
                    147:                           set \$HOME to target user in shell mode"
                    148: ac_help="$ac_help
                    149:   --disable-path-info     Print 'command not allowed' not 'command not found'"
                    150: ac_help="$ac_help
                    151:   --disable-sia           Never use SIA on Digital UNIX"
                    152:
                    153: # Initialize some variables set by options.
                    154: # The variables have the same names as the options, with
                    155: # dashes changed to underlines.
                    156: build=NONE
                    157: cache_file=./config.cache
                    158: exec_prefix=NONE
                    159: host=NONE
                    160: no_create=
                    161: nonopt=NONE
                    162: no_recursion=
                    163: prefix=NONE
                    164: program_prefix=NONE
                    165: program_suffix=NONE
                    166: program_transform_name=s,x,x,
                    167: silent=
                    168: site=
                    169: srcdir=
                    170: target=NONE
                    171: verbose=
                    172: x_includes=NONE
                    173: x_libraries=NONE
                    174: bindir='${exec_prefix}/bin'
                    175: sbindir='${exec_prefix}/sbin'
                    176: libexecdir='${exec_prefix}/libexec'
                    177: datadir='${prefix}/share'
                    178: sysconfdir='${prefix}/etc'
                    179: sharedstatedir='${prefix}/com'
                    180: localstatedir='${prefix}/var'
                    181: libdir='${exec_prefix}/lib'
                    182: includedir='${prefix}/include'
                    183: oldincludedir='/usr/include'
                    184: infodir='${prefix}/info'
                    185: mandir='${prefix}/man'
                    186:
                    187: # Initialize some other variables.
                    188: subdirs=
                    189: MFLAGS= MAKEFLAGS=
                    190: # Maximum number of lines to put in a shell here document.
                    191: ac_max_here_lines=12
                    192:
                    193: ac_prev=
                    194: for ac_option
                    195: do
                    196:
                    197:   # If the previous option needs an argument, assign it.
                    198:   if test -n "$ac_prev"; then
                    199:     eval "$ac_prev=\$ac_option"
                    200:     ac_prev=
                    201:     continue
                    202:   fi
                    203:
                    204:   case "$ac_option" in
                    205:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    206:   *) ac_optarg= ;;
                    207:   esac
                    208:
                    209:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    210:
                    211:   case "$ac_option" in
                    212:
                    213:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    214:     ac_prev=bindir ;;
                    215:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    216:     bindir="$ac_optarg" ;;
                    217:
                    218:   -build | --build | --buil | --bui | --bu)
                    219:     ac_prev=build ;;
                    220:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    221:     build="$ac_optarg" ;;
                    222:
                    223:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    224:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    225:     ac_prev=cache_file ;;
                    226:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    227:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    228:     cache_file="$ac_optarg" ;;
                    229:
                    230:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    231:     ac_prev=datadir ;;
                    232:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    233:   | --da=*)
                    234:     datadir="$ac_optarg" ;;
                    235:
                    236:   -disable-* | --disable-*)
                    237:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    238:     # Reject names that are not valid shell variable names.
                    239:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    240:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    241:     fi
                    242:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    243:     eval "enable_${ac_feature}=no" ;;
                    244:
                    245:   -enable-* | --enable-*)
                    246:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    247:     # Reject names that are not valid shell variable names.
                    248:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    249:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    250:     fi
                    251:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    252:     case "$ac_option" in
                    253:       *=*) ;;
                    254:       *) ac_optarg=yes ;;
                    255:     esac
                    256:     eval enable_${ac_feature}='$ac_optarg' ;;
                    257:
                    258:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    259:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    260:   | --exec | --exe | --ex)
                    261:     ac_prev=exec_prefix ;;
                    262:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    263:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    264:   | --exec=* | --exe=* | --ex=*)
                    265:     exec_prefix="$ac_optarg" ;;
                    266:
                    267:   -gas | --gas | --ga | --g)
                    268:     # Obsolete; use --with-gas.
                    269:     with_gas=yes ;;
                    270:
                    271:   -help | --help | --hel | --he)
                    272:     # Omit some internal or obsolete options to make the list less imposing.
                    273:     # This message is too long to be a string in the A/UX 3.1 sh.
                    274:     cat << EOF
                    275: Usage: configure [options] [host]
                    276: Options: [defaults in brackets after descriptions]
                    277: Configuration:
                    278:   --cache-file=FILE       cache test results in FILE
                    279:   --help                  print this message
                    280:   --no-create             do not create output files
                    281:   --quiet, --silent       do not print \`checking...' messages
                    282:   --version               print the version of autoconf that created configure
                    283: Directory and file names:
                    284:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    285:                           [$ac_default_prefix]
                    286:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    287:                           [same as prefix]
                    288:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    289:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    290:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    291:   --datadir=DIR           read-only architecture-independent data in DIR
                    292:                           [PREFIX/share]
                    293:   --sysconfdir=DIR        read-only single-machine data in DIR [/etc]
                    294:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    295:                           [PREFIX/com]
                    296:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    297:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    298:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    299:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    300:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    301:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    302:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    303:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    304:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    305:   --program-transform-name=PROGRAM
                    306:                           run sed PROGRAM on installed program names
                    307: EOF
                    308:     cat << EOF
                    309: Host type:
                    310:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    311:   --host=HOST             configure for HOST [guessed]
                    312:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    313: Features and packages:
                    314:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    315:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    316:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    317:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    318:   --x-includes=DIR        X include files are in DIR
                    319:   --x-libraries=DIR       X library files are in DIR
                    320: EOF
                    321:     if test -n "$ac_help"; then
                    322:       echo "--enable and --with options recognized:$ac_help"
                    323:     fi
                    324:     exit 0 ;;
                    325:
                    326:   -host | --host | --hos | --ho)
                    327:     ac_prev=host ;;
                    328:   -host=* | --host=* | --hos=* | --ho=*)
                    329:     host="$ac_optarg" ;;
                    330:
                    331:   -includedir | --includedir | --includedi | --included | --include \
                    332:   | --includ | --inclu | --incl | --inc)
                    333:     ac_prev=includedir ;;
                    334:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    335:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    336:     includedir="$ac_optarg" ;;
                    337:
                    338:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    339:     ac_prev=infodir ;;
                    340:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    341:     infodir="$ac_optarg" ;;
                    342:
                    343:   -libdir | --libdir | --libdi | --libd)
                    344:     ac_prev=libdir ;;
                    345:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    346:     libdir="$ac_optarg" ;;
                    347:
                    348:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    349:   | --libexe | --libex | --libe)
                    350:     ac_prev=libexecdir ;;
                    351:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    352:   | --libexe=* | --libex=* | --libe=*)
                    353:     libexecdir="$ac_optarg" ;;
                    354:
                    355:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    356:   | --localstate | --localstat | --localsta | --localst \
                    357:   | --locals | --local | --loca | --loc | --lo)
                    358:     ac_prev=localstatedir ;;
                    359:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    360:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    361:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    362:     localstatedir="$ac_optarg" ;;
                    363:
                    364:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    365:     ac_prev=mandir ;;
                    366:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    367:     mandir="$ac_optarg" ;;
                    368:
                    369:   -nfp | --nfp | --nf)
                    370:     # Obsolete; use --without-fp.
                    371:     with_fp=no ;;
                    372:
                    373:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    374:   | --no-cr | --no-c)
                    375:     no_create=yes ;;
                    376:
                    377:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    378:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    379:     no_recursion=yes ;;
                    380:
                    381:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    382:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    383:   | --oldin | --oldi | --old | --ol | --o)
                    384:     ac_prev=oldincludedir ;;
                    385:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    386:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    387:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    388:     oldincludedir="$ac_optarg" ;;
                    389:
                    390:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    391:     ac_prev=prefix ;;
                    392:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    393:     prefix="$ac_optarg" ;;
                    394:
                    395:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    396:   | --program-pre | --program-pr | --program-p)
                    397:     ac_prev=program_prefix ;;
                    398:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    399:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    400:     program_prefix="$ac_optarg" ;;
                    401:
                    402:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    403:   | --program-suf | --program-su | --program-s)
                    404:     ac_prev=program_suffix ;;
                    405:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    406:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    407:     program_suffix="$ac_optarg" ;;
                    408:
                    409:   -program-transform-name | --program-transform-name \
                    410:   | --program-transform-nam | --program-transform-na \
                    411:   | --program-transform-n | --program-transform- \
                    412:   | --program-transform | --program-transfor \
                    413:   | --program-transfo | --program-transf \
                    414:   | --program-trans | --program-tran \
                    415:   | --progr-tra | --program-tr | --program-t)
                    416:     ac_prev=program_transform_name ;;
                    417:   -program-transform-name=* | --program-transform-name=* \
                    418:   | --program-transform-nam=* | --program-transform-na=* \
                    419:   | --program-transform-n=* | --program-transform-=* \
                    420:   | --program-transform=* | --program-transfor=* \
                    421:   | --program-transfo=* | --program-transf=* \
                    422:   | --program-trans=* | --program-tran=* \
                    423:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    424:     program_transform_name="$ac_optarg" ;;
                    425:
                    426:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    427:   | -silent | --silent | --silen | --sile | --sil)
                    428:     silent=yes ;;
                    429:
                    430:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    431:     ac_prev=sbindir ;;
                    432:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    433:   | --sbi=* | --sb=*)
                    434:     sbindir="$ac_optarg" ;;
                    435:
                    436:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    437:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    438:   | --sharedst | --shareds | --shared | --share | --shar \
                    439:   | --sha | --sh)
                    440:     ac_prev=sharedstatedir ;;
                    441:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    442:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    443:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    444:   | --sha=* | --sh=*)
                    445:     sharedstatedir="$ac_optarg" ;;
                    446:
                    447:   -site | --site | --sit)
                    448:     ac_prev=site ;;
                    449:   -site=* | --site=* | --sit=*)
                    450:     site="$ac_optarg" ;;
                    451:
                    452:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    453:     ac_prev=srcdir ;;
                    454:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    455:     srcdir="$ac_optarg" ;;
                    456:
                    457:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    458:   | --syscon | --sysco | --sysc | --sys | --sy)
                    459:     ac_prev=sysconfdir ;;
                    460:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    461:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    462:     sysconfdir="$ac_optarg" ;;
                    463:
                    464:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    465:     ac_prev=target ;;
                    466:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    467:     target="$ac_optarg" ;;
                    468:
                    469:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    470:     verbose=yes ;;
                    471:
                    472:   -version | --version | --versio | --versi | --vers)
                    473:     echo "configure generated by autoconf version 2.12"
                    474:     exit 0 ;;
                    475:
                    476:   -with-* | --with-*)
                    477:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    478:     # Reject names that are not valid shell variable names.
                    479:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    480:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    481:     fi
                    482:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    483:     case "$ac_option" in
                    484:       *=*) ;;
                    485:       *) ac_optarg=yes ;;
                    486:     esac
                    487:     eval with_${ac_package}='$ac_optarg' ;;
                    488:
                    489:   -without-* | --without-*)
                    490:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    491:     # Reject names that are not valid shell variable names.
                    492:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    493:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    494:     fi
                    495:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    496:     eval "with_${ac_package}=no" ;;
                    497:
                    498:   --x)
                    499:     # Obsolete; use --with-x.
                    500:     with_x=yes ;;
                    501:
                    502:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    503:   | --x-incl | --x-inc | --x-in | --x-i)
                    504:     ac_prev=x_includes ;;
                    505:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    506:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    507:     x_includes="$ac_optarg" ;;
                    508:
                    509:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    510:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    511:     ac_prev=x_libraries ;;
                    512:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    513:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    514:     x_libraries="$ac_optarg" ;;
                    515:
                    516:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    517:     ;;
                    518:
                    519:   *)
                    520:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    521:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    522:     fi
                    523:     if test "x$nonopt" != xNONE; then
                    524:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    525:     fi
                    526:     nonopt="$ac_option"
                    527:     ;;
                    528:
                    529:   esac
                    530: done
                    531:
                    532: if test -n "$ac_prev"; then
                    533:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    534: fi
                    535:
                    536: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    537:
                    538: # File descriptor usage:
                    539: # 0 standard input
                    540: # 1 file creation
                    541: # 2 errors and warnings
                    542: # 3 some systems may open it to /dev/tty
                    543: # 4 used on the Kubota Titan
                    544: # 6 checking for... messages and results
                    545: # 5 compiler messages saved in config.log
                    546: if test "$silent" = yes; then
                    547:   exec 6>/dev/null
                    548: else
                    549:   exec 6>&1
                    550: fi
                    551: exec 5>./config.log
                    552:
                    553: echo "\
                    554: This file contains any messages produced by compilers while
                    555: running configure, to aid debugging if configure makes a mistake.
                    556: " 1>&5
                    557:
                    558: # Strip out --no-create and --no-recursion so they do not pile up.
                    559: # Also quote any args containing shell metacharacters.
                    560: ac_configure_args=
                    561: for ac_arg
                    562: do
                    563:   case "$ac_arg" in
                    564:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    565:   | --no-cr | --no-c) ;;
                    566:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    567:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    568:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    569:   ac_configure_args="$ac_configure_args \"$ac_arg\"" ;;
                    570:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    571:   esac
                    572: done
                    573:
                    574: # NLS nuisances.
                    575: # Only set these to C if already set.  These must not be set unconditionally
                    576: # because not all systems understand e.g. LANG=C (notably SCO).
                    577: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    578: # Non-C LC_CTYPE values break the ctype check.
                    579: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    580: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    581: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    582: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    583:
                    584: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    585: rm -rf conftest* confdefs.h
                    586: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    587: echo > confdefs.h
                    588:
                    589: # A filename unique to this package, relative to the directory that
                    590: # configure is in, which we can look for to find out if srcdir is correct.
                    591: ac_unique_file=sudo.h
                    592:
                    593: # Find the source files, if location was not specified.
                    594: if test -z "$srcdir"; then
                    595:   ac_srcdir_defaulted=yes
                    596:   # Try the directory containing this script, then its parent.
                    597:   ac_prog=$0
                    598:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    599:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    600:   srcdir=$ac_confdir
                    601:   if test ! -r $srcdir/$ac_unique_file; then
                    602:     srcdir=..
                    603:   fi
                    604: else
                    605:   ac_srcdir_defaulted=no
                    606: fi
                    607: if test ! -r $srcdir/$ac_unique_file; then
                    608:   if test "$ac_srcdir_defaulted" = yes; then
                    609:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    610:   else
                    611:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    612:   fi
                    613: fi
                    614: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    615:
                    616: # Prefer explicitly selected file to automatically selected ones.
                    617: if test -z "$CONFIG_SITE"; then
                    618:   if test "x$prefix" != xNONE; then
                    619:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    620:   else
                    621:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    622:   fi
                    623: fi
                    624: for ac_site_file in $CONFIG_SITE; do
                    625:   if test -r "$ac_site_file"; then
                    626:     echo "loading site script $ac_site_file"
                    627:     . "$ac_site_file"
                    628:   fi
                    629: done
                    630:
                    631: if test -r "$cache_file"; then
                    632:   echo "loading cache $cache_file"
                    633:   . $cache_file
                    634: else
                    635:   echo "creating cache $cache_file"
                    636:   > $cache_file
                    637: fi
                    638:
                    639: ac_ext=c
                    640: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    641: ac_cpp='$CPP $CPPFLAGS'
                    642: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    643: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    644: cross_compiling=$ac_cv_prog_cc_cross
                    645:
                    646: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    647:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    648:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    649:     ac_n= ac_c='
                    650: ' ac_t='       '
                    651:   else
                    652:     ac_n=-n ac_c= ac_t=
                    653:   fi
                    654: else
                    655:   ac_n= ac_c='\c' ac_t=
                    656: fi
                    657:
                    658:
                    659:
1.3     ! millert   660: echo "Configuring Sudo version 1.6.1"
1.1       millert   661: PROGS="sudo visudo"
                    662: CPPFLAGS=""
                    663: LDFLAGS=""
                    664: SUDO_LDFLAGS=""
                    665: LIBS=""
                    666: SUDO_LIBS=""
                    667: NET_LIBS=""
                    668: AFS_LIBS=""
                    669: OSDEFS=""
                    670: AUTH_OBJS=""
                    671: LIBOBJS=""
                    672: MANTYPE="man"
                    673: MAN_POSTINSTALL=""
                    674: SUDOERS_MODE=0440
                    675: SUDOERS_UID=0
                    676: SUDOERS_GID=0
                    677: DEV="#"
                    678:
                    679: CHECKSHADOW=true
                    680: CHECKSIA=true
                    681:
                    682: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                    683: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                    684: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
                    685: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
                    686:
                    687:
                    688: # Check whether --with-otp-only or --without-otp-only was given.
                    689: if test "${with_otp_only+set}" = set; then
                    690:   withval="$with_otp_only"
                    691:   case $with_otp_only in
                    692:     yes)       with_passwd=no
                    693:                cat >> confdefs.h <<\EOF
                    694: #define WITHOUT_PASSWD 1
                    695: EOF
                    696:
                    697:                echo "configure: warning: --with-otp-only option deprecated, treating as --without-passwd" 1>&2
                    698:                ;;
                    699: esac
                    700: fi
                    701:
                    702:
                    703: # Check whether --with-alertmail or --without-alertmail was given.
                    704: if test "${with_alertmail+set}" = set; then
                    705:   withval="$with_alertmail"
                    706:   case $with_alertmail in
                    707:     *)         with_mailto="$with_alertmail"
                    708:                cat >> confdefs.h <<\EOF
                    709: #define WITHOUT_PASSWD 1
                    710: EOF
                    711:
                    712:                echo "configure: warning: --with-alertmail option deprecated, treating as --mailto" 1>&2
                    713:                ;;
                    714: esac
                    715: fi
                    716:
                    717:
                    718:
                    719: # Check whether --with-CC or --without-CC was given.
                    720: if test "${with_CC+set}" = set; then
                    721:   withval="$with_CC"
                    722:   case $with_CC in
                    723:     yes)       { echo "configure: error: "must give --with-CC an argument."" 1>&2; exit 1; }
                    724:                ;;
                    725:     no)                { echo "configure: error: "illegal argument: --without-CC."" 1>&2; exit 1; }
                    726:                ;;
                    727:     *)         CC=$with_CC
                    728:                ;;
                    729: esac
                    730: fi
                    731:
                    732:
                    733: # Check whether --with-incpath or --without-incpath was given.
                    734: if test "${with_incpath+set}" = set; then
                    735:   withval="$with_incpath"
                    736:   case $with_incpath in
                    737:     yes)       { echo "configure: error: "must give --with-incpath an argument."" 1>&2; exit 1; }
                    738:                ;;
                    739:     no)                { echo "configure: error: "--without-incpath not supported."" 1>&2; exit 1; }
                    740:                ;;
                    741:     *)         echo "Adding ${with_incpath} to CPPFLAGS"
                    742:                for i in ${with_incpath}; do
                    743:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                    744:                done
                    745:                ;;
                    746: esac
                    747: fi
                    748:
                    749:
                    750: # Check whether --with-libpath or --without-libpath was given.
                    751: if test "${with_libpath+set}" = set; then
                    752:   withval="$with_libpath"
                    753:   case $with_libpath in
                    754:     yes)       { echo "configure: error: "must give --with-libpath an argument."" 1>&2; exit 1; }
                    755:                ;;
                    756:     no)                { echo "configure: error: "--without-libpath not supported."" 1>&2; exit 1; }
                    757:                ;;
                    758:     *)         echo "Adding ${with_libpath} to LDFLAGS"
                    759:                for i in ${with_libpath}; do
                    760:                    LDFLAGS="${LDFLAGS} -L${i}"
                    761:                done
                    762:                ;;
                    763: esac
                    764: fi
                    765:
                    766:
                    767: # Check whether --with-libraries or --without-libraries was given.
                    768: if test "${with_libraries+set}" = set; then
                    769:   withval="$with_libraries"
                    770:   case $with_libraries in
                    771:     yes)       { echo "configure: error: "must give --with-libraries an argument."" 1>&2; exit 1; }
                    772:                ;;
                    773:     no)                { echo "configure: error: "--without-libraries not supported."" 1>&2; exit 1; }
                    774:                ;;
                    775:     *)         echo "Adding ${with_libraries} to LIBS"
                    776:                for i in ${with_libraries}; do
                    777:                    case $i in
                    778:                        -l*)    ;;
                    779:                        *.a)    ;;
                    780:                        *.o)    ;;
                    781:                        *)      i="-l${i}";;
                    782:                    esac
                    783:                    LIBS="${LIBS} ${i}"
                    784:                done
                    785:                ;;
                    786: esac
                    787: fi
                    788:
                    789:
                    790: # Check whether --with-devel or --without-devel was given.
                    791: if test "${with_devel+set}" = set; then
                    792:   withval="$with_devel"
                    793:   case $with_devel in
                    794:     yes)       echo 'Setting up for developement: -Wall, flex, yacc'
                    795:                PROGS="${PROGS} testsudoers"
                    796:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                    797:                DEV=""
                    798:                ;;
                    799:     no)                ;;
                    800:     *)         echo "Ignoring unknown argument to --with-devel: $with_csops"
                    801:                ;;
                    802: esac
                    803: fi
                    804:
                    805:
                    806: # Check whether --with-csops or --without-csops was given.
                    807: if test "${with_csops+set}" = set; then
                    808:   withval="$with_csops"
                    809:   case $with_csops in
                    810:     yes)       echo 'Adding CSOps standard options'
                    811:                CHECKSIA=false
                    812:                with_ignore_dot=yes
                    813:                with_insults=yes
                    814:                with_classic_insults=yes
                    815:                with_csops_insults=yes
                    816:                with_env_editor=yes
                    817:                ;;
                    818:     no)                ;;
                    819:     *)         echo "Ignoring unknown argument to --with-csops: $with_csops"
                    820:                ;;
                    821: esac
                    822: fi
                    823:
                    824:
                    825: # Check whether --with-passwd or --without-passwd was given.
                    826: if test "${with_passwd+set}" = set; then
                    827:   withval="$with_passwd"
                    828:   case $with_passwd in
                    829:     yes)       ;;
                    830:     no)                cat >> confdefs.h <<\EOF
                    831: #define WITHOUT_PASSWD 1
                    832: EOF
                    833:
                    834:                echo $ac_n "checking whether to use shadow/passwd file authentication""... $ac_c" 1>&6
                    835: echo "configure:836: checking whether to use shadow/passwd file authentication" >&5
                    836:                echo "$ac_t""no" 1>&6
                    837:                ;;
                    838:     *)         { echo "configure: error: "Sorry, --with-passwd does not take an argument."" 1>&2; exit 1; }
                    839:                ;;
                    840: esac
                    841: fi
                    842:
                    843:
                    844: # Check whether --with-skey or --without-skey was given.
                    845: if test "${with_skey+set}" = set; then
                    846:   withval="$with_skey"
                    847:   case $with_skey in
                    848:     yes)       if test -n "$with_opie"; then
                    849:                    { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
                    850:                fi
                    851:                cat >> confdefs.h <<\EOF
                    852: #define HAVE_SKEY 1
                    853: EOF
                    854:
                    855:                echo $ac_n "checking whether to try S/Key authentication""... $ac_c" 1>&6
                    856: echo "configure:857: checking whether to try S/Key authentication" >&5
                    857:                echo "$ac_t""yes" 1>&6
                    858:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                    859:                ;;
                    860:     no)                ;;
                    861:     *)         echo "Ignoring unknown argument to --with-skey: $with_skey"
                    862:                ;;
                    863: esac
                    864: fi
                    865:
                    866:
                    867: # Check whether --with-opie or --without-opie was given.
                    868: if test "${with_opie+set}" = set; then
                    869:   withval="$with_opie"
                    870:   case $with_opie in
                    871:     yes)       if test -n "$with_skey"; then
                    872:                    { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
                    873:                fi
                    874:                cat >> confdefs.h <<\EOF
                    875: #define HAVE_OPIE 1
                    876: EOF
                    877:
                    878:                echo $ac_n "checking whether to try NRL OPIE authentication""... $ac_c" 1>&6
                    879: echo "configure:880: checking whether to try NRL OPIE authentication" >&5
                    880:                echo "$ac_t""yes" 1>&6
                    881:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                    882:                ;;
                    883:     no)                ;;
                    884:     *)         echo "Ignoring unknown argument to --with-opie: $with_opie"
                    885:                ;;
                    886: esac
                    887: fi
                    888:
                    889:
                    890: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
                    891: if test "${with_long_otp_prompt+set}" = set; then
                    892:   withval="$with_long_otp_prompt"
                    893:   case $with_long_otp_prompt in
                    894:     yes)       cat >> confdefs.h <<\EOF
                    895: #define LONG_OTP_PROMPT 1
                    896: EOF
                    897:
                    898:                echo $ac_n "checking whether to use a two line prompt for OTP authentication""... $ac_c" 1>&6
                    899: echo "configure:900: checking whether to use a two line prompt for OTP authentication" >&5
                    900:                echo "$ac_t""yes" 1>&6
                    901:                ;;
                    902:     no)                ;;
                    903:     *)         { echo "configure: error: "--with-long-otp-prompt does not take an argument."" 1>&2; exit 1; }
                    904:                ;;
                    905: esac
                    906: fi
                    907:
                    908:
                    909: # Check whether --with-SecurID or --without-SecurID was given.
                    910: if test "${with_SecurID+set}" = set; then
                    911:   withval="$with_SecurID"
                    912:   case $with_SecurID in
                    913:     no)                ;;
                    914:     *)         cat >> confdefs.h <<\EOF
                    915: #define HAVE_SECURID 1
                    916: EOF
                    917:
                    918:                echo $ac_n "checking whether to use SecurID for authentication""... $ac_c" 1>&6
                    919: echo "configure:920: checking whether to use SecurID for authentication" >&5
                    920:                echo "$ac_t""yes" 1>&6
                    921:                with_passwd=no
                    922:                AUTH_OBJS="securid.o"
                    923:                ;;
                    924: esac
                    925: fi
                    926:
                    927:
                    928: # Check whether --with-fwtk or --without-fwtk was given.
                    929: if test "${with_fwtk+set}" = set; then
                    930:   withval="$with_fwtk"
                    931:   case $with_fwtk in
                    932:     yes)       cat >> confdefs.h <<\EOF
                    933: #define HAVE_FWTK 1
                    934: EOF
                    935:
                    936:                echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
                    937: echo "configure:938: checking whether to use FWTK AuthSRV for authentication" >&5
                    938:                echo "$ac_t""yes" 1>&6
                    939:                with_passwd=no
                    940:                AUTH_OBJS="fwtk.o"
                    941:                ;;
                    942:     no)                ;;
                    943:     *)         cat >> confdefs.h <<\EOF
                    944: #define HAVE_FWTK 1
                    945: EOF
                    946:
                    947:                echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
                    948: echo "configure:949: checking whether to use FWTK AuthSRV for authentication" >&5
                    949:                echo "$ac_t""yes" 1>&6
                    950:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                    951:                CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                    952:                with_passwd=no
                    953:                AUTH_OBJS="fwtk.o"
                    954:                with_fwtk=yes
                    955:                ;;
                    956: esac
                    957: fi
                    958:
                    959:
                    960: # Check whether --with-kerb4 or --without-kerb4 was given.
                    961: if test "${with_kerb4+set}" = set; then
                    962:   withval="$with_kerb4"
                    963:   case $with_kerb4 in
                    964:     yes)       echo $ac_n "checking whether to try Kerberos 4 authentication""... $ac_c" 1>&6
                    965: echo "configure:966: checking whether to try Kerberos 4 authentication" >&5
                    966:                echo "$ac_t""yes" 1>&6
                    967:                ;;
                    968:     no)                ;;
                    969:     *)         { echo "configure: error: "--with-kerb4 does not take an argument."" 1>&2; exit 1; }
                    970:                ;;
                    971: esac
                    972: fi
                    973:
                    974:
                    975: # Check whether --with-kerb5 or --without-kerb5 was given.
                    976: if test "${with_kerb5+set}" = set; then
                    977:   withval="$with_kerb5"
                    978:   case $with_kerb5 in
                    979:     yes)       echo $ac_n "checking whether to try Kerberos 5 authentication""... $ac_c" 1>&6
                    980: echo "configure:981: checking whether to try Kerberos 5 authentication" >&5
                    981:                echo "$ac_t""yes" 1>&6
                    982:                ;;
                    983:     no)                ;;
                    984:     *)         { echo "configure: error: "--with-kerb5 does not take an argument."" 1>&2; exit 1; }
                    985:                ;;
                    986: esac
                    987: fi
                    988:
                    989:
                    990: # Check whether --with-authenticate or --without-authenticate was given.
                    991: if test "${with_authenticate+set}" = set; then
                    992:   withval="$with_authenticate"
                    993:   case $with_authenticate in
                    994:     yes)       cat >> confdefs.h <<\EOF
                    995: #define HAVE_AUTHENTICATE 1
                    996: EOF
                    997:
                    998:                echo $ac_n "checking whether to use AIX general authentication""... $ac_c" 1>&6
                    999: echo "configure:1000: checking whether to use AIX general authentication" >&5
                   1000:                echo "$ac_t""yes" 1>&6
                   1001:                with_passwd=no
                   1002:                AUTH_OBJS="aix_auth.o"
                   1003:                ;;
                   1004:     no)                ;;
                   1005:     *)         { echo "configure: error: "--with-authenticate does not take an argument."" 1>&2; exit 1; }
                   1006:                ;;
                   1007: esac
                   1008: fi
                   1009:
                   1010:
                   1011: # Check whether --with-pam or --without-pam was given.
                   1012: if test "${with_pam+set}" = set; then
                   1013:   withval="$with_pam"
                   1014:   case $with_pam in
                   1015:     yes)       cat >> confdefs.h <<\EOF
                   1016: #define HAVE_PAM 1
                   1017: EOF
                   1018:
                   1019:                echo $ac_n "checking whether to use PAM authentication""... $ac_c" 1>&6
                   1020: echo "configure:1021: checking whether to use PAM authentication" >&5
                   1021:                echo "$ac_t""yes" 1>&6
                   1022:                with_passwd=no
                   1023:                AUTH_OBJS="pam.o"
                   1024:                ;;
                   1025:     no)                ;;
                   1026:     *)         { echo "configure: error: "--with-pam does not take an argument."" 1>&2; exit 1; }
                   1027:                ;;
                   1028: esac
                   1029: fi
                   1030:
                   1031:
                   1032: # Check whether --with-AFS or --without-AFS was given.
                   1033: if test "${with_AFS+set}" = set; then
                   1034:   withval="$with_AFS"
                   1035:   case $with_AFS in
                   1036:     yes)       cat >> confdefs.h <<\EOF
                   1037: #define HAVE_AFS 1
                   1038: EOF
                   1039:
                   1040:                echo $ac_n "checking whether to try AFS (kerberos) authentication""... $ac_c" 1>&6
                   1041: echo "configure:1042: checking whether to try AFS (kerberos) authentication" >&5
                   1042:                echo "$ac_t""yes" 1>&6
                   1043:                AUTH_OBJS="${AUTH_OBJS} afs.o"
                   1044:                ;;
                   1045:     no)                ;;
                   1046:     *)         { echo "configure: error: "--with-AFS does not take an argument."" 1>&2; exit 1; }
                   1047:                ;;
                   1048: esac
                   1049: fi
                   1050:
                   1051:
                   1052: # Check whether --with-DCE or --without-DCE was given.
                   1053: if test "${with_DCE+set}" = set; then
                   1054:   withval="$with_DCE"
                   1055:   case $with_DCE in
                   1056:     yes)       cat >> confdefs.h <<\EOF
                   1057: #define HAVE_DCE 1
                   1058: EOF
                   1059:
                   1060:                echo $ac_n "checking whether to try DCE (kerberos) authentication""... $ac_c" 1>&6
                   1061: echo "configure:1062: checking whether to try DCE (kerberos) authentication" >&5
                   1062:                echo "$ac_t""yes" 1>&6
                   1063:                AUTH_OBJS="${AUTH_OBJS} dce.o"
                   1064:                ;;
                   1065:     no)                ;;
                   1066:     *)         { echo "configure: error: "--with-DCE does not take an argument."" 1>&2; exit 1; }
                   1067:                ;;
                   1068: esac
                   1069: fi
                   1070:
                   1071:
                   1072: echo $ac_n "checking whether to lecture users the first time they run sudo""... $ac_c" 1>&6
                   1073: echo "configure:1074: checking whether to lecture users the first time they run sudo" >&5
                   1074: # Check whether --with-lecture or --without-lecture was given.
                   1075: if test "${with_lecture+set}" = set; then
                   1076:   withval="$with_lecture"
                   1077:   case $with_lecture in
                   1078:     yes|short) echo "$ac_t""yes" 1>&6
                   1079:                ;;
                   1080:     no|none)   cat >> confdefs.h <<\EOF
                   1081: #define NO_LECTURE 1
                   1082: EOF
                   1083:
                   1084:                echo "$ac_t""no" 1>&6
                   1085:                ;;
                   1086:     *)         { echo "configure: error: "unknown argument to --with-lecture: $with_lecture"" 1>&2; exit 1; }
                   1087:                ;;
                   1088: esac
                   1089: else
                   1090:   echo "$ac_t""yes" 1>&6
                   1091: fi
                   1092:
                   1093:
                   1094: echo $ac_n "checking whether sudo should log via syslog or to a file by default""... $ac_c" 1>&6
                   1095: echo "configure:1096: checking whether sudo should log via syslog or to a file by default" >&5
                   1096: # Check whether --with-logging or --without-logging was given.
                   1097: if test "${with_logging+set}" = set; then
                   1098:   withval="$with_logging"
                   1099:   case $with_logging in
                   1100:     yes)       { echo "configure: error: "must give --with-logging an argument."" 1>&2; exit 1; }
                   1101:                ;;
                   1102:     no)                { echo "configure: error: "--without-logging not supported."" 1>&2; exit 1; }
                   1103:                ;;
                   1104:     syslog)    cat >> confdefs.h <<\EOF
                   1105: #define LOGGING SLOG_SYSLOG
                   1106: EOF
                   1107:
                   1108:                echo "$ac_t""syslog" 1>&6
                   1109:                ;;
                   1110:     file)      cat >> confdefs.h <<\EOF
                   1111: #define LOGGING SLOG_FILE
                   1112: EOF
                   1113:
                   1114:                echo "$ac_t""file" 1>&6
                   1115:                ;;
                   1116:     both)      cat >> confdefs.h <<\EOF
                   1117: #define LOGGING SLOG_BOTH
                   1118: EOF
                   1119:
                   1120:                echo "$ac_t""both" 1>&6
                   1121:                ;;
                   1122:     *)         { echo "configure: error: "unknown argument to --with-logging: $with_logging"" 1>&2; exit 1; }
                   1123:                ;;
                   1124: esac
                   1125: else
                   1126:   cat >> confdefs.h <<\EOF
                   1127: #define LOGGING SLOG_SYSLOG
                   1128: EOF
                   1129:  echo "$ac_t""syslog" 1>&6
                   1130: fi
                   1131:
                   1132:
                   1133: echo $ac_n "checking which syslog facility sudo should log with""... $ac_c" 1>&6
                   1134: echo "configure:1135: checking which syslog facility sudo should log with" >&5
                   1135: # Check whether --with-logfac or --without-logfac was given.
                   1136: if test "${with_logfac+set}" = set; then
                   1137:   withval="$with_logfac"
                   1138:   case $with_logfac in
                   1139:     yes)       { echo "configure: error: "must give --with-logfac an argument."" 1>&2; exit 1; }
                   1140:                ;;
                   1141:     no)                { echo "configure: error: "--without-logfac not supported."" 1>&2; exit 1; }
                   1142:                ;;
                   1143:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         cat >> confdefs.h <<EOF
                   1144: #define LOGFAC "$with_logfac"
                   1145: EOF
                   1146:
                   1147:                echo "$ac_t""$with_logfac" 1>&6
                   1148:                ;;
                   1149:     *)         { echo "configure: error: "$with_logfac is not a supported syslog facility."" 1>&2; exit 1; }
                   1150:                ;;
                   1151: esac
                   1152: else
                   1153:   cat >> confdefs.h <<EOF
                   1154: #define LOGFAC "local2"
                   1155: EOF
                   1156:  echo "$ac_t"""local2"" 1>&6
                   1157: fi
                   1158:
                   1159:
                   1160: echo $ac_n "checking at which syslog priority to log commands""... $ac_c" 1>&6
                   1161: echo "configure:1162: checking at which syslog priority to log commands" >&5
                   1162: # Check whether --with-goodpri or --without-goodpri was given.
                   1163: if test "${with_goodpri+set}" = set; then
                   1164:   withval="$with_goodpri"
                   1165:   case $with_goodpri in
                   1166:     yes)       { echo "configure: error: "must give --with-goodpri an argument."" 1>&2; exit 1; }
                   1167:                ;;
                   1168:     no)                { echo "configure: error: "--without-goodpri not supported."" 1>&2; exit 1; }
                   1169:                ;;
                   1170:     alert|crit|debug|emerg|err|info|notice|warning)            cat >> confdefs.h <<EOF
                   1171: #define PRI_SUCCESS "$with_goodpri"
                   1172: EOF
                   1173:
                   1174:                echo "$ac_t""$with_goodpri" 1>&6
                   1175:                ;;
                   1176:     *)         { echo "configure: error: "$with_goodpri is not a supported syslog priority."" 1>&2; exit 1; }
                   1177:                ;;
                   1178: esac
                   1179: else
                   1180:   cat >> confdefs.h <<EOF
                   1181: #define PRI_SUCCESS "notice"
                   1182: EOF
                   1183:  echo "$ac_t"""notice"" 1>&6
                   1184: fi
                   1185:
                   1186:
                   1187: echo $ac_n "checking at which syslog priority to log failures""... $ac_c" 1>&6
                   1188: echo "configure:1189: checking at which syslog priority to log failures" >&5
                   1189: # Check whether --with-badpri or --without-badpri was given.
                   1190: if test "${with_badpri+set}" = set; then
                   1191:   withval="$with_badpri"
                   1192:   case $with_badpri in
                   1193:     yes)       { echo "configure: error: "must give --with-badpri an argument."" 1>&2; exit 1; }
                   1194:                ;;
                   1195:     no)                { echo "configure: error: "--without-badpri not supported."" 1>&2; exit 1; }
                   1196:                ;;
                   1197:     alert|crit|debug|emerg|err|info|notice|warning)            cat >> confdefs.h <<EOF
                   1198: #define PRI_FAILURE "$with_badpri"
                   1199: EOF
                   1200:
                   1201:                echo "$ac_t""$with_badpri" 1>&6
                   1202:                ;;
                   1203:     *)         { echo "configure: error: $with_badpri is not a supported syslog priority." 1>&2; exit 1; }
                   1204:                ;;
                   1205: esac
                   1206: else
                   1207:   cat >> confdefs.h <<EOF
                   1208: #define PRI_FAILURE "alert"
                   1209: EOF
                   1210:  echo "$ac_t"""alert"" 1>&6
                   1211: fi
                   1212:
                   1213:
                   1214: # Check whether --with-logpath or --without-logpath was given.
                   1215: if test "${with_logpath+set}" = set; then
                   1216:   withval="$with_logpath"
                   1217:   case $with_logpath in
                   1218:     yes)       { echo "configure: error: "must give --with-logpath an argument."" 1>&2; exit 1; }
                   1219:                ;;
                   1220:     no)                { echo "configure: error: "--without-logpath not supported."" 1>&2; exit 1; }
                   1221:                ;;
                   1222: esac
                   1223: fi
                   1224:
                   1225:
                   1226: echo $ac_n "checking how long a line in the log file should be""... $ac_c" 1>&6
                   1227: echo "configure:1228: checking how long a line in the log file should be" >&5
                   1228: # Check whether --with-loglen or --without-loglen was given.
                   1229: if test "${with_loglen+set}" = set; then
                   1230:   withval="$with_loglen"
                   1231:   case $with_loglen in
                   1232:     yes)       { echo "configure: error: "must give --with-loglen an argument."" 1>&2; exit 1; }
                   1233:                ;;
                   1234:     no)                { echo "configure: error: "--without-loglen not supported."" 1>&2; exit 1; }
                   1235:                ;;
                   1236:     [0-9]*)    cat >> confdefs.h <<EOF
                   1237: #define MAXLOGFILELEN $with_loglen
                   1238: EOF
                   1239:
                   1240:                echo "$ac_t""$with_loglen" 1>&6
                   1241:                ;;
                   1242:     *)         { echo "configure: error: "you must enter a number, not $with_loglen"" 1>&2; exit 1; }
                   1243:                ;;
                   1244: esac
                   1245: else
                   1246:   cat >> confdefs.h <<\EOF
                   1247: #define MAXLOGFILELEN 80
                   1248: EOF
                   1249:  echo "$ac_t""80" 1>&6
                   1250: fi
                   1251:
                   1252:
                   1253: echo $ac_n "checking whether sudo should ignore '.' or '' in \$PATH""... $ac_c" 1>&6
                   1254: echo "configure:1255: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   1255: # Check whether --with-ignore-dot or --without-ignore-dot was given.
                   1256: if test "${with_ignore_dot+set}" = set; then
                   1257:   withval="$with_ignore_dot"
                   1258:   case $with_ignore_dot in
                   1259:     yes)       cat >> confdefs.h <<\EOF
                   1260: #define IGNORE_DOT_PATH 1
                   1261: EOF
                   1262:
                   1263:                echo "$ac_t""yes" 1>&6
                   1264:                ;;
                   1265:     no)                echo "$ac_t""no" 1>&6
                   1266:                ;;
                   1267:     *)         { echo "configure: error: "--with-ignore-dot does not take an argument."" 1>&2; exit 1; }
                   1268:                ;;
                   1269: esac
                   1270: else
                   1271:   echo "$ac_t""no" 1>&6
                   1272: fi
                   1273:
                   1274:
                   1275: echo $ac_n "checking who should get the mail that sudo sends""... $ac_c" 1>&6
                   1276: echo "configure:1277: checking who should get the mail that sudo sends" >&5
                   1277: # Check whether --with-mailto or --without-mailto was given.
                   1278: if test "${with_mailto+set}" = set; then
                   1279:   withval="$with_mailto"
                   1280:   case $with_mailto in
                   1281:     yes)       { echo "configure: error: "must give --with-mailto an argument."" 1>&2; exit 1; }
                   1282:                ;;
                   1283:     no)                { echo "configure: error: "--without-mailto not supported."" 1>&2; exit 1; }
                   1284:                ;;
                   1285:     *)         cat >> confdefs.h <<EOF
                   1286: #define MAILTO "$with_mailto"
                   1287: EOF
                   1288:
                   1289:                echo "$ac_t""$with_mailto" 1>&6
                   1290:                ;;
                   1291: esac
                   1292: else
                   1293:   cat >> confdefs.h <<\EOF
                   1294: #define MAILTO "root"
                   1295: EOF
                   1296:  echo "$ac_t""root" 1>&6
                   1297: fi
                   1298:
                   1299:
                   1300: # Check whether --with-mailsubject or --without-mailsubject was given.
                   1301: if test "${with_mailsubject+set}" = set; then
                   1302:   withval="$with_mailsubject"
                   1303:   case $with_mailsubject in
                   1304:     yes)       { echo "configure: error: "must give --with-mailsubject an argument."" 1>&2; exit 1; }
                   1305:                ;;
                   1306:     no)                echo "Sorry, --without-mailsubject not supported."
                   1307:                ;;
                   1308:     *)         cat >> confdefs.h <<EOF
                   1309: #define MAILSUBJECT "$with_mailsubject"
                   1310: EOF
                   1311:
                   1312:                echo $ac_n "checking sudo mail subject""... $ac_c" 1>&6
                   1313: echo "configure:1314: checking sudo mail subject" >&5
                   1314:                echo "$ac_t""Using alert mail subject: $with_mailsubject" 1>&6
                   1315:                ;;
                   1316: esac
                   1317: else
                   1318:   cat >> confdefs.h <<\EOF
                   1319: #define MAILSUBJECT "*** SECURITY information for %h ***"
                   1320: EOF
                   1321:
                   1322: fi
                   1323:
                   1324:
                   1325: echo $ac_n "checking whether to send mail when a user is not in sudoers""... $ac_c" 1>&6
                   1326: echo "configure:1327: checking whether to send mail when a user is not in sudoers" >&5
                   1327: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
                   1328: if test "${with_mail_if_no_user+set}" = set; then
                   1329:   withval="$with_mail_if_no_user"
                   1330:   case $with_mail_if_no_user in
                   1331:     yes)       cat >> confdefs.h <<\EOF
                   1332: #define SEND_MAIL_WHEN_NO_USER 1
                   1333: EOF
                   1334:
                   1335:                echo "$ac_t""yes" 1>&6
                   1336:                ;;
                   1337:     no)                echo "$ac_t""no" 1>&6
                   1338:                ;;
                   1339:     *)         { echo "configure: error: "unknown argument to --with-mail-if-no-user: $with_mail_if_no_user"" 1>&2; exit 1; }
                   1340:                ;;
                   1341: esac
                   1342: else
                   1343:   cat >> confdefs.h <<\EOF
                   1344: #define SEND_MAIL_WHEN_NO_USER 1
                   1345: EOF
                   1346:  echo "$ac_t""yes" 1>&6
                   1347: fi
                   1348:
                   1349:
                   1350: echo $ac_n "checking whether to send mail when user listed but not for this host""... $ac_c" 1>&6
                   1351: echo "configure:1352: checking whether to send mail when user listed but not for this host" >&5
                   1352: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
                   1353: if test "${with_mail_if_no_host+set}" = set; then
                   1354:   withval="$with_mail_if_no_host"
                   1355:   case $with_mail_if_no_host in
                   1356:     yes)       cat >> confdefs.h <<\EOF
                   1357: #define SEND_MAIL_WHEN_NO_HOST 1
                   1358: EOF
                   1359:
                   1360:                echo "$ac_t""yes" 1>&6
                   1361:                ;;
                   1362:     no)                echo "$ac_t""no" 1>&6
                   1363:                ;;
                   1364:     *)         { echo "configure: error: "unknown argument to --with-mail-if-no-host: $with_mail_if_no_host"" 1>&2; exit 1; }
                   1365:                ;;
                   1366: esac
                   1367: else
                   1368:   echo "$ac_t""no" 1>&6
                   1369: fi
                   1370:
                   1371:
                   1372: echo $ac_n "checking whether to send mail when a user tries a disallowed command""... $ac_c" 1>&6
                   1373: echo "configure:1374: checking whether to send mail when a user tries a disallowed command" >&5
                   1374: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
                   1375: if test "${with_mail_if_noperms+set}" = set; then
                   1376:   withval="$with_mail_if_noperms"
                   1377:   case $with_mail_if_noperms in
                   1378:     yes)       cat >> confdefs.h <<\EOF
                   1379: #define SEND_MAIL_WHEN_NOT_OK 1
                   1380: EOF
                   1381:
                   1382:                echo "$ac_t""yes" 1>&6
                   1383:                ;;
                   1384:     no)                echo "$ac_t""no" 1>&6
                   1385:                ;;
                   1386:     *)         { echo "configure: error: "unknown argument to --with-mail-if-noperms: $with_mail_if_noperms"" 1>&2; exit 1; }
                   1387:                ;;
                   1388: esac
                   1389: else
                   1390:   echo "$ac_t""no" 1>&6
                   1391: fi
                   1392:
                   1393:
                   1394: echo $ac_n "checking for bad password prompt""... $ac_c" 1>&6
                   1395: echo "configure:1396: checking for bad password prompt" >&5
                   1396: # Check whether --with-passprompt or --without-passprompt was given.
                   1397: if test "${with_passprompt+set}" = set; then
                   1398:   withval="$with_passprompt"
                   1399:   case $with_passprompt in
                   1400:     yes)       { echo "configure: error: "must give --with-passprompt an argument."" 1>&2; exit 1; }
                   1401:                ;;
                   1402:     no)                echo "Sorry, --without-passprompt not supported."
                   1403:                ;;
                   1404:     *)         cat >> confdefs.h <<EOF
                   1405: #define PASSPROMPT "$with_passprompt"
                   1406: EOF
                   1407:
                   1408:                echo "$ac_t""$with_passprompt" 1>&6
                   1409:                ;;
                   1410: esac
                   1411: else
                   1412:   cat >> confdefs.h <<\EOF
                   1413: #define PASSPROMPT "Password:"
                   1414: EOF
                   1415:  echo "$ac_t""Password:" 1>&6
                   1416: fi
                   1417:
                   1418:
                   1419: echo $ac_n "checking for bad password message""... $ac_c" 1>&6
                   1420: echo "configure:1421: checking for bad password message" >&5
                   1421: # Check whether --with-badpass-message or --without-badpass-message was given.
                   1422: if test "${with_badpass_message+set}" = set; then
                   1423:   withval="$with_badpass_message"
                   1424:   case $with_badpass_message in
                   1425:     yes)       { echo "configure: error: "Must give --with-badpass-message an argument."" 1>&2; exit 1; }
                   1426:                ;;
                   1427:     no)                echo "Sorry, --without-badpass-message not supported."
                   1428:                ;;
                   1429:     *)         cat >> confdefs.h <<EOF
                   1430: #define INCORRECT_PASSWORD "$with_badpass_message"
                   1431: EOF
                   1432:
                   1433:                echo "$ac_t""$with_badpass_message" 1>&6
                   1434:                ;;
                   1435: esac
                   1436: else
                   1437:   cat >> confdefs.h <<\EOF
                   1438: #define INCORRECT_PASSWORD "Sorry, try again."
                   1439: EOF
                   1440:  echo "$ac_t""Sorry, try again." 1>&6
                   1441: fi
                   1442:
                   1443:
                   1444: echo $ac_n "checking whether to expect fully qualified hosts in sudoers""... $ac_c" 1>&6
                   1445: echo "configure:1446: checking whether to expect fully qualified hosts in sudoers" >&5
                   1446: # Check whether --with-fqdn or --without-fqdn was given.
                   1447: if test "${with_fqdn+set}" = set; then
                   1448:   withval="$with_fqdn"
                   1449:   case $with_fqdn in
                   1450:     yes)       cat >> confdefs.h <<\EOF
                   1451: #define FQDN 1
                   1452: EOF
                   1453:
                   1454:                echo "$ac_t""yes" 1>&6
                   1455:                ;;
                   1456:     no)                echo "$ac_t""no" 1>&6
                   1457:                ;;
                   1458:     *)         { echo "configure: error: "--with-fqdn does not take an argument."" 1>&2; exit 1; }
                   1459:                ;;
                   1460: esac
                   1461: else
                   1462:   echo "$ac_t""no" 1>&6
                   1463: fi
                   1464:
                   1465:
                   1466: # Check whether --with-timedir or --without-timedir was given.
                   1467: if test "${with_timedir+set}" = set; then
                   1468:   withval="$with_timedir"
                   1469:   case $with_timedir in
                   1470:     yes)       { echo "configure: error: "must give --with-timedir an argument."" 1>&2; exit 1; }
                   1471:                ;;
                   1472:     no)                { echo "configure: error: "--without-timedir not supported."" 1>&2; exit 1; }
                   1473:                ;;
                   1474: esac
                   1475: fi
                   1476:
                   1477:
                   1478: # Check whether --with-sendmail or --without-sendmail was given.
                   1479: if test "${with_sendmail+set}" = set; then
                   1480:   withval="$with_sendmail"
                   1481:   case $with_sendmail in
                   1482:     yes)       with_sendmail=""
                   1483:                ;;
                   1484:     no)                ;;
                   1485:     *)         cat >> confdefs.h <<EOF
                   1486: #define _PATH_SENDMAIL "$with_sendmail"
                   1487: EOF
                   1488:
                   1489:                ;;
                   1490: esac
                   1491: fi
                   1492:
                   1493:
                   1494: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
                   1495: if test "${with_sudoers_mode+set}" = set; then
                   1496:   withval="$with_sudoers_mode"
                   1497:   case $with_sudoers_mode in
                   1498:     yes)       { echo "configure: error: "must give --with-sudoers-mode an argument."" 1>&2; exit 1; }
                   1499:                ;;
                   1500:     no)                { echo "configure: error: "--without-sudoers-mode not supported."" 1>&2; exit 1; }
                   1501:                ;;
                   1502:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   1503:                ;;
                   1504:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   1505:                ;;
                   1506:     *)         { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
                   1507:                ;;
                   1508: esac
                   1509: fi
                   1510:
                   1511:
                   1512: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
                   1513: if test "${with_sudoers_uid+set}" = set; then
                   1514:   withval="$with_sudoers_uid"
                   1515:   case $with_sudoers_uid in
                   1516:     yes)       { echo "configure: error: "must give --with-sudoers-uid an argument."" 1>&2; exit 1; }
                   1517:                ;;
                   1518:     no)                { echo "configure: error: "--without-sudoers-uid not supported."" 1>&2; exit 1; }
                   1519:                ;;
                   1520:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   1521:                ;;
                   1522:     *)         { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
                   1523:                ;;
                   1524: esac
                   1525: fi
                   1526:
                   1527:
                   1528: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
                   1529: if test "${with_sudoers_gid+set}" = set; then
                   1530:   withval="$with_sudoers_gid"
                   1531:   case $with_sudoers_gid in
                   1532:     yes)       { echo "configure: error: "must give --with-sudoers-gid an argument."" 1>&2; exit 1; }
                   1533:                ;;
                   1534:     no)                { echo "configure: error: "--without-sudoers-gid not supported."" 1>&2; exit 1; }
                   1535:                ;;
                   1536:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   1537:                ;;
                   1538:     *)         { echo "configure: error: "you must use a numeric gid, not a name."" 1>&2; exit 1; }
                   1539:                ;;
                   1540: esac
                   1541: fi
                   1542:
                   1543:
                   1544: echo $ac_n "checking for umask programs should be run with""... $ac_c" 1>&6
                   1545: echo "configure:1546: checking for umask programs should be run with" >&5
                   1546: # Check whether --with-umask or --without-umask was given.
                   1547: if test "${with_umask+set}" = set; then
                   1548:   withval="$with_umask"
                   1549:   case $with_umask in
                   1550:     yes)       { echo "configure: error: "must give --with-umask an argument."" 1>&2; exit 1; }
                   1551:                ;;
                   1552:     no)                echo "$ac_t""user" 1>&6
                   1553:                ;;
                   1554:     [0-9]*)    cat >> confdefs.h <<EOF
                   1555: #define SUDO_UMASK $with_umask
                   1556: EOF
                   1557:
                   1558:                echo "$ac_t""$with_umask" 1>&6
                   1559:                ;;
                   1560:     *)         { echo "configure: error: "you must enter a numeric mask."" 1>&2; exit 1; }
                   1561:                ;;
                   1562: esac
                   1563: else
                   1564:   cat >> confdefs.h <<\EOF
                   1565: #define SUDO_UMASK 0022
                   1566: EOF
                   1567:  echo "$ac_t""0022" 1>&6
                   1568: fi
                   1569:
                   1570:
                   1571: echo $ac_n "checking for default user to run commands as""... $ac_c" 1>&6
                   1572: echo "configure:1573: checking for default user to run commands as" >&5
                   1573: # Check whether --with-runas-default or --without-runas-default was given.
                   1574: if test "${with_runas_default+set}" = set; then
                   1575:   withval="$with_runas_default"
                   1576:   case $with_runas_default in
                   1577:     yes)       { echo "configure: error: "must give --with-runas-default an argument."" 1>&2; exit 1; }
                   1578:                ;;
                   1579:     no)                { echo "configure: error: "--without-runas-default not supported."" 1>&2; exit 1; }
                   1580:                ;;
                   1581:     *)         cat >> confdefs.h <<EOF
                   1582: #define RUNAS_DEFAULT "$with_runas_default"
                   1583: EOF
                   1584:
                   1585:                echo "$ac_t""$with_runas_default" 1>&6
                   1586:                ;;
                   1587: esac
                   1588: else
                   1589:   cat >> confdefs.h <<\EOF
                   1590: #define RUNAS_DEFAULT "root"
                   1591: EOF
                   1592:  echo "$ac_t""root" 1>&6
                   1593: fi
                   1594:
                   1595:
                   1596: # Check whether --with-exempt or --without-exempt was given.
                   1597: if test "${with_exempt+set}" = set; then
                   1598:   withval="$with_exempt"
                   1599:   case $with_exempt in
                   1600:     yes)       { echo "configure: error: "must give --with-exempt an argument."" 1>&2; exit 1; }
                   1601:                ;;
                   1602:     no)                { echo "configure: error: "--without-exempt not supported."" 1>&2; exit 1; }
                   1603:                ;;
                   1604:     *)         cat >> confdefs.h <<EOF
                   1605: #define EXEMPTGROUP "$with_exempt"
                   1606: EOF
                   1607:
                   1608:                echo $ac_n "checking for group to be exempt from password""... $ac_c" 1>&6
                   1609: echo "configure:1610: checking for group to be exempt from password" >&5
                   1610:                echo "$ac_t""$with_exempt" 1>&6
                   1611:                ;;
                   1612: esac
                   1613: fi
                   1614:
                   1615:
                   1616: echo $ac_n "checking for editor that visudo should use""... $ac_c" 1>&6
                   1617: echo "configure:1618: checking for editor that visudo should use" >&5
                   1618: # Check whether --with-editor or --without-editor was given.
                   1619: if test "${with_editor+set}" = set; then
                   1620:   withval="$with_editor"
                   1621:   case $with_editor in
                   1622:     yes)       { echo "configure: error: "must give --with-editor an argument."" 1>&2; exit 1; }
                   1623:                ;;
                   1624:     no)                { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
                   1625:                ;;
                   1626:     *)         cat >> confdefs.h <<EOF
                   1627: #define EDITOR "$with_editor"
                   1628: EOF
                   1629:
                   1630:                echo "$ac_t""$with_editor" 1>&6
                   1631:                ;;
                   1632: esac
                   1633: else
                   1634:   cat >> confdefs.h <<\EOF
                   1635: #define EDITOR _PATH_VI
                   1636: EOF
                   1637:  echo "$ac_t""vi" 1>&6
                   1638: fi
                   1639:
                   1640:
                   1641: echo $ac_n "checking whether to obey EDITOR and VISUAL environment variables""... $ac_c" 1>&6
                   1642: echo "configure:1643: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   1643: # Check whether --with-env-editor or --without-env-editor was given.
                   1644: if test "${with_env_editor+set}" = set; then
                   1645:   withval="$with_env_editor"
                   1646:   case $with_env_editor in
                   1647:     yes)       cat >> confdefs.h <<\EOF
                   1648: #define ENV_EDITOR 1
                   1649: EOF
                   1650:
                   1651:                echo "$ac_t""yes" 1>&6
                   1652:                ;;
                   1653:     no)                echo "$ac_t""no" 1>&6
                   1654:                ;;
                   1655:     *)         { echo "configure: error: "--with-env-editor does not take an argument."" 1>&2; exit 1; }
                   1656:                ;;
                   1657: esac
                   1658: else
                   1659:   echo "$ac_t""no" 1>&6
                   1660: fi
                   1661:
                   1662:
                   1663: echo $ac_n "checking number of tries a user gets to enter their password""... $ac_c" 1>&6
                   1664: echo "configure:1665: checking number of tries a user gets to enter their password" >&5
                   1665: # Check whether --with-passwd-tries or --without-passwd-tries was given.
                   1666: if test "${with_passwd_tries+set}" = set; then
                   1667:   withval="$with_passwd_tries"
                   1668:   case $with_passwd_tries in
                   1669:     yes)       cat >> confdefs.h <<\EOF
                   1670: #define TRIES_FOR_PASSWORD 3
                   1671: EOF
                   1672:
                   1673:                echo "$ac_t""3" 1>&6
                   1674:                ;;
                   1675:     no)                { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
                   1676:                ;;
                   1677:     [1-9]*)    cat >> confdefs.h <<EOF
                   1678: #define TRIES_FOR_PASSWORD $with_passwd_tries
                   1679: EOF
                   1680:
                   1681:                echo "$ac_t""$with_passwd_tries" 1>&6
                   1682:                ;;
                   1683:     *)         { echo "configure: error: "you must enter the numer of tries, > 0"" 1>&2; exit 1; }
                   1684:                ;;
                   1685: esac
                   1686: else
                   1687:   cat >> confdefs.h <<\EOF
                   1688: #define TRIES_FOR_PASSWORD 3
                   1689: EOF
                   1690:  echo "$ac_t""3" 1>&6
                   1691: fi
                   1692:
                   1693:
                   1694: echo $ac_n "checking time in minutes after which sudo will ask for a password again""... $ac_c" 1>&6
                   1695: echo "configure:1696: checking time in minutes after which sudo will ask for a password again" >&5
                   1696: # Check whether --with-timeout or --without-timeout was given.
                   1697: if test "${with_timeout+set}" = set; then
                   1698:   withval="$with_timeout"
                   1699:   echo $with_timeout; case $with_timeout in
                   1700:     yes)       cat >> confdefs.h <<\EOF
                   1701: #define TIMEOUT 5
                   1702: EOF
                   1703:
                   1704:                echo "$ac_t""5" 1>&6
                   1705:                ;;
                   1706:     no)                cat >> confdefs.h <<\EOF
                   1707: #define TIMEOUT 0
                   1708: EOF
                   1709:
                   1710:                echo "$ac_t""no timeout" 1>&6
                   1711:                ;;
                   1712:     [0-9]*)    cat >> confdefs.h <<EOF
                   1713: #define TIMEOUT $with_timeout
                   1714: EOF
                   1715:
                   1716:                echo "$ac_t""$with_timeout" 1>&6
                   1717:                ;;
                   1718:     *)         { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
                   1719:                ;;
                   1720: esac
                   1721: else
                   1722:   cat >> confdefs.h <<\EOF
                   1723: #define TIMEOUT 5
                   1724: EOF
                   1725:  echo "$ac_t""5" 1>&6
                   1726: fi
                   1727:
                   1728:
                   1729: echo $ac_n "checking time in minutes after the password prompt will time out""... $ac_c" 1>&6
                   1730: echo "configure:1731: checking time in minutes after the password prompt will time out" >&5
                   1731: # Check whether --with-password-timeout or --without-password-timeout was given.
                   1732: if test "${with_password_timeout+set}" = set; then
                   1733:   withval="$with_password_timeout"
                   1734:   case $with_password_timeout in
                   1735:     yes)       cat >> confdefs.h <<\EOF
                   1736: #define PASSWORD_TIMEOUT 5
                   1737: EOF
                   1738:
                   1739:                echo "$ac_t""5" 1>&6
                   1740:                ;;
                   1741:     no)                cat >> confdefs.h <<\EOF
                   1742: #define PASSWORD_TIMEOUT 0
                   1743: EOF
                   1744:
                   1745:                echo "$ac_t""no timeout" 1>&6
                   1746:                ;;
                   1747:     [0-9]*)    cat >> confdefs.h <<EOF
                   1748: #define PASSWORD_TIMEOUT $with_password_timeout
                   1749: EOF
                   1750:
                   1751:                echo "$ac_t""$with_password_timeout" 1>&6
                   1752:                ;;
                   1753:     *)         { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
                   1754:                ;;
                   1755: esac
                   1756: else
                   1757:   cat >> confdefs.h <<\EOF
                   1758: #define PASSWORD_TIMEOUT 5
                   1759: EOF
                   1760:  echo "$ac_t""5" 1>&6
                   1761: fi
                   1762:
                   1763:
                   1764: echo $ac_n "checking whether to use execvp or execv""... $ac_c" 1>&6
                   1765: echo "configure:1766: checking whether to use execvp or execv" >&5
                   1766: # Check whether --with-execv or --without-execv was given.
                   1767: if test "${with_execv+set}" = set; then
                   1768:   withval="$with_execv"
                   1769:   case $with_execv in
                   1770:     yes)       cat >> confdefs.h <<\EOF
                   1771: #define USE_EXECV 1
                   1772: EOF
                   1773:
                   1774:                echo "$ac_t""execv" 1>&6
                   1775:                ;;
                   1776:     no)                echo "$ac_t""execvp" 1>&6
                   1777:                ;;
                   1778:     *)         { echo "configure: error: "--with-execv does not take an argument."" 1>&2; exit 1; }
                   1779:                ;;
                   1780: esac
                   1781: else
                   1782:   echo "$ac_t""execvp" 1>&6
                   1783: fi
                   1784:
                   1785:
                   1786: echo $ac_n "checking whether to use per-tty ticket files""... $ac_c" 1>&6
                   1787: echo "configure:1788: checking whether to use per-tty ticket files" >&5
                   1788: # Check whether --with-tty-tickets or --without-tty-tickets was given.
                   1789: if test "${with_tty_tickets+set}" = set; then
                   1790:   withval="$with_tty_tickets"
                   1791:   case $with_tty_tickets in
                   1792:     yes)       cat >> confdefs.h <<\EOF
                   1793: #define USE_TTY_TICKETS 1
                   1794: EOF
                   1795:
                   1796:                echo "$ac_t""yes" 1>&6
                   1797:                ;;
                   1798:     no)                echo "$ac_t""no" 1>&6
                   1799:                ;;
                   1800:     *)         { echo "configure: error: "--with-tty-tickets does not take an argument."" 1>&2; exit 1; }
                   1801:                ;;
                   1802: esac
                   1803: else
                   1804:   echo "$ac_t""no" 1>&6
                   1805: fi
                   1806:
                   1807:
                   1808: echo $ac_n "checking whether to include insults""... $ac_c" 1>&6
                   1809: echo "configure:1810: checking whether to include insults" >&5
                   1810: # Check whether --with-insults or --without-insults was given.
                   1811: if test "${with_insults+set}" = set; then
                   1812:   withval="$with_insults"
                   1813:   case $with_insults in
                   1814:     yes)       cat >> confdefs.h <<\EOF
                   1815: #define USE_INSULTS 1
                   1816: EOF
                   1817:
                   1818:                echo "$ac_t""yes" 1>&6
                   1819:                with_classic_insults=yes
                   1820:                with_csops_insults=yes
                   1821:                ;;
                   1822:     no)                echo "$ac_t""no" 1>&6
                   1823:                ;;
                   1824:     *)         { echo "configure: error: "--with-insults does not take an argument."" 1>&2; exit 1; }
                   1825:                ;;
                   1826: esac
                   1827: else
                   1828:   echo "$ac_t""no" 1>&6
                   1829: fi
                   1830:
                   1831:
                   1832: # Check whether --with-all-insults or --without-all-insults was given.
                   1833: if test "${with_all_insults+set}" = set; then
                   1834:   withval="$with_all_insults"
                   1835:   case $with_all_insults in
                   1836:     yes)       with_classic_insults=yes
                   1837:                with_csops_insults=yes
                   1838:                with_hal_insults=yes
                   1839:                with_goons_insults=yes
                   1840:                ;;
                   1841:     no)                ;;
                   1842:     *)         { echo "configure: error: "--with-all-insults does not take an argument."" 1>&2; exit 1; }
                   1843:                ;;
                   1844: esac
                   1845: fi
                   1846:
                   1847:
                   1848: # Check whether --with-classic-insults or --without-classic-insults was given.
                   1849: if test "${with_classic_insults+set}" = set; then
                   1850:   withval="$with_classic_insults"
                   1851:   case $with_classic_insults in
                   1852:     yes)       cat >> confdefs.h <<\EOF
                   1853: #define CLASSIC_INSULTS 1
                   1854: EOF
                   1855:
                   1856:                ;;
                   1857:     no)                ;;
                   1858:     *)         { echo "configure: error: "--with-classic-insults does not take an argument."" 1>&2; exit 1; }
                   1859:                ;;
                   1860: esac
                   1861: fi
                   1862:
                   1863:
                   1864: # Check whether --with-csops-insults or --without-csops-insults was given.
                   1865: if test "${with_csops_insults+set}" = set; then
                   1866:   withval="$with_csops_insults"
                   1867:   case $with_csops_insults in
                   1868:     yes)       cat >> confdefs.h <<\EOF
                   1869: #define CSOPS_INSULTS 1
                   1870: EOF
                   1871:
                   1872:                ;;
                   1873:     no)                ;;
                   1874:     *)         { echo "configure: error: "--with-csops-insults does not take an argument."" 1>&2; exit 1; }
                   1875:                ;;
                   1876: esac
                   1877: fi
                   1878:
                   1879:
                   1880: # Check whether --with-hal-insults or --without-hal-insults was given.
                   1881: if test "${with_hal_insults+set}" = set; then
                   1882:   withval="$with_hal_insults"
                   1883:   case $with_hal_insults in
                   1884:     yes)       cat >> confdefs.h <<\EOF
                   1885: #define HAL_INSULTS 1
                   1886: EOF
                   1887:
                   1888:                ;;
                   1889:     no)                ;;
                   1890:     *)         { echo "configure: error: "--with-hal-insults does not take an argument."" 1>&2; exit 1; }
                   1891:                ;;
                   1892: esac
                   1893: fi
                   1894:
                   1895:
                   1896: # Check whether --with-goons-insults or --without-goons-insults was given.
                   1897: if test "${with_goons_insults+set}" = set; then
                   1898:   withval="$with_goons_insults"
                   1899:   case $with_goons_insults in
                   1900:     yes)       cat >> confdefs.h <<\EOF
                   1901: #define GOONS_INSULTS 1
                   1902: EOF
                   1903:
                   1904:                ;;
                   1905:     no)                ;;
                   1906:     *)         { echo "configure: error: "--with-goons-insults does not take an argument."" 1>&2; exit 1; }
                   1907:                ;;
                   1908: esac
                   1909: fi
                   1910:
                   1911:
                   1912: if test "$with_insults" = "yes"; then
                   1913:     echo $ac_n "checking which insult sets to include""... $ac_c" 1>&6
                   1914: echo "configure:1915: checking which insult sets to include" >&5
                   1915:     i=""
                   1916:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   1917:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   1918:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   1919:     test "$with_classic_insults" = "yes" && i="classic ${i}"
                   1920:     echo "$ac_t""$i" 1>&6
                   1921: fi
                   1922:
                   1923: echo $ac_n "checking whether to override the user's path""... $ac_c" 1>&6
                   1924: echo "configure:1925: checking whether to override the user's path" >&5
                   1925: # Check whether --with-secure-path or --without-secure-path was given.
                   1926: if test "${with_secure_path+set}" = set; then
                   1927:   withval="$with_secure_path"
                   1928:   case $with_secure_path in
                   1929:     yes)       cat >> confdefs.h <<EOF
                   1930: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
                   1931: EOF
                   1932:
                   1933:                echo "$ac_t"":/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" 1>&6
                   1934:                ;;
                   1935:     no)                echo "$ac_t""no" 1>&6
                   1936:                ;;
                   1937:     *)         cat >> confdefs.h <<EOF
                   1938: #define SECURE_PATH "$with_secure_path"
                   1939: EOF
                   1940:
                   1941:                echo "$ac_t""$with_secure_path" 1>&6
                   1942:                ;;
                   1943: esac
                   1944: else
                   1945:   echo "$ac_t""no" 1>&6
                   1946: fi
                   1947:
                   1948:
                   1949: echo $ac_n "checking whether to get ip addresses from the network interfaces""... $ac_c" 1>&6
                   1950: echo "configure:1951: checking whether to get ip addresses from the network interfaces" >&5
                   1951: # Check whether --with-interfaces or --without-interfaces was given.
                   1952: if test "${with_interfaces+set}" = set; then
                   1953:   withval="$with_interfaces"
                   1954:   case $with_interfaces in
                   1955:     yes)       echo "$ac_t""yes" 1>&6
                   1956:                ;;
                   1957:     no)                cat >> confdefs.h <<\EOF
                   1958: #define STUB_LOAD_INTERFACES 1
                   1959: EOF
                   1960:
                   1961:                echo "$ac_t""no" 1>&6
                   1962:                ;;
                   1963:     *)         { echo "configure: error: "--with-interfaces does not take an argument."" 1>&2; exit 1; }
                   1964:                ;;
                   1965: esac
                   1966: else
                   1967:   echo "$ac_t""yes" 1>&6
                   1968: fi
                   1969:
                   1970:
                   1971:
                   1972: echo $ac_n "checking whether to do user authentication by default""... $ac_c" 1>&6
                   1973: echo "configure:1974: checking whether to do user authentication by default" >&5
                   1974: # Check whether --enable-authentication or --disable-authentication was given.
                   1975: if test "${enable_authentication+set}" = set; then
                   1976:   enableval="$enable_authentication"
                   1977:    case "$enableval" in
                   1978:     yes)       echo "$ac_t""yes" 1>&6
                   1979:                ;;
                   1980:     no)                echo "$ac_t""no" 1>&6
                   1981:                cat >> confdefs.h <<\EOF
                   1982: #define NO_AUTHENTICATION 1
                   1983: EOF
                   1984:
                   1985:                ;;
                   1986:     *)         echo "$ac_t""no" 1>&6
                   1987:                echo "Ignoring unknown argument to --enable-authentication: $enableval"
                   1988:                ;;
                   1989:   esac
                   1990:
                   1991: else
                   1992:   echo "$ac_t""yes" 1>&6
                   1993: fi
                   1994:
                   1995:
                   1996: echo $ac_n "checking whether to disable shadow password support""... $ac_c" 1>&6
                   1997: echo "configure:1998: checking whether to disable shadow password support" >&5
                   1998: # Check whether --enable-shadow or --disable-shadow was given.
                   1999: if test "${enable_shadow+set}" = set; then
                   2000:   enableval="$enable_shadow"
                   2001:    case "$enableval" in
                   2002:     yes)       echo "$ac_t""no" 1>&6
                   2003:                ;;
                   2004:     no)                echo "$ac_t""yes" 1>&6
                   2005:                CHECKSHADOW="false"
                   2006:                ;;
                   2007:     *)         echo "$ac_t""no" 1>&6
                   2008:                echo "Ignoring unknown argument to --enable-shadow: $enableval"
                   2009:                ;;
                   2010:   esac
                   2011:
                   2012: else
                   2013:   echo "$ac_t""no" 1>&6
                   2014: fi
                   2015:
                   2016:
                   2017: echo $ac_n "checking whether root should be allowed to use sudo""... $ac_c" 1>&6
                   2018: echo "configure:2019: checking whether root should be allowed to use sudo" >&5
                   2019: # Check whether --enable-root-sudo or --disable-root-sudo was given.
                   2020: if test "${enable_root_sudo+set}" = set; then
                   2021:   enableval="$enable_root_sudo"
                   2022:    case "$enableval" in
                   2023:     yes)       echo "$ac_t""yes" 1>&6
                   2024:                ;;
                   2025:     no)                cat >> confdefs.h <<\EOF
                   2026: #define NO_ROOT_SUDO 1
                   2027: EOF
                   2028:
                   2029:                echo "$ac_t""no" 1>&6
                   2030:                ;;
                   2031:     *)         { echo "configure: error: "--enable-root-sudo does not take an argument."" 1>&2; exit 1; }
                   2032:                ;;
                   2033:   esac
                   2034:
                   2035: else
                   2036:   echo "$ac_t""yes" 1>&6
                   2037: fi
                   2038:
                   2039:
                   2040: echo $ac_n "checking whether to log the hostname in the log file""... $ac_c" 1>&6
                   2041: echo "configure:2042: checking whether to log the hostname in the log file" >&5
                   2042: # Check whether --enable-log-host or --disable-log-host was given.
                   2043: if test "${enable_log_host+set}" = set; then
                   2044:   enableval="$enable_log_host"
                   2045:    case "$enableval" in
                   2046:     yes)       echo "$ac_t""yes" 1>&6
                   2047:                cat >> confdefs.h <<\EOF
                   2048: #define HOST_IN_LOG 1
                   2049: EOF
                   2050:
                   2051:                ;;
                   2052:     no)                echo "$ac_t""no" 1>&6
                   2053:                ;;
                   2054:     *)         echo "$ac_t""no" 1>&6
                   2055:                echo "Ignoring unknown argument to --enable-log-host: $enableval"
                   2056:                ;;
                   2057:   esac
                   2058:
                   2059: else
                   2060:   echo "$ac_t""no" 1>&6
                   2061: fi
                   2062:
                   2063:
                   2064: echo $ac_n "checking whether to invoke a shell if sudo is given no arguments""... $ac_c" 1>&6
                   2065: echo "configure:2066: checking whether to invoke a shell if sudo is given no arguments" >&5
                   2066: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
                   2067: if test "${enable_noargs_shell+set}" = set; then
                   2068:   enableval="$enable_noargs_shell"
                   2069:    case "$enableval" in
                   2070:     yes)       echo "$ac_t""yes" 1>&6
                   2071:                cat >> confdefs.h <<\EOF
                   2072: #define SHELL_IF_NO_ARGS 1
                   2073: EOF
                   2074:
                   2075:                ;;
                   2076:     no)                echo "$ac_t""no" 1>&6
                   2077:                ;;
                   2078:     *)         echo "$ac_t""no" 1>&6
                   2079:                echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
                   2080:                ;;
                   2081:   esac
                   2082:
                   2083: else
                   2084:   echo "$ac_t""no" 1>&6
                   2085: fi
                   2086:
                   2087:
                   2088: echo $ac_n "checking whether to set \$HOME to target user in shell mode""... $ac_c" 1>&6
                   2089: echo "configure:2090: checking whether to set \$HOME to target user in shell mode" >&5
                   2090: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
                   2091: if test "${enable_shell_sets_home+set}" = set; then
                   2092:   enableval="$enable_shell_sets_home"
                   2093:    case "$enableval" in
                   2094:     yes)       echo "$ac_t""yes" 1>&6
                   2095:                cat >> confdefs.h <<\EOF
                   2096: #define SHELL_SETS_HOME 1
                   2097: EOF
                   2098:
                   2099:                ;;
                   2100:     no)                echo "$ac_t""no" 1>&6
                   2101:                ;;
                   2102:     *)         echo "$ac_t""no" 1>&6
                   2103:                echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
                   2104:                ;;
                   2105:   esac
                   2106:
                   2107: else
                   2108:   echo "$ac_t""no" 1>&6
                   2109: fi
                   2110:
                   2111:
                   2112: echo $ac_n "checking whether to disable 'command not found' messages""... $ac_c" 1>&6
                   2113: echo "configure:2114: checking whether to disable 'command not found' messages" >&5
                   2114: # Check whether --enable-path_info or --disable-path_info was given.
                   2115: if test "${enable_path_info+set}" = set; then
                   2116:   enableval="$enable_path_info"
                   2117:    case "$enableval" in
                   2118:     yes)       echo "$ac_t""no" 1>&6
                   2119:                ;;
                   2120:     no)                echo "$ac_t""yes" 1>&6
                   2121:                cat >> confdefs.h <<\EOF
                   2122: #define DONT_LEAK_PATH_INFO 1
                   2123: EOF
                   2124:
                   2125:                ;;
                   2126:     *)         echo "$ac_t""no" 1>&6
                   2127:                echo "Ignoring unknown argument to --enable-path-info: $enableval"
                   2128:                ;;
                   2129:   esac
                   2130:
                   2131: else
                   2132:   echo "$ac_t""no" 1>&6
                   2133: fi
                   2134:
                   2135:
                   2136: # Extract the first word of "egrep", so it can be a program name with args.
                   2137: set dummy egrep; ac_word=$2
                   2138: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2139: echo "configure:2140: checking for $ac_word" >&5
                   2140: if eval "test \"`echo '$''{'ac_cv_prog_EGREPPROG'+set}'`\" = set"; then
                   2141:   echo $ac_n "(cached) $ac_c" 1>&6
                   2142: else
                   2143:   if test -n "$EGREPPROG"; then
                   2144:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   2145: else
                   2146:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2147:   for ac_dir in $PATH; do
                   2148:     test -z "$ac_dir" && ac_dir=.
                   2149:     if test -f $ac_dir/$ac_word; then
                   2150:       ac_cv_prog_EGREPPROG="egrep"
                   2151:       break
                   2152:     fi
                   2153:   done
                   2154:   IFS="$ac_save_ifs"
                   2155: fi
                   2156: fi
                   2157: EGREPPROG="$ac_cv_prog_EGREPPROG"
                   2158: if test -n "$EGREPPROG"; then
                   2159:   echo "$ac_t""$EGREPPROG" 1>&6
                   2160: else
                   2161:   echo "$ac_t""no" 1>&6
                   2162: fi
                   2163:
                   2164: if test -z "$EGREPPROG"; then
                   2165:     echo "Sorry, configure requires egrep to run."
                   2166:     exit
                   2167: fi
                   2168:
                   2169: ac_cv_prog_cc_cross="no"
                   2170: cross_compiling="no"
                   2171: # Extract the first word of "gcc", so it can be a program name with args.
                   2172: set dummy gcc; ac_word=$2
                   2173: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2174: echo "configure:2175: checking for $ac_word" >&5
                   2175: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   2176:   echo $ac_n "(cached) $ac_c" 1>&6
                   2177: else
                   2178:   if test -n "$CC"; then
                   2179:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2180: else
                   2181:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2182:   for ac_dir in $PATH; do
                   2183:     test -z "$ac_dir" && ac_dir=.
                   2184:     if test -f $ac_dir/$ac_word; then
                   2185:       ac_cv_prog_CC="gcc"
                   2186:       break
                   2187:     fi
                   2188:   done
                   2189:   IFS="$ac_save_ifs"
                   2190: fi
                   2191: fi
                   2192: CC="$ac_cv_prog_CC"
                   2193: if test -n "$CC"; then
                   2194:   echo "$ac_t""$CC" 1>&6
                   2195: else
                   2196:   echo "$ac_t""no" 1>&6
                   2197: fi
                   2198:
                   2199: if test -z "$CC"; then
                   2200:   # Extract the first word of "cc", so it can be a program name with args.
                   2201: set dummy cc; ac_word=$2
                   2202: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2203: echo "configure:2204: checking for $ac_word" >&5
                   2204: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   2205:   echo $ac_n "(cached) $ac_c" 1>&6
                   2206: else
                   2207:   if test -n "$CC"; then
                   2208:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2209: else
                   2210:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2211:   ac_prog_rejected=no
                   2212:   for ac_dir in $PATH; do
                   2213:     test -z "$ac_dir" && ac_dir=.
                   2214:     if test -f $ac_dir/$ac_word; then
                   2215:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   2216:         ac_prog_rejected=yes
                   2217:        continue
                   2218:       fi
                   2219:       ac_cv_prog_CC="cc"
                   2220:       break
                   2221:     fi
                   2222:   done
                   2223:   IFS="$ac_save_ifs"
                   2224: if test $ac_prog_rejected = yes; then
                   2225:   # We found a bogon in the path, so make sure we never use it.
                   2226:   set dummy $ac_cv_prog_CC
                   2227:   shift
                   2228:   if test $# -gt 0; then
                   2229:     # We chose a different compiler from the bogus one.
                   2230:     # However, it has the same basename, so the bogon will be chosen
                   2231:     # first if we set CC to just the basename; use the full file name.
                   2232:     shift
                   2233:     set dummy "$ac_dir/$ac_word" "$@"
                   2234:     shift
                   2235:     ac_cv_prog_CC="$@"
                   2236:   fi
                   2237: fi
                   2238: fi
                   2239: fi
                   2240: CC="$ac_cv_prog_CC"
                   2241: if test -n "$CC"; then
                   2242:   echo "$ac_t""$CC" 1>&6
                   2243: else
                   2244:   echo "$ac_t""no" 1>&6
                   2245: fi
                   2246:
                   2247:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   2248: fi
                   2249:
                   2250: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
                   2251: echo "configure:2252: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
                   2252:
                   2253: ac_ext=c
                   2254: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2255: ac_cpp='$CPP $CPPFLAGS'
                   2256: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2257: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2258: cross_compiling=$ac_cv_prog_cc_cross
                   2259:
                   2260: cat > conftest.$ac_ext <<EOF
                   2261: #line 2262 "configure"
                   2262: #include "confdefs.h"
                   2263: main(){return(0);}
                   2264: EOF
                   2265: if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2266:   ac_cv_prog_cc_works=yes
                   2267:   # If we can't run a trivial program, we are probably using a cross compiler.
                   2268:   if (./conftest; exit) 2>/dev/null; then
                   2269:     ac_cv_prog_cc_cross=no
                   2270:   else
                   2271:     ac_cv_prog_cc_cross=yes
                   2272:   fi
                   2273: else
                   2274:   echo "configure: failed program was:" >&5
                   2275:   cat conftest.$ac_ext >&5
                   2276:   ac_cv_prog_cc_works=no
                   2277: fi
                   2278: rm -fr conftest*
                   2279:
                   2280: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   2281: if test $ac_cv_prog_cc_works = no; then
                   2282:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   2283: fi
                   2284: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
                   2285: echo "configure:2286: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
                   2286: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   2287: cross_compiling=$ac_cv_prog_cc_cross
                   2288:
                   2289: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
                   2290: echo "configure:2291: checking whether we are using GNU C" >&5
                   2291: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   2292:   echo $ac_n "(cached) $ac_c" 1>&6
                   2293: else
                   2294:   cat > conftest.c <<EOF
                   2295: #ifdef __GNUC__
                   2296:   yes;
                   2297: #endif
                   2298: EOF
                   2299: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
                   2300:   ac_cv_prog_gcc=yes
                   2301: else
                   2302:   ac_cv_prog_gcc=no
                   2303: fi
                   2304: fi
                   2305:
                   2306: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   2307:
                   2308: if test $ac_cv_prog_gcc = yes; then
                   2309:   GCC=yes
                   2310:   ac_test_CFLAGS="${CFLAGS+set}"
                   2311:   ac_save_CFLAGS="$CFLAGS"
                   2312:   CFLAGS=
                   2313:   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
                   2314: echo "configure:2315: checking whether ${CC-cc} accepts -g" >&5
                   2315: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   2316:   echo $ac_n "(cached) $ac_c" 1>&6
                   2317: else
                   2318:   echo 'void f(){}' > conftest.c
                   2319: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   2320:   ac_cv_prog_cc_g=yes
                   2321: else
                   2322:   ac_cv_prog_cc_g=no
                   2323: fi
                   2324: rm -f conftest*
                   2325:
                   2326: fi
                   2327:
                   2328: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   2329:   if test "$ac_test_CFLAGS" = set; then
                   2330:     CFLAGS="$ac_save_CFLAGS"
                   2331:   elif test $ac_cv_prog_cc_g = yes; then
                   2332:     CFLAGS="-g -O2"
                   2333:   else
                   2334:     CFLAGS="-O2"
                   2335:   fi
                   2336: else
                   2337:   GCC=
                   2338:   test "${CFLAGS+set}" = set || CFLAGS="-g"
                   2339: fi
                   2340:
                   2341: ac_cv_prog_cc_cross="no"
                   2342: cross_compiling="no"
                   2343: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
                   2344: echo "configure:2345: checking how to run the C preprocessor" >&5
                   2345: # On Suns, sometimes $CPP names a directory.
                   2346: if test -n "$CPP" && test -d "$CPP"; then
                   2347:   CPP=
                   2348: fi
                   2349: if test -z "$CPP"; then
                   2350: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                   2351:   echo $ac_n "(cached) $ac_c" 1>&6
                   2352: else
                   2353:     # This must be in double quotes, not single quotes, because CPP may get
                   2354:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                   2355:   CPP="${CC-cc} -E"
                   2356:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   2357:   # not just through cpp.
                   2358:   cat > conftest.$ac_ext <<EOF
                   2359: #line 2360 "configure"
                   2360: #include "confdefs.h"
                   2361: #include <assert.h>
                   2362: Syntax Error
                   2363: EOF
                   2364: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   2365: { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   2366: ac_err=`grep -v '^ *+' conftest.out`
                   2367: if test -z "$ac_err"; then
                   2368:   :
                   2369: else
                   2370:   echo "$ac_err" >&5
                   2371:   echo "configure: failed program was:" >&5
                   2372:   cat conftest.$ac_ext >&5
                   2373:   rm -rf conftest*
                   2374:   CPP="${CC-cc} -E -traditional-cpp"
                   2375:   cat > conftest.$ac_ext <<EOF
                   2376: #line 2377 "configure"
                   2377: #include "confdefs.h"
                   2378: #include <assert.h>
                   2379: Syntax Error
                   2380: EOF
                   2381: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   2382: { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   2383: ac_err=`grep -v '^ *+' conftest.out`
                   2384: if test -z "$ac_err"; then
                   2385:   :
                   2386: else
                   2387:   echo "$ac_err" >&5
                   2388:   echo "configure: failed program was:" >&5
                   2389:   cat conftest.$ac_ext >&5
                   2390:   rm -rf conftest*
                   2391:   CPP=/lib/cpp
                   2392: fi
                   2393: rm -f conftest*
                   2394: fi
                   2395: rm -f conftest*
                   2396:   ac_cv_prog_CPP="$CPP"
                   2397: fi
                   2398:   CPP="$ac_cv_prog_CPP"
                   2399: else
                   2400:   ac_cv_prog_CPP="$CPP"
                   2401: fi
                   2402: echo "$ac_t""$CPP" 1>&6
                   2403:
                   2404: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
                   2405: echo "configure:2406: checking for POSIXized ISC" >&5
                   2406: if test -d /etc/conf/kconfig.d &&
                   2407:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                   2408: then
                   2409:   echo "$ac_t""yes" 1>&6
                   2410:   ISC=yes # If later tests want to check for ISC.
                   2411:   cat >> confdefs.h <<\EOF
                   2412: #define _POSIX_SOURCE 1
                   2413: EOF
                   2414:
                   2415:   if test "$GCC" = yes; then
                   2416:     CC="$CC -posix"
                   2417:   else
                   2418:     CC="$CC -Xp"
                   2419:   fi
                   2420: else
                   2421:   echo "$ac_t""no" 1>&6
                   2422:   ISC=
                   2423: fi
                   2424:
                   2425:
                   2426: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   2427:     CFLAGS="${CFLAGS} -Wall"
                   2428: fi
                   2429:
                   2430: # Extract the first word of "uname", so it can be a program name with args.
                   2431: set dummy uname; ac_word=$2
                   2432: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2433: echo "configure:2434: checking for $ac_word" >&5
                   2434: if eval "test \"`echo '$''{'ac_cv_prog_UNAMEPROG'+set}'`\" = set"; then
                   2435:   echo $ac_n "(cached) $ac_c" 1>&6
                   2436: else
                   2437:   if test -n "$UNAMEPROG"; then
                   2438:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   2439: else
                   2440:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2441:   for ac_dir in $PATH; do
                   2442:     test -z "$ac_dir" && ac_dir=.
                   2443:     if test -f $ac_dir/$ac_word; then
                   2444:       ac_cv_prog_UNAMEPROG="uname"
                   2445:       break
                   2446:     fi
                   2447:   done
                   2448:   IFS="$ac_save_ifs"
                   2449: fi
                   2450: fi
                   2451: UNAMEPROG="$ac_cv_prog_UNAMEPROG"
                   2452: if test -n "$UNAMEPROG"; then
                   2453:   echo "$ac_t""$UNAMEPROG" 1>&6
                   2454: else
                   2455:   echo "$ac_t""no" 1>&6
                   2456: fi
                   2457:
                   2458: # Extract the first word of "tr", so it can be a program name with args.
                   2459: set dummy tr; ac_word=$2
                   2460: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2461: echo "configure:2462: checking for $ac_word" >&5
                   2462: if eval "test \"`echo '$''{'ac_cv_prog_TRPROG'+set}'`\" = set"; then
                   2463:   echo $ac_n "(cached) $ac_c" 1>&6
                   2464: else
                   2465:   if test -n "$TRPROG"; then
                   2466:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   2467: else
                   2468:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2469:   for ac_dir in $PATH; do
                   2470:     test -z "$ac_dir" && ac_dir=.
                   2471:     if test -f $ac_dir/$ac_word; then
                   2472:       ac_cv_prog_TRPROG="tr"
                   2473:       break
                   2474:     fi
                   2475:   done
                   2476:   IFS="$ac_save_ifs"
                   2477: fi
                   2478: fi
                   2479: TRPROG="$ac_cv_prog_TRPROG"
                   2480: if test -n "$TRPROG"; then
                   2481:   echo "$ac_t""$TRPROG" 1>&6
                   2482: else
                   2483:   echo "$ac_t""no" 1>&6
                   2484: fi
                   2485:
                   2486: # Extract the first word of "sed", so it can be a program name with args.
                   2487: set dummy sed; ac_word=$2
                   2488: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2489: echo "configure:2490: checking for $ac_word" >&5
                   2490: if eval "test \"`echo '$''{'ac_cv_prog_SEDPROG'+set}'`\" = set"; then
                   2491:   echo $ac_n "(cached) $ac_c" 1>&6
                   2492: else
                   2493:   if test -n "$SEDPROG"; then
                   2494:   ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
                   2495: else
                   2496:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2497:   for ac_dir in $PATH; do
                   2498:     test -z "$ac_dir" && ac_dir=.
                   2499:     if test -f $ac_dir/$ac_word; then
                   2500:       ac_cv_prog_SEDPROG="sed"
                   2501:       break
                   2502:     fi
                   2503:   done
                   2504:   IFS="$ac_save_ifs"
                   2505: fi
                   2506: fi
                   2507: SEDPROG="$ac_cv_prog_SEDPROG"
                   2508: if test -n "$SEDPROG"; then
                   2509:   echo "$ac_t""$SEDPROG" 1>&6
                   2510: else
                   2511:   echo "$ac_t""no" 1>&6
                   2512: fi
                   2513:
                   2514: # Extract the first word of "nroff", so it can be a program name with args.
                   2515: set dummy nroff; ac_word=$2
                   2516: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2517: echo "configure:2518: checking for $ac_word" >&5
                   2518: if eval "test \"`echo '$''{'ac_cv_prog_NROFFPROG'+set}'`\" = set"; then
                   2519:   echo $ac_n "(cached) $ac_c" 1>&6
                   2520: else
                   2521:   if test -n "$NROFFPROG"; then
                   2522:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   2523: else
                   2524:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2525:   for ac_dir in $PATH; do
                   2526:     test -z "$ac_dir" && ac_dir=.
                   2527:     if test -f $ac_dir/$ac_word; then
                   2528:       ac_cv_prog_NROFFPROG="nroff"
                   2529:       break
                   2530:     fi
                   2531:   done
                   2532:   IFS="$ac_save_ifs"
                   2533: fi
                   2534: fi
                   2535: NROFFPROG="$ac_cv_prog_NROFFPROG"
                   2536: if test -n "$NROFFPROG"; then
                   2537:   echo "$ac_t""$NROFFPROG" 1>&6
                   2538: else
                   2539:   echo "$ac_t""no" 1>&6
                   2540: fi
                   2541:
                   2542: if test -z "$NROFFPROG"; then
                   2543:     MANTYPE="cat"
                   2544: fi
                   2545:
                   2546: ac_aux_dir=
                   2547: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                   2548:   if test -f $ac_dir/install-sh; then
                   2549:     ac_aux_dir=$ac_dir
                   2550:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2551:     break
                   2552:   elif test -f $ac_dir/install.sh; then
                   2553:     ac_aux_dir=$ac_dir
                   2554:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2555:     break
                   2556:   fi
                   2557: done
                   2558: if test -z "$ac_aux_dir"; then
                   2559:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                   2560: fi
1.2       millert  2561: ac_config_guess="/bin/sh $ac_aux_dir/config.guess"
                   2562: ac_config_sub="/bin/sh $ac_aux_dir/config.sub"
1.1       millert  2563: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                   2564:
                   2565:
                   2566: # Make sure we can run config.sub.
                   2567: if $ac_config_sub sun4 >/dev/null 2>&1; then :
                   2568: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                   2569: fi
                   2570:
                   2571: echo $ac_n "checking host system type""... $ac_c" 1>&6
                   2572: echo "configure:2573: checking host system type" >&5
                   2573:
                   2574: host_alias=$host
                   2575: case "$host_alias" in
                   2576: NONE)
                   2577:   case $nonopt in
                   2578:   NONE)
                   2579:     if host_alias=`$ac_config_guess`; then :
                   2580:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                   2581:     fi ;;
                   2582:   *) host_alias=$nonopt ;;
                   2583:   esac ;;
                   2584: esac
                   2585:
                   2586: host=`$ac_config_sub $host_alias`
                   2587: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   2588: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   2589: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   2590: echo "$ac_t""$host" 1>&6
                   2591:
                   2592: if test -n "$sudo_cv_prev_host"; then
                   2593:     if test "$sudo_cv_prev_host" != "$host"; then
                   2594:        echo ""
                   2595:        echo "Fatal Error: config.cache exists from another platform!"
                   2596:        echo "Please remove it and re-run configure."
                   2597:        echo ""
                   2598:        exit 1
                   2599:     else
                   2600:        echo $ac_n "checking previous host type""... $ac_c" 1>&6
                   2601: echo "configure:2602: checking previous host type" >&5
                   2602:        if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
                   2603:   echo $ac_n "(cached) $ac_c" 1>&6
                   2604: else
                   2605:   sudo_cv_prev_host="$host"
                   2606: fi
                   2607:
                   2608:        echo $sudo_cv_prev_host
                   2609:     fi
                   2610: else
                   2611:     # this will produce no output since there is no cached value
                   2612:     if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
                   2613:   echo $ac_n "(cached) $ac_c" 1>&6
                   2614: else
                   2615:   sudo_cv_prev_host="$host"
                   2616: fi
                   2617:
                   2618: fi
                   2619:
                   2620: if test -n "$host_os"; then
                   2621:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   2622:     OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
                   2623: else
                   2624:     OS="unknown"
                   2625:     OSREV=0
                   2626: fi
                   2627:
                   2628: case "$host" in
                   2629:     *-*-sunos4*)
                   2630:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   2631:                BROKEN_GETCWD=1
                   2632:
                   2633:                # system headers lack prototypes but gcc helps...
                   2634:                if test -n "$GCC"; then
                   2635:                    CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
                   2636:                fi
                   2637:
                   2638:                # check for password adjunct functions (shadow passwords)
                   2639:                if test "$CHECKSHADOW" = "true"; then
                   2640:                    echo $ac_n "checking for getpwanam""... $ac_c" 1>&6
                   2641: echo "configure:2642: checking for getpwanam" >&5
                   2642: if eval "test \"`echo '$''{'ac_cv_func_getpwanam'+set}'`\" = set"; then
                   2643:   echo $ac_n "(cached) $ac_c" 1>&6
                   2644: else
                   2645:   cat > conftest.$ac_ext <<EOF
                   2646: #line 2647 "configure"
                   2647: #include "confdefs.h"
                   2648: /* System header to define __stub macros and hopefully few prototypes,
                   2649:     which can conflict with char getpwanam(); below.  */
                   2650: #include <assert.h>
                   2651: /* Override any gcc2 internal prototype to avoid an error.  */
                   2652: /* We use char because int might match the return type of a gcc2
                   2653:     builtin and then its argument prototype would still apply.  */
                   2654: char getpwanam();
                   2655:
                   2656: int main() {
                   2657:
                   2658: /* The GNU C library defines this for functions which it implements
                   2659:     to always fail with ENOSYS.  Some functions are actually named
                   2660:     something starting with __ and the normal name is an alias.  */
                   2661: #if defined (__stub_getpwanam) || defined (__stub___getpwanam)
                   2662: choke me
                   2663: #else
                   2664: getpwanam();
                   2665: #endif
                   2666:
                   2667: ; return 0; }
                   2668: EOF
                   2669: if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2670:   rm -rf conftest*
                   2671:   eval "ac_cv_func_getpwanam=yes"
                   2672: else
                   2673:   echo "configure: failed program was:" >&5
                   2674:   cat conftest.$ac_ext >&5
                   2675:   rm -rf conftest*
                   2676:   eval "ac_cv_func_getpwanam=no"
                   2677: fi
                   2678: rm -f conftest*
                   2679: fi
                   2680:
                   2681: if eval "test \"`echo '$ac_cv_func_'getpwanam`\" = yes"; then
                   2682:   echo "$ac_t""yes" 1>&6
                   2683:   cat >> confdefs.h <<\EOF
                   2684: #define HAVE_GETPWANAM 1
                   2685: EOF
                   2686:  for ac_func in issecure
                   2687: do
                   2688: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   2689: echo "configure:2690: checking for $ac_func" >&5
                   2690: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2691:   echo $ac_n "(cached) $ac_c" 1>&6
                   2692: else
                   2693:   cat > conftest.$ac_ext <<EOF
                   2694: #line 2695 "configure"
                   2695: #include "confdefs.h"
                   2696: /* System header to define __stub macros and hopefully few prototypes,
                   2697:     which can conflict with char $ac_func(); below.  */
                   2698: #include <assert.h>
                   2699: /* Override any gcc2 internal prototype to avoid an error.  */
                   2700: /* We use char because int might match the return type of a gcc2
                   2701:     builtin and then its argument prototype would still apply.  */
                   2702: char $ac_func();
                   2703:
                   2704: int main() {
                   2705:
                   2706: /* The GNU C library defines this for functions which it implements
                   2707:     to always fail with ENOSYS.  Some functions are actually named
                   2708:     something starting with __ and the normal name is an alias.  */
                   2709: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2710: choke me
                   2711: #else
                   2712: $ac_func();
                   2713: #endif
                   2714:
                   2715: ; return 0; }
                   2716: EOF
                   2717: if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2718:   rm -rf conftest*
                   2719:   eval "ac_cv_func_$ac_func=yes"
                   2720: else
                   2721:   echo "configure: failed program was:" >&5
                   2722:   cat conftest.$ac_ext >&5
                   2723:   rm -rf conftest*
                   2724:   eval "ac_cv_func_$ac_func=no"
                   2725: fi
                   2726: rm -f conftest*
                   2727: fi
                   2728:
                   2729: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2730:   echo "$ac_t""yes" 1>&6
                   2731:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2732:   cat >> confdefs.h <<EOF
                   2733: #define $ac_tr_func 1
                   2734: EOF
                   2735:
                   2736: else
                   2737:   echo "$ac_t""no" 1>&6
                   2738: fi
                   2739: done
                   2740:
                   2741: else
                   2742:   echo "$ac_t""no" 1>&6
                   2743: fi
                   2744:
                   2745:                    CHECKSHADOW="false"
                   2746:                fi
                   2747:                ;;
                   2748:     *-*-solaris2*)
                   2749:                # To get the crypt(3) prototype (so we pass -Wall)
                   2750:                CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
                   2751:                # AFS support needs -lucb
                   2752:                if test "$with_AFS" = "yes"; then
                   2753:                    AFS_LIBS="-lc -lucb"
                   2754:                fi
                   2755:                ;;
                   2756:     *-*-aix*)
                   2757:                # To get all prototypes (so we pass -Wall)
                   2758:                CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
                   2759:                cat >> confdefs.h <<\EOF
                   2760: #define _ALL_SOURCE 1
                   2761: EOF
                   2762:
                   2763:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   2764:                ;;
                   2765:     *-*-hiuxmpp*)
                   2766:                if test "$CHECKSHADOW" = "true"; then
                   2767:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
                   2768: echo "configure:2769: checking for getprpwnam in -lsec" >&5
                   2769: if test -n ""; then
                   2770:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2771: else
                   2772:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2773: fi
                   2774: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2775:   echo $ac_n "(cached) $ac_c" 1>&6
                   2776: else
                   2777:   ac_save_LIBS="$LIBS"
                   2778: LIBS="-lsec  $LIBS"
                   2779: cat > conftest.$ac_ext <<EOF
                   2780: #line 2781 "configure"
                   2781: #include "confdefs.h"
                   2782: /* Override any gcc2 internal prototype to avoid an error.  */
                   2783: /* We use char because int might match the return type of a gcc2
                   2784:     builtin and then its argument prototype would still apply.  */
                   2785: char getprpwnam();
                   2786:
                   2787: int main() {
                   2788: getprpwnam()
                   2789: ; return 0; }
                   2790: EOF
                   2791: if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2792:   rm -rf conftest*
                   2793:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2794: else
                   2795:   echo "configure: failed program was:" >&5
                   2796:   cat conftest.$ac_ext >&5
                   2797:   rm -rf conftest*
                   2798:   eval "ac_cv_lib_$ac_lib_var=no"
                   2799: fi
                   2800: rm -f conftest*
                   2801: LIBS="$ac_save_LIBS"
                   2802:
                   2803: fi
                   2804: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2805:   echo "$ac_t""yes" 1>&6
                   2806:   cat >> confdefs.h <<\EOF
                   2807: #define HAVE_GETPRPWNAM 1
                   2808: EOF
                   2809:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   2810: else
                   2811:   echo "$ac_t""no" 1>&6
                   2812: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
                   2813: echo "configure:2814: checking for getprpwnam in -lsecurity" >&5
                   2814: if test -n ""; then
                   2815:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2816: else
                   2817:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2818: fi
                   2819: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2820:   echo $ac_n "(cached) $ac_c" 1>&6
                   2821: else
                   2822:   ac_save_LIBS="$LIBS"
                   2823: LIBS="-lsecurity  $LIBS"
                   2824: cat > conftest.$ac_ext <<EOF
                   2825: #line 2826 "configure"
                   2826: #include "confdefs.h"
                   2827: /* Override any gcc2 internal prototype to avoid an error.  */
                   2828: /* We use char because int might match the return type of a gcc2
                   2829:     builtin and then its argument prototype would still apply.  */
                   2830: char getprpwnam();
                   2831:
                   2832: int main() {
                   2833: getprpwnam()
                   2834: ; return 0; }
                   2835: EOF
                   2836: if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2837:   rm -rf conftest*
                   2838:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2839: else
                   2840:   echo "configure: failed program was:" >&5
                   2841:   cat conftest.$ac_ext >&5
                   2842:   rm -rf conftest*
                   2843:   eval "ac_cv_lib_$ac_lib_var=no"
                   2844: fi
                   2845: rm -f conftest*
                   2846: LIBS="$ac_save_LIBS"
                   2847:
                   2848: fi
                   2849: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2850:   echo "$ac_t""yes" 1>&6
                   2851:   cat >> confdefs.h <<\EOF
                   2852: #define HAVE_GETPRPWNAM 1
                   2853: EOF
                   2854:  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
                   2855: else
                   2856:   echo "$ac_t""no" 1>&6
                   2857: fi
                   2858:
                   2859: fi
                   2860:
                   2861:                    CHECKSHADOW="false"
                   2862:                fi
                   2863:                ;;
                   2864:     *-*-hpux1[0-9]*)
                   2865:                # uncomment this for a statically linked sudo
                   2866:                # (XXX - should be an option to configure)
                   2867:                #STATIC_SUDO=true
                   2868:
                   2869:                if test "$CHECKSHADOW" = "true"; then
                   2870:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
                   2871: echo "configure:2872: checking for getprpwnam in -lsec" >&5
                   2872: if test -n ""; then
                   2873:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2874: else
                   2875:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2876: fi
                   2877: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2878:   echo $ac_n "(cached) $ac_c" 1>&6
                   2879: else
                   2880:   ac_save_LIBS="$LIBS"
                   2881: LIBS="-lsec  $LIBS"
                   2882: cat > conftest.$ac_ext <<EOF
                   2883: #line 2884 "configure"
                   2884: #include "confdefs.h"
                   2885: /* Override any gcc2 internal prototype to avoid an error.  */
                   2886: /* We use char because int might match the return type of a gcc2
                   2887:     builtin and then its argument prototype would still apply.  */
                   2888: char getprpwnam();
                   2889:
                   2890: int main() {
                   2891: getprpwnam()
                   2892: ; return 0; }
                   2893: EOF
                   2894: if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2895:   rm -rf conftest*
                   2896:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2897: else
                   2898:   echo "configure: failed program was:" >&5
                   2899:   cat conftest.$ac_ext >&5
                   2900:   rm -rf conftest*
                   2901:   eval "ac_cv_lib_$ac_lib_var=no"
                   2902: fi
                   2903: rm -f conftest*
                   2904: LIBS="$ac_save_LIBS"
                   2905:
                   2906: fi
                   2907: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2908:   echo "$ac_t""yes" 1>&6
                   2909:   cat >> confdefs.h <<\EOF
                   2910: #define HAVE_GETPRPWNAM 1
                   2911: EOF
                   2912:  echo $ac_n "checking for iscomsec in -lsec""... $ac_c" 1>&6
                   2913: echo "configure:2914: checking for iscomsec in -lsec" >&5
                   2914: if test -n ""; then
                   2915:   ac_lib_var=`echo sec'_'iscomsec | sed 'y% ./+-%___p_%'`
                   2916: else
                   2917:   ac_lib_var=`echo sec'_'iscomsec | sed 'y%./+-%__p_%'`
                   2918: fi
                   2919: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2920:   echo $ac_n "(cached) $ac_c" 1>&6
                   2921: else
                   2922:   ac_save_LIBS="$LIBS"
                   2923: LIBS="-lsec  $LIBS"
                   2924: cat > conftest.$ac_ext <<EOF
                   2925: #line 2926 "configure"
                   2926: #include "confdefs.h"
                   2927: /* Override any gcc2 internal prototype to avoid an error.  */
                   2928: /* We use char because int might match the return type of a gcc2
                   2929:     builtin and then its argument prototype would still apply.  */
                   2930: char iscomsec();
                   2931:
                   2932: int main() {
                   2933: iscomsec()
                   2934: ; return 0; }
                   2935: EOF
                   2936: if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   2937:   rm -rf conftest*
                   2938:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2939: else
                   2940:   echo "configure: failed program was:" >&5
                   2941:   cat conftest.$ac_ext >&5
                   2942:   rm -rf conftest*
                   2943:   eval "ac_cv_lib_$ac_lib_var=no"
                   2944: fi
                   2945: rm -f conftest*
                   2946: LIBS="$ac_save_LIBS"
                   2947:
                   2948: fi
                   2949: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2950:   echo "$ac_t""yes" 1>&6
                   2951:   cat >> confdefs.h <<\EOF
                   2952: #define HAVE_ISCOMSEC 1
                   2953: EOF
                   2954:
                   2955: else
                   2956:   echo "$ac_t""no" 1>&6
                   2957: fi
                   2958:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   2959: else
                   2960:   echo "$ac_t""no" 1>&6
                   2961: fi
                   2962:
                   2963:                    CHECKSHADOW="false"
                   2964:                fi
                   2965:
                   2966:                if test -n "$STATIC_SUDO"; then
                   2967:                    if test -n "$GCC"; then
                   2968:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   2969:                    else
                   2970:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   2971:                    fi
                   2972:                fi
                   2973:
                   2974:                # DCE support (requires ANSI C compiler)
                   2975:                if test "$with_DCE" = "yes"; then
                   2976:                    if test -n "$GCC"; then
                   2977:                        CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
                   2978:                    else
                   2979:                        CPPFLAGS="${CPPFLAGS} -Aa -D_HPUX_SOURCE"
                   2980:                    fi
                   2981:                fi
                   2982:
                   2983:                # AFS support needs -lBSD
                   2984:                if test "$with_AFS" = "yes"; then
                   2985:                    AFS_LIBS="-lc -lBSD"
                   2986:                fi
                   2987:                ;;
                   2988:     *-*-hpux9*)
                   2989:                # uncomment this for a statically linked sudo
                   2990:                # (XXX - should be an option to configure)
                   2991:                #STATIC_SUDO=true
                   2992:
                   2993:                cat >> confdefs.h <<\EOF
                   2994: #define BROKEN_SYSLOG 1
                   2995: EOF
                   2996:
                   2997:
                   2998:                if test "$CHECKSHADOW" = "true"; then
                   2999:                    for ac_func in getspwuid
                   3000: do
                   3001: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   3002: echo "configure:3003: checking for $ac_func" >&5
                   3003: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3004:   echo $ac_n "(cached) $ac_c" 1>&6
                   3005: else
                   3006:   cat > conftest.$ac_ext <<EOF
                   3007: #line 3008 "configure"
                   3008: #include "confdefs.h"
                   3009: /* System header to define __stub macros and hopefully few prototypes,
                   3010:     which can conflict with char $ac_func(); below.  */
                   3011: #include <assert.h>
                   3012: /* Override any gcc2 internal prototype to avoid an error.  */
                   3013: /* We use char because int might match the return type of a gcc2
                   3014:     builtin and then its argument prototype would still apply.  */
                   3015: char $ac_func();
                   3016:
                   3017: int main() {
                   3018:
                   3019: /* The GNU C library defines this for functions which it implements
                   3020:     to always fail with ENOSYS.  Some functions are actually named
                   3021:     something starting with __ and the normal name is an alias.  */
                   3022: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3023: choke me
                   3024: #else
                   3025: $ac_func();
                   3026: #endif
                   3027:
                   3028: ; return 0; }
                   3029: EOF
                   3030: if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3031:   rm -rf conftest*
                   3032:   eval "ac_cv_func_$ac_func=yes"
                   3033: else
                   3034:   echo "configure: failed program was:" >&5
                   3035:   cat conftest.$ac_ext >&5
                   3036:   rm -rf conftest*
                   3037:   eval "ac_cv_func_$ac_func=no"
                   3038: fi
                   3039: rm -f conftest*
                   3040: fi
                   3041:
                   3042: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3043:   echo "$ac_t""yes" 1>&6
                   3044:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3045:   cat >> confdefs.h <<EOF
                   3046: #define $ac_tr_func 1
                   3047: EOF
                   3048:
                   3049: else
                   3050:   echo "$ac_t""no" 1>&6
                   3051: fi
                   3052: done
                   3053:
                   3054:                    CHECKSHADOW="false"
                   3055:                fi
                   3056:
                   3057:                if test -n "$STATIC_SUDO"; then
                   3058:                    if test -n "$GCC"; then
                   3059:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3060:                    else
                   3061:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3062:                    fi
                   3063:                fi
                   3064:
                   3065:                # DCE support (requires ANSI C compiler)
                   3066:                if test "$with_DCE" = "yes"; then
                   3067:                    # order of libs in 9.X is important. -lc_r must be last
                   3068:                    SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   3069:                    LIBS="${LIBS} -ldce -lM -lc_r"
                   3070:
                   3071:                    if test -n "$GCC"; then
                   3072:                        CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE -D_REENTRANT -I/usr/include/reentrant"
                   3073:                    else
                   3074:                        CPPFLAGS="${CPPFLAGS} -Aa -D_HPUX_SOURCE -D_REENTRANT -I/usr/include/reentrant"
                   3075:                    fi
                   3076:                fi
                   3077:
                   3078:                # AFS support needs -lBSD
                   3079:                if test "$with_AFS" = "yes"; then
                   3080:                    AFS_LIBS="-lc -lBSD"
                   3081:                fi
                   3082:                ;;
                   3083:     *-*-hpux*)
                   3084:
                   3085:                cat >> confdefs.h <<\EOF
                   3086: #define BROKEN_SYSLOG 1
                   3087: EOF
                   3088:
                   3089:
                   3090:                # Not sure if setuid binaries are safe in < 9.x
                   3091:                if test -n "$GCC"; then
                   3092:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3093:                else
                   3094:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3095:                fi
                   3096:
                   3097:                # AFS support needs -lBSD
                   3098:                if test "$with_AFS" = "yes"; then
                   3099:                    AFS_LIBS="-lc -lBSD"
                   3100:                fi
                   3101:                ;;
                   3102:     *-dec-osf*)
                   3103:                # ignore envariables wrt dynamic lib path
                   3104:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
                   3105:
                   3106:                echo $ac_n "checking whether to disable sia support on Digital UNIX""... $ac_c" 1>&6
                   3107: echo "configure:3108: checking whether to disable sia support on Digital UNIX" >&5
                   3108:                # Check whether --enable-sia or --disable-sia was given.
                   3109: if test "${enable_sia+set}" = set; then
                   3110:   enableval="$enable_sia"
                   3111:    case "$enableval" in
                   3112:                    yes)        echo "$ac_t""no" 1>&6
                   3113:                                ;;
                   3114:                    no)         echo "$ac_t""yes" 1>&6
                   3115:                                CHECKSIA=false
                   3116:                                ;;
                   3117:                    *)          echo "$ac_t""no" 1>&6
                   3118:                                echo "Ignoring unknown argument to --enable-sia: $enableval"
                   3119:                                ;;
                   3120:                  esac
                   3121:
                   3122: else
                   3123:   echo "$ac_t""no" 1>&6
                   3124: fi
                   3125:
                   3126:
                   3127:                # use SIA by default, if we have it, else SecureWare
                   3128:                # unless overridden on the command line
                   3129:                if test "$CHECKSIA" = "true"; then
                   3130:                    echo $ac_n "checking for sia_ses_init""... $ac_c" 1>&6
                   3131: echo "configure:3132: checking for sia_ses_init" >&5
                   3132: if eval "test \"`echo '$''{'ac_cv_func_sia_ses_init'+set}'`\" = set"; then
                   3133:   echo $ac_n "(cached) $ac_c" 1>&6
                   3134: else
                   3135:   cat > conftest.$ac_ext <<EOF
                   3136: #line 3137 "configure"
                   3137: #include "confdefs.h"
                   3138: /* System header to define __stub macros and hopefully few prototypes,
                   3139:     which can conflict with char sia_ses_init(); below.  */
                   3140: #include <assert.h>
                   3141: /* Override any gcc2 internal prototype to avoid an error.  */
                   3142: /* We use char because int might match the return type of a gcc2
                   3143:     builtin and then its argument prototype would still apply.  */
                   3144: char sia_ses_init();
                   3145:
                   3146: int main() {
                   3147:
                   3148: /* The GNU C library defines this for functions which it implements
                   3149:     to always fail with ENOSYS.  Some functions are actually named
                   3150:     something starting with __ and the normal name is an alias.  */
                   3151: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
                   3152: choke me
                   3153: #else
                   3154: sia_ses_init();
                   3155: #endif
                   3156:
                   3157: ; return 0; }
                   3158: EOF
                   3159: if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3160:   rm -rf conftest*
                   3161:   eval "ac_cv_func_sia_ses_init=yes"
                   3162: else
                   3163:   echo "configure: failed program was:" >&5
                   3164:   cat conftest.$ac_ext >&5
                   3165:   rm -rf conftest*
                   3166:   eval "ac_cv_func_sia_ses_init=no"
                   3167: fi
                   3168: rm -f conftest*
                   3169: fi
                   3170:
                   3171: if eval "test \"`echo '$ac_cv_func_'sia_ses_init`\" = yes"; then
                   3172:   echo "$ac_t""yes" 1>&6
                   3173:   cat >> confdefs.h <<\EOF
                   3174: #define HAVE_SIA 1
                   3175: EOF
                   3176:
                   3177:                    if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
                   3178:                        { echo "configure: error: "you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option"" 1>&2; exit 1; }
                   3179:                    fi; CHECKSHADOW=false
                   3180: else
                   3181:   echo "$ac_t""no" 1>&6
                   3182: fi
                   3183:
                   3184:                fi
                   3185:                if test "$CHECKSHADOW" = "true"; then
                   3186:                    echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
                   3187: echo "configure:3188: checking for getprpwnam in -lsecurity" >&5
                   3188: if test -n ""; then
                   3189:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3190: else
                   3191:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3192: fi
                   3193: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3194:   echo $ac_n "(cached) $ac_c" 1>&6
                   3195: else
                   3196:   ac_save_LIBS="$LIBS"
                   3197: LIBS="-lsecurity  $LIBS"
                   3198: cat > conftest.$ac_ext <<EOF
                   3199: #line 3200 "configure"
                   3200: #include "confdefs.h"
                   3201: /* Override any gcc2 internal prototype to avoid an error.  */
                   3202: /* We use char because int might match the return type of a gcc2
                   3203:     builtin and then its argument prototype would still apply.  */
                   3204: char getprpwnam();
                   3205:
                   3206: int main() {
                   3207: getprpwnam()
                   3208: ; return 0; }
                   3209: EOF
                   3210: if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3211:   rm -rf conftest*
                   3212:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3213: else
                   3214:   echo "configure: failed program was:" >&5
                   3215:   cat conftest.$ac_ext >&5
                   3216:   rm -rf conftest*
                   3217:   eval "ac_cv_lib_$ac_lib_var=no"
                   3218: fi
                   3219: rm -f conftest*
                   3220: LIBS="$ac_save_LIBS"
                   3221:
                   3222: fi
                   3223: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3224:   echo "$ac_t""yes" 1>&6
                   3225:   SECUREWARE=1
                   3226: else
                   3227:   echo "$ac_t""no" 1>&6
                   3228: fi
                   3229:
                   3230:                    CHECKSHADOW="false"
                   3231:                fi
                   3232:
                   3233:                if test -n "$SECUREWARE"; then
                   3234:                    cat >> confdefs.h <<\EOF
                   3235: #define HAVE_GETPRPWNAM 1
                   3236: EOF
                   3237:
                   3238:                    # -ldb includes bogus versions of snprintf/vsnprintf
                   3239:                    echo $ac_n "checking for snprintf""... $ac_c" 1>&6
                   3240: echo "configure:3241: checking for snprintf" >&5
                   3241: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   3242:   echo $ac_n "(cached) $ac_c" 1>&6
                   3243: else
                   3244:   cat > conftest.$ac_ext <<EOF
                   3245: #line 3246 "configure"
                   3246: #include "confdefs.h"
                   3247: /* System header to define __stub macros and hopefully few prototypes,
                   3248:     which can conflict with char snprintf(); below.  */
                   3249: #include <assert.h>
                   3250: /* Override any gcc2 internal prototype to avoid an error.  */
                   3251: /* We use char because int might match the return type of a gcc2
                   3252:     builtin and then its argument prototype would still apply.  */
                   3253: char snprintf();
                   3254:
                   3255: int main() {
                   3256:
                   3257: /* The GNU C library defines this for functions which it implements
                   3258:     to always fail with ENOSYS.  Some functions are actually named
                   3259:     something starting with __ and the normal name is an alias.  */
                   3260: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   3261: choke me
                   3262: #else
                   3263: snprintf();
                   3264: #endif
                   3265:
                   3266: ; return 0; }
                   3267: EOF
                   3268: if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3269:   rm -rf conftest*
                   3270:   eval "ac_cv_func_snprintf=yes"
                   3271: else
                   3272:   echo "configure: failed program was:" >&5
                   3273:   cat conftest.$ac_ext >&5
                   3274:   rm -rf conftest*
                   3275:   eval "ac_cv_func_snprintf=no"
                   3276: fi
                   3277: rm -f conftest*
                   3278: fi
                   3279:
                   3280: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   3281:   echo "$ac_t""yes" 1>&6
                   3282:   cat >> confdefs.h <<\EOF
                   3283: #define HAVE_SNPRINTF 1
                   3284: EOF
                   3285:
                   3286: else
                   3287:   echo "$ac_t""no" 1>&6
                   3288: NEED_SNPRINTF=1
                   3289: fi
                   3290:
                   3291:                    echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
                   3292: echo "configure:3293: checking for vsnprintf" >&5
                   3293: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   3294:   echo $ac_n "(cached) $ac_c" 1>&6
                   3295: else
                   3296:   cat > conftest.$ac_ext <<EOF
                   3297: #line 3298 "configure"
                   3298: #include "confdefs.h"
                   3299: /* System header to define __stub macros and hopefully few prototypes,
                   3300:     which can conflict with char vsnprintf(); below.  */
                   3301: #include <assert.h>
                   3302: /* Override any gcc2 internal prototype to avoid an error.  */
                   3303: /* We use char because int might match the return type of a gcc2
                   3304:     builtin and then its argument prototype would still apply.  */
                   3305: char vsnprintf();
                   3306:
                   3307: int main() {
                   3308:
                   3309: /* The GNU C library defines this for functions which it implements
                   3310:     to always fail with ENOSYS.  Some functions are actually named
                   3311:     something starting with __ and the normal name is an alias.  */
                   3312: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   3313: choke me
                   3314: #else
                   3315: vsnprintf();
                   3316: #endif
                   3317:
                   3318: ; return 0; }
                   3319: EOF
                   3320: if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3321:   rm -rf conftest*
                   3322:   eval "ac_cv_func_vsnprintf=yes"
                   3323: else
                   3324:   echo "configure: failed program was:" >&5
                   3325:   cat conftest.$ac_ext >&5
                   3326:   rm -rf conftest*
                   3327:   eval "ac_cv_func_vsnprintf=no"
                   3328: fi
                   3329: rm -f conftest*
                   3330: fi
                   3331:
                   3332: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   3333:   echo "$ac_t""yes" 1>&6
                   3334:   cat >> confdefs.h <<\EOF
                   3335: #define HAVE_VSNPRINTF 1
                   3336: EOF
                   3337:
                   3338: else
                   3339:   echo "$ac_t""no" 1>&6
                   3340: NEED_SNPRINTF=1
                   3341: fi
                   3342:
                   3343:                    # 4.x and higher need -ldb too...
                   3344:                    echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
                   3345: echo "configure:3346: checking for dbopen in -ldb" >&5
                   3346: if test -n ""; then
                   3347:   ac_lib_var=`echo db'_'dbopen | sed 'y% ./+-%___p_%'`
                   3348: else
                   3349:   ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
                   3350: fi
                   3351: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3352:   echo $ac_n "(cached) $ac_c" 1>&6
                   3353: else
                   3354:   ac_save_LIBS="$LIBS"
                   3355: LIBS="-ldb  $LIBS"
                   3356: cat > conftest.$ac_ext <<EOF
                   3357: #line 3358 "configure"
                   3358: #include "confdefs.h"
                   3359: /* Override any gcc2 internal prototype to avoid an error.  */
                   3360: /* We use char because int might match the return type of a gcc2
                   3361:     builtin and then its argument prototype would still apply.  */
                   3362: char dbopen();
                   3363:
                   3364: int main() {
                   3365: dbopen()
                   3366: ; return 0; }
                   3367: EOF
                   3368: if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3369:   rm -rf conftest*
                   3370:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3371: else
                   3372:   echo "configure: failed program was:" >&5
                   3373:   cat conftest.$ac_ext >&5
                   3374:   rm -rf conftest*
                   3375:   eval "ac_cv_lib_$ac_lib_var=no"
                   3376: fi
                   3377: rm -f conftest*
                   3378: LIBS="$ac_save_LIBS"
                   3379:
                   3380: fi
                   3381: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3382:   echo "$ac_t""yes" 1>&6
                   3383:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3384: else
                   3385:   echo "$ac_t""no" 1>&6
                   3386: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3387: fi
                   3388:
                   3389:                    for ac_func in dispcrypt
                   3390: do
                   3391: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   3392: echo "configure:3393: checking for $ac_func" >&5
                   3393: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3394:   echo $ac_n "(cached) $ac_c" 1>&6
                   3395: else
                   3396:   cat > conftest.$ac_ext <<EOF
                   3397: #line 3398 "configure"
                   3398: #include "confdefs.h"
                   3399: /* System header to define __stub macros and hopefully few prototypes,
                   3400:     which can conflict with char $ac_func(); below.  */
                   3401: #include <assert.h>
                   3402: /* Override any gcc2 internal prototype to avoid an error.  */
                   3403: /* We use char because int might match the return type of a gcc2
                   3404:     builtin and then its argument prototype would still apply.  */
                   3405: char $ac_func();
                   3406:
                   3407: int main() {
                   3408:
                   3409: /* The GNU C library defines this for functions which it implements
                   3410:     to always fail with ENOSYS.  Some functions are actually named
                   3411:     something starting with __ and the normal name is an alias.  */
                   3412: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3413: choke me
                   3414: #else
                   3415: $ac_func();
                   3416: #endif
                   3417:
                   3418: ; return 0; }
                   3419: EOF
                   3420: if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3421:   rm -rf conftest*
                   3422:   eval "ac_cv_func_$ac_func=yes"
                   3423: else
                   3424:   echo "configure: failed program was:" >&5
                   3425:   cat conftest.$ac_ext >&5
                   3426:   rm -rf conftest*
                   3427:   eval "ac_cv_func_$ac_func=no"
                   3428: fi
                   3429: rm -f conftest*
                   3430: fi
                   3431:
                   3432: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3433:   echo "$ac_t""yes" 1>&6
                   3434:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3435:   cat >> confdefs.h <<EOF
                   3436: #define $ac_tr_func 1
                   3437: EOF
                   3438:
                   3439: else
                   3440:   echo "$ac_t""no" 1>&6
                   3441: fi
                   3442: done
                   3443:
                   3444:                    echo $ac_n "checking for broken /usr/include/prot.h""... $ac_c" 1>&6
                   3445: echo "configure:3446: checking for broken /usr/include/prot.h" >&5
                   3446:                    cat > conftest.$ac_ext <<EOF
                   3447: #line 3448 "configure"
                   3448: #include "confdefs.h"
                   3449:
                   3450: #include <sys/types.h>
                   3451: #include <sys/security.h>
                   3452: #include <prot.h>
                   3453:
                   3454: int main() {
                   3455: exit(0);
                   3456: ; return 0; }
                   3457: EOF
                   3458: if { (eval echo configure:3459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   3459:   rm -rf conftest*
                   3460:   echo "$ac_t""no" 1>&6
                   3461: else
                   3462:   echo "configure: failed program was:" >&5
                   3463:   cat conftest.$ac_ext >&5
                   3464:   rm -rf conftest*
                   3465:   echo "$ac_t""yes, fixing locally" 1>&6
                   3466:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
                   3467:
                   3468: fi
                   3469: rm -f conftest*
                   3470:                else
                   3471:                    with_passwd=no
                   3472:                    AUTH_OBJS="sia.o"
                   3473:                fi
                   3474:                ;;
                   3475:     *-*-irix*)
                   3476:                # configure may not think irix has stdc headers
                   3477:                # but it's good enough for sudo
                   3478:                cat >> confdefs.h <<\EOF
                   3479: #define STDC_HEADERS 1
                   3480: EOF
                   3481:
                   3482:                CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
                   3483:                if test -z "$NROFFPROG"; then
                   3484:                    MAN_POSTINSTALL='   /bin/rm -f $(mandir8)/sudo.$(mansect8).z $(mandir8)/visudo.$(mansect8).z $(mandir5)/sudoers.$(mansect5).z ; /usr/bin/pack $(mandir8)/sudo.$(mansect8) $(mandir8)/visudo.$(mansect8) $(mandir5)/sudoers.$(mansect5)'
                   3485:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3486:                        if test -d /usr/share/catman/local; then
                   3487:                            mandir="/usr/share/catman/local"
                   3488:                        else
                   3489:                            mandir="/usr/catman/local"
                   3490:                        fi
                   3491:                    fi
                   3492:                else
                   3493:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3494:                        if test -d "/usr/share/man/local"; then
                   3495:                            mandir="/usr/share/man/local"
                   3496:                        else
                   3497:                            mandir="/usr/man/local"
                   3498:                        fi
                   3499:                    fi
                   3500:                fi
                   3501:                # IRIX <= 4 needs -lsun
                   3502:                if test "$OSREV" -le 4; then
                   3503:                    echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
                   3504: echo "configure:3505: checking for getpwnam in -lsun" >&5
                   3505: if test -n ""; then
                   3506:   ac_lib_var=`echo sun'_'getpwnam | sed 'y% ./+-%___p_%'`
                   3507: else
                   3508:   ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
                   3509: fi
                   3510: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3511:   echo $ac_n "(cached) $ac_c" 1>&6
                   3512: else
                   3513:   ac_save_LIBS="$LIBS"
                   3514: LIBS="-lsun  $LIBS"
                   3515: cat > conftest.$ac_ext <<EOF
                   3516: #line 3517 "configure"
                   3517: #include "confdefs.h"
                   3518: /* Override any gcc2 internal prototype to avoid an error.  */
                   3519: /* We use char because int might match the return type of a gcc2
                   3520:     builtin and then its argument prototype would still apply.  */
                   3521: char getpwnam();
                   3522:
                   3523: int main() {
                   3524: getpwnam()
                   3525: ; return 0; }
                   3526: EOF
                   3527: if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3528:   rm -rf conftest*
                   3529:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3530: else
                   3531:   echo "configure: failed program was:" >&5
                   3532:   cat conftest.$ac_ext >&5
                   3533:   rm -rf conftest*
                   3534:   eval "ac_cv_lib_$ac_lib_var=no"
                   3535: fi
                   3536: rm -f conftest*
                   3537: LIBS="$ac_save_LIBS"
                   3538:
                   3539: fi
                   3540: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3541:   echo "$ac_t""yes" 1>&6
                   3542:   LIBS="${LIBS} -lsun"
                   3543: else
                   3544:   echo "$ac_t""no" 1>&6
                   3545: fi
                   3546:
                   3547:                fi
                   3548:                ;;
                   3549:     *-*-linux*)
                   3550:                # To get crypt(3) and vasprintf() prototypes (so we pass -Wall)
                   3551:                cat >> confdefs.h <<\EOF
                   3552: #define _GNU_SOURCE 1
                   3553: EOF
                   3554:
                   3555:
                   3556:                # Some Linux versions need to link with -lshadow
                   3557:                if test "$CHECKSHADOW" = "true"; then
                   3558:                    echo $ac_n "checking for getspnam""... $ac_c" 1>&6
                   3559: echo "configure:3560: checking for getspnam" >&5
                   3560: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   3561:   echo $ac_n "(cached) $ac_c" 1>&6
                   3562: else
                   3563:   cat > conftest.$ac_ext <<EOF
                   3564: #line 3565 "configure"
                   3565: #include "confdefs.h"
                   3566: /* System header to define __stub macros and hopefully few prototypes,
                   3567:     which can conflict with char getspnam(); below.  */
                   3568: #include <assert.h>
                   3569: /* Override any gcc2 internal prototype to avoid an error.  */
                   3570: /* We use char because int might match the return type of a gcc2
                   3571:     builtin and then its argument prototype would still apply.  */
                   3572: char getspnam();
                   3573:
                   3574: int main() {
                   3575:
                   3576: /* The GNU C library defines this for functions which it implements
                   3577:     to always fail with ENOSYS.  Some functions are actually named
                   3578:     something starting with __ and the normal name is an alias.  */
                   3579: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   3580: choke me
                   3581: #else
                   3582: getspnam();
                   3583: #endif
                   3584:
                   3585: ; return 0; }
                   3586: EOF
                   3587: if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3588:   rm -rf conftest*
                   3589:   eval "ac_cv_func_getspnam=yes"
                   3590: else
                   3591:   echo "configure: failed program was:" >&5
                   3592:   cat conftest.$ac_ext >&5
                   3593:   rm -rf conftest*
                   3594:   eval "ac_cv_func_getspnam=no"
                   3595: fi
                   3596: rm -f conftest*
                   3597: fi
                   3598:
                   3599: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   3600:   echo "$ac_t""yes" 1>&6
                   3601:   cat >> confdefs.h <<\EOF
                   3602: #define HAVE_GETSPNAM 1
                   3603: EOF
                   3604:
                   3605: else
                   3606:   echo "$ac_t""no" 1>&6
                   3607: echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
                   3608: echo "configure:3609: checking for getspnam in -lshadow" >&5
                   3609: if test -n ""; then
                   3610:   ac_lib_var=`echo shadow'_'getspnam | sed 'y% ./+-%___p_%'`
                   3611: else
                   3612:   ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
                   3613: fi
                   3614: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3615:   echo $ac_n "(cached) $ac_c" 1>&6
                   3616: else
                   3617:   ac_save_LIBS="$LIBS"
                   3618: LIBS="-lshadow  $LIBS"
                   3619: cat > conftest.$ac_ext <<EOF
                   3620: #line 3621 "configure"
                   3621: #include "confdefs.h"
                   3622: /* Override any gcc2 internal prototype to avoid an error.  */
                   3623: /* We use char because int might match the return type of a gcc2
                   3624:     builtin and then its argument prototype would still apply.  */
                   3625: char getspnam();
                   3626:
                   3627: int main() {
                   3628: getspnam()
                   3629: ; return 0; }
                   3630: EOF
                   3631: if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3632:   rm -rf conftest*
                   3633:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3634: else
                   3635:   echo "configure: failed program was:" >&5
                   3636:   cat conftest.$ac_ext >&5
                   3637:   rm -rf conftest*
                   3638:   eval "ac_cv_lib_$ac_lib_var=no"
                   3639: fi
                   3640: rm -f conftest*
                   3641: LIBS="$ac_save_LIBS"
                   3642:
                   3643: fi
                   3644: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3645:   echo "$ac_t""yes" 1>&6
                   3646:   cat >> confdefs.h <<\EOF
                   3647: #define HAVE_GETSPNAM 1
                   3648: EOF
                   3649:  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
                   3650: else
                   3651:   echo "$ac_t""no" 1>&6
                   3652: fi
                   3653:
                   3654: fi
                   3655:
                   3656:                    CHECKSHADOW="false"
                   3657:                fi
                   3658:                ;;
                   3659:     *-convex-bsd*)
                   3660:                cat >> confdefs.h <<\EOF
                   3661: #define _CONVEX_SOURCE 1
                   3662: EOF
                   3663:
                   3664:                if test -z "$GCC"; then
                   3665:                    CFLAGS="${CFLAGS} -D__STDC__"
                   3666:                fi
                   3667:
                   3668:                if test "$CHECKSHADOW" = "true"; then
                   3669:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
                   3670: echo "configure:3671: checking for getprpwnam in -lsec" >&5
                   3671: if test -n ""; then
                   3672:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3673: else
                   3674:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3675: fi
                   3676: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3677:   echo $ac_n "(cached) $ac_c" 1>&6
                   3678: else
                   3679:   ac_save_LIBS="$LIBS"
                   3680: LIBS="-lsec  $LIBS"
                   3681: cat > conftest.$ac_ext <<EOF
                   3682: #line 3683 "configure"
                   3683: #include "confdefs.h"
                   3684: /* Override any gcc2 internal prototype to avoid an error.  */
                   3685: /* We use char because int might match the return type of a gcc2
                   3686:     builtin and then its argument prototype would still apply.  */
                   3687: char getprpwnam();
                   3688:
                   3689: int main() {
                   3690: getprpwnam()
                   3691: ; return 0; }
                   3692: EOF
                   3693: if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3694:   rm -rf conftest*
                   3695:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3696: else
                   3697:   echo "configure: failed program was:" >&5
                   3698:   cat conftest.$ac_ext >&5
                   3699:   rm -rf conftest*
                   3700:   eval "ac_cv_lib_$ac_lib_var=no"
                   3701: fi
                   3702: rm -f conftest*
                   3703: LIBS="$ac_save_LIBS"
                   3704:
                   3705: fi
                   3706: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3707:   echo "$ac_t""yes" 1>&6
                   3708:   cat >> confdefs.h <<\EOF
                   3709: #define HAVE_GETPRPWNAM 1
                   3710: EOF
                   3711:  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
                   3712: else
                   3713:   echo "$ac_t""no" 1>&6
                   3714: fi
                   3715:
                   3716:                    CHECKSHADOW="false"
                   3717:                fi
                   3718:                ;;
                   3719:     *-*-ultrix*)
                   3720:                OS="ultrix"
                   3721:                if test "$CHECKSHADOW" = "true"; then
                   3722:                    echo $ac_n "checking for getauthuid in -lauth""... $ac_c" 1>&6
                   3723: echo "configure:3724: checking for getauthuid in -lauth" >&5
                   3724: if test -n ""; then
                   3725:   ac_lib_var=`echo auth'_'getauthuid | sed 'y% ./+-%___p_%'`
                   3726: else
                   3727:   ac_lib_var=`echo auth'_'getauthuid | sed 'y%./+-%__p_%'`
                   3728: fi
                   3729: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3730:   echo $ac_n "(cached) $ac_c" 1>&6
                   3731: else
                   3732:   ac_save_LIBS="$LIBS"
                   3733: LIBS="-lauth  $LIBS"
                   3734: cat > conftest.$ac_ext <<EOF
                   3735: #line 3736 "configure"
                   3736: #include "confdefs.h"
                   3737: /* Override any gcc2 internal prototype to avoid an error.  */
                   3738: /* We use char because int might match the return type of a gcc2
                   3739:     builtin and then its argument prototype would still apply.  */
                   3740: char getauthuid();
                   3741:
                   3742: int main() {
                   3743: getauthuid()
                   3744: ; return 0; }
                   3745: EOF
                   3746: if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3747:   rm -rf conftest*
                   3748:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3749: else
                   3750:   echo "configure: failed program was:" >&5
                   3751:   cat conftest.$ac_ext >&5
                   3752:   rm -rf conftest*
                   3753:   eval "ac_cv_lib_$ac_lib_var=no"
                   3754: fi
                   3755: rm -f conftest*
                   3756: LIBS="$ac_save_LIBS"
                   3757:
                   3758: fi
                   3759: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3760:   echo "$ac_t""yes" 1>&6
                   3761:   cat >> confdefs.h <<\EOF
                   3762: #define HAVE_GETAUTHUID 1
                   3763: EOF
                   3764:  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
                   3765: else
                   3766:   echo "$ac_t""no" 1>&6
                   3767: fi
                   3768:
                   3769:                    CHECKSHADOW="false"
                   3770:                fi
                   3771:                ;;
                   3772:     *-*-riscos*)
                   3773:                LIBS="${LIBS} -lsun -lbsd"
                   3774:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   3775:                OSDEFS="${OSDEFS} -D_MIPS"
                   3776:                ;;
                   3777:     *-*-isc*)
                   3778:                OSDEFS="${OSDEFS} -D_ISC"
                   3779:                LIB_CRYPT=1
                   3780:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   3781:                LIBS="${LIBS} -lcrypt"
                   3782:
                   3783:                if test "$CHECKSHADOW" = "true"; then
                   3784:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
                   3785: echo "configure:3786: checking for getspnam in -lsec" >&5
                   3786: if test -n ""; then
                   3787:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3788: else
                   3789:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3790: fi
                   3791: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3792:   echo $ac_n "(cached) $ac_c" 1>&6
                   3793: else
                   3794:   ac_save_LIBS="$LIBS"
                   3795: LIBS="-lsec  $LIBS"
                   3796: cat > conftest.$ac_ext <<EOF
                   3797: #line 3798 "configure"
                   3798: #include "confdefs.h"
                   3799: /* Override any gcc2 internal prototype to avoid an error.  */
                   3800: /* We use char because int might match the return type of a gcc2
                   3801:     builtin and then its argument prototype would still apply.  */
                   3802: char getspnam();
                   3803:
                   3804: int main() {
                   3805: getspnam()
                   3806: ; return 0; }
                   3807: EOF
                   3808: if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3809:   rm -rf conftest*
                   3810:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3811: else
                   3812:   echo "configure: failed program was:" >&5
                   3813:   cat conftest.$ac_ext >&5
                   3814:   rm -rf conftest*
                   3815:   eval "ac_cv_lib_$ac_lib_var=no"
                   3816: fi
                   3817: rm -f conftest*
                   3818: LIBS="$ac_save_LIBS"
                   3819:
                   3820: fi
                   3821: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3822:   echo "$ac_t""yes" 1>&6
                   3823:   cat >> confdefs.h <<\EOF
                   3824: #define HAVE_GETSPNAM 1
                   3825: EOF
                   3826:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   3827: else
                   3828:   echo "$ac_t""no" 1>&6
                   3829: fi
                   3830:
                   3831:                    CHECKSHADOW="false"
                   3832:                fi
                   3833:                ;;
                   3834:     *-*-sco*)
                   3835:                if test "$CHECKSHADOW" = "true"; then
                   3836:                    echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
                   3837: echo "configure:3838: checking for getprpwnam in -lprot" >&5
                   3838: if test -n "-lx"; then
                   3839:   ac_lib_var=`echo prot'_'getprpwnam-lx | sed 'y% ./+-%___p_%'`
                   3840: else
                   3841:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3842: fi
                   3843: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3844:   echo $ac_n "(cached) $ac_c" 1>&6
                   3845: else
                   3846:   ac_save_LIBS="$LIBS"
                   3847: LIBS="-lprot -lx $LIBS"
                   3848: cat > conftest.$ac_ext <<EOF
                   3849: #line 3850 "configure"
                   3850: #include "confdefs.h"
                   3851: /* Override any gcc2 internal prototype to avoid an error.  */
                   3852: /* We use char because int might match the return type of a gcc2
                   3853:     builtin and then its argument prototype would still apply.  */
                   3854: char getprpwnam();
                   3855:
                   3856: int main() {
                   3857: getprpwnam()
                   3858: ; return 0; }
                   3859: EOF
                   3860: if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3861:   rm -rf conftest*
                   3862:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3863: else
                   3864:   echo "configure: failed program was:" >&5
                   3865:   cat conftest.$ac_ext >&5
                   3866:   rm -rf conftest*
                   3867:   eval "ac_cv_lib_$ac_lib_var=no"
                   3868: fi
                   3869: rm -f conftest*
                   3870: LIBS="$ac_save_LIBS"
                   3871:
                   3872: fi
                   3873: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3874:   echo "$ac_t""yes" 1>&6
                   3875:   cat >> confdefs.h <<\EOF
                   3876: #define HAVE_GETPRPWNAM 1
                   3877: EOF
                   3878:  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
                   3879: else
                   3880:   echo "$ac_t""no" 1>&6
                   3881: fi
                   3882:
                   3883:                    echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
                   3884: echo "configure:3885: checking for getspnam in -lgen" >&5
                   3885: if test -n ""; then
                   3886:   ac_lib_var=`echo gen'_'getspnam | sed 'y% ./+-%___p_%'`
                   3887: else
                   3888:   ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
                   3889: fi
                   3890: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3891:   echo $ac_n "(cached) $ac_c" 1>&6
                   3892: else
                   3893:   ac_save_LIBS="$LIBS"
                   3894: LIBS="-lgen  $LIBS"
                   3895: cat > conftest.$ac_ext <<EOF
                   3896: #line 3897 "configure"
                   3897: #include "confdefs.h"
                   3898: /* Override any gcc2 internal prototype to avoid an error.  */
                   3899: /* We use char because int might match the return type of a gcc2
                   3900:     builtin and then its argument prototype would still apply.  */
                   3901: char getspnam();
                   3902:
                   3903: int main() {
                   3904: getspnam()
                   3905: ; return 0; }
                   3906: EOF
                   3907: if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3908:   rm -rf conftest*
                   3909:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3910: else
                   3911:   echo "configure: failed program was:" >&5
                   3912:   cat conftest.$ac_ext >&5
                   3913:   rm -rf conftest*
                   3914:   eval "ac_cv_lib_$ac_lib_var=no"
                   3915: fi
                   3916: rm -f conftest*
                   3917: LIBS="$ac_save_LIBS"
                   3918:
                   3919: fi
                   3920: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3921:   echo "$ac_t""yes" 1>&6
                   3922:   cat >> confdefs.h <<\EOF
                   3923: #define HAVE_GETSPNAM 1
                   3924: EOF
                   3925:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   3926: else
                   3927:   echo "$ac_t""no" 1>&6
                   3928: fi
                   3929:
                   3930:                    CHECKSHADOW="false"
                   3931:                fi
                   3932:                ;;
                   3933:     *-sequent-sysv*)
                   3934:                if test "$CHECKSHADOW" = "true"; then
                   3935:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
                   3936: echo "configure:3937: checking for getspnam in -lsec" >&5
                   3937: if test -n ""; then
                   3938:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3939: else
                   3940:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3941: fi
                   3942: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3943:   echo $ac_n "(cached) $ac_c" 1>&6
                   3944: else
                   3945:   ac_save_LIBS="$LIBS"
                   3946: LIBS="-lsec  $LIBS"
                   3947: cat > conftest.$ac_ext <<EOF
                   3948: #line 3949 "configure"
                   3949: #include "confdefs.h"
                   3950: /* Override any gcc2 internal prototype to avoid an error.  */
                   3951: /* We use char because int might match the return type of a gcc2
                   3952:     builtin and then its argument prototype would still apply.  */
                   3953: char getspnam();
                   3954:
                   3955: int main() {
                   3956: getspnam()
                   3957: ; return 0; }
                   3958: EOF
                   3959: if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   3960:   rm -rf conftest*
                   3961:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3962: else
                   3963:   echo "configure: failed program was:" >&5
                   3964:   cat conftest.$ac_ext >&5
                   3965:   rm -rf conftest*
                   3966:   eval "ac_cv_lib_$ac_lib_var=no"
                   3967: fi
                   3968: rm -f conftest*
                   3969: LIBS="$ac_save_LIBS"
                   3970:
                   3971: fi
                   3972: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3973:   echo "$ac_t""yes" 1>&6
                   3974:   cat >> confdefs.h <<\EOF
                   3975: #define HAVE_GETSPNAM 1
                   3976: EOF
                   3977:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   3978: else
                   3979:   echo "$ac_t""no" 1>&6
                   3980: fi
                   3981:
                   3982:                    CHECKSHADOW="false"
                   3983:                fi
                   3984:                ;;
                   3985:     *-ccur-sysv4|*-ccur-sysvr4)
                   3986:                LIBS="${LIBS} -lgen"
                   3987:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   3988:                ;;
                   3989:     *-*-bsdi*)
                   3990:                # Use shlicc for BSD/OS 2.x unless asked to do otherwise
                   3991:                if test "$OSREV" -ge 2 -a "${with_CC+set}" != set -a \
                   3992:                        "$ac_cv_prog_CC" = "gcc"; then
                   3993:                    echo 'using shlicc as CC'
                   3994:                    ac_cv_prog_CC=shlicc
                   3995:                    CC="$ac_cv_prog_CC"
                   3996:                fi
                   3997:                ;;
                   3998:     *-*-*bsd*)
                   3999:                if test "$CHECKSHADOW" = "true"; then
                   4000:                    CHECKSHADOW="false"
                   4001:                fi
                   4002:                ;;
                   4003: esac
                   4004:
                   4005: if test "$CHECKSHADOW" = "true"; then
                   4006:     echo $ac_n "checking for getspnam""... $ac_c" 1>&6
                   4007: echo "configure:4008: checking for getspnam" >&5
                   4008: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   4009:   echo $ac_n "(cached) $ac_c" 1>&6
                   4010: else
                   4011:   cat > conftest.$ac_ext <<EOF
                   4012: #line 4013 "configure"
                   4013: #include "confdefs.h"
                   4014: /* System header to define __stub macros and hopefully few prototypes,
                   4015:     which can conflict with char getspnam(); below.  */
                   4016: #include <assert.h>
                   4017: /* Override any gcc2 internal prototype to avoid an error.  */
                   4018: /* We use char because int might match the return type of a gcc2
                   4019:     builtin and then its argument prototype would still apply.  */
                   4020: char getspnam();
                   4021:
                   4022: int main() {
                   4023:
                   4024: /* The GNU C library defines this for functions which it implements
                   4025:     to always fail with ENOSYS.  Some functions are actually named
                   4026:     something starting with __ and the normal name is an alias.  */
                   4027: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   4028: choke me
                   4029: #else
                   4030: getspnam();
                   4031: #endif
                   4032:
                   4033: ; return 0; }
                   4034: EOF
                   4035: if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4036:   rm -rf conftest*
                   4037:   eval "ac_cv_func_getspnam=yes"
                   4038: else
                   4039:   echo "configure: failed program was:" >&5
                   4040:   cat conftest.$ac_ext >&5
                   4041:   rm -rf conftest*
                   4042:   eval "ac_cv_func_getspnam=no"
                   4043: fi
                   4044: rm -f conftest*
                   4045: fi
                   4046:
                   4047: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   4048:   echo "$ac_t""yes" 1>&6
                   4049:   cat >> confdefs.h <<\EOF
                   4050: #define HAVE_GETSPNAM 1
                   4051: EOF
                   4052:  CHECKSHADOW="false"
                   4053: else
                   4054:   echo "$ac_t""no" 1>&6
                   4055: fi
                   4056:
                   4057: fi
                   4058: if test "$CHECKSHADOW" = "true"; then
                   4059:     echo $ac_n "checking for getprpwnam""... $ac_c" 1>&6
                   4060: echo "configure:4061: checking for getprpwnam" >&5
                   4061: if eval "test \"`echo '$''{'ac_cv_func_getprpwnam'+set}'`\" = set"; then
                   4062:   echo $ac_n "(cached) $ac_c" 1>&6
                   4063: else
                   4064:   cat > conftest.$ac_ext <<EOF
                   4065: #line 4066 "configure"
                   4066: #include "confdefs.h"
                   4067: /* System header to define __stub macros and hopefully few prototypes,
                   4068:     which can conflict with char getprpwnam(); below.  */
                   4069: #include <assert.h>
                   4070: /* Override any gcc2 internal prototype to avoid an error.  */
                   4071: /* We use char because int might match the return type of a gcc2
                   4072:     builtin and then its argument prototype would still apply.  */
                   4073: char getprpwnam();
                   4074:
                   4075: int main() {
                   4076:
                   4077: /* The GNU C library defines this for functions which it implements
                   4078:     to always fail with ENOSYS.  Some functions are actually named
                   4079:     something starting with __ and the normal name is an alias.  */
                   4080: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
                   4081: choke me
                   4082: #else
                   4083: getprpwnam();
                   4084: #endif
                   4085:
                   4086: ; return 0; }
                   4087: EOF
                   4088: if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4089:   rm -rf conftest*
                   4090:   eval "ac_cv_func_getprpwnam=yes"
                   4091: else
                   4092:   echo "configure: failed program was:" >&5
                   4093:   cat conftest.$ac_ext >&5
                   4094:   rm -rf conftest*
                   4095:   eval "ac_cv_func_getprpwnam=no"
                   4096: fi
                   4097: rm -f conftest*
                   4098: fi
                   4099:
                   4100: if eval "test \"`echo '$ac_cv_func_'getprpwnam`\" = yes"; then
                   4101:   echo "$ac_t""yes" 1>&6
                   4102:   cat >> confdefs.h <<\EOF
                   4103: #define HAVE_GETPRPWNAM 1
                   4104: EOF
                   4105:  CHECKSHADOW="false"; SECUREWARE=1
                   4106: else
                   4107:   echo "$ac_t""no" 1>&6
                   4108: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
                   4109: echo "configure:4110: checking for getprpwnam in -lsec" >&5
                   4110: if test -n ""; then
                   4111:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4112: else
                   4113:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4114: fi
                   4115: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4116:   echo $ac_n "(cached) $ac_c" 1>&6
                   4117: else
                   4118:   ac_save_LIBS="$LIBS"
                   4119: LIBS="-lsec  $LIBS"
                   4120: cat > conftest.$ac_ext <<EOF
                   4121: #line 4122 "configure"
                   4122: #include "confdefs.h"
                   4123: /* Override any gcc2 internal prototype to avoid an error.  */
                   4124: /* We use char because int might match the return type of a gcc2
                   4125:     builtin and then its argument prototype would still apply.  */
                   4126: char getprpwnam();
                   4127:
                   4128: int main() {
                   4129: getprpwnam()
                   4130: ; return 0; }
                   4131: EOF
                   4132: if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4133:   rm -rf conftest*
                   4134:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4135: else
                   4136:   echo "configure: failed program was:" >&5
                   4137:   cat conftest.$ac_ext >&5
                   4138:   rm -rf conftest*
                   4139:   eval "ac_cv_lib_$ac_lib_var=no"
                   4140: fi
                   4141: rm -f conftest*
                   4142: LIBS="$ac_save_LIBS"
                   4143:
                   4144: fi
                   4145: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4146:   echo "$ac_t""yes" 1>&6
                   4147:   cat >> confdefs.h <<\EOF
                   4148: #define HAVE_GETPRPWNAM 1
                   4149: EOF
                   4150:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   4151: else
                   4152:   echo "$ac_t""no" 1>&6
                   4153: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
                   4154: echo "configure:4155: checking for getprpwnam in -lsecurity" >&5
                   4155: if test -n ""; then
                   4156:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4157: else
                   4158:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4159: fi
                   4160: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4161:   echo $ac_n "(cached) $ac_c" 1>&6
                   4162: else
                   4163:   ac_save_LIBS="$LIBS"
                   4164: LIBS="-lsecurity  $LIBS"
                   4165: cat > conftest.$ac_ext <<EOF
                   4166: #line 4167 "configure"
                   4167: #include "confdefs.h"
                   4168: /* Override any gcc2 internal prototype to avoid an error.  */
                   4169: /* We use char because int might match the return type of a gcc2
                   4170:     builtin and then its argument prototype would still apply.  */
                   4171: char getprpwnam();
                   4172:
                   4173: int main() {
                   4174: getprpwnam()
                   4175: ; return 0; }
                   4176: EOF
                   4177: if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4178:   rm -rf conftest*
                   4179:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4180: else
                   4181:   echo "configure: failed program was:" >&5
                   4182:   cat conftest.$ac_ext >&5
                   4183:   rm -rf conftest*
                   4184:   eval "ac_cv_lib_$ac_lib_var=no"
                   4185: fi
                   4186: rm -f conftest*
                   4187: LIBS="$ac_save_LIBS"
                   4188:
                   4189: fi
                   4190: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4191:   echo "$ac_t""yes" 1>&6
                   4192:   cat >> confdefs.h <<\EOF
                   4193: #define HAVE_GETPRPWNAM 1
                   4194: EOF
                   4195:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
                   4196: else
                   4197:   echo "$ac_t""no" 1>&6
                   4198: echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
                   4199: echo "configure:4200: checking for getprpwnam in -lprot" >&5
                   4200: if test -n ""; then
                   4201:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4202: else
                   4203:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4204: fi
                   4205: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4206:   echo $ac_n "(cached) $ac_c" 1>&6
                   4207: else
                   4208:   ac_save_LIBS="$LIBS"
                   4209: LIBS="-lprot  $LIBS"
                   4210: cat > conftest.$ac_ext <<EOF
                   4211: #line 4212 "configure"
                   4212: #include "confdefs.h"
                   4213: /* Override any gcc2 internal prototype to avoid an error.  */
                   4214: /* We use char because int might match the return type of a gcc2
                   4215:     builtin and then its argument prototype would still apply.  */
                   4216: char getprpwnam();
                   4217:
                   4218: int main() {
                   4219: getprpwnam()
                   4220: ; return 0; }
                   4221: EOF
                   4222: if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4223:   rm -rf conftest*
                   4224:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4225: else
                   4226:   echo "configure: failed program was:" >&5
                   4227:   cat conftest.$ac_ext >&5
                   4228:   rm -rf conftest*
                   4229:   eval "ac_cv_lib_$ac_lib_var=no"
                   4230: fi
                   4231: rm -f conftest*
                   4232: LIBS="$ac_save_LIBS"
                   4233:
                   4234: fi
                   4235: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4236:   echo "$ac_t""yes" 1>&6
                   4237:   cat >> confdefs.h <<\EOF
                   4238: #define HAVE_GETPRPWNAM 1
                   4239: EOF
                   4240:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   4241: else
                   4242:   echo "$ac_t""no" 1>&6
                   4243: fi
                   4244:
                   4245: fi
                   4246:
                   4247: fi
                   4248:
                   4249: fi
                   4250:
                   4251: fi
                   4252:
                   4253: if test $ac_cv_prog_gcc = yes; then
                   4254:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
                   4255: echo "configure:4256: checking whether ${CC-cc} needs -traditional" >&5
                   4256: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   4257:   echo $ac_n "(cached) $ac_c" 1>&6
                   4258: else
                   4259:     ac_pattern="Autoconf.*'x'"
                   4260:   cat > conftest.$ac_ext <<EOF
                   4261: #line 4262 "configure"
                   4262: #include "confdefs.h"
                   4263: #include <sgtty.h>
                   4264: Autoconf TIOCGETP
                   4265: EOF
                   4266: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4267:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4268:   rm -rf conftest*
                   4269:   ac_cv_prog_gcc_traditional=yes
                   4270: else
                   4271:   rm -rf conftest*
                   4272:   ac_cv_prog_gcc_traditional=no
                   4273: fi
                   4274: rm -f conftest*
                   4275:
                   4276:
                   4277:   if test $ac_cv_prog_gcc_traditional = no; then
                   4278:     cat > conftest.$ac_ext <<EOF
                   4279: #line 4280 "configure"
                   4280: #include "confdefs.h"
                   4281: #include <termio.h>
                   4282: Autoconf TCGETA
                   4283: EOF
                   4284: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4285:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4286:   rm -rf conftest*
                   4287:   ac_cv_prog_gcc_traditional=yes
                   4288: fi
                   4289: rm -f conftest*
                   4290:
                   4291:   fi
                   4292: fi
                   4293:
                   4294: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   4295:   if test $ac_cv_prog_gcc_traditional = yes; then
                   4296:     CC="$CC -traditional"
                   4297:   fi
                   4298: fi
                   4299:
                   4300: echo $ac_n "checking for working const""... $ac_c" 1>&6
                   4301: echo "configure:4302: checking for working const" >&5
                   4302: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   4303:   echo $ac_n "(cached) $ac_c" 1>&6
                   4304: else
                   4305:   cat > conftest.$ac_ext <<EOF
                   4306: #line 4307 "configure"
                   4307: #include "confdefs.h"
                   4308:
                   4309: int main() {
                   4310:
                   4311: /* Ultrix mips cc rejects this.  */
                   4312: typedef int charset[2]; const charset x;
                   4313: /* SunOS 4.1.1 cc rejects this.  */
                   4314: char const *const *ccp;
                   4315: char **p;
                   4316: /* NEC SVR4.0.2 mips cc rejects this.  */
                   4317: struct point {int x, y;};
                   4318: static struct point const zero = {0,0};
                   4319: /* AIX XL C 1.02.0.0 rejects this.
                   4320:    It does not let you subtract one const X* pointer from another in an arm
                   4321:    of an if-expression whose if-part is not a constant expression */
                   4322: const char *g = "string";
                   4323: ccp = &g + (g ? g-g : 0);
                   4324: /* HPUX 7.0 cc rejects these. */
                   4325: ++ccp;
                   4326: p = (char**) ccp;
                   4327: ccp = (char const *const *) p;
                   4328: { /* SCO 3.2v4 cc rejects this.  */
                   4329:   char *t;
                   4330:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   4331:
                   4332:   *t++ = 0;
                   4333: }
                   4334: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   4335:   int x[] = {25, 17};
                   4336:   const int *foo = &x[0];
                   4337:   ++foo;
                   4338: }
                   4339: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   4340:   typedef const int *iptr;
                   4341:   iptr p = 0;
                   4342:   ++p;
                   4343: }
                   4344: { /* AIX XL C 1.02.0.0 rejects this saying
                   4345:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   4346:   struct s { int j; const int *ap[3]; };
                   4347:   struct s *b; b->j = 5;
                   4348: }
                   4349: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   4350:   const int foo = 10;
                   4351: }
                   4352:
                   4353: ; return 0; }
                   4354: EOF
                   4355: if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   4356:   rm -rf conftest*
                   4357:   ac_cv_c_const=yes
                   4358: else
                   4359:   echo "configure: failed program was:" >&5
                   4360:   cat conftest.$ac_ext >&5
                   4361:   rm -rf conftest*
                   4362:   ac_cv_c_const=no
                   4363: fi
                   4364: rm -f conftest*
                   4365: fi
                   4366:
                   4367: echo "$ac_t""$ac_cv_c_const" 1>&6
                   4368: if test $ac_cv_c_const = no; then
                   4369:   cat >> confdefs.h <<\EOF
                   4370: #define const
                   4371: EOF
                   4372:
                   4373: fi
                   4374:
                   4375: for ac_prog in 'bison -y' byacc
                   4376: do
                   4377: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4378: set dummy $ac_prog; ac_word=$2
                   4379: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   4380: echo "configure:4381: checking for $ac_word" >&5
                   4381: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
                   4382:   echo $ac_n "(cached) $ac_c" 1>&6
                   4383: else
                   4384:   if test -n "$YACC"; then
                   4385:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   4386: else
                   4387:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   4388:   for ac_dir in $PATH; do
                   4389:     test -z "$ac_dir" && ac_dir=.
                   4390:     if test -f $ac_dir/$ac_word; then
                   4391:       ac_cv_prog_YACC="$ac_prog"
                   4392:       break
                   4393:     fi
                   4394:   done
                   4395:   IFS="$ac_save_ifs"
                   4396: fi
                   4397: fi
                   4398: YACC="$ac_cv_prog_YACC"
                   4399: if test -n "$YACC"; then
                   4400:   echo "$ac_t""$YACC" 1>&6
                   4401: else
                   4402:   echo "$ac_t""no" 1>&6
                   4403: fi
                   4404:
                   4405: test -n "$YACC" && break
                   4406: done
                   4407: test -n "$YACC" || YACC="yacc"
                   4408:
                   4409: if test -z "$with_sendmail"; then
                   4410:     echo $ac_n "checking for sendmail""... $ac_c" 1>&6
                   4411: echo "configure:4412: checking for sendmail" >&5
                   4412: if test -f "/usr/sbin/sendmail"; then
                   4413:     echo "$ac_t""/usr/sbin/sendmail" 1>&6
                   4414:     cat >> confdefs.h <<\EOF
                   4415: #define _PATH_SENDMAIL "/usr/sbin/sendmail"
                   4416: EOF
                   4417:
                   4418: elif test -f "/usr/lib/sendmail"; then
                   4419:     echo "$ac_t""/usr/lib/sendmail" 1>&6
                   4420:     cat >> confdefs.h <<\EOF
                   4421: #define _PATH_SENDMAIL "/usr/lib/sendmail"
                   4422: EOF
                   4423:
                   4424: elif test -f "/usr/etc/sendmail"; then
                   4425:     echo "$ac_t""/usr/etc/sendmail" 1>&6
                   4426:     cat >> confdefs.h <<\EOF
                   4427: #define _PATH_SENDMAIL "/usr/etc/sendmail"
                   4428: EOF
                   4429:
                   4430: elif test -f "/usr/ucblib/sendmail"; then
                   4431:     echo "$ac_t""/usr/ucblib/sendmail" 1>&6
                   4432:     cat >> confdefs.h <<\EOF
                   4433: #define _PATH_SENDMAIL "/usr/ucblib/sendmail"
                   4434: EOF
                   4435:
                   4436: elif test -f "/usr/local/lib/sendmail"; then
                   4437:     echo "$ac_t""/usr/local/lib/sendmail" 1>&6
                   4438:     cat >> confdefs.h <<\EOF
                   4439: #define _PATH_SENDMAIL "/usr/local/lib/sendmail"
                   4440: EOF
                   4441:
                   4442: elif test -f "/usr/local/bin/sendmail"; then
                   4443:     echo "$ac_t""/usr/local/bin/sendmail" 1>&6
                   4444:     cat >> confdefs.h <<\EOF
                   4445: #define _PATH_SENDMAIL "/usr/local/bin/sendmail"
                   4446: EOF
                   4447:
                   4448: else
                   4449:     echo "$ac_t""not found" 1>&6
                   4450: fi
                   4451:
                   4452: fi
                   4453: echo $ac_n "checking for mv""... $ac_c" 1>&6
                   4454: echo "configure:4455: checking for mv" >&5
                   4455: if test -f "/usr/bin/mv"; then
                   4456:     echo "$ac_t""/usr/bin/mv" 1>&6
                   4457:     cat >> confdefs.h <<\EOF
                   4458: #define _PATH_MV "/usr/bin/mv"
                   4459: EOF
                   4460:
                   4461: elif test -f "/bin/mv"; then
                   4462:     echo "$ac_t""/bin/mv" 1>&6
                   4463:     cat >> confdefs.h <<\EOF
                   4464: #define _PATH_MV "/bin/mv"
                   4465: EOF
                   4466:
                   4467: elif test -f "/usr/ucb/mv"; then
                   4468:     echo "$ac_t""/usr/ucb/mv" 1>&6
                   4469:     cat >> confdefs.h <<\EOF
                   4470: #define _PATH_MV "/usr/ucb/mv"
                   4471: EOF
                   4472:
                   4473: elif test -f "/usr/sbin/mv"; then
                   4474:     echo "$ac_t""/usr/sbin/mv" 1>&6
                   4475:     cat >> confdefs.h <<\EOF
                   4476: #define _PATH_MV "/usr/sbin/mv"
                   4477: EOF
                   4478:
                   4479: else
                   4480:     echo "$ac_t""not found" 1>&6
                   4481: fi
                   4482:
                   4483: echo $ac_n "checking for bourne shell""... $ac_c" 1>&6
                   4484: echo "configure:4485: checking for bourne shell" >&5
                   4485: if test -f "/bin/sh"; then
                   4486:     echo "$ac_t""/bin/sh" 1>&6
                   4487:     cat >> confdefs.h <<\EOF
                   4488: #define _PATH_BSHELL "/bin/sh"
                   4489: EOF
                   4490:
                   4491: elif test -f "/usr/bin/sh"; then
                   4492:     echo "$ac_t""/usr/bin/sh" 1>&6
                   4493:     cat >> confdefs.h <<\EOF
                   4494: #define _PATH_BSHELL "/usr/bin/sh"
                   4495: EOF
                   4496:
                   4497: elif test -f "/sbin/sh"; then
                   4498:     echo "$ac_t""/sbin/sh" 1>&6
                   4499:     cat >> confdefs.h <<\EOF
                   4500: #define _PATH_BSHELL "/sbin/sh"
                   4501: EOF
                   4502:
                   4503: elif test -f "/usr/sbin/sh"; then
                   4504:     echo "$ac_t""/usr/sbin/sh" 1>&6
                   4505:     cat >> confdefs.h <<\EOF
                   4506: #define _PATH_BSHELL "/usr/sbin/sh"
                   4507: EOF
                   4508:
                   4509: elif test -f "/bin/ksh"; then
                   4510:     echo "$ac_t""/bin/ksh" 1>&6
                   4511:     cat >> confdefs.h <<\EOF
                   4512: #define _PATH_BSHELL "/bin/ksh"
                   4513: EOF
                   4514:
                   4515: elif test -f "/usr/bin/ksh"; then
                   4516:     echo "$ac_t""/usr/bin/ksh" 1>&6
                   4517:     cat >> confdefs.h <<\EOF
                   4518: #define _PATH_BSHELL "/usr/bin/ksh"
                   4519: EOF
                   4520:
                   4521: elif test -f "/bin/bash"; then
                   4522:     echo "$ac_t""/bin/bash" 1>&6
                   4523:     cat >> confdefs.h <<\EOF
                   4524: #define _PATH_BSHELL "/bin/bash"
                   4525: EOF
                   4526:
                   4527: elif test -f "/usr/bin/bash"; then
                   4528:     echo "$ac_t""/usr/bin/bash" 1>&6
                   4529:     cat >> confdefs.h <<\EOF
                   4530: #define _PATH_BSHELL "/usr/bin/bash"
                   4531: EOF
                   4532:
                   4533: else
                   4534:     echo "$ac_t""not found" 1>&6
                   4535: fi
                   4536:
                   4537: echo $ac_n "checking for vi""... $ac_c" 1>&6
                   4538: echo "configure:4539: checking for vi" >&5
                   4539: if test -f "/usr/bin/vi"; then
                   4540:     echo "$ac_t""/usr/bin/vi" 1>&6
                   4541:     cat >> confdefs.h <<\EOF
                   4542: #define _PATH_VI "/usr/bin/vi"
                   4543: EOF
                   4544:
                   4545: elif test -f "/usr/ucb/vi"; then
                   4546:     echo "$ac_t""/usr/ucb/vi" 1>&6
                   4547:     cat >> confdefs.h <<\EOF
                   4548: #define _PATH_VI "/usr/ucb/vi"
                   4549: EOF
                   4550:
                   4551: elif test -f "/usr/bsd/vi"; then
                   4552:     echo "$ac_t""/usr/bsd/vi" 1>&6
                   4553:     cat >> confdefs.h <<\EOF
                   4554: #define _PATH_VI "/usr/bsd/vi"
                   4555: EOF
                   4556:
                   4557: elif test -f "/bin/vi"; then
                   4558:     echo "$ac_t""/bin/vi" 1>&6
                   4559:     cat >> confdefs.h <<\EOF
                   4560: #define _PATH_VI "/bin/vi"
                   4561: EOF
                   4562:
                   4563: elif test -f "/usr/local/bin/vi"; then
                   4564:     echo "$ac_t""/usr/local/bin/vi" 1>&6
                   4565:     cat >> confdefs.h <<\EOF
                   4566: #define _PATH_VI "/usr/local/bin/vi"
                   4567: EOF
                   4568:
                   4569: else
                   4570:     echo "$ac_t""not found" 1>&6
                   4571: fi
                   4572:
                   4573: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
                   4574: echo "configure:4575: checking for ANSI C header files" >&5
                   4575: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   4576:   echo $ac_n "(cached) $ac_c" 1>&6
                   4577: else
                   4578:   cat > conftest.$ac_ext <<EOF
                   4579: #line 4580 "configure"
                   4580: #include "confdefs.h"
                   4581: #include <stdlib.h>
                   4582: #include <stdarg.h>
                   4583: #include <string.h>
                   4584: #include <float.h>
                   4585: EOF
                   4586: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   4587: { (eval echo configure:4588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   4588: ac_err=`grep -v '^ *+' conftest.out`
                   4589: if test -z "$ac_err"; then
                   4590:   rm -rf conftest*
                   4591:   ac_cv_header_stdc=yes
                   4592: else
                   4593:   echo "$ac_err" >&5
                   4594:   echo "configure: failed program was:" >&5
                   4595:   cat conftest.$ac_ext >&5
                   4596:   rm -rf conftest*
                   4597:   ac_cv_header_stdc=no
                   4598: fi
                   4599: rm -f conftest*
                   4600:
                   4601: if test $ac_cv_header_stdc = yes; then
                   4602:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   4603: cat > conftest.$ac_ext <<EOF
                   4604: #line 4605 "configure"
                   4605: #include "confdefs.h"
                   4606: #include <string.h>
                   4607: EOF
                   4608: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4609:   egrep "memchr" >/dev/null 2>&1; then
                   4610:   :
                   4611: else
                   4612:   rm -rf conftest*
                   4613:   ac_cv_header_stdc=no
                   4614: fi
                   4615: rm -f conftest*
                   4616:
                   4617: fi
                   4618:
                   4619: if test $ac_cv_header_stdc = yes; then
                   4620:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   4621: cat > conftest.$ac_ext <<EOF
                   4622: #line 4623 "configure"
                   4623: #include "confdefs.h"
                   4624: #include <stdlib.h>
                   4625: EOF
                   4626: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4627:   egrep "free" >/dev/null 2>&1; then
                   4628:   :
                   4629: else
                   4630:   rm -rf conftest*
                   4631:   ac_cv_header_stdc=no
                   4632: fi
                   4633: rm -f conftest*
                   4634:
                   4635: fi
                   4636:
                   4637: if test $ac_cv_header_stdc = yes; then
                   4638:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   4639: if test "$cross_compiling" = yes; then
                   4640:   :
                   4641: else
                   4642:   cat > conftest.$ac_ext <<EOF
                   4643: #line 4644 "configure"
                   4644: #include "confdefs.h"
                   4645: #include <ctype.h>
                   4646: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   4647: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   4648: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   4649: int main () { int i; for (i = 0; i < 256; i++)
                   4650: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   4651: exit (0); }
                   4652:
                   4653: EOF
                   4654: if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   4655: then
                   4656:   :
                   4657: else
                   4658:   echo "configure: failed program was:" >&5
                   4659:   cat conftest.$ac_ext >&5
                   4660:   rm -fr conftest*
                   4661:   ac_cv_header_stdc=no
                   4662: fi
                   4663: rm -fr conftest*
                   4664: fi
                   4665:
                   4666: fi
                   4667: fi
                   4668:
                   4669: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   4670: if test $ac_cv_header_stdc = yes; then
                   4671:   cat >> confdefs.h <<\EOF
                   4672: #define STDC_HEADERS 1
                   4673: EOF
                   4674:
                   4675: fi
                   4676:
                   4677: ac_header_dirent=no
                   4678: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   4679: do
                   4680: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4681: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
                   4682: echo "configure:4683: checking for $ac_hdr that defines DIR" >&5
                   4683: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   4684:   echo $ac_n "(cached) $ac_c" 1>&6
                   4685: else
                   4686:   cat > conftest.$ac_ext <<EOF
                   4687: #line 4688 "configure"
                   4688: #include "confdefs.h"
                   4689: #include <sys/types.h>
                   4690: #include <$ac_hdr>
                   4691: int main() {
                   4692: DIR *dirp = 0;
                   4693: ; return 0; }
                   4694: EOF
                   4695: if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   4696:   rm -rf conftest*
                   4697:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   4698: else
                   4699:   echo "configure: failed program was:" >&5
                   4700:   cat conftest.$ac_ext >&5
                   4701:   rm -rf conftest*
                   4702:   eval "ac_cv_header_dirent_$ac_safe=no"
                   4703: fi
                   4704: rm -f conftest*
                   4705: fi
                   4706: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   4707:   echo "$ac_t""yes" 1>&6
                   4708:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4709:   cat >> confdefs.h <<EOF
                   4710: #define $ac_tr_hdr 1
                   4711: EOF
                   4712:  ac_header_dirent=$ac_hdr; break
                   4713: else
                   4714:   echo "$ac_t""no" 1>&6
                   4715: fi
                   4716: done
                   4717: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   4718: if test $ac_header_dirent = dirent.h; then
                   4719: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
                   4720: echo "configure:4721: checking for opendir in -ldir" >&5
                   4721: if test -n ""; then
                   4722:   ac_lib_var=`echo dir'_'opendir | sed 'y% ./+-%___p_%'`
                   4723: else
                   4724:   ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
                   4725: fi
                   4726: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4727:   echo $ac_n "(cached) $ac_c" 1>&6
                   4728: else
                   4729:   ac_save_LIBS="$LIBS"
                   4730: LIBS="-ldir  $LIBS"
                   4731: cat > conftest.$ac_ext <<EOF
                   4732: #line 4733 "configure"
                   4733: #include "confdefs.h"
                   4734: /* Override any gcc2 internal prototype to avoid an error.  */
                   4735: /* We use char because int might match the return type of a gcc2
                   4736:     builtin and then its argument prototype would still apply.  */
                   4737: char opendir();
                   4738:
                   4739: int main() {
                   4740: opendir()
                   4741: ; return 0; }
                   4742: EOF
                   4743: if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4744:   rm -rf conftest*
                   4745:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4746: else
                   4747:   echo "configure: failed program was:" >&5
                   4748:   cat conftest.$ac_ext >&5
                   4749:   rm -rf conftest*
                   4750:   eval "ac_cv_lib_$ac_lib_var=no"
                   4751: fi
                   4752: rm -f conftest*
                   4753: LIBS="$ac_save_LIBS"
                   4754:
                   4755: fi
                   4756: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4757:   echo "$ac_t""yes" 1>&6
                   4758:   LIBS="$LIBS -ldir"
                   4759: else
                   4760:   echo "$ac_t""no" 1>&6
                   4761: fi
                   4762:
                   4763: else
                   4764: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
                   4765: echo "configure:4766: checking for opendir in -lx" >&5
                   4766: if test -n ""; then
                   4767:   ac_lib_var=`echo x'_'opendir | sed 'y% ./+-%___p_%'`
                   4768: else
                   4769:   ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
                   4770: fi
                   4771: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4772:   echo $ac_n "(cached) $ac_c" 1>&6
                   4773: else
                   4774:   ac_save_LIBS="$LIBS"
                   4775: LIBS="-lx  $LIBS"
                   4776: cat > conftest.$ac_ext <<EOF
                   4777: #line 4778 "configure"
                   4778: #include "confdefs.h"
                   4779: /* Override any gcc2 internal prototype to avoid an error.  */
                   4780: /* We use char because int might match the return type of a gcc2
                   4781:     builtin and then its argument prototype would still apply.  */
                   4782: char opendir();
                   4783:
                   4784: int main() {
                   4785: opendir()
                   4786: ; return 0; }
                   4787: EOF
                   4788: if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4789:   rm -rf conftest*
                   4790:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4791: else
                   4792:   echo "configure: failed program was:" >&5
                   4793:   cat conftest.$ac_ext >&5
                   4794:   rm -rf conftest*
                   4795:   eval "ac_cv_lib_$ac_lib_var=no"
                   4796: fi
                   4797: rm -f conftest*
                   4798: LIBS="$ac_save_LIBS"
                   4799:
                   4800: fi
                   4801: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4802:   echo "$ac_t""yes" 1>&6
                   4803:   LIBS="$LIBS -lx"
                   4804: else
                   4805:   echo "$ac_t""no" 1>&6
                   4806: fi
                   4807:
                   4808: fi
                   4809:
1.3     ! millert  4810: for ac_hdr in string.h strings.h unistd.h malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1       millert  4811: do
                   4812: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4813: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
                   4814: echo "configure:4815: checking for $ac_hdr" >&5
                   4815: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4816:   echo $ac_n "(cached) $ac_c" 1>&6
                   4817: else
                   4818:   cat > conftest.$ac_ext <<EOF
                   4819: #line 4820 "configure"
                   4820: #include "confdefs.h"
                   4821: #include <$ac_hdr>
                   4822: EOF
                   4823: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   4824: { (eval echo configure:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   4825: ac_err=`grep -v '^ *+' conftest.out`
                   4826: if test -z "$ac_err"; then
                   4827:   rm -rf conftest*
                   4828:   eval "ac_cv_header_$ac_safe=yes"
                   4829: else
                   4830:   echo "$ac_err" >&5
                   4831:   echo "configure: failed program was:" >&5
                   4832:   cat conftest.$ac_ext >&5
                   4833:   rm -rf conftest*
                   4834:   eval "ac_cv_header_$ac_safe=no"
                   4835: fi
                   4836: rm -f conftest*
                   4837: fi
                   4838: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4839:   echo "$ac_t""yes" 1>&6
                   4840:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4841:   cat >> confdefs.h <<EOF
                   4842: #define $ac_tr_hdr 1
                   4843: EOF
                   4844:
                   4845: else
                   4846:   echo "$ac_t""no" 1>&6
                   4847: fi
                   4848: done
                   4849:
                   4850: if test "$OS" != "ultrix"; then
                   4851:     for ac_hdr in termio.h
                   4852: do
                   4853: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4854: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
                   4855: echo "configure:4856: checking for $ac_hdr" >&5
                   4856: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4857:   echo $ac_n "(cached) $ac_c" 1>&6
                   4858: else
                   4859:   cat > conftest.$ac_ext <<EOF
                   4860: #line 4861 "configure"
                   4861: #include "confdefs.h"
                   4862: #include <$ac_hdr>
                   4863: EOF
                   4864: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   4865: { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   4866: ac_err=`grep -v '^ *+' conftest.out`
                   4867: if test -z "$ac_err"; then
                   4868:   rm -rf conftest*
                   4869:   eval "ac_cv_header_$ac_safe=yes"
                   4870: else
                   4871:   echo "$ac_err" >&5
                   4872:   echo "configure: failed program was:" >&5
                   4873:   cat conftest.$ac_ext >&5
                   4874:   rm -rf conftest*
                   4875:   eval "ac_cv_header_$ac_safe=no"
                   4876: fi
                   4877: rm -f conftest*
                   4878: fi
                   4879: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4880:   echo "$ac_t""yes" 1>&6
                   4881:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4882:   cat >> confdefs.h <<EOF
                   4883: #define $ac_tr_hdr 1
                   4884: EOF
                   4885:
                   4886: else
                   4887:   echo "$ac_t""no" 1>&6
                   4888: fi
                   4889: done
                   4890:
                   4891:     for ac_hdr in termios.h
                   4892: do
                   4893: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4894: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
                   4895: echo "configure:4896: checking for $ac_hdr" >&5
                   4896: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4897:   echo $ac_n "(cached) $ac_c" 1>&6
                   4898: else
                   4899:   cat > conftest.$ac_ext <<EOF
                   4900: #line 4901 "configure"
                   4901: #include "confdefs.h"
                   4902: #include <$ac_hdr>
                   4903: EOF
                   4904: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   4905: { (eval echo configure:4906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   4906: ac_err=`grep -v '^ *+' conftest.out`
                   4907: if test -z "$ac_err"; then
                   4908:   rm -rf conftest*
                   4909:   eval "ac_cv_header_$ac_safe=yes"
                   4910: else
                   4911:   echo "$ac_err" >&5
                   4912:   echo "configure: failed program was:" >&5
                   4913:   cat conftest.$ac_ext >&5
                   4914:   rm -rf conftest*
                   4915:   eval "ac_cv_header_$ac_safe=no"
                   4916: fi
                   4917: rm -f conftest*
                   4918: fi
                   4919: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4920:   echo "$ac_t""yes" 1>&6
                   4921:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4922:   cat >> confdefs.h <<EOF
                   4923: #define $ac_tr_hdr 1
                   4924: EOF
                   4925:  for ac_func in tcgetattr
                   4926: do
                   4927: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   4928: echo "configure:4929: checking for $ac_func" >&5
                   4929: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   4930:   echo $ac_n "(cached) $ac_c" 1>&6
                   4931: else
                   4932:   cat > conftest.$ac_ext <<EOF
                   4933: #line 4934 "configure"
                   4934: #include "confdefs.h"
                   4935: /* System header to define __stub macros and hopefully few prototypes,
                   4936:     which can conflict with char $ac_func(); below.  */
                   4937: #include <assert.h>
                   4938: /* Override any gcc2 internal prototype to avoid an error.  */
                   4939: /* We use char because int might match the return type of a gcc2
                   4940:     builtin and then its argument prototype would still apply.  */
                   4941: char $ac_func();
                   4942:
                   4943: int main() {
                   4944:
                   4945: /* The GNU C library defines this for functions which it implements
                   4946:     to always fail with ENOSYS.  Some functions are actually named
                   4947:     something starting with __ and the normal name is an alias.  */
                   4948: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4949: choke me
                   4950: #else
                   4951: $ac_func();
                   4952: #endif
                   4953:
                   4954: ; return 0; }
                   4955: EOF
                   4956: if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   4957:   rm -rf conftest*
                   4958:   eval "ac_cv_func_$ac_func=yes"
                   4959: else
                   4960:   echo "configure: failed program was:" >&5
                   4961:   cat conftest.$ac_ext >&5
                   4962:   rm -rf conftest*
                   4963:   eval "ac_cv_func_$ac_func=no"
                   4964: fi
                   4965: rm -f conftest*
                   4966: fi
                   4967:
                   4968: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   4969:   echo "$ac_t""yes" 1>&6
                   4970:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4971:   cat >> confdefs.h <<EOF
                   4972: #define $ac_tr_func 1
                   4973: EOF
                   4974:
                   4975: else
                   4976:   echo "$ac_t""no" 1>&6
                   4977: fi
                   4978: done
                   4979:
                   4980: else
                   4981:   echo "$ac_t""no" 1>&6
                   4982: fi
                   4983: done
                   4984:
                   4985: fi
                   4986: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
                   4987: echo "configure:4988: checking for mode_t" >&5
                   4988: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   4989:   echo $ac_n "(cached) $ac_c" 1>&6
                   4990: else
                   4991:   cat > conftest.$ac_ext <<EOF
                   4992: #line 4993 "configure"
                   4993: #include "confdefs.h"
                   4994: #include <sys/types.h>
                   4995: #if STDC_HEADERS
                   4996: #include <stdlib.h>
                   4997: #include <stddef.h>
                   4998: #endif
                   4999: EOF
                   5000: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5001:   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   5002:   rm -rf conftest*
                   5003:   ac_cv_type_mode_t=yes
                   5004: else
                   5005:   rm -rf conftest*
                   5006:   ac_cv_type_mode_t=no
                   5007: fi
                   5008: rm -f conftest*
                   5009:
                   5010: fi
                   5011: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   5012: if test $ac_cv_type_mode_t = no; then
                   5013:   cat >> confdefs.h <<\EOF
                   5014: #define mode_t int
                   5015: EOF
                   5016:
                   5017: fi
                   5018:
                   5019: echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
                   5020: echo "configure:5021: checking for uid_t in sys/types.h" >&5
                   5021: if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
                   5022:   echo $ac_n "(cached) $ac_c" 1>&6
                   5023: else
                   5024:   cat > conftest.$ac_ext <<EOF
                   5025: #line 5026 "configure"
                   5026: #include "confdefs.h"
                   5027: #include <sys/types.h>
                   5028: EOF
                   5029: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5030:   egrep "uid_t" >/dev/null 2>&1; then
                   5031:   rm -rf conftest*
                   5032:   ac_cv_type_uid_t=yes
                   5033: else
                   5034:   rm -rf conftest*
                   5035:   ac_cv_type_uid_t=no
                   5036: fi
                   5037: rm -f conftest*
                   5038:
                   5039: fi
                   5040:
                   5041: echo "$ac_t""$ac_cv_type_uid_t" 1>&6
                   5042: if test $ac_cv_type_uid_t = no; then
                   5043:   cat >> confdefs.h <<\EOF
                   5044: #define uid_t int
                   5045: EOF
                   5046:
                   5047:   cat >> confdefs.h <<\EOF
                   5048: #define gid_t int
                   5049: EOF
                   5050:
                   5051: fi
                   5052:
                   5053: echo $ac_n "checking for size_t""... $ac_c" 1>&6
                   5054: echo "configure:5055: checking for size_t" >&5
                   5055: if eval "test \"`echo '$''{'sudo_cv_type_size_t'+set}'`\" = set"; then
                   5056:   echo $ac_n "(cached) $ac_c" 1>&6
                   5057: else
                   5058:   cat > conftest.$ac_ext <<EOF
                   5059: #line 5060 "configure"
                   5060: #include "confdefs.h"
                   5061: #include <sys/types.h>
                   5062: #if STDC_HEADERS
                   5063: #include <stdlib.h>
                   5064: #endif
                   5065: #if HAVE_UNISTD_H
                   5066: #include <unistd.h>
                   5067: #endif
                   5068: EOF
                   5069: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5070:   egrep "size_t" >/dev/null 2>&1; then
                   5071:   rm -rf conftest*
                   5072:   sudo_cv_type_size_t=yes
                   5073: else
                   5074:   rm -rf conftest*
                   5075:   sudo_cv_type_size_t=no
                   5076: fi
                   5077: rm -f conftest*
                   5078:
                   5079: fi
                   5080: echo "$ac_t""$sudo_cv_type_size_t" 1>&6
                   5081: if test $sudo_cv_type_size_t = no; then
                   5082:   cat >> confdefs.h <<\EOF
                   5083: #define size_t int
                   5084: EOF
                   5085:
                   5086: fi
                   5087:
                   5088: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
                   5089: echo "configure:5090: checking for ssize_t" >&5
                   5090: if eval "test \"`echo '$''{'sudo_cv_type_ssize_t'+set}'`\" = set"; then
                   5091:   echo $ac_n "(cached) $ac_c" 1>&6
                   5092: else
                   5093:   cat > conftest.$ac_ext <<EOF
                   5094: #line 5095 "configure"
                   5095: #include "confdefs.h"
                   5096: #include <sys/types.h>
                   5097: #if STDC_HEADERS
                   5098: #include <stdlib.h>
                   5099: #endif
                   5100: #if HAVE_UNISTD_H
                   5101: #include <unistd.h>
                   5102: #endif
                   5103: EOF
                   5104: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5105:   egrep "ssize_t" >/dev/null 2>&1; then
                   5106:   rm -rf conftest*
                   5107:   sudo_cv_type_ssize_t=yes
                   5108: else
                   5109:   rm -rf conftest*
                   5110:   sudo_cv_type_ssize_t=no
                   5111: fi
                   5112: rm -f conftest*
                   5113:
                   5114: fi
                   5115: echo "$ac_t""$sudo_cv_type_ssize_t" 1>&6
                   5116: if test $sudo_cv_type_ssize_t = no; then
                   5117:   cat >> confdefs.h <<\EOF
                   5118: #define ssize_t int
                   5119: EOF
                   5120:
                   5121: fi
                   5122:
                   5123: echo $ac_n "checking for dev_t""... $ac_c" 1>&6
                   5124: echo "configure:5125: checking for dev_t" >&5
                   5125: if eval "test \"`echo '$''{'sudo_cv_type_dev_t'+set}'`\" = set"; then
                   5126:   echo $ac_n "(cached) $ac_c" 1>&6
                   5127: else
                   5128:   cat > conftest.$ac_ext <<EOF
                   5129: #line 5130 "configure"
                   5130: #include "confdefs.h"
                   5131: #include <sys/types.h>
                   5132: #if STDC_HEADERS
                   5133: #include <stdlib.h>
                   5134: #endif
                   5135: #if HAVE_UNISTD_H
                   5136: #include <unistd.h>
                   5137: #endif
                   5138: EOF
                   5139: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5140:   egrep "dev_t" >/dev/null 2>&1; then
                   5141:   rm -rf conftest*
                   5142:   sudo_cv_type_dev_t=yes
                   5143: else
                   5144:   rm -rf conftest*
                   5145:   sudo_cv_type_dev_t=no
                   5146: fi
                   5147: rm -f conftest*
                   5148:
                   5149: fi
                   5150: echo "$ac_t""$sudo_cv_type_dev_t" 1>&6
                   5151: if test $sudo_cv_type_dev_t = no; then
                   5152:   cat >> confdefs.h <<\EOF
                   5153: #define dev_t int
                   5154: EOF
                   5155:
                   5156: fi
                   5157:
                   5158: echo $ac_n "checking for ino_t""... $ac_c" 1>&6
                   5159: echo "configure:5160: checking for ino_t" >&5
                   5160: if eval "test \"`echo '$''{'sudo_cv_type_ino_t'+set}'`\" = set"; then
                   5161:   echo $ac_n "(cached) $ac_c" 1>&6
                   5162: else
                   5163:   cat > conftest.$ac_ext <<EOF
                   5164: #line 5165 "configure"
                   5165: #include "confdefs.h"
                   5166: #include <sys/types.h>
                   5167: #if STDC_HEADERS
                   5168: #include <stdlib.h>
                   5169: #endif
                   5170: #if HAVE_UNISTD_H
                   5171: #include <unistd.h>
                   5172: #endif
                   5173: EOF
                   5174: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5175:   egrep "ino_t" >/dev/null 2>&1; then
                   5176:   rm -rf conftest*
                   5177:   sudo_cv_type_ino_t=yes
                   5178: else
                   5179:   rm -rf conftest*
                   5180:   sudo_cv_type_ino_t=no
                   5181: fi
                   5182: rm -f conftest*
                   5183:
                   5184: fi
                   5185: echo "$ac_t""$sudo_cv_type_ino_t" 1>&6
                   5186: if test $sudo_cv_type_ino_t = no; then
                   5187:   cat >> confdefs.h <<\EOF
                   5188: #define ino_t unsigned int
                   5189: EOF
                   5190:
                   5191: fi
                   5192:
                   5193: echo $ac_n "checking for full void implementation""... $ac_c" 1>&6
                   5194: echo "configure:5195: checking for full void implementation" >&5
                   5195: cat > conftest.$ac_ext <<EOF
                   5196: #line 5197 "configure"
                   5197: #include "confdefs.h"
                   5198:
                   5199: int main() {
                   5200: void *foo;
                   5201: foo = (void *)0; (void *)"test";
                   5202: ; return 0; }
                   5203: EOF
                   5204: if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   5205:   rm -rf conftest*
                   5206:   cat >> confdefs.h <<\EOF
                   5207: #define VOID void
                   5208: EOF
                   5209:
                   5210: echo "$ac_t""yes" 1>&6
                   5211: else
                   5212:   echo "configure: failed program was:" >&5
                   5213:   cat conftest.$ac_ext >&5
                   5214:   rm -rf conftest*
                   5215:   cat >> confdefs.h <<\EOF
                   5216: #define VOID char
                   5217: EOF
                   5218:
                   5219: echo "$ac_t""no" 1>&6
                   5220: fi
                   5221: rm -f conftest*
                   5222:
                   5223: echo $ac_n "checking max length of uid_t""... $ac_c" 1>&6
                   5224: echo "configure:5225: checking max length of uid_t" >&5
                   5225: if eval "test \"`echo '$''{'sudo_cv_uid_t_len'+set}'`\" = set"; then
                   5226:   echo $ac_n "(cached) $ac_c" 1>&6
                   5227: else
                   5228:   rm -f conftestdata
                   5229: if test "$cross_compiling" = yes; then
                   5230:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5231: else
                   5232:   cat > conftest.$ac_ext <<EOF
                   5233: #line 5234 "configure"
                   5234: #include "confdefs.h"
                   5235: #include <stdio.h>
                   5236: #include <pwd.h>
                   5237: #include <limits.h>
                   5238: #include <sys/types.h>
                   5239: #include <sys/param.h>
                   5240: main() {
                   5241:   FILE *f;
                   5242:   char b[1024];
                   5243:   uid_t u = (uid_t) -1;
                   5244:
                   5245:   if ((f = fopen("conftestdata", "w")) == NULL)
                   5246:     exit(1);
                   5247:
                   5248:   (void) sprintf(b, "%u", u);
                   5249:   (void) fprintf(f, "%d\n", strlen(b));
                   5250:   (void) fclose(f);
                   5251:   exit(0);
                   5252: }
                   5253: EOF
                   5254: if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   5255: then
                   5256:   sudo_cv_uid_t_len=`cat conftestdata`
                   5257: else
                   5258:   echo "configure: failed program was:" >&5
                   5259:   cat conftest.$ac_ext >&5
                   5260:   rm -fr conftest*
                   5261:   sudo_cv_uid_t_len=10
                   5262: fi
                   5263: rm -fr conftest*
                   5264: fi
                   5265:
                   5266:
                   5267: fi
                   5268:
                   5269: rm -f conftestdata
                   5270: echo "$ac_t""$sudo_cv_uid_t_len" 1>&6
                   5271: cat >> confdefs.h <<EOF
                   5272: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   5273: EOF
                   5274:
                   5275:
                   5276: echo $ac_n "checking for long long support""... $ac_c" 1>&6
                   5277: echo "configure:5278: checking for long long support" >&5
                   5278: cat > conftest.$ac_ext <<EOF
                   5279: #line 5280 "configure"
                   5280: #include "confdefs.h"
                   5281:
                   5282: int main() {
                   5283: long long foo = 1000; foo /= 10;
                   5284: ; return 0; }
                   5285: EOF
                   5286: if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5287:   rm -rf conftest*
                   5288:   cat >> confdefs.h <<\EOF
                   5289: #define HAVE_LONG_LONG 1
                   5290: EOF
                   5291:
                   5292: if test "$cross_compiling" = yes; then
                   5293:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5294: else
                   5295:   cat > conftest.$ac_ext <<EOF
                   5296: #line 5297 "configure"
                   5297: #include "confdefs.h"
                   5298: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
                   5299: EOF
                   5300: if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   5301: then
                   5302:   cat >> confdefs.h <<\EOF
                   5303: #define LONG_IS_QUAD 1
                   5304: EOF
                   5305:
                   5306: else
                   5307:   echo "configure: failed program was:" >&5
                   5308:   cat conftest.$ac_ext >&5
                   5309: fi
                   5310: rm -fr conftest*
                   5311: fi
                   5312:
                   5313: echo "$ac_t""yes" 1>&6
                   5314: else
                   5315:   echo "configure: failed program was:" >&5
                   5316:   cat conftest.$ac_ext >&5
                   5317:   rm -rf conftest*
                   5318:   echo "$ac_t""no" 1>&6
                   5319: fi
                   5320: rm -f conftest*
                   5321: echo $ac_n "checking for sa_len field in struct sockaddr""... $ac_c" 1>&6
                   5322: echo "configure:5323: checking for sa_len field in struct sockaddr" >&5
                   5323: if eval "test \"`echo '$''{'sudo_cv_sock_sa_len'+set}'`\" = set"; then
                   5324:   echo $ac_n "(cached) $ac_c" 1>&6
                   5325: else
                   5326:   if test "$cross_compiling" = yes; then
                   5327:   sudo_cv_sock_sa_len=no
                   5328: else
                   5329:   cat > conftest.$ac_ext <<EOF
                   5330: #line 5331 "configure"
                   5331: #include "confdefs.h"
                   5332: #include <sys/types.h>
                   5333: #include <sys/socket.h>
                   5334: main() {
                   5335: struct sockaddr s;
                   5336: s.sa_len = 0;
                   5337: exit(0);
                   5338: }
                   5339: EOF
                   5340: if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   5341: then
                   5342:   sudo_cv_sock_sa_len=yes
                   5343: else
                   5344:   echo "configure: failed program was:" >&5
                   5345:   cat conftest.$ac_ext >&5
                   5346:   rm -fr conftest*
                   5347:   sudo_cv_sock_sa_len=no
                   5348: fi
                   5349: rm -fr conftest*
                   5350: fi
                   5351:
                   5352: rm -f core core.* *.core
                   5353: fi
                   5354: echo "$ac_t""$sudo_cv_sock_sa_len" 1>&6
                   5355: if test $sudo_cv_sock_sa_len = yes; then
                   5356:   cat >> confdefs.h <<\EOF
                   5357: #define HAVE_SA_LEN 1
                   5358: EOF
                   5359:
                   5360: fi
                   5361:
                   5362: case "$DEFS" in
                   5363:     *"RETSIGTYPE"*)    ;;
                   5364:     *)                 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
                   5365: echo "configure:5366: checking return type of signal handlers" >&5
                   5366: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   5367:   echo $ac_n "(cached) $ac_c" 1>&6
                   5368: else
                   5369:   cat > conftest.$ac_ext <<EOF
                   5370: #line 5371 "configure"
                   5371: #include "confdefs.h"
                   5372: #include <sys/types.h>
                   5373: #include <signal.h>
                   5374: #ifdef signal
                   5375: #undef signal
                   5376: #endif
                   5377: #ifdef __cplusplus
                   5378: extern "C" void (*signal (int, void (*)(int)))(int);
                   5379: #else
                   5380: void (*signal ()) ();
                   5381: #endif
                   5382:
                   5383: int main() {
                   5384: int i;
                   5385: ; return 0; }
                   5386: EOF
                   5387: if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   5388:   rm -rf conftest*
                   5389:   ac_cv_type_signal=void
                   5390: else
                   5391:   echo "configure: failed program was:" >&5
                   5392:   cat conftest.$ac_ext >&5
                   5393:   rm -rf conftest*
                   5394:   ac_cv_type_signal=int
                   5395: fi
                   5396: rm -f conftest*
                   5397: fi
                   5398:
                   5399: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   5400: cat >> confdefs.h <<EOF
                   5401: #define RETSIGTYPE $ac_cv_type_signal
                   5402: EOF
                   5403:
                   5404: ;;
                   5405: esac
1.3     ! millert  5406: for ac_func in strchr strrchr memchr memcpy memset sysconf sigaction tzset seteuid ftruncate strftime setrlimit initgroups
1.1       millert  5407: do
                   5408: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5409: echo "configure:5410: checking for $ac_func" >&5
                   5410: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5411:   echo $ac_n "(cached) $ac_c" 1>&6
                   5412: else
                   5413:   cat > conftest.$ac_ext <<EOF
                   5414: #line 5415 "configure"
                   5415: #include "confdefs.h"
                   5416: /* System header to define __stub macros and hopefully few prototypes,
                   5417:     which can conflict with char $ac_func(); below.  */
                   5418: #include <assert.h>
                   5419: /* Override any gcc2 internal prototype to avoid an error.  */
                   5420: /* We use char because int might match the return type of a gcc2
                   5421:     builtin and then its argument prototype would still apply.  */
                   5422: char $ac_func();
                   5423:
                   5424: int main() {
                   5425:
                   5426: /* The GNU C library defines this for functions which it implements
                   5427:     to always fail with ENOSYS.  Some functions are actually named
                   5428:     something starting with __ and the normal name is an alias.  */
                   5429: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5430: choke me
                   5431: #else
                   5432: $ac_func();
                   5433: #endif
                   5434:
                   5435: ; return 0; }
                   5436: EOF
                   5437: if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5438:   rm -rf conftest*
                   5439:   eval "ac_cv_func_$ac_func=yes"
                   5440: else
                   5441:   echo "configure: failed program was:" >&5
                   5442:   cat conftest.$ac_ext >&5
                   5443:   rm -rf conftest*
                   5444:   eval "ac_cv_func_$ac_func=no"
                   5445: fi
                   5446: rm -f conftest*
                   5447: fi
                   5448:
                   5449: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5450:   echo "$ac_t""yes" 1>&6
                   5451:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5452:   cat >> confdefs.h <<EOF
                   5453: #define $ac_tr_func 1
                   5454: EOF
                   5455:
                   5456: else
                   5457:   echo "$ac_t""no" 1>&6
                   5458: fi
                   5459: done
                   5460:
                   5461: if test -n "$SECUREWARE"; then
                   5462:     for ac_func in bigcrypt
                   5463: do
                   5464: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5465: echo "configure:5466: checking for $ac_func" >&5
                   5466: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5467:   echo $ac_n "(cached) $ac_c" 1>&6
                   5468: else
                   5469:   cat > conftest.$ac_ext <<EOF
                   5470: #line 5471 "configure"
                   5471: #include "confdefs.h"
                   5472: /* System header to define __stub macros and hopefully few prototypes,
                   5473:     which can conflict with char $ac_func(); below.  */
                   5474: #include <assert.h>
                   5475: /* Override any gcc2 internal prototype to avoid an error.  */
                   5476: /* We use char because int might match the return type of a gcc2
                   5477:     builtin and then its argument prototype would still apply.  */
                   5478: char $ac_func();
                   5479:
                   5480: int main() {
                   5481:
                   5482: /* The GNU C library defines this for functions which it implements
                   5483:     to always fail with ENOSYS.  Some functions are actually named
                   5484:     something starting with __ and the normal name is an alias.  */
                   5485: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5486: choke me
                   5487: #else
                   5488: $ac_func();
                   5489: #endif
                   5490:
                   5491: ; return 0; }
                   5492: EOF
                   5493: if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5494:   rm -rf conftest*
                   5495:   eval "ac_cv_func_$ac_func=yes"
                   5496: else
                   5497:   echo "configure: failed program was:" >&5
                   5498:   cat conftest.$ac_ext >&5
                   5499:   rm -rf conftest*
                   5500:   eval "ac_cv_func_$ac_func=no"
                   5501: fi
                   5502: rm -f conftest*
                   5503: fi
                   5504:
                   5505: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5506:   echo "$ac_t""yes" 1>&6
                   5507:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5508:   cat >> confdefs.h <<EOF
                   5509: #define $ac_tr_func 1
                   5510: EOF
                   5511:
                   5512: else
                   5513:   echo "$ac_t""no" 1>&6
                   5514: fi
                   5515: done
                   5516:
                   5517:     for ac_func in set_auth_parameters
                   5518: do
                   5519: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5520: echo "configure:5521: checking for $ac_func" >&5
                   5521: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5522:   echo $ac_n "(cached) $ac_c" 1>&6
                   5523: else
                   5524:   cat > conftest.$ac_ext <<EOF
                   5525: #line 5526 "configure"
                   5526: #include "confdefs.h"
                   5527: /* System header to define __stub macros and hopefully few prototypes,
                   5528:     which can conflict with char $ac_func(); below.  */
                   5529: #include <assert.h>
                   5530: /* Override any gcc2 internal prototype to avoid an error.  */
                   5531: /* We use char because int might match the return type of a gcc2
                   5532:     builtin and then its argument prototype would still apply.  */
                   5533: char $ac_func();
                   5534:
                   5535: int main() {
                   5536:
                   5537: /* The GNU C library defines this for functions which it implements
                   5538:     to always fail with ENOSYS.  Some functions are actually named
                   5539:     something starting with __ and the normal name is an alias.  */
                   5540: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5541: choke me
                   5542: #else
                   5543: $ac_func();
                   5544: #endif
                   5545:
                   5546: ; return 0; }
                   5547: EOF
                   5548: if { (eval echo configure:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5549:   rm -rf conftest*
                   5550:   eval "ac_cv_func_$ac_func=yes"
                   5551: else
                   5552:   echo "configure: failed program was:" >&5
                   5553:   cat conftest.$ac_ext >&5
                   5554:   rm -rf conftest*
                   5555:   eval "ac_cv_func_$ac_func=no"
                   5556: fi
                   5557: rm -f conftest*
                   5558: fi
                   5559:
                   5560: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5561:   echo "$ac_t""yes" 1>&6
                   5562:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5563:   cat >> confdefs.h <<EOF
                   5564: #define $ac_tr_func 1
                   5565: EOF
                   5566:
                   5567: else
                   5568:   echo "$ac_t""no" 1>&6
                   5569: fi
                   5570: done
                   5571:
                   5572:     for ac_func in initprivs
                   5573: do
                   5574: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5575: echo "configure:5576: checking for $ac_func" >&5
                   5576: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5577:   echo $ac_n "(cached) $ac_c" 1>&6
                   5578: else
                   5579:   cat > conftest.$ac_ext <<EOF
                   5580: #line 5581 "configure"
                   5581: #include "confdefs.h"
                   5582: /* System header to define __stub macros and hopefully few prototypes,
                   5583:     which can conflict with char $ac_func(); below.  */
                   5584: #include <assert.h>
                   5585: /* Override any gcc2 internal prototype to avoid an error.  */
                   5586: /* We use char because int might match the return type of a gcc2
                   5587:     builtin and then its argument prototype would still apply.  */
                   5588: char $ac_func();
                   5589:
                   5590: int main() {
                   5591:
                   5592: /* The GNU C library defines this for functions which it implements
                   5593:     to always fail with ENOSYS.  Some functions are actually named
                   5594:     something starting with __ and the normal name is an alias.  */
                   5595: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5596: choke me
                   5597: #else
                   5598: $ac_func();
                   5599: #endif
                   5600:
                   5601: ; return 0; }
                   5602: EOF
                   5603: if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5604:   rm -rf conftest*
                   5605:   eval "ac_cv_func_$ac_func=yes"
                   5606: else
                   5607:   echo "configure: failed program was:" >&5
                   5608:   cat conftest.$ac_ext >&5
                   5609:   rm -rf conftest*
                   5610:   eval "ac_cv_func_$ac_func=no"
                   5611: fi
                   5612: rm -f conftest*
                   5613: fi
                   5614:
                   5615: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5616:   echo "$ac_t""yes" 1>&6
                   5617:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5618:   cat >> confdefs.h <<EOF
                   5619: #define $ac_tr_func 1
                   5620: EOF
                   5621:
                   5622: else
                   5623:   echo "$ac_t""no" 1>&6
                   5624: fi
                   5625: done
                   5626:
                   5627: fi
                   5628: if test -z "$BROKEN_GETCWD"; then
                   5629:     echo $ac_n "checking for getcwd""... $ac_c" 1>&6
                   5630: echo "configure:5631: checking for getcwd" >&5
                   5631: if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
                   5632:   echo $ac_n "(cached) $ac_c" 1>&6
                   5633: else
                   5634:   cat > conftest.$ac_ext <<EOF
                   5635: #line 5636 "configure"
                   5636: #include "confdefs.h"
                   5637: /* System header to define __stub macros and hopefully few prototypes,
                   5638:     which can conflict with char getcwd(); below.  */
                   5639: #include <assert.h>
                   5640: /* Override any gcc2 internal prototype to avoid an error.  */
                   5641: /* We use char because int might match the return type of a gcc2
                   5642:     builtin and then its argument prototype would still apply.  */
                   5643: char getcwd();
                   5644:
                   5645: int main() {
                   5646:
                   5647: /* The GNU C library defines this for functions which it implements
                   5648:     to always fail with ENOSYS.  Some functions are actually named
                   5649:     something starting with __ and the normal name is an alias.  */
                   5650: #if defined (__stub_getcwd) || defined (__stub___getcwd)
                   5651: choke me
                   5652: #else
                   5653: getcwd();
                   5654: #endif
                   5655:
                   5656: ; return 0; }
                   5657: EOF
                   5658: if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5659:   rm -rf conftest*
                   5660:   eval "ac_cv_func_getcwd=yes"
                   5661: else
                   5662:   echo "configure: failed program was:" >&5
                   5663:   cat conftest.$ac_ext >&5
                   5664:   rm -rf conftest*
                   5665:   eval "ac_cv_func_getcwd=no"
                   5666: fi
                   5667: rm -f conftest*
                   5668: fi
                   5669:
                   5670: if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
                   5671:   echo "$ac_t""yes" 1>&6
                   5672:   cat >> confdefs.h <<\EOF
                   5673: #define HAVE_GETCWD 1
                   5674: EOF
                   5675:
                   5676: else
                   5677:   echo "$ac_t""no" 1>&6
                   5678: LIBOBJS="$LIBOBJS getcwd.o"
                   5679: fi
                   5680:
                   5681: fi
                   5682: echo $ac_n "checking for lockf""... $ac_c" 1>&6
                   5683: echo "configure:5684: checking for lockf" >&5
                   5684: if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
                   5685:   echo $ac_n "(cached) $ac_c" 1>&6
                   5686: else
                   5687:   cat > conftest.$ac_ext <<EOF
                   5688: #line 5689 "configure"
                   5689: #include "confdefs.h"
                   5690: /* System header to define __stub macros and hopefully few prototypes,
                   5691:     which can conflict with char lockf(); below.  */
                   5692: #include <assert.h>
                   5693: /* Override any gcc2 internal prototype to avoid an error.  */
                   5694: /* We use char because int might match the return type of a gcc2
                   5695:     builtin and then its argument prototype would still apply.  */
                   5696: char lockf();
                   5697:
                   5698: int main() {
                   5699:
                   5700: /* The GNU C library defines this for functions which it implements
                   5701:     to always fail with ENOSYS.  Some functions are actually named
                   5702:     something starting with __ and the normal name is an alias.  */
                   5703: #if defined (__stub_lockf) || defined (__stub___lockf)
                   5704: choke me
                   5705: #else
                   5706: lockf();
                   5707: #endif
                   5708:
                   5709: ; return 0; }
                   5710: EOF
                   5711: if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5712:   rm -rf conftest*
                   5713:   eval "ac_cv_func_lockf=yes"
                   5714: else
                   5715:   echo "configure: failed program was:" >&5
                   5716:   cat conftest.$ac_ext >&5
                   5717:   rm -rf conftest*
                   5718:   eval "ac_cv_func_lockf=no"
                   5719: fi
                   5720: rm -f conftest*
                   5721: fi
                   5722:
                   5723: if eval "test \"`echo '$ac_cv_func_'lockf`\" = yes"; then
                   5724:   echo "$ac_t""yes" 1>&6
                   5725:   cat >> confdefs.h <<\EOF
                   5726: #define HAVE_LOCKF 1
                   5727: EOF
                   5728:
                   5729: else
                   5730:   echo "$ac_t""no" 1>&6
                   5731: for ac_func in flock
                   5732: do
                   5733: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5734: echo "configure:5735: checking for $ac_func" >&5
                   5735: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5736:   echo $ac_n "(cached) $ac_c" 1>&6
                   5737: else
                   5738:   cat > conftest.$ac_ext <<EOF
                   5739: #line 5740 "configure"
                   5740: #include "confdefs.h"
                   5741: /* System header to define __stub macros and hopefully few prototypes,
                   5742:     which can conflict with char $ac_func(); below.  */
                   5743: #include <assert.h>
                   5744: /* Override any gcc2 internal prototype to avoid an error.  */
                   5745: /* We use char because int might match the return type of a gcc2
                   5746:     builtin and then its argument prototype would still apply.  */
                   5747: char $ac_func();
                   5748:
                   5749: int main() {
                   5750:
                   5751: /* The GNU C library defines this for functions which it implements
                   5752:     to always fail with ENOSYS.  Some functions are actually named
                   5753:     something starting with __ and the normal name is an alias.  */
                   5754: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5755: choke me
                   5756: #else
                   5757: $ac_func();
                   5758: #endif
                   5759:
                   5760: ; return 0; }
                   5761: EOF
                   5762: if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5763:   rm -rf conftest*
                   5764:   eval "ac_cv_func_$ac_func=yes"
                   5765: else
                   5766:   echo "configure: failed program was:" >&5
                   5767:   cat conftest.$ac_ext >&5
                   5768:   rm -rf conftest*
                   5769:   eval "ac_cv_func_$ac_func=no"
                   5770: fi
                   5771: rm -f conftest*
                   5772: fi
                   5773:
                   5774: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5775:   echo "$ac_t""yes" 1>&6
                   5776:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5777:   cat >> confdefs.h <<EOF
                   5778: #define $ac_tr_func 1
                   5779: EOF
                   5780:
                   5781: else
                   5782:   echo "$ac_t""no" 1>&6
                   5783: fi
                   5784: done
                   5785:
                   5786: fi
                   5787:
                   5788: echo $ac_n "checking for waitpid""... $ac_c" 1>&6
                   5789: echo "configure:5790: checking for waitpid" >&5
                   5790: if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
                   5791:   echo $ac_n "(cached) $ac_c" 1>&6
                   5792: else
                   5793:   cat > conftest.$ac_ext <<EOF
                   5794: #line 5795 "configure"
                   5795: #include "confdefs.h"
                   5796: /* System header to define __stub macros and hopefully few prototypes,
                   5797:     which can conflict with char waitpid(); below.  */
                   5798: #include <assert.h>
                   5799: /* Override any gcc2 internal prototype to avoid an error.  */
                   5800: /* We use char because int might match the return type of a gcc2
                   5801:     builtin and then its argument prototype would still apply.  */
                   5802: char waitpid();
                   5803:
                   5804: int main() {
                   5805:
                   5806: /* The GNU C library defines this for functions which it implements
                   5807:     to always fail with ENOSYS.  Some functions are actually named
                   5808:     something starting with __ and the normal name is an alias.  */
                   5809: #if defined (__stub_waitpid) || defined (__stub___waitpid)
                   5810: choke me
                   5811: #else
                   5812: waitpid();
                   5813: #endif
                   5814:
                   5815: ; return 0; }
                   5816: EOF
                   5817: if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5818:   rm -rf conftest*
                   5819:   eval "ac_cv_func_waitpid=yes"
                   5820: else
                   5821:   echo "configure: failed program was:" >&5
                   5822:   cat conftest.$ac_ext >&5
                   5823:   rm -rf conftest*
                   5824:   eval "ac_cv_func_waitpid=no"
                   5825: fi
                   5826: rm -f conftest*
                   5827: fi
                   5828:
                   5829: if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
                   5830:   echo "$ac_t""yes" 1>&6
                   5831:   cat >> confdefs.h <<\EOF
                   5832: #define HAVE_WAITPID 1
                   5833: EOF
                   5834:
                   5835: else
                   5836:   echo "$ac_t""no" 1>&6
                   5837: for ac_func in wait3
                   5838: do
                   5839: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5840: echo "configure:5841: checking for $ac_func" >&5
                   5841: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5842:   echo $ac_n "(cached) $ac_c" 1>&6
                   5843: else
                   5844:   cat > conftest.$ac_ext <<EOF
                   5845: #line 5846 "configure"
                   5846: #include "confdefs.h"
                   5847: /* System header to define __stub macros and hopefully few prototypes,
                   5848:     which can conflict with char $ac_func(); below.  */
                   5849: #include <assert.h>
                   5850: /* Override any gcc2 internal prototype to avoid an error.  */
                   5851: /* We use char because int might match the return type of a gcc2
                   5852:     builtin and then its argument prototype would still apply.  */
                   5853: char $ac_func();
                   5854:
                   5855: int main() {
                   5856:
                   5857: /* The GNU C library defines this for functions which it implements
                   5858:     to always fail with ENOSYS.  Some functions are actually named
                   5859:     something starting with __ and the normal name is an alias.  */
                   5860: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5861: choke me
                   5862: #else
                   5863: $ac_func();
                   5864: #endif
                   5865:
                   5866: ; return 0; }
                   5867: EOF
                   5868: if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5869:   rm -rf conftest*
                   5870:   eval "ac_cv_func_$ac_func=yes"
                   5871: else
                   5872:   echo "configure: failed program was:" >&5
                   5873:   cat conftest.$ac_ext >&5
                   5874:   rm -rf conftest*
                   5875:   eval "ac_cv_func_$ac_func=no"
                   5876: fi
                   5877: rm -f conftest*
                   5878: fi
                   5879:
                   5880: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5881:   echo "$ac_t""yes" 1>&6
                   5882:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5883:   cat >> confdefs.h <<EOF
                   5884: #define $ac_tr_func 1
                   5885: EOF
                   5886:
                   5887: else
                   5888:   echo "$ac_t""no" 1>&6
                   5889: fi
                   5890: done
                   5891:
                   5892: fi
                   5893:
                   5894: echo $ac_n "checking for innetgr""... $ac_c" 1>&6
                   5895: echo "configure:5896: checking for innetgr" >&5
                   5896: if eval "test \"`echo '$''{'ac_cv_func_innetgr'+set}'`\" = set"; then
                   5897:   echo $ac_n "(cached) $ac_c" 1>&6
                   5898: else
                   5899:   cat > conftest.$ac_ext <<EOF
                   5900: #line 5901 "configure"
                   5901: #include "confdefs.h"
                   5902: /* System header to define __stub macros and hopefully few prototypes,
                   5903:     which can conflict with char innetgr(); below.  */
                   5904: #include <assert.h>
                   5905: /* Override any gcc2 internal prototype to avoid an error.  */
                   5906: /* We use char because int might match the return type of a gcc2
                   5907:     builtin and then its argument prototype would still apply.  */
                   5908: char innetgr();
                   5909:
                   5910: int main() {
                   5911:
                   5912: /* The GNU C library defines this for functions which it implements
                   5913:     to always fail with ENOSYS.  Some functions are actually named
                   5914:     something starting with __ and the normal name is an alias.  */
                   5915: #if defined (__stub_innetgr) || defined (__stub___innetgr)
                   5916: choke me
                   5917: #else
                   5918: innetgr();
                   5919: #endif
                   5920:
                   5921: ; return 0; }
                   5922: EOF
                   5923: if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5924:   rm -rf conftest*
                   5925:   eval "ac_cv_func_innetgr=yes"
                   5926: else
                   5927:   echo "configure: failed program was:" >&5
                   5928:   cat conftest.$ac_ext >&5
                   5929:   rm -rf conftest*
                   5930:   eval "ac_cv_func_innetgr=no"
                   5931: fi
                   5932: rm -f conftest*
                   5933: fi
                   5934:
                   5935: if eval "test \"`echo '$ac_cv_func_'innetgr`\" = yes"; then
                   5936:   echo "$ac_t""yes" 1>&6
                   5937:   cat >> confdefs.h <<\EOF
                   5938: #define HAVE_INNETGR 1
                   5939: EOF
                   5940:  for ac_func in getdomainname
                   5941: do
                   5942: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   5943: echo "configure:5944: checking for $ac_func" >&5
                   5944: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5945:   echo $ac_n "(cached) $ac_c" 1>&6
                   5946: else
                   5947:   cat > conftest.$ac_ext <<EOF
                   5948: #line 5949 "configure"
                   5949: #include "confdefs.h"
                   5950: /* System header to define __stub macros and hopefully few prototypes,
                   5951:     which can conflict with char $ac_func(); below.  */
                   5952: #include <assert.h>
                   5953: /* Override any gcc2 internal prototype to avoid an error.  */
                   5954: /* We use char because int might match the return type of a gcc2
                   5955:     builtin and then its argument prototype would still apply.  */
                   5956: char $ac_func();
                   5957:
                   5958: int main() {
                   5959:
                   5960: /* The GNU C library defines this for functions which it implements
                   5961:     to always fail with ENOSYS.  Some functions are actually named
                   5962:     something starting with __ and the normal name is an alias.  */
                   5963: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5964: choke me
                   5965: #else
                   5966: $ac_func();
                   5967: #endif
                   5968:
                   5969: ; return 0; }
                   5970: EOF
                   5971: if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   5972:   rm -rf conftest*
                   5973:   eval "ac_cv_func_$ac_func=yes"
                   5974: else
                   5975:   echo "configure: failed program was:" >&5
                   5976:   cat conftest.$ac_ext >&5
                   5977:   rm -rf conftest*
                   5978:   eval "ac_cv_func_$ac_func=no"
                   5979: fi
                   5980: rm -f conftest*
                   5981: fi
                   5982:
                   5983: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5984:   echo "$ac_t""yes" 1>&6
                   5985:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5986:   cat >> confdefs.h <<EOF
                   5987: #define $ac_tr_func 1
                   5988: EOF
                   5989:
                   5990: else
                   5991:   echo "$ac_t""no" 1>&6
                   5992: fi
                   5993: done
                   5994:
                   5995: else
                   5996:   echo "$ac_t""no" 1>&6
                   5997: fi
                   5998:
                   5999: echo $ac_n "checking for lsearch""... $ac_c" 1>&6
                   6000: echo "configure:6001: checking for lsearch" >&5
                   6001: if eval "test \"`echo '$''{'ac_cv_func_lsearch'+set}'`\" = set"; then
                   6002:   echo $ac_n "(cached) $ac_c" 1>&6
                   6003: else
                   6004:   cat > conftest.$ac_ext <<EOF
                   6005: #line 6006 "configure"
                   6006: #include "confdefs.h"
                   6007: /* System header to define __stub macros and hopefully few prototypes,
                   6008:     which can conflict with char lsearch(); below.  */
                   6009: #include <assert.h>
                   6010: /* Override any gcc2 internal prototype to avoid an error.  */
                   6011: /* We use char because int might match the return type of a gcc2
                   6012:     builtin and then its argument prototype would still apply.  */
                   6013: char lsearch();
                   6014:
                   6015: int main() {
                   6016:
                   6017: /* The GNU C library defines this for functions which it implements
                   6018:     to always fail with ENOSYS.  Some functions are actually named
                   6019:     something starting with __ and the normal name is an alias.  */
                   6020: #if defined (__stub_lsearch) || defined (__stub___lsearch)
                   6021: choke me
                   6022: #else
                   6023: lsearch();
                   6024: #endif
                   6025:
                   6026: ; return 0; }
                   6027: EOF
                   6028: if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6029:   rm -rf conftest*
                   6030:   eval "ac_cv_func_lsearch=yes"
                   6031: else
                   6032:   echo "configure: failed program was:" >&5
                   6033:   cat conftest.$ac_ext >&5
                   6034:   rm -rf conftest*
                   6035:   eval "ac_cv_func_lsearch=no"
                   6036: fi
                   6037: rm -f conftest*
                   6038: fi
                   6039:
                   6040: if eval "test \"`echo '$ac_cv_func_'lsearch`\" = yes"; then
                   6041:   echo "$ac_t""yes" 1>&6
                   6042:   cat >> confdefs.h <<\EOF
                   6043: #define HAVE_LSEARCH 1
                   6044: EOF
                   6045:
                   6046: else
                   6047:   echo "$ac_t""no" 1>&6
                   6048: echo $ac_n "checking for lsearch in -lcompat""... $ac_c" 1>&6
                   6049: echo "configure:6050: checking for lsearch in -lcompat" >&5
                   6050: if test -n ""; then
                   6051:   ac_lib_var=`echo compat'_'lsearch | sed 'y% ./+-%___p_%'`
                   6052: else
                   6053:   ac_lib_var=`echo compat'_'lsearch | sed 'y%./+-%__p_%'`
                   6054: fi
                   6055: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6056:   echo $ac_n "(cached) $ac_c" 1>&6
                   6057: else
                   6058:   ac_save_LIBS="$LIBS"
                   6059: LIBS="-lcompat  $LIBS"
                   6060: cat > conftest.$ac_ext <<EOF
                   6061: #line 6062 "configure"
                   6062: #include "confdefs.h"
                   6063: /* Override any gcc2 internal prototype to avoid an error.  */
                   6064: /* We use char because int might match the return type of a gcc2
                   6065:     builtin and then its argument prototype would still apply.  */
                   6066: char lsearch();
                   6067:
                   6068: int main() {
                   6069: lsearch()
                   6070: ; return 0; }
                   6071: EOF
                   6072: if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6073:   rm -rf conftest*
                   6074:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6075: else
                   6076:   echo "configure: failed program was:" >&5
                   6077:   cat conftest.$ac_ext >&5
                   6078:   rm -rf conftest*
                   6079:   eval "ac_cv_lib_$ac_lib_var=no"
                   6080: fi
                   6081: rm -f conftest*
                   6082: LIBS="$ac_save_LIBS"
                   6083:
                   6084: fi
                   6085: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6086:   echo "$ac_t""yes" 1>&6
                   6087:   ac_safe=`echo "search.h" | sed 'y%./+-%__p_%'`
                   6088: echo $ac_n "checking for search.h""... $ac_c" 1>&6
                   6089: echo "configure:6090: checking for search.h" >&5
                   6090: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   6091:   echo $ac_n "(cached) $ac_c" 1>&6
                   6092: else
                   6093:   cat > conftest.$ac_ext <<EOF
                   6094: #line 6095 "configure"
                   6095: #include "confdefs.h"
                   6096: #include <search.h>
                   6097: EOF
                   6098: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
                   6099: { (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
                   6100: ac_err=`grep -v '^ *+' conftest.out`
                   6101: if test -z "$ac_err"; then
                   6102:   rm -rf conftest*
                   6103:   eval "ac_cv_header_$ac_safe=yes"
                   6104: else
                   6105:   echo "$ac_err" >&5
                   6106:   echo "configure: failed program was:" >&5
                   6107:   cat conftest.$ac_ext >&5
                   6108:   rm -rf conftest*
                   6109:   eval "ac_cv_header_$ac_safe=no"
                   6110: fi
                   6111: rm -f conftest*
                   6112: fi
                   6113: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   6114:   echo "$ac_t""yes" 1>&6
                   6115:   cat >> confdefs.h <<\EOF
                   6116: #define HAVE_LSEARCH 1
                   6117: EOF
                   6118:  LIBS="${LIBS} -lcompat"
                   6119: else
                   6120:   echo "$ac_t""no" 1>&6
                   6121: LIBOBJS="$LIBOBJS lsearch.o"
                   6122: fi
                   6123:
                   6124: else
                   6125:   echo "$ac_t""no" 1>&6
                   6126: LIBOBJS="$LIBOBJS lsearch.o"
                   6127: fi
                   6128:
                   6129: fi
                   6130:
                   6131: echo $ac_n "checking for setenv""... $ac_c" 1>&6
                   6132: echo "configure:6133: checking for setenv" >&5
                   6133: if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
                   6134:   echo $ac_n "(cached) $ac_c" 1>&6
                   6135: else
                   6136:   cat > conftest.$ac_ext <<EOF
                   6137: #line 6138 "configure"
                   6138: #include "confdefs.h"
                   6139: /* System header to define __stub macros and hopefully few prototypes,
                   6140:     which can conflict with char setenv(); below.  */
                   6141: #include <assert.h>
                   6142: /* Override any gcc2 internal prototype to avoid an error.  */
                   6143: /* We use char because int might match the return type of a gcc2
                   6144:     builtin and then its argument prototype would still apply.  */
                   6145: char setenv();
                   6146:
                   6147: int main() {
                   6148:
                   6149: /* The GNU C library defines this for functions which it implements
                   6150:     to always fail with ENOSYS.  Some functions are actually named
                   6151:     something starting with __ and the normal name is an alias.  */
                   6152: #if defined (__stub_setenv) || defined (__stub___setenv)
                   6153: choke me
                   6154: #else
                   6155: setenv();
                   6156: #endif
                   6157:
                   6158: ; return 0; }
                   6159: EOF
                   6160: if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6161:   rm -rf conftest*
                   6162:   eval "ac_cv_func_setenv=yes"
                   6163: else
                   6164:   echo "configure: failed program was:" >&5
                   6165:   cat conftest.$ac_ext >&5
                   6166:   rm -rf conftest*
                   6167:   eval "ac_cv_func_setenv=no"
                   6168: fi
                   6169: rm -f conftest*
                   6170: fi
                   6171:
                   6172: if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
                   6173:   echo "$ac_t""yes" 1>&6
                   6174:   cat >> confdefs.h <<\EOF
                   6175: #define HAVE_SETENV 1
                   6176: EOF
                   6177:
                   6178: else
                   6179:   echo "$ac_t""no" 1>&6
                   6180: echo $ac_n "checking for putenv""... $ac_c" 1>&6
                   6181: echo "configure:6182: checking for putenv" >&5
                   6182: if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
                   6183:   echo $ac_n "(cached) $ac_c" 1>&6
                   6184: else
                   6185:   cat > conftest.$ac_ext <<EOF
                   6186: #line 6187 "configure"
                   6187: #include "confdefs.h"
                   6188: /* System header to define __stub macros and hopefully few prototypes,
                   6189:     which can conflict with char putenv(); below.  */
                   6190: #include <assert.h>
                   6191: /* Override any gcc2 internal prototype to avoid an error.  */
                   6192: /* We use char because int might match the return type of a gcc2
                   6193:     builtin and then its argument prototype would still apply.  */
                   6194: char putenv();
                   6195:
                   6196: int main() {
                   6197:
                   6198: /* The GNU C library defines this for functions which it implements
                   6199:     to always fail with ENOSYS.  Some functions are actually named
                   6200:     something starting with __ and the normal name is an alias.  */
                   6201: #if defined (__stub_putenv) || defined (__stub___putenv)
                   6202: choke me
                   6203: #else
                   6204: putenv();
                   6205: #endif
                   6206:
                   6207: ; return 0; }
                   6208: EOF
                   6209: if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6210:   rm -rf conftest*
                   6211:   eval "ac_cv_func_putenv=yes"
                   6212: else
                   6213:   echo "configure: failed program was:" >&5
                   6214:   cat conftest.$ac_ext >&5
                   6215:   rm -rf conftest*
                   6216:   eval "ac_cv_func_putenv=no"
                   6217: fi
                   6218: rm -f conftest*
                   6219: fi
                   6220:
                   6221: if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
                   6222:   echo "$ac_t""yes" 1>&6
                   6223:   cat >> confdefs.h <<\EOF
                   6224: #define HAVE_PUTENV 1
                   6225: EOF
                   6226:
                   6227: else
                   6228:   echo "$ac_t""no" 1>&6
                   6229: LIBOBJS="$LIBOBJS putenv.o"
                   6230: fi
                   6231:
                   6232: fi
                   6233:
                   6234: echo $ac_n "checking for utime""... $ac_c" 1>&6
                   6235: echo "configure:6236: checking for utime" >&5
                   6236: if eval "test \"`echo '$''{'ac_cv_func_utime'+set}'`\" = set"; then
                   6237:   echo $ac_n "(cached) $ac_c" 1>&6
                   6238: else
                   6239:   cat > conftest.$ac_ext <<EOF
                   6240: #line 6241 "configure"
                   6241: #include "confdefs.h"
                   6242: /* System header to define __stub macros and hopefully few prototypes,
                   6243:     which can conflict with char utime(); below.  */
                   6244: #include <assert.h>
                   6245: /* Override any gcc2 internal prototype to avoid an error.  */
                   6246: /* We use char because int might match the return type of a gcc2
                   6247:     builtin and then its argument prototype would still apply.  */
                   6248: char utime();
                   6249:
                   6250: int main() {
                   6251:
                   6252: /* The GNU C library defines this for functions which it implements
                   6253:     to always fail with ENOSYS.  Some functions are actually named
                   6254:     something starting with __ and the normal name is an alias.  */
                   6255: #if defined (__stub_utime) || defined (__stub___utime)
                   6256: choke me
                   6257: #else
                   6258: utime();
                   6259: #endif
                   6260:
                   6261: ; return 0; }
                   6262: EOF
                   6263: if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6264:   rm -rf conftest*
                   6265:   eval "ac_cv_func_utime=yes"
                   6266: else
                   6267:   echo "configure: failed program was:" >&5
                   6268:   cat conftest.$ac_ext >&5
                   6269:   rm -rf conftest*
                   6270:   eval "ac_cv_func_utime=no"
                   6271: fi
                   6272: rm -f conftest*
                   6273: fi
                   6274:
                   6275: if eval "test \"`echo '$ac_cv_func_'utime`\" = yes"; then
                   6276:   echo "$ac_t""yes" 1>&6
                   6277:   cat >> confdefs.h <<\EOF
                   6278: #define HAVE_UTIME 1
                   6279: EOF
                   6280:
                   6281: echo $ac_n "checking for POSIX utime""... $ac_c" 1>&6
                   6282: echo "configure:6283: checking for POSIX utime" >&5
                   6283: if eval "test \"`echo '$''{'sudo_cv_func_utime_posix'+set}'`\" = set"; then
                   6284:   echo $ac_n "(cached) $ac_c" 1>&6
                   6285: else
                   6286:   rm -f conftestdata; > conftestdata
                   6287: if test "$cross_compiling" = yes; then
                   6288:   sudo_cv_func_utime_posix=no
                   6289: else
                   6290:   cat > conftest.$ac_ext <<EOF
                   6291: #line 6292 "configure"
                   6292: #include "confdefs.h"
                   6293: #include <sys/types.h>
                   6294: #include <sys/time.h>
                   6295: #include <utime.h>
                   6296: main() {
                   6297: struct utimbuf ut;
                   6298: ut.actime = ut.modtime = time(0);
                   6299: utime("conftestdata", &ut);
                   6300: exit(0);
                   6301: }
                   6302: EOF
                   6303: if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   6304: then
                   6305:   sudo_cv_func_utime_posix=yes
                   6306: else
                   6307:   echo "configure: failed program was:" >&5
                   6308:   cat conftest.$ac_ext >&5
                   6309:   rm -fr conftest*
                   6310:   sudo_cv_func_utime_posix=no
                   6311: fi
                   6312: rm -fr conftest*
                   6313: fi
                   6314:
                   6315: rm -f core core.* *.core
                   6316: fi
                   6317: echo "$ac_t""$sudo_cv_func_utime_posix" 1>&6
                   6318: if test $sudo_cv_func_utime_posix = yes; then
                   6319:   cat >> confdefs.h <<\EOF
                   6320: #define HAVE_UTIME_POSIX 1
                   6321: EOF
                   6322:
                   6323: fi
                   6324:
                   6325: else
                   6326:   echo "$ac_t""no" 1>&6
                   6327: LIBOBJS="$LIBOBJS utime.o"
                   6328: fi
                   6329:
                   6330: echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
                   6331: echo "configure:6332: checking for working fnmatch" >&5
                   6332: if eval "test \"`echo '$''{'sudo_cv_func_fnmatch'+set}'`\" = set"; then
                   6333:   echo $ac_n "(cached) $ac_c" 1>&6
                   6334: else
                   6335:   rm -f conftestdata; > conftestdata
                   6336: if test "$cross_compiling" = yes; then
                   6337:   sudo_cv_func_fnmatch=no
                   6338: else
                   6339:   cat > conftest.$ac_ext <<EOF
                   6340: #line 6341 "configure"
                   6341: #include "confdefs.h"
1.3     ! millert  6342: #include <fnmatch.h>
        !          6343: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", 0)); }
        !          6344:
1.1       millert  6345: EOF
                   6346: if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   6347: then
                   6348:   sudo_cv_func_fnmatch=yes
                   6349: else
                   6350:   echo "configure: failed program was:" >&5
                   6351:   cat conftest.$ac_ext >&5
                   6352:   rm -fr conftest*
                   6353:   sudo_cv_func_fnmatch=no
                   6354: fi
                   6355: rm -fr conftest*
                   6356: fi
                   6357:
                   6358: rm -f core core.* *.core
                   6359: fi
                   6360: echo "$ac_t""$sudo_cv_func_fnmatch" 1>&6
                   6361: if test $sudo_cv_func_fnmatch = yes; then
                   6362:   cat >> confdefs.h <<\EOF
                   6363: #define HAVE_FNMATCH 1
                   6364: EOF
                   6365:
                   6366: else
                   6367:   LIBOBJS="$LIBOBJS fnmatch.o"
                   6368: fi
                   6369:
                   6370: for ac_func in strerror strcasecmp
                   6371: do
                   6372: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   6373: echo "configure:6374: checking for $ac_func" >&5
                   6374: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   6375:   echo $ac_n "(cached) $ac_c" 1>&6
                   6376: else
                   6377:   cat > conftest.$ac_ext <<EOF
                   6378: #line 6379 "configure"
                   6379: #include "confdefs.h"
                   6380: /* System header to define __stub macros and hopefully few prototypes,
                   6381:     which can conflict with char $ac_func(); below.  */
                   6382: #include <assert.h>
                   6383: /* Override any gcc2 internal prototype to avoid an error.  */
                   6384: /* We use char because int might match the return type of a gcc2
                   6385:     builtin and then its argument prototype would still apply.  */
                   6386: char $ac_func();
                   6387:
                   6388: int main() {
                   6389:
                   6390: /* The GNU C library defines this for functions which it implements
                   6391:     to always fail with ENOSYS.  Some functions are actually named
                   6392:     something starting with __ and the normal name is an alias.  */
                   6393: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   6394: choke me
                   6395: #else
                   6396: $ac_func();
                   6397: #endif
                   6398:
                   6399: ; return 0; }
                   6400: EOF
                   6401: if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6402:   rm -rf conftest*
                   6403:   eval "ac_cv_func_$ac_func=yes"
                   6404: else
                   6405:   echo "configure: failed program was:" >&5
                   6406:   cat conftest.$ac_ext >&5
                   6407:   rm -rf conftest*
                   6408:   eval "ac_cv_func_$ac_func=no"
                   6409: fi
                   6410: rm -f conftest*
                   6411: fi
                   6412:
                   6413: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   6414:   echo "$ac_t""yes" 1>&6
                   6415:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   6416:   cat >> confdefs.h <<EOF
                   6417: #define $ac_tr_func 1
                   6418: EOF
                   6419:
                   6420: else
                   6421:   echo "$ac_t""no" 1>&6
                   6422: LIBOBJS="$LIBOBJS ${ac_func}.o"
                   6423: fi
                   6424: done
                   6425:
                   6426:
                   6427: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
                   6428: echo "configure:6429: checking for snprintf" >&5
                   6429: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   6430:   echo $ac_n "(cached) $ac_c" 1>&6
                   6431: else
                   6432:   cat > conftest.$ac_ext <<EOF
                   6433: #line 6434 "configure"
                   6434: #include "confdefs.h"
                   6435: /* System header to define __stub macros and hopefully few prototypes,
                   6436:     which can conflict with char snprintf(); below.  */
                   6437: #include <assert.h>
                   6438: /* Override any gcc2 internal prototype to avoid an error.  */
                   6439: /* We use char because int might match the return type of a gcc2
                   6440:     builtin and then its argument prototype would still apply.  */
                   6441: char snprintf();
                   6442:
                   6443: int main() {
                   6444:
                   6445: /* The GNU C library defines this for functions which it implements
                   6446:     to always fail with ENOSYS.  Some functions are actually named
                   6447:     something starting with __ and the normal name is an alias.  */
                   6448: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   6449: choke me
                   6450: #else
                   6451: snprintf();
                   6452: #endif
                   6453:
                   6454: ; return 0; }
                   6455: EOF
                   6456: if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6457:   rm -rf conftest*
                   6458:   eval "ac_cv_func_snprintf=yes"
                   6459: else
                   6460:   echo "configure: failed program was:" >&5
                   6461:   cat conftest.$ac_ext >&5
                   6462:   rm -rf conftest*
                   6463:   eval "ac_cv_func_snprintf=no"
                   6464: fi
                   6465: rm -f conftest*
                   6466: fi
                   6467:
                   6468: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   6469:   echo "$ac_t""yes" 1>&6
                   6470:   cat >> confdefs.h <<\EOF
                   6471: #define HAVE_SNPRINTF 1
                   6472: EOF
                   6473:
                   6474: else
                   6475:   echo "$ac_t""no" 1>&6
                   6476: NEED_SNPRINTF=1
                   6477: fi
                   6478:
                   6479: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
                   6480: echo "configure:6481: checking for vsnprintf" >&5
                   6481: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   6482:   echo $ac_n "(cached) $ac_c" 1>&6
                   6483: else
                   6484:   cat > conftest.$ac_ext <<EOF
                   6485: #line 6486 "configure"
                   6486: #include "confdefs.h"
                   6487: /* System header to define __stub macros and hopefully few prototypes,
                   6488:     which can conflict with char vsnprintf(); below.  */
                   6489: #include <assert.h>
                   6490: /* Override any gcc2 internal prototype to avoid an error.  */
                   6491: /* We use char because int might match the return type of a gcc2
                   6492:     builtin and then its argument prototype would still apply.  */
                   6493: char vsnprintf();
                   6494:
                   6495: int main() {
                   6496:
                   6497: /* The GNU C library defines this for functions which it implements
                   6498:     to always fail with ENOSYS.  Some functions are actually named
                   6499:     something starting with __ and the normal name is an alias.  */
                   6500: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   6501: choke me
                   6502: #else
                   6503: vsnprintf();
                   6504: #endif
                   6505:
                   6506: ; return 0; }
                   6507: EOF
                   6508: if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6509:   rm -rf conftest*
                   6510:   eval "ac_cv_func_vsnprintf=yes"
                   6511: else
                   6512:   echo "configure: failed program was:" >&5
                   6513:   cat conftest.$ac_ext >&5
                   6514:   rm -rf conftest*
                   6515:   eval "ac_cv_func_vsnprintf=no"
                   6516: fi
                   6517: rm -f conftest*
                   6518: fi
                   6519:
                   6520: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   6521:   echo "$ac_t""yes" 1>&6
                   6522:   cat >> confdefs.h <<\EOF
                   6523: #define HAVE_VSNPRINTF 1
                   6524: EOF
                   6525:
                   6526: else
                   6527:   echo "$ac_t""no" 1>&6
                   6528: NEED_SNPRINTF=1
                   6529: fi
                   6530:
                   6531: echo $ac_n "checking for asprintf""... $ac_c" 1>&6
                   6532: echo "configure:6533: checking for asprintf" >&5
                   6533: if eval "test \"`echo '$''{'ac_cv_func_asprintf'+set}'`\" = set"; then
                   6534:   echo $ac_n "(cached) $ac_c" 1>&6
                   6535: else
                   6536:   cat > conftest.$ac_ext <<EOF
                   6537: #line 6538 "configure"
                   6538: #include "confdefs.h"
                   6539: /* System header to define __stub macros and hopefully few prototypes,
                   6540:     which can conflict with char asprintf(); below.  */
                   6541: #include <assert.h>
                   6542: /* Override any gcc2 internal prototype to avoid an error.  */
                   6543: /* We use char because int might match the return type of a gcc2
                   6544:     builtin and then its argument prototype would still apply.  */
                   6545: char asprintf();
                   6546:
                   6547: int main() {
                   6548:
                   6549: /* The GNU C library defines this for functions which it implements
                   6550:     to always fail with ENOSYS.  Some functions are actually named
                   6551:     something starting with __ and the normal name is an alias.  */
                   6552: #if defined (__stub_asprintf) || defined (__stub___asprintf)
                   6553: choke me
                   6554: #else
                   6555: asprintf();
                   6556: #endif
                   6557:
                   6558: ; return 0; }
                   6559: EOF
                   6560: if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6561:   rm -rf conftest*
                   6562:   eval "ac_cv_func_asprintf=yes"
                   6563: else
                   6564:   echo "configure: failed program was:" >&5
                   6565:   cat conftest.$ac_ext >&5
                   6566:   rm -rf conftest*
                   6567:   eval "ac_cv_func_asprintf=no"
                   6568: fi
                   6569: rm -f conftest*
                   6570: fi
                   6571:
                   6572: if eval "test \"`echo '$ac_cv_func_'asprintf`\" = yes"; then
                   6573:   echo "$ac_t""yes" 1>&6
                   6574:   cat >> confdefs.h <<\EOF
                   6575: #define HAVE_ASPRINTF 1
                   6576: EOF
                   6577:
                   6578: else
                   6579:   echo "$ac_t""no" 1>&6
                   6580: NEED_SNPRINTF=1
                   6581: fi
                   6582:
                   6583: echo $ac_n "checking for vasprintf""... $ac_c" 1>&6
                   6584: echo "configure:6585: checking for vasprintf" >&5
                   6585: if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then
                   6586:   echo $ac_n "(cached) $ac_c" 1>&6
                   6587: else
                   6588:   cat > conftest.$ac_ext <<EOF
                   6589: #line 6590 "configure"
                   6590: #include "confdefs.h"
                   6591: /* System header to define __stub macros and hopefully few prototypes,
                   6592:     which can conflict with char vasprintf(); below.  */
                   6593: #include <assert.h>
                   6594: /* Override any gcc2 internal prototype to avoid an error.  */
                   6595: /* We use char because int might match the return type of a gcc2
                   6596:     builtin and then its argument prototype would still apply.  */
                   6597: char vasprintf();
                   6598:
                   6599: int main() {
                   6600:
                   6601: /* The GNU C library defines this for functions which it implements
                   6602:     to always fail with ENOSYS.  Some functions are actually named
                   6603:     something starting with __ and the normal name is an alias.  */
                   6604: #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
                   6605: choke me
                   6606: #else
                   6607: vasprintf();
                   6608: #endif
                   6609:
                   6610: ; return 0; }
                   6611: EOF
                   6612: if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6613:   rm -rf conftest*
                   6614:   eval "ac_cv_func_vasprintf=yes"
                   6615: else
                   6616:   echo "configure: failed program was:" >&5
                   6617:   cat conftest.$ac_ext >&5
                   6618:   rm -rf conftest*
                   6619:   eval "ac_cv_func_vasprintf=no"
                   6620: fi
                   6621: rm -f conftest*
                   6622: fi
                   6623:
                   6624: if eval "test \"`echo '$ac_cv_func_'vasprintf`\" = yes"; then
                   6625:   echo "$ac_t""yes" 1>&6
                   6626:   cat >> confdefs.h <<\EOF
                   6627: #define HAVE_VASPRINTF 1
                   6628: EOF
                   6629:
                   6630: else
                   6631:   echo "$ac_t""no" 1>&6
                   6632: NEED_SNPRINTF=1
                   6633: fi
                   6634:
                   6635: if test -n "$NEED_SNPRINTF"; then
                   6636:     LIBOBJS="$LIBOBJS snprintf.o"
                   6637: fi
                   6638: if test -z "$LIB_CRYPT"; then
                   6639:     echo $ac_n "checking for crypt""... $ac_c" 1>&6
                   6640: echo "configure:6641: checking for crypt" >&5
                   6641: if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
                   6642:   echo $ac_n "(cached) $ac_c" 1>&6
                   6643: else
                   6644:   cat > conftest.$ac_ext <<EOF
                   6645: #line 6646 "configure"
                   6646: #include "confdefs.h"
                   6647: /* System header to define __stub macros and hopefully few prototypes,
                   6648:     which can conflict with char crypt(); below.  */
                   6649: #include <assert.h>
                   6650: /* Override any gcc2 internal prototype to avoid an error.  */
                   6651: /* We use char because int might match the return type of a gcc2
                   6652:     builtin and then its argument prototype would still apply.  */
                   6653: char crypt();
                   6654:
                   6655: int main() {
                   6656:
                   6657: /* The GNU C library defines this for functions which it implements
                   6658:     to always fail with ENOSYS.  Some functions are actually named
                   6659:     something starting with __ and the normal name is an alias.  */
                   6660: #if defined (__stub_crypt) || defined (__stub___crypt)
                   6661: choke me
                   6662: #else
                   6663: crypt();
                   6664: #endif
                   6665:
                   6666: ; return 0; }
                   6667: EOF
                   6668: if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6669:   rm -rf conftest*
                   6670:   eval "ac_cv_func_crypt=yes"
                   6671: else
                   6672:   echo "configure: failed program was:" >&5
                   6673:   cat conftest.$ac_ext >&5
                   6674:   rm -rf conftest*
                   6675:   eval "ac_cv_func_crypt=no"
                   6676: fi
                   6677: rm -f conftest*
                   6678: fi
                   6679:
                   6680: if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
                   6681:   echo "$ac_t""yes" 1>&6
                   6682:   :
                   6683: else
                   6684:   echo "$ac_t""no" 1>&6
                   6685: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
                   6686: echo "configure:6687: checking for crypt in -lcrypt" >&5
                   6687: if test -n ""; then
                   6688:   ac_lib_var=`echo crypt'_'crypt | sed 'y% ./+-%___p_%'`
                   6689: else
                   6690:   ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
                   6691: fi
                   6692: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6693:   echo $ac_n "(cached) $ac_c" 1>&6
                   6694: else
                   6695:   ac_save_LIBS="$LIBS"
                   6696: LIBS="-lcrypt  $LIBS"
                   6697: cat > conftest.$ac_ext <<EOF
                   6698: #line 6699 "configure"
                   6699: #include "confdefs.h"
                   6700: /* Override any gcc2 internal prototype to avoid an error.  */
                   6701: /* We use char because int might match the return type of a gcc2
                   6702:     builtin and then its argument prototype would still apply.  */
                   6703: char crypt();
                   6704:
                   6705: int main() {
                   6706: crypt()
                   6707: ; return 0; }
                   6708: EOF
                   6709: if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6710:   rm -rf conftest*
                   6711:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6712: else
                   6713:   echo "configure: failed program was:" >&5
                   6714:   cat conftest.$ac_ext >&5
                   6715:   rm -rf conftest*
                   6716:   eval "ac_cv_lib_$ac_lib_var=no"
                   6717: fi
                   6718: rm -f conftest*
                   6719: LIBS="$ac_save_LIBS"
                   6720:
                   6721: fi
                   6722: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6723:   echo "$ac_t""yes" 1>&6
                   6724:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   6725: else
                   6726:   echo "$ac_t""no" 1>&6
                   6727: echo $ac_n "checking for crypt in -lcrypt_d""... $ac_c" 1>&6
                   6728: echo "configure:6729: checking for crypt in -lcrypt_d" >&5
                   6729: if test -n ""; then
                   6730:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y% ./+-%___p_%'`
                   6731: else
                   6732:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y%./+-%__p_%'`
                   6733: fi
                   6734: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6735:   echo $ac_n "(cached) $ac_c" 1>&6
                   6736: else
                   6737:   ac_save_LIBS="$LIBS"
                   6738: LIBS="-lcrypt_d  $LIBS"
                   6739: cat > conftest.$ac_ext <<EOF
                   6740: #line 6741 "configure"
                   6741: #include "confdefs.h"
                   6742: /* Override any gcc2 internal prototype to avoid an error.  */
                   6743: /* We use char because int might match the return type of a gcc2
                   6744:     builtin and then its argument prototype would still apply.  */
                   6745: char crypt();
                   6746:
                   6747: int main() {
                   6748: crypt()
                   6749: ; return 0; }
                   6750: EOF
                   6751: if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6752:   rm -rf conftest*
                   6753:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6754: else
                   6755:   echo "configure: failed program was:" >&5
                   6756:   cat conftest.$ac_ext >&5
                   6757:   rm -rf conftest*
                   6758:   eval "ac_cv_lib_$ac_lib_var=no"
                   6759: fi
                   6760: rm -f conftest*
                   6761: LIBS="$ac_save_LIBS"
                   6762:
                   6763: fi
                   6764: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6765:   echo "$ac_t""yes" 1>&6
                   6766:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   6767: else
                   6768:   echo "$ac_t""no" 1>&6
                   6769: echo $ac_n "checking for crypt in -lufc""... $ac_c" 1>&6
                   6770: echo "configure:6771: checking for crypt in -lufc" >&5
                   6771: if test -n ""; then
                   6772:   ac_lib_var=`echo ufc'_'crypt | sed 'y% ./+-%___p_%'`
                   6773: else
                   6774:   ac_lib_var=`echo ufc'_'crypt | sed 'y%./+-%__p_%'`
                   6775: fi
                   6776: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6777:   echo $ac_n "(cached) $ac_c" 1>&6
                   6778: else
                   6779:   ac_save_LIBS="$LIBS"
                   6780: LIBS="-lufc  $LIBS"
                   6781: cat > conftest.$ac_ext <<EOF
                   6782: #line 6783 "configure"
                   6783: #include "confdefs.h"
                   6784: /* Override any gcc2 internal prototype to avoid an error.  */
                   6785: /* We use char because int might match the return type of a gcc2
                   6786:     builtin and then its argument prototype would still apply.  */
                   6787: char crypt();
                   6788:
                   6789: int main() {
                   6790: crypt()
                   6791: ; return 0; }
                   6792: EOF
                   6793: if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6794:   rm -rf conftest*
                   6795:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6796: else
                   6797:   echo "configure: failed program was:" >&5
                   6798:   cat conftest.$ac_ext >&5
                   6799:   rm -rf conftest*
                   6800:   eval "ac_cv_lib_$ac_lib_var=no"
                   6801: fi
                   6802: rm -f conftest*
                   6803: LIBS="$ac_save_LIBS"
                   6804:
                   6805: fi
                   6806: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6807:   echo "$ac_t""yes" 1>&6
                   6808:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
                   6809: else
                   6810:   echo "$ac_t""no" 1>&6
                   6811: fi
                   6812:
                   6813: fi
                   6814:
                   6815: fi
                   6816:
                   6817: fi
                   6818:
                   6819: fi
                   6820: echo $ac_n "checking for socket""... $ac_c" 1>&6
                   6821: echo "configure:6822: checking for socket" >&5
                   6822: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
                   6823:   echo $ac_n "(cached) $ac_c" 1>&6
                   6824: else
                   6825:   cat > conftest.$ac_ext <<EOF
                   6826: #line 6827 "configure"
                   6827: #include "confdefs.h"
                   6828: /* System header to define __stub macros and hopefully few prototypes,
                   6829:     which can conflict with char socket(); below.  */
                   6830: #include <assert.h>
                   6831: /* Override any gcc2 internal prototype to avoid an error.  */
                   6832: /* We use char because int might match the return type of a gcc2
                   6833:     builtin and then its argument prototype would still apply.  */
                   6834: char socket();
                   6835:
                   6836: int main() {
                   6837:
                   6838: /* The GNU C library defines this for functions which it implements
                   6839:     to always fail with ENOSYS.  Some functions are actually named
                   6840:     something starting with __ and the normal name is an alias.  */
                   6841: #if defined (__stub_socket) || defined (__stub___socket)
                   6842: choke me
                   6843: #else
                   6844: socket();
                   6845: #endif
                   6846:
                   6847: ; return 0; }
                   6848: EOF
                   6849: if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6850:   rm -rf conftest*
                   6851:   eval "ac_cv_func_socket=yes"
                   6852: else
                   6853:   echo "configure: failed program was:" >&5
                   6854:   cat conftest.$ac_ext >&5
                   6855:   rm -rf conftest*
                   6856:   eval "ac_cv_func_socket=no"
                   6857: fi
                   6858: rm -f conftest*
                   6859: fi
                   6860:
                   6861: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
                   6862:   echo "$ac_t""yes" 1>&6
                   6863:   :
                   6864: else
                   6865:   echo "$ac_t""no" 1>&6
                   6866: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
                   6867: echo "configure:6868: checking for socket in -lsocket" >&5
                   6868: if test -n ""; then
                   6869:   ac_lib_var=`echo socket'_'socket | sed 'y% ./+-%___p_%'`
                   6870: else
                   6871:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   6872: fi
                   6873: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6874:   echo $ac_n "(cached) $ac_c" 1>&6
                   6875: else
                   6876:   ac_save_LIBS="$LIBS"
                   6877: LIBS="-lsocket  $LIBS"
                   6878: cat > conftest.$ac_ext <<EOF
                   6879: #line 6880 "configure"
                   6880: #include "confdefs.h"
                   6881: /* Override any gcc2 internal prototype to avoid an error.  */
                   6882: /* We use char because int might match the return type of a gcc2
                   6883:     builtin and then its argument prototype would still apply.  */
                   6884: char socket();
                   6885:
                   6886: int main() {
                   6887: socket()
                   6888: ; return 0; }
                   6889: EOF
                   6890: if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6891:   rm -rf conftest*
                   6892:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6893: else
                   6894:   echo "configure: failed program was:" >&5
                   6895:   cat conftest.$ac_ext >&5
                   6896:   rm -rf conftest*
                   6897:   eval "ac_cv_lib_$ac_lib_var=no"
                   6898: fi
                   6899: rm -f conftest*
                   6900: LIBS="$ac_save_LIBS"
                   6901:
                   6902: fi
                   6903: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6904:   echo "$ac_t""yes" 1>&6
                   6905:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   6906: else
                   6907:   echo "$ac_t""no" 1>&6
                   6908: echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
                   6909: echo "configure:6910: checking for socket in -linet" >&5
                   6910: if test -n ""; then
                   6911:   ac_lib_var=`echo inet'_'socket | sed 'y% ./+-%___p_%'`
                   6912: else
                   6913:   ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
                   6914: fi
                   6915: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6916:   echo $ac_n "(cached) $ac_c" 1>&6
                   6917: else
                   6918:   ac_save_LIBS="$LIBS"
                   6919: LIBS="-linet  $LIBS"
                   6920: cat > conftest.$ac_ext <<EOF
                   6921: #line 6922 "configure"
                   6922: #include "confdefs.h"
                   6923: /* Override any gcc2 internal prototype to avoid an error.  */
                   6924: /* We use char because int might match the return type of a gcc2
                   6925:     builtin and then its argument prototype would still apply.  */
                   6926: char socket();
                   6927:
                   6928: int main() {
                   6929: socket()
                   6930: ; return 0; }
                   6931: EOF
                   6932: if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6933:   rm -rf conftest*
                   6934:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6935: else
                   6936:   echo "configure: failed program was:" >&5
                   6937:   cat conftest.$ac_ext >&5
                   6938:   rm -rf conftest*
                   6939:   eval "ac_cv_lib_$ac_lib_var=no"
                   6940: fi
                   6941: rm -f conftest*
                   6942: LIBS="$ac_save_LIBS"
                   6943:
                   6944: fi
                   6945: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6946:   echo "$ac_t""yes" 1>&6
                   6947:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   6948: else
                   6949:   echo "$ac_t""no" 1>&6
                   6950: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
                   6951: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
                   6952: echo "configure:6953: checking for socket in -lsocket" >&5
                   6953: if test -n "-lnsl"; then
                   6954:   ac_lib_var=`echo socket'_'socket-lnsl | sed 'y% ./+-%___p_%'`
                   6955: else
                   6956:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   6957: fi
                   6958: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6959:   echo $ac_n "(cached) $ac_c" 1>&6
                   6960: else
                   6961:   ac_save_LIBS="$LIBS"
                   6962: LIBS="-lsocket -lnsl $LIBS"
                   6963: cat > conftest.$ac_ext <<EOF
                   6964: #line 6965 "configure"
                   6965: #include "confdefs.h"
                   6966: /* Override any gcc2 internal prototype to avoid an error.  */
                   6967: /* We use char because int might match the return type of a gcc2
                   6968:     builtin and then its argument prototype would still apply.  */
                   6969: char socket();
                   6970:
                   6971: int main() {
                   6972: socket()
                   6973: ; return 0; }
                   6974: EOF
                   6975: if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   6976:   rm -rf conftest*
                   6977:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6978: else
                   6979:   echo "configure: failed program was:" >&5
                   6980:   cat conftest.$ac_ext >&5
                   6981:   rm -rf conftest*
                   6982:   eval "ac_cv_lib_$ac_lib_var=no"
                   6983: fi
                   6984: rm -f conftest*
                   6985: LIBS="$ac_save_LIBS"
                   6986:
                   6987: fi
                   6988: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6989:   echo "$ac_t""yes" 1>&6
                   6990:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   6991: else
                   6992:   echo "$ac_t""no" 1>&6
                   6993: fi
                   6994:
                   6995: fi
                   6996:
                   6997: fi
                   6998:
                   6999: fi
                   7000:
                   7001: echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
                   7002: echo "configure:7003: checking for inet_addr" >&5
                   7003: if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
                   7004:   echo $ac_n "(cached) $ac_c" 1>&6
                   7005: else
                   7006:   cat > conftest.$ac_ext <<EOF
                   7007: #line 7008 "configure"
                   7008: #include "confdefs.h"
                   7009: /* System header to define __stub macros and hopefully few prototypes,
                   7010:     which can conflict with char inet_addr(); below.  */
                   7011: #include <assert.h>
                   7012: /* Override any gcc2 internal prototype to avoid an error.  */
                   7013: /* We use char because int might match the return type of a gcc2
                   7014:     builtin and then its argument prototype would still apply.  */
                   7015: char inet_addr();
                   7016:
                   7017: int main() {
                   7018:
                   7019: /* The GNU C library defines this for functions which it implements
                   7020:     to always fail with ENOSYS.  Some functions are actually named
                   7021:     something starting with __ and the normal name is an alias.  */
                   7022: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
                   7023: choke me
                   7024: #else
                   7025: inet_addr();
                   7026: #endif
                   7027:
                   7028: ; return 0; }
                   7029: EOF
                   7030: if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7031:   rm -rf conftest*
                   7032:   eval "ac_cv_func_inet_addr=yes"
                   7033: else
                   7034:   echo "configure: failed program was:" >&5
                   7035:   cat conftest.$ac_ext >&5
                   7036:   rm -rf conftest*
                   7037:   eval "ac_cv_func_inet_addr=no"
                   7038: fi
                   7039: rm -f conftest*
                   7040: fi
                   7041:
                   7042: if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then
                   7043:   echo "$ac_t""yes" 1>&6
                   7044:   :
                   7045: else
                   7046:   echo "$ac_t""no" 1>&6
                   7047: echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
                   7048: echo "configure:7049: checking for inet_addr in -lnsl" >&5
                   7049: if test -n ""; then
                   7050:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7051: else
                   7052:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
                   7053: fi
                   7054: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7055:   echo $ac_n "(cached) $ac_c" 1>&6
                   7056: else
                   7057:   ac_save_LIBS="$LIBS"
                   7058: LIBS="-lnsl  $LIBS"
                   7059: cat > conftest.$ac_ext <<EOF
                   7060: #line 7061 "configure"
                   7061: #include "confdefs.h"
                   7062: /* Override any gcc2 internal prototype to avoid an error.  */
                   7063: /* We use char because int might match the return type of a gcc2
                   7064:     builtin and then its argument prototype would still apply.  */
                   7065: char inet_addr();
                   7066:
                   7067: int main() {
                   7068: inet_addr()
                   7069: ; return 0; }
                   7070: EOF
                   7071: if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7072:   rm -rf conftest*
                   7073:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7074: else
                   7075:   echo "configure: failed program was:" >&5
                   7076:   cat conftest.$ac_ext >&5
                   7077:   rm -rf conftest*
                   7078:   eval "ac_cv_lib_$ac_lib_var=no"
                   7079: fi
                   7080: rm -f conftest*
                   7081: LIBS="$ac_save_LIBS"
                   7082:
                   7083: fi
                   7084: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7085:   echo "$ac_t""yes" 1>&6
                   7086:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7087: else
                   7088:   echo "$ac_t""no" 1>&6
                   7089: echo $ac_n "checking for inet_addr in -linet""... $ac_c" 1>&6
                   7090: echo "configure:7091: checking for inet_addr in -linet" >&5
                   7091: if test -n ""; then
                   7092:   ac_lib_var=`echo inet'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7093: else
                   7094:   ac_lib_var=`echo inet'_'inet_addr | sed 'y%./+-%__p_%'`
                   7095: fi
                   7096: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7097:   echo $ac_n "(cached) $ac_c" 1>&6
                   7098: else
                   7099:   ac_save_LIBS="$LIBS"
                   7100: LIBS="-linet  $LIBS"
                   7101: cat > conftest.$ac_ext <<EOF
                   7102: #line 7103 "configure"
                   7103: #include "confdefs.h"
                   7104: /* Override any gcc2 internal prototype to avoid an error.  */
                   7105: /* We use char because int might match the return type of a gcc2
                   7106:     builtin and then its argument prototype would still apply.  */
                   7107: char inet_addr();
                   7108:
                   7109: int main() {
                   7110: inet_addr()
                   7111: ; return 0; }
                   7112: EOF
                   7113: if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7114:   rm -rf conftest*
                   7115:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7116: else
                   7117:   echo "configure: failed program was:" >&5
                   7118:   cat conftest.$ac_ext >&5
                   7119:   rm -rf conftest*
                   7120:   eval "ac_cv_lib_$ac_lib_var=no"
                   7121: fi
                   7122: rm -f conftest*
                   7123: LIBS="$ac_save_LIBS"
                   7124:
                   7125: fi
                   7126: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7127:   echo "$ac_t""yes" 1>&6
                   7128:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7129: else
                   7130:   echo "$ac_t""no" 1>&6
                   7131: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
                   7132: echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
                   7133: echo "configure:7134: checking for inet_addr in -lsocket" >&5
                   7134: if test -n "-lnsl"; then
                   7135:   ac_lib_var=`echo socket'_'inet_addr-lnsl | sed 'y% ./+-%___p_%'`
                   7136: else
                   7137:   ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
                   7138: fi
                   7139: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7140:   echo $ac_n "(cached) $ac_c" 1>&6
                   7141: else
                   7142:   ac_save_LIBS="$LIBS"
                   7143: LIBS="-lsocket -lnsl $LIBS"
                   7144: cat > conftest.$ac_ext <<EOF
                   7145: #line 7146 "configure"
                   7146: #include "confdefs.h"
                   7147: /* Override any gcc2 internal prototype to avoid an error.  */
                   7148: /* We use char because int might match the return type of a gcc2
                   7149:     builtin and then its argument prototype would still apply.  */
                   7150: char inet_addr();
                   7151:
                   7152: int main() {
                   7153: inet_addr()
                   7154: ; return 0; }
                   7155: EOF
                   7156: if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7157:   rm -rf conftest*
                   7158:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7159: else
                   7160:   echo "configure: failed program was:" >&5
                   7161:   cat conftest.$ac_ext >&5
                   7162:   rm -rf conftest*
                   7163:   eval "ac_cv_lib_$ac_lib_var=no"
                   7164: fi
                   7165: rm -f conftest*
                   7166: LIBS="$ac_save_LIBS"
                   7167:
                   7168: fi
                   7169: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7170:   echo "$ac_t""yes" 1>&6
                   7171:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   7172: else
                   7173:   echo "$ac_t""no" 1>&6
                   7174: fi
                   7175:
                   7176: fi
                   7177:
                   7178: fi
                   7179:
                   7180: fi
                   7181:
                   7182: echo $ac_n "checking for syslog""... $ac_c" 1>&6
                   7183: echo "configure:7184: checking for syslog" >&5
                   7184: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
                   7185:   echo $ac_n "(cached) $ac_c" 1>&6
                   7186: else
                   7187:   cat > conftest.$ac_ext <<EOF
                   7188: #line 7189 "configure"
                   7189: #include "confdefs.h"
                   7190: /* System header to define __stub macros and hopefully few prototypes,
                   7191:     which can conflict with char syslog(); below.  */
                   7192: #include <assert.h>
                   7193: /* Override any gcc2 internal prototype to avoid an error.  */
                   7194: /* We use char because int might match the return type of a gcc2
                   7195:     builtin and then its argument prototype would still apply.  */
                   7196: char syslog();
                   7197:
                   7198: int main() {
                   7199:
                   7200: /* The GNU C library defines this for functions which it implements
                   7201:     to always fail with ENOSYS.  Some functions are actually named
                   7202:     something starting with __ and the normal name is an alias.  */
                   7203: #if defined (__stub_syslog) || defined (__stub___syslog)
                   7204: choke me
                   7205: #else
                   7206: syslog();
                   7207: #endif
                   7208:
                   7209: ; return 0; }
                   7210: EOF
                   7211: if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7212:   rm -rf conftest*
                   7213:   eval "ac_cv_func_syslog=yes"
                   7214: else
                   7215:   echo "configure: failed program was:" >&5
                   7216:   cat conftest.$ac_ext >&5
                   7217:   rm -rf conftest*
                   7218:   eval "ac_cv_func_syslog=no"
                   7219: fi
                   7220: rm -f conftest*
                   7221: fi
                   7222:
                   7223: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
                   7224:   echo "$ac_t""yes" 1>&6
                   7225:   :
                   7226: else
                   7227:   echo "$ac_t""no" 1>&6
                   7228: echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
                   7229: echo "configure:7230: checking for syslog in -lsocket" >&5
                   7230: if test -n ""; then
                   7231:   ac_lib_var=`echo socket'_'syslog | sed 'y% ./+-%___p_%'`
                   7232: else
                   7233:   ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
                   7234: fi
                   7235: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7236:   echo $ac_n "(cached) $ac_c" 1>&6
                   7237: else
                   7238:   ac_save_LIBS="$LIBS"
                   7239: LIBS="-lsocket  $LIBS"
                   7240: cat > conftest.$ac_ext <<EOF
                   7241: #line 7242 "configure"
                   7242: #include "confdefs.h"
                   7243: /* Override any gcc2 internal prototype to avoid an error.  */
                   7244: /* We use char because int might match the return type of a gcc2
                   7245:     builtin and then its argument prototype would still apply.  */
                   7246: char syslog();
                   7247:
                   7248: int main() {
                   7249: syslog()
                   7250: ; return 0; }
                   7251: EOF
                   7252: if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7253:   rm -rf conftest*
                   7254:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7255: else
                   7256:   echo "configure: failed program was:" >&5
                   7257:   cat conftest.$ac_ext >&5
                   7258:   rm -rf conftest*
                   7259:   eval "ac_cv_lib_$ac_lib_var=no"
                   7260: fi
                   7261: rm -f conftest*
                   7262: LIBS="$ac_save_LIBS"
                   7263:
                   7264: fi
                   7265: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7266:   echo "$ac_t""yes" 1>&6
                   7267:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   7268: else
                   7269:   echo "$ac_t""no" 1>&6
                   7270: echo $ac_n "checking for syslog in -lnsl""... $ac_c" 1>&6
                   7271: echo "configure:7272: checking for syslog in -lnsl" >&5
                   7272: if test -n ""; then
                   7273:   ac_lib_var=`echo nsl'_'syslog | sed 'y% ./+-%___p_%'`
                   7274: else
                   7275:   ac_lib_var=`echo nsl'_'syslog | sed 'y%./+-%__p_%'`
                   7276: fi
                   7277: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7278:   echo $ac_n "(cached) $ac_c" 1>&6
                   7279: else
                   7280:   ac_save_LIBS="$LIBS"
                   7281: LIBS="-lnsl  $LIBS"
                   7282: cat > conftest.$ac_ext <<EOF
                   7283: #line 7284 "configure"
                   7284: #include "confdefs.h"
                   7285: /* Override any gcc2 internal prototype to avoid an error.  */
                   7286: /* We use char because int might match the return type of a gcc2
                   7287:     builtin and then its argument prototype would still apply.  */
                   7288: char syslog();
                   7289:
                   7290: int main() {
                   7291: syslog()
                   7292: ; return 0; }
                   7293: EOF
                   7294: if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7295:   rm -rf conftest*
                   7296:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7297: else
                   7298:   echo "configure: failed program was:" >&5
                   7299:   cat conftest.$ac_ext >&5
                   7300:   rm -rf conftest*
                   7301:   eval "ac_cv_lib_$ac_lib_var=no"
                   7302: fi
                   7303: rm -f conftest*
                   7304: LIBS="$ac_save_LIBS"
                   7305:
                   7306: fi
                   7307: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7308:   echo "$ac_t""yes" 1>&6
                   7309:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7310: else
                   7311:   echo "$ac_t""no" 1>&6
                   7312: echo $ac_n "checking for syslog in -linet""... $ac_c" 1>&6
                   7313: echo "configure:7314: checking for syslog in -linet" >&5
                   7314: if test -n ""; then
                   7315:   ac_lib_var=`echo inet'_'syslog | sed 'y% ./+-%___p_%'`
                   7316: else
                   7317:   ac_lib_var=`echo inet'_'syslog | sed 'y%./+-%__p_%'`
                   7318: fi
                   7319: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7320:   echo $ac_n "(cached) $ac_c" 1>&6
                   7321: else
                   7322:   ac_save_LIBS="$LIBS"
                   7323: LIBS="-linet  $LIBS"
                   7324: cat > conftest.$ac_ext <<EOF
                   7325: #line 7326 "configure"
                   7326: #include "confdefs.h"
                   7327: /* Override any gcc2 internal prototype to avoid an error.  */
                   7328: /* We use char because int might match the return type of a gcc2
                   7329:     builtin and then its argument prototype would still apply.  */
                   7330: char syslog();
                   7331:
                   7332: int main() {
                   7333: syslog()
                   7334: ; return 0; }
                   7335: EOF
                   7336: if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7337:   rm -rf conftest*
                   7338:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7339: else
                   7340:   echo "configure: failed program was:" >&5
                   7341:   cat conftest.$ac_ext >&5
                   7342:   rm -rf conftest*
                   7343:   eval "ac_cv_lib_$ac_lib_var=no"
                   7344: fi
                   7345: rm -f conftest*
                   7346: LIBS="$ac_save_LIBS"
                   7347:
                   7348: fi
                   7349: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7350:   echo "$ac_t""yes" 1>&6
                   7351:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7352: else
                   7353:   echo "$ac_t""no" 1>&6
                   7354: fi
                   7355:
                   7356: fi
                   7357:
                   7358: fi
                   7359:
                   7360: fi
                   7361:
                   7362: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   7363:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   7364: # for constant arguments.  Useless!
                   7365: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
                   7366: echo "configure:7367: checking for working alloca.h" >&5
                   7367: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
                   7368:   echo $ac_n "(cached) $ac_c" 1>&6
                   7369: else
                   7370:   cat > conftest.$ac_ext <<EOF
                   7371: #line 7372 "configure"
                   7372: #include "confdefs.h"
                   7373: #include <alloca.h>
                   7374: int main() {
                   7375: char *p = alloca(2 * sizeof(int));
                   7376: ; return 0; }
                   7377: EOF
                   7378: if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7379:   rm -rf conftest*
                   7380:   ac_cv_header_alloca_h=yes
                   7381: else
                   7382:   echo "configure: failed program was:" >&5
                   7383:   cat conftest.$ac_ext >&5
                   7384:   rm -rf conftest*
                   7385:   ac_cv_header_alloca_h=no
                   7386: fi
                   7387: rm -f conftest*
                   7388: fi
                   7389:
                   7390: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
                   7391: if test $ac_cv_header_alloca_h = yes; then
                   7392:   cat >> confdefs.h <<\EOF
                   7393: #define HAVE_ALLOCA_H 1
                   7394: EOF
                   7395:
                   7396: fi
                   7397:
                   7398: echo $ac_n "checking for alloca""... $ac_c" 1>&6
                   7399: echo "configure:7400: checking for alloca" >&5
                   7400: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
                   7401:   echo $ac_n "(cached) $ac_c" 1>&6
                   7402: else
                   7403:   cat > conftest.$ac_ext <<EOF
                   7404: #line 7405 "configure"
                   7405: #include "confdefs.h"
                   7406:
                   7407: #ifdef __GNUC__
                   7408: # define alloca __builtin_alloca
                   7409: #else
                   7410: # if HAVE_ALLOCA_H
                   7411: #  include <alloca.h>
                   7412: # else
                   7413: #  ifdef _AIX
                   7414:  #pragma alloca
                   7415: #  else
                   7416: #   ifndef alloca /* predefined by HP cc +Olibcalls */
                   7417: char *alloca ();
                   7418: #   endif
                   7419: #  endif
                   7420: # endif
                   7421: #endif
                   7422:
                   7423: int main() {
                   7424: char *p = (char *) alloca(1);
                   7425: ; return 0; }
                   7426: EOF
                   7427: if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7428:   rm -rf conftest*
                   7429:   ac_cv_func_alloca_works=yes
                   7430: else
                   7431:   echo "configure: failed program was:" >&5
                   7432:   cat conftest.$ac_ext >&5
                   7433:   rm -rf conftest*
                   7434:   ac_cv_func_alloca_works=no
                   7435: fi
                   7436: rm -f conftest*
                   7437: fi
                   7438:
                   7439: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
                   7440: if test $ac_cv_func_alloca_works = yes; then
                   7441:   cat >> confdefs.h <<\EOF
                   7442: #define HAVE_ALLOCA 1
                   7443: EOF
                   7444:
                   7445: fi
                   7446:
                   7447: if test $ac_cv_func_alloca_works = no; then
                   7448:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   7449:   # that cause trouble.  Some versions do not even contain alloca or
                   7450:   # contain a buggy version.  If you still want to use their alloca,
                   7451:   # use ar to extract alloca.o from them instead of compiling alloca.c.
                   7452:   ALLOCA=alloca.o
                   7453:   cat >> confdefs.h <<\EOF
                   7454: #define C_ALLOCA 1
                   7455: EOF
                   7456:
                   7457:
                   7458: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
                   7459: echo "configure:7460: checking whether alloca needs Cray hooks" >&5
                   7460: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
                   7461:   echo $ac_n "(cached) $ac_c" 1>&6
                   7462: else
                   7463:   cat > conftest.$ac_ext <<EOF
                   7464: #line 7465 "configure"
                   7465: #include "confdefs.h"
                   7466: #if defined(CRAY) && ! defined(CRAY2)
                   7467: webecray
                   7468: #else
                   7469: wenotbecray
                   7470: #endif
                   7471:
                   7472: EOF
                   7473: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7474:   egrep "webecray" >/dev/null 2>&1; then
                   7475:   rm -rf conftest*
                   7476:   ac_cv_os_cray=yes
                   7477: else
                   7478:   rm -rf conftest*
                   7479:   ac_cv_os_cray=no
                   7480: fi
                   7481: rm -f conftest*
                   7482:
                   7483: fi
                   7484:
                   7485: echo "$ac_t""$ac_cv_os_cray" 1>&6
                   7486: if test $ac_cv_os_cray = yes; then
                   7487: for ac_func in _getb67 GETB67 getb67; do
                   7488:   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   7489: echo "configure:7490: checking for $ac_func" >&5
                   7490: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   7491:   echo $ac_n "(cached) $ac_c" 1>&6
                   7492: else
                   7493:   cat > conftest.$ac_ext <<EOF
                   7494: #line 7495 "configure"
                   7495: #include "confdefs.h"
                   7496: /* System header to define __stub macros and hopefully few prototypes,
                   7497:     which can conflict with char $ac_func(); below.  */
                   7498: #include <assert.h>
                   7499: /* Override any gcc2 internal prototype to avoid an error.  */
                   7500: /* We use char because int might match the return type of a gcc2
                   7501:     builtin and then its argument prototype would still apply.  */
                   7502: char $ac_func();
                   7503:
                   7504: int main() {
                   7505:
                   7506: /* The GNU C library defines this for functions which it implements
                   7507:     to always fail with ENOSYS.  Some functions are actually named
                   7508:     something starting with __ and the normal name is an alias.  */
                   7509: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7510: choke me
                   7511: #else
                   7512: $ac_func();
                   7513: #endif
                   7514:
                   7515: ; return 0; }
                   7516: EOF
                   7517: if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7518:   rm -rf conftest*
                   7519:   eval "ac_cv_func_$ac_func=yes"
                   7520: else
                   7521:   echo "configure: failed program was:" >&5
                   7522:   cat conftest.$ac_ext >&5
                   7523:   rm -rf conftest*
                   7524:   eval "ac_cv_func_$ac_func=no"
                   7525: fi
                   7526: rm -f conftest*
                   7527: fi
                   7528:
                   7529: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   7530:   echo "$ac_t""yes" 1>&6
                   7531:   cat >> confdefs.h <<EOF
                   7532: #define CRAY_STACKSEG_END $ac_func
                   7533: EOF
                   7534:
                   7535:   break
                   7536: else
                   7537:   echo "$ac_t""no" 1>&6
                   7538: fi
                   7539:
                   7540: done
                   7541: fi
                   7542:
                   7543: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
                   7544: echo "configure:7545: checking stack direction for C alloca" >&5
                   7545: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
                   7546:   echo $ac_n "(cached) $ac_c" 1>&6
                   7547: else
                   7548:   if test "$cross_compiling" = yes; then
                   7549:   ac_cv_c_stack_direction=0
                   7550: else
                   7551:   cat > conftest.$ac_ext <<EOF
                   7552: #line 7553 "configure"
                   7553: #include "confdefs.h"
                   7554: find_stack_direction ()
                   7555: {
                   7556:   static char *addr = 0;
                   7557:   auto char dummy;
                   7558:   if (addr == 0)
                   7559:     {
                   7560:       addr = &dummy;
                   7561:       return find_stack_direction ();
                   7562:     }
                   7563:   else
                   7564:     return (&dummy > addr) ? 1 : -1;
                   7565: }
                   7566: main ()
                   7567: {
                   7568:   exit (find_stack_direction() < 0);
                   7569: }
                   7570: EOF
                   7571: if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
                   7572: then
                   7573:   ac_cv_c_stack_direction=1
                   7574: else
                   7575:   echo "configure: failed program was:" >&5
                   7576:   cat conftest.$ac_ext >&5
                   7577:   rm -fr conftest*
                   7578:   ac_cv_c_stack_direction=-1
                   7579: fi
                   7580: rm -fr conftest*
                   7581: fi
                   7582:
                   7583: fi
                   7584:
                   7585: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
                   7586: cat >> confdefs.h <<EOF
                   7587: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   7588: EOF
                   7589:
                   7590: fi
                   7591:
                   7592: fi
                   7593:
                   7594: if test "$with_kerb5" = "yes"; then
                   7595:     cat >> confdefs.h <<\EOF
                   7596: #define HAVE_KERB5 1
                   7597: EOF
                   7598:
                   7599:     if test -f "/usr/local/include/krb5.h"; then
                   7600:        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
                   7601:     elif test -f "/usr/local/kerberos/include/krb5.h"; then
                   7602:        CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
                   7603:     elif test -f "/usr/local/krb5/include/krb5.h"; then
                   7604:        CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
                   7605:     else
                   7606:        echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7607:     fi
                   7608:
                   7609:     if test -f "/usr/local/lib/libkrb5.a"; then
                   7610:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7611:     elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
                   7612:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
                   7613:     elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
                   7614:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
                   7615:     else
                   7616:        echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7617:     fi
                   7618:
                   7619:     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   7620:     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
                   7621: fi
                   7622:
                   7623: if test "$with_kerb4" = "yes"; then
                   7624:     cat >> confdefs.h <<\EOF
                   7625: #define HAVE_KERB4 1
                   7626: EOF
                   7627:
                   7628:     if test -f "/usr/include/kerberosIV/krb.h"; then
                   7629:        CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
                   7630:     elif test -f "/usr/local/include/kerberosIV/krb.h"; then
                   7631:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
                   7632:     elif test -f "/usr/kerberos/include/krb.h"; then
                   7633:        CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
                   7634:     elif test -f "/usr/local/kerberos/include/krb.h"; then
                   7635:        CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
                   7636:     else
                   7637:        echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7638:     fi
                   7639:
                   7640:     if test -d "/usr/kerberos/lib"; then
                   7641:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
                   7642:     elif test -d "/usr/lib/kerberos"; then
                   7643:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
                   7644:     elif test -f "/usr/local/lib/libkrb.a"; then
                   7645:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7646:     elif test ! -f "/usr/lib/libkrb.a"; then
                   7647:        echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7648:     fi
                   7649:
                   7650:     echo $ac_n "checking for -ldes""... $ac_c" 1>&6
                   7651: echo "configure:7652: checking for -ldes" >&5
                   7652: if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
                   7653:   echo $ac_n "(cached) $ac_c" 1>&6
                   7654: else
                   7655:   ac_save_LIBS="$LIBS"
                   7656: LIBS="-ldes  $LIBS"
                   7657: cat > conftest.$ac_ext <<EOF
                   7658: #line 7659 "configure"
                   7659: #include "confdefs.h"
                   7660:
                   7661: int main() {
                   7662: main()
                   7663: ; return 0; }
                   7664: EOF
                   7665: if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
                   7666:   rm -rf conftest*
                   7667:   ac_cv_lib_des=yes
                   7668: else
                   7669:   echo "configure: failed program was:" >&5
                   7670:   cat conftest.$ac_ext >&5
                   7671:   rm -rf conftest*
                   7672:   ac_cv_lib_des=no
                   7673: fi
                   7674: rm -f conftest*
                   7675: LIBS="$ac_save_LIBS"
                   7676:
                   7677: fi
                   7678: echo "$ac_t""$ac_cv_lib_des" 1>&6
                   7679: if test "$ac_cv_lib_des" = yes; then
                   7680:   SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
                   7681: else
                   7682:   SUDO_LIBS="${SUDO_LIBS} -lkrb"
                   7683: fi
                   7684:
                   7685:     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
                   7686: fi
                   7687:
                   7688: if test "$with_pam" = "yes"; then
                   7689:     SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
                   7690: fi
                   7691:
                   7692: if test "$with_AFS" = "yes"; then
                   7693:
                   7694:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   7695:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   7696:     for i in $AFSLIBDIRS; do
                   7697:        if test -d ${i}; then
                   7698:            SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
                   7699:            FOUND_AFSLIBDIR=true
                   7700:        fi
                   7701:     done
                   7702:     if test -z "$FOUND_AFSLIBDIR"; then
                   7703:        echo '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.'
                   7704:     fi
                   7705:
                   7706:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   7707:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   7708:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   7709:     for i in $AFSLIBDIRS; do
                   7710:        if test -f ${i}/util.a; then
                   7711:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   7712:            FOUND_UTIL_A=true
                   7713:            break;
                   7714:        fi
                   7715:     done
                   7716:     if test -z "$FOUND_UTIL_A"; then
                   7717:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   7718:     fi
                   7719:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   7720:
                   7721:     # AFS includes may live in /usr/include on some machines...
                   7722:     for i in /usr/afsws/include; do
                   7723:        if test -d ${i}; then
                   7724:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   7725:            FOUND_AFSINCDIR=true
                   7726:        fi
                   7727:     done
                   7728:
                   7729:     if test -z "$FOUND_AFSLIBDIR"; then
                   7730:        echo '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.'
                   7731:     fi
                   7732: fi
                   7733:
                   7734: if test "$with_DCE" = "yes"; then
                   7735:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   7736:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   7737: fi
                   7738:
                   7739: if test "$with_skey" = "yes"; then
                   7740:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   7741:     if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
                   7742:        :
                   7743:     elif test -f /usr/local/include/skey.h; then
                   7744:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7745:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7746:     elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
                   7747:        CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
                   7748:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
                   7749:     else
                   7750:        echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS'
                   7751:     fi
                   7752: fi
                   7753:
                   7754: if test "$with_opie" = "yes"; then
                   7755:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   7756:     if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
                   7757:        :
                   7758:     elif test -f /usr/local/include/opie.h; then
                   7759:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7760:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7761:     else
                   7762:        echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
                   7763:     fi
                   7764: fi
                   7765:
                   7766: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
                   7767:     if test "$with_SecurID" != "yes"; then
                   7768:        SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   7769:        CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   7770:     elif test -f /usr/ace/examples/sdiclient.a; then
                   7771:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
                   7772:        CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
                   7773:     else
                   7774:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
                   7775:        CPPFLAGS="${CPPFLAGS} -I/usr/ace"
                   7776:     fi
                   7777: fi
                   7778:
                   7779: if test "$with_fwtk" = "yes"; then
                   7780:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   7781: fi
                   7782:
                   7783: if test "$with_authenticate" = "yes"; then
                   7784:     SUDO_LIBS="${SUDO_LIBS} -ls"
                   7785: fi
                   7786:
                   7787: echo $ac_n "checking for log file location""... $ac_c" 1>&6
                   7788: echo "configure:7789: checking for log file location" >&5
                   7789: if test -n "$with_logpath"; then
                   7790:     echo "$ac_t""$with_logpath" 1>&6
                   7791:     cat >> confdefs.h <<EOF
                   7792: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   7793: EOF
                   7794:
                   7795: elif test -d "/var/log"; then
                   7796:     echo "$ac_t""/var/log/sudo.log" 1>&6
                   7797:     cat >> confdefs.h <<\EOF
                   7798: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   7799: EOF
                   7800:
                   7801: elif test -d "/var/adm"; then
                   7802:     echo "$ac_t""/var/adm/sudo.log" 1>&6
                   7803:     cat >> confdefs.h <<\EOF
                   7804: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   7805: EOF
                   7806:
                   7807: elif test -d "/usr/adm"; then
                   7808:     echo "$ac_t""/usr/adm/sudo.log" 1>&6
                   7809:     cat >> confdefs.h <<\EOF
                   7810: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   7811: EOF
                   7812:
                   7813: else
                   7814:     echo "$ac_t""unknown" 1>&6
                   7815: fi
                   7816:
                   7817: echo $ac_n "checking for timestamp file location""... $ac_c" 1>&6
                   7818: echo "configure:7819: checking for timestamp file location" >&5
                   7819: if test -n "$with_timedir"; then
                   7820:     echo "$ac_t""$with_timedir" 1>&6
                   7821:     cat >> confdefs.h <<EOF
                   7822: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   7823: EOF
                   7824:
                   7825: elif test -d "/var/run"; then
                   7826:     echo "$ac_t""/var/run/sudo" 1>&6
                   7827:     cat >> confdefs.h <<\EOF
                   7828: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   7829: EOF
                   7830:
                   7831: elif test -d "/tmp"; then
                   7832:     echo "$ac_t""/tmp/.odus" 1>&6
                   7833:     cat >> confdefs.h <<\EOF
                   7834: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
                   7835: EOF
                   7836:
                   7837: else
                   7838:     echo "$ac_t""unknown" 1>&6
                   7839: fi
                   7840:
                   7841:
                   7842: if test "$with_passwd" = "no"; then
                   7843:     cat >> confdefs.h <<\EOF
                   7844: #define WITHOUT_PASSWD 1
                   7845: EOF
                   7846:
                   7847:     if test -z "$AUTH_OBJS"; then
                   7848:        { echo "configure: error: no authentication methods defined." 1>&2; exit 1; }
                   7849:     fi
                   7850: else
                   7851:     if test -n "$SECUREWARE"; then
                   7852:        AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
                   7853:     else
                   7854:        AUTH_OBJS="${AUTH_OBJS} passwd.o"
                   7855:     fi
                   7856: fi
                   7857:
                   7858: if test -n "$LIBS"; then
                   7859:     L="$LIBS"
                   7860:     LIBS=
                   7861:     for l in ${L}; do
                   7862:        dupe=0
                   7863:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   7864:            test $l = $sl && dupe=1
                   7865:        done
                   7866:        test $dupe = 0 && LIBS="${LIBS} $l"
                   7867:     done
                   7868: fi
                   7869:
                   7870: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   7871:
                   7872: trap '' 1 2 15
                   7873: cat > confcache <<\EOF
                   7874: # This file is a shell script that caches the results of configure
                   7875: # tests run on this system so they can be shared between configure
                   7876: # scripts and configure runs.  It is not useful on other systems.
                   7877: # If it contains results you don't want to keep, you may remove or edit it.
                   7878: #
                   7879: # By default, configure uses ./config.cache as the cache file,
                   7880: # creating it if it does not exist already.  You can give configure
                   7881: # the --cache-file=FILE option to use a different cache file; that is
                   7882: # what configure does when it calls configure scripts in
                   7883: # subdirectories, so they share the cache.
                   7884: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   7885: # config.status only pays attention to the cache file if you give it the
                   7886: # --recheck option to rerun configure.
                   7887: #
                   7888: EOF
                   7889: # The following way of writing the cache mishandles newlines in values,
                   7890: # but we know of no workaround that is simple, portable, and efficient.
                   7891: # So, don't put newlines in cache variables' values.
                   7892: # Ultrix sh set writes to stderr and can't be redirected directly,
                   7893: # and sets the high bit in the cache file unless we assign to the vars.
                   7894: (set) 2>&1 |
                   7895:   case `(ac_space=' '; set) 2>&1` in
                   7896:   *ac_space=\ *)
                   7897:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   7898:     # turns \\\\ into \\, and sed turns \\ into \).
                   7899:     sed -n \
                   7900:       -e "s/'/'\\\\''/g" \
                   7901:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   7902:     ;;
                   7903:   *)
                   7904:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   7905:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   7906:     ;;
                   7907:   esac >> confcache
                   7908: if cmp -s $cache_file confcache; then
                   7909:   :
                   7910: else
                   7911:   if test -w $cache_file; then
                   7912:     echo "updating cache $cache_file"
                   7913:     cat confcache > $cache_file
                   7914:   else
                   7915:     echo "not updating unwritable cache $cache_file"
                   7916:   fi
                   7917: fi
                   7918: rm -f confcache
                   7919:
                   7920: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   7921:
                   7922: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   7923: # Let make expand exec_prefix.
                   7924: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   7925:
                   7926: # Any assignment to VPATH causes Sun make to only execute
                   7927: # the first set of double-colon rules, so remove it if not needed.
                   7928: # If there is a colon in the path, we need to keep it.
                   7929: if test "x$srcdir" = x.; then
                   7930:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   7931: fi
                   7932:
                   7933: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   7934:
                   7935: DEFS=-DHAVE_CONFIG_H
                   7936:
                   7937: # Without the "./", some shells look in PATH for config.status.
                   7938: : ${CONFIG_STATUS=./config.status}
                   7939:
                   7940: echo creating $CONFIG_STATUS
                   7941: rm -f $CONFIG_STATUS
                   7942: cat > $CONFIG_STATUS <<EOF
                   7943: #! /bin/sh
                   7944: # Generated automatically by configure.
                   7945: # Run this file to recreate the current configuration.
                   7946: # This directory was configured as follows,
                   7947: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   7948: #
                   7949: # $0 $ac_configure_args
                   7950: #
                   7951: # Compiler output produced by configure, useful for debugging
                   7952: # configure, is in ./config.log if it exists.
                   7953:
                   7954: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   7955: for ac_option
                   7956: do
                   7957:   case "\$ac_option" in
                   7958:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   7959:     echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion
                   7960:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   7961:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   7962:     echo "$CONFIG_STATUS generated by autoconf version 2.12"
                   7963:     exit 0 ;;
                   7964:   -help | --help | --hel | --he | --h)
                   7965:     echo "\$ac_cs_usage"; exit 0 ;;
                   7966:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   7967:   esac
                   7968: done
                   7969:
                   7970: ac_given_srcdir=$srcdir
                   7971:
                   7972: trap 'rm -fr `echo "Makefile config.h pathnames.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   7973: EOF
                   7974: cat >> $CONFIG_STATUS <<EOF
                   7975:
                   7976: # Protect against being on the right side of a sed subst in config.status.
                   7977: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   7978:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   7979: $ac_vpsub
                   7980: $extrasub
                   7981: s%@CFLAGS@%$CFLAGS%g
                   7982: s%@CPPFLAGS@%$CPPFLAGS%g
                   7983: s%@CXXFLAGS@%$CXXFLAGS%g
                   7984: s%@DEFS@%$DEFS%g
                   7985: s%@LDFLAGS@%$LDFLAGS%g
                   7986: s%@LIBS@%$LIBS%g
                   7987: s%@exec_prefix@%$exec_prefix%g
                   7988: s%@prefix@%$prefix%g
                   7989: s%@program_transform_name@%$program_transform_name%g
                   7990: s%@bindir@%$bindir%g
                   7991: s%@sbindir@%$sbindir%g
                   7992: s%@libexecdir@%$libexecdir%g
                   7993: s%@datadir@%$datadir%g
                   7994: s%@sysconfdir@%$sysconfdir%g
                   7995: s%@sharedstatedir@%$sharedstatedir%g
                   7996: s%@localstatedir@%$localstatedir%g
                   7997: s%@libdir@%$libdir%g
                   7998: s%@includedir@%$includedir%g
                   7999: s%@oldincludedir@%$oldincludedir%g
                   8000: s%@infodir@%$infodir%g
                   8001: s%@mandir@%$mandir%g
                   8002: s%@PROGS@%$PROGS%g
                   8003: s%@SUDO_LDFLAGS@%$SUDO_LDFLAGS%g
                   8004: s%@SUDO_LIBS@%$SUDO_LIBS%g
                   8005: s%@NET_LIBS@%$NET_LIBS%g
                   8006: s%@AFS_LIBS@%$AFS_LIBS%g
                   8007: s%@OSDEFS@%$OSDEFS%g
                   8008: s%@AUTH_OBJS@%$AUTH_OBJS%g
                   8009: s%@LIBOBJS@%$LIBOBJS%g
                   8010: s%@MANTYPE@%$MANTYPE%g
                   8011: s%@MAN_POSTINSTALL@%$MAN_POSTINSTALL%g
                   8012: s%@SUDOERS_MODE@%$SUDOERS_MODE%g
                   8013: s%@SUDOERS_UID@%$SUDOERS_UID%g
                   8014: s%@SUDOERS_GID@%$SUDOERS_GID%g
                   8015: s%@DEV@%$DEV%g
                   8016: s%@EGREPPROG@%$EGREPPROG%g
                   8017: s%@CC@%$CC%g
                   8018: s%@CPP@%$CPP%g
                   8019: s%@UNAMEPROG@%$UNAMEPROG%g
                   8020: s%@TRPROG@%$TRPROG%g
                   8021: s%@SEDPROG@%$SEDPROG%g
                   8022: s%@NROFFPROG@%$NROFFPROG%g
                   8023: s%@host@%$host%g
                   8024: s%@host_alias@%$host_alias%g
                   8025: s%@host_cpu@%$host_cpu%g
                   8026: s%@host_vendor@%$host_vendor%g
                   8027: s%@host_os@%$host_os%g
                   8028: s%@YACC@%$YACC%g
                   8029: s%@ALLOCA@%$ALLOCA%g
                   8030:
                   8031: CEOF
                   8032: EOF
                   8033:
                   8034: cat >> $CONFIG_STATUS <<\EOF
                   8035:
                   8036: # Split the substitutions into bite-sized pieces for seds with
                   8037: # small command number limits, like on Digital OSF/1 and HP-UX.
                   8038: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   8039: ac_file=1 # Number of current file.
                   8040: ac_beg=1 # First line for current file.
                   8041: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   8042: ac_more_lines=:
                   8043: ac_sed_cmds=""
                   8044: while $ac_more_lines; do
                   8045:   if test $ac_beg -gt 1; then
                   8046:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   8047:   else
                   8048:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   8049:   fi
                   8050:   if test ! -s conftest.s$ac_file; then
                   8051:     ac_more_lines=false
                   8052:     rm -f conftest.s$ac_file
                   8053:   else
                   8054:     if test -z "$ac_sed_cmds"; then
                   8055:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   8056:     else
                   8057:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   8058:     fi
                   8059:     ac_file=`expr $ac_file + 1`
                   8060:     ac_beg=$ac_end
                   8061:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   8062:   fi
                   8063: done
                   8064: if test -z "$ac_sed_cmds"; then
                   8065:   ac_sed_cmds=cat
                   8066: fi
                   8067: EOF
                   8068:
                   8069: cat >> $CONFIG_STATUS <<EOF
                   8070:
                   8071: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
                   8072: EOF
                   8073: cat >> $CONFIG_STATUS <<\EOF
                   8074: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   8075:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8076:   case "$ac_file" in
                   8077:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8078:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8079:   *) ac_file_in="${ac_file}.in" ;;
                   8080:   esac
                   8081:
                   8082:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   8083:
                   8084:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   8085:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8086:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8087:     # The file is in a subdirectory.
                   8088:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8089:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   8090:     # A "../" for each directory in $ac_dir_suffix.
                   8091:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   8092:   else
                   8093:     ac_dir_suffix= ac_dots=
                   8094:   fi
                   8095:
                   8096:   case "$ac_given_srcdir" in
                   8097:   .)  srcdir=.
                   8098:       if test -z "$ac_dots"; then top_srcdir=.
                   8099:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   8100:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   8101:   *) # Relative path.
                   8102:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   8103:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   8104:   esac
                   8105:
                   8106:
                   8107:   echo creating "$ac_file"
                   8108:   rm -f "$ac_file"
                   8109:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   8110:   case "$ac_file" in
                   8111:   *Makefile*) ac_comsub="1i\\
                   8112: # $configure_input" ;;
                   8113:   *) ac_comsub= ;;
                   8114:   esac
                   8115:
                   8116:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8117:   sed -e "$ac_comsub
                   8118: s%@configure_input@%$configure_input%g
                   8119: s%@srcdir@%$srcdir%g
                   8120: s%@top_srcdir@%$top_srcdir%g
                   8121: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   8122: fi; done
                   8123: rm -f conftest.s*
                   8124:
                   8125: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   8126: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   8127: #
                   8128: # ac_d sets the value in "#define NAME VALUE" lines.
                   8129: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   8130: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   8131: ac_dC='\3'
                   8132: ac_dD='%g'
                   8133: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   8134: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8135: ac_uB='\([     ]\)%\1#\2define\3'
                   8136: ac_uC=' '
                   8137: ac_uD='\4%g'
                   8138: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   8139: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8140: ac_eB='$%\1#\2define\3'
                   8141: ac_eC=' '
                   8142: ac_eD='%g'
                   8143:
                   8144: if test "${CONFIG_HEADERS+set}" != set; then
                   8145: EOF
                   8146: cat >> $CONFIG_STATUS <<EOF
                   8147:   CONFIG_HEADERS="config.h pathnames.h"
                   8148: EOF
                   8149: cat >> $CONFIG_STATUS <<\EOF
                   8150: fi
                   8151: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   8152:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8153:   case "$ac_file" in
                   8154:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8155:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8156:   *) ac_file_in="${ac_file}.in" ;;
                   8157:   esac
                   8158:
                   8159:   echo creating $ac_file
                   8160:
                   8161:   rm -f conftest.frag conftest.in conftest.out
                   8162:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8163:   cat $ac_file_inputs > conftest.in
                   8164:
                   8165: EOF
                   8166:
                   8167: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   8168: # the proper values into config.h.in to produce config.h.  And first:
                   8169: # Protect against being on the right side of a sed subst in config.status.
                   8170: # Protect against being in an unquoted here document in config.status.
                   8171: rm -f conftest.vals
                   8172: cat > conftest.hdr <<\EOF
                   8173: s/[\\&%]/\\&/g
                   8174: s%[\\$`]%\\&%g
                   8175: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   8176: s%ac_d%ac_u%gp
                   8177: s%ac_u%ac_e%gp
                   8178: EOF
                   8179: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   8180: rm -f conftest.hdr
                   8181:
                   8182: # This sed command replaces #undef with comments.  This is necessary, for
                   8183: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   8184: # on some systems where configure will not decide to define it.
                   8185: cat >> conftest.vals <<\EOF
                   8186: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   8187: EOF
                   8188:
                   8189: # Break up conftest.vals because some shells have a limit on
                   8190: # the size of here documents, and old seds have small limits too.
                   8191:
                   8192: rm -f conftest.tail
                   8193: while :
                   8194: do
                   8195:   ac_lines=`grep -c . conftest.vals`
                   8196:   # grep -c gives empty output for an empty file on some AIX systems.
                   8197:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   8198:   # Write a limited-size here document to conftest.frag.
                   8199:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   8200:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   8201:   echo 'CEOF
                   8202:   sed -f conftest.frag conftest.in > conftest.out
                   8203:   rm -f conftest.in
                   8204:   mv conftest.out conftest.in
                   8205: ' >> $CONFIG_STATUS
                   8206:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   8207:   rm -f conftest.vals
                   8208:   mv conftest.tail conftest.vals
                   8209: done
                   8210: rm -f conftest.vals
                   8211:
                   8212: cat >> $CONFIG_STATUS <<\EOF
                   8213:   rm -f conftest.frag conftest.h
                   8214:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   8215:   cat conftest.in >> conftest.h
                   8216:   rm -f conftest.in
                   8217:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   8218:     echo "$ac_file is unchanged"
                   8219:     rm -f conftest.h
                   8220:   else
                   8221:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   8222:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8223:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8224:       # The file is in a subdirectory.
                   8225:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8226:     fi
                   8227:     rm -f $ac_file
                   8228:     mv conftest.h $ac_file
                   8229:   fi
                   8230: fi; done
                   8231:
                   8232: EOF
                   8233: cat >> $CONFIG_STATUS <<EOF
                   8234:
                   8235: EOF
                   8236: cat >> $CONFIG_STATUS <<\EOF
                   8237:
                   8238: exit 0
                   8239: EOF
                   8240: chmod +x $CONFIG_STATUS
                   8241: rm -fr confdefs* $ac_clean_files
                   8242: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   8243:
                   8244:
                   8245: if test "$with_pam" = "yes"; then
                   8246:     echo ""
                   8247:     case $host in
                   8248:        *-*-linux*)
                   8249:            echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
                   8250:            ;;
                   8251:     esac
                   8252:     echo ""
                   8253: fi