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

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

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.4     ! millert   660: echo "Configuring Sudo version 1.6.2"
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:
1.4     ! millert  2869:                # If using cc, run in ANSI mode if possible
        !          2870:                if test -z "$GCC"; then
        !          2871:                    $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
        !          2872:                    if test ! -s conftest.out; then
        !          2873:                        CPPFLAGS="${CPPFLAGS} -Aa"
        !          2874:                    fi
        !          2875:                    rm -f conftest.out
        !          2876:                fi
        !          2877:
        !          2878:                # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
        !          2879:                CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
        !          2880:
1.1       millert  2881:                if test "$CHECKSHADOW" = "true"; then
                   2882:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.4     ! millert  2883: echo "configure:2884: checking for getprpwnam in -lsec" >&5
1.1       millert  2884: if test -n ""; then
                   2885:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2886: else
                   2887:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2888: fi
                   2889: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2890:   echo $ac_n "(cached) $ac_c" 1>&6
                   2891: else
                   2892:   ac_save_LIBS="$LIBS"
                   2893: LIBS="-lsec  $LIBS"
                   2894: cat > conftest.$ac_ext <<EOF
1.4     ! millert  2895: #line 2896 "configure"
1.1       millert  2896: #include "confdefs.h"
                   2897: /* Override any gcc2 internal prototype to avoid an error.  */
                   2898: /* We use char because int might match the return type of a gcc2
                   2899:     builtin and then its argument prototype would still apply.  */
                   2900: char getprpwnam();
                   2901:
                   2902: int main() {
                   2903: getprpwnam()
                   2904: ; return 0; }
                   2905: EOF
1.4     ! millert  2906: if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2907:   rm -rf conftest*
                   2908:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2909: else
                   2910:   echo "configure: failed program was:" >&5
                   2911:   cat conftest.$ac_ext >&5
                   2912:   rm -rf conftest*
                   2913:   eval "ac_cv_lib_$ac_lib_var=no"
                   2914: fi
                   2915: rm -f conftest*
                   2916: LIBS="$ac_save_LIBS"
                   2917:
                   2918: fi
                   2919: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2920:   echo "$ac_t""yes" 1>&6
                   2921:   cat >> confdefs.h <<\EOF
                   2922: #define HAVE_GETPRPWNAM 1
                   2923: EOF
                   2924:  echo $ac_n "checking for iscomsec in -lsec""... $ac_c" 1>&6
1.4     ! millert  2925: echo "configure:2926: checking for iscomsec in -lsec" >&5
1.1       millert  2926: if test -n ""; then
                   2927:   ac_lib_var=`echo sec'_'iscomsec | sed 'y% ./+-%___p_%'`
                   2928: else
                   2929:   ac_lib_var=`echo sec'_'iscomsec | sed 'y%./+-%__p_%'`
                   2930: fi
                   2931: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2932:   echo $ac_n "(cached) $ac_c" 1>&6
                   2933: else
                   2934:   ac_save_LIBS="$LIBS"
                   2935: LIBS="-lsec  $LIBS"
                   2936: cat > conftest.$ac_ext <<EOF
1.4     ! millert  2937: #line 2938 "configure"
1.1       millert  2938: #include "confdefs.h"
                   2939: /* Override any gcc2 internal prototype to avoid an error.  */
                   2940: /* We use char because int might match the return type of a gcc2
                   2941:     builtin and then its argument prototype would still apply.  */
                   2942: char iscomsec();
                   2943:
                   2944: int main() {
                   2945: iscomsec()
                   2946: ; return 0; }
                   2947: EOF
1.4     ! millert  2948: if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2949:   rm -rf conftest*
                   2950:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2951: else
                   2952:   echo "configure: failed program was:" >&5
                   2953:   cat conftest.$ac_ext >&5
                   2954:   rm -rf conftest*
                   2955:   eval "ac_cv_lib_$ac_lib_var=no"
                   2956: fi
                   2957: rm -f conftest*
                   2958: LIBS="$ac_save_LIBS"
                   2959:
                   2960: fi
                   2961: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2962:   echo "$ac_t""yes" 1>&6
                   2963:   cat >> confdefs.h <<\EOF
                   2964: #define HAVE_ISCOMSEC 1
                   2965: EOF
                   2966:
                   2967: else
                   2968:   echo "$ac_t""no" 1>&6
                   2969: fi
                   2970:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   2971: else
                   2972:   echo "$ac_t""no" 1>&6
                   2973: fi
                   2974:
                   2975:                    CHECKSHADOW="false"
                   2976:                fi
                   2977:
                   2978:                if test -n "$STATIC_SUDO"; then
                   2979:                    if test -n "$GCC"; then
                   2980:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   2981:                    else
                   2982:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   2983:                    fi
                   2984:                fi
                   2985:
                   2986:                # AFS support needs -lBSD
                   2987:                if test "$with_AFS" = "yes"; then
                   2988:                    AFS_LIBS="-lc -lBSD"
                   2989:                fi
                   2990:                ;;
                   2991:     *-*-hpux9*)
                   2992:                # uncomment this for a statically linked sudo
                   2993:                # (XXX - should be an option to configure)
                   2994:                #STATIC_SUDO=true
                   2995:
1.4     ! millert  2996:                # If using cc, run in ANSI mode if possible
        !          2997:                if test -z "$GCC"; then
        !          2998:                    $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
        !          2999:                    if test ! -s conftest.out; then
        !          3000:                        CPPFLAGS="${CPPFLAGS} -Aa"
        !          3001:                    fi
        !          3002:                    rm -f conftest.out
        !          3003:                fi
        !          3004:
        !          3005:                # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
        !          3006:                CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
        !          3007:
1.1       millert  3008:                cat >> confdefs.h <<\EOF
                   3009: #define BROKEN_SYSLOG 1
                   3010: EOF
                   3011:
                   3012:
                   3013:                if test "$CHECKSHADOW" = "true"; then
                   3014:                    for ac_func in getspwuid
                   3015: do
                   3016: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  3017: echo "configure:3018: checking for $ac_func" >&5
1.1       millert  3018: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3019:   echo $ac_n "(cached) $ac_c" 1>&6
                   3020: else
                   3021:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3022: #line 3023 "configure"
1.1       millert  3023: #include "confdefs.h"
                   3024: /* System header to define __stub macros and hopefully few prototypes,
                   3025:     which can conflict with char $ac_func(); below.  */
                   3026: #include <assert.h>
                   3027: /* Override any gcc2 internal prototype to avoid an error.  */
                   3028: /* We use char because int might match the return type of a gcc2
                   3029:     builtin and then its argument prototype would still apply.  */
                   3030: char $ac_func();
                   3031:
                   3032: int main() {
                   3033:
                   3034: /* The GNU C library defines this for functions which it implements
                   3035:     to always fail with ENOSYS.  Some functions are actually named
                   3036:     something starting with __ and the normal name is an alias.  */
                   3037: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3038: choke me
                   3039: #else
                   3040: $ac_func();
                   3041: #endif
                   3042:
                   3043: ; return 0; }
                   3044: EOF
1.4     ! millert  3045: if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3046:   rm -rf conftest*
                   3047:   eval "ac_cv_func_$ac_func=yes"
                   3048: else
                   3049:   echo "configure: failed program was:" >&5
                   3050:   cat conftest.$ac_ext >&5
                   3051:   rm -rf conftest*
                   3052:   eval "ac_cv_func_$ac_func=no"
                   3053: fi
                   3054: rm -f conftest*
                   3055: fi
                   3056:
                   3057: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3058:   echo "$ac_t""yes" 1>&6
                   3059:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3060:   cat >> confdefs.h <<EOF
                   3061: #define $ac_tr_func 1
                   3062: EOF
                   3063:
                   3064: else
                   3065:   echo "$ac_t""no" 1>&6
                   3066: fi
                   3067: done
                   3068:
                   3069:                    CHECKSHADOW="false"
                   3070:                fi
                   3071:
                   3072:                if test -n "$STATIC_SUDO"; then
                   3073:                    if test -n "$GCC"; then
                   3074:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3075:                    else
                   3076:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3077:                    fi
                   3078:                fi
                   3079:
                   3080:                # DCE support (requires ANSI C compiler)
                   3081:                if test "$with_DCE" = "yes"; then
                   3082:                    # order of libs in 9.X is important. -lc_r must be last
                   3083:                    SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   3084:                    LIBS="${LIBS} -ldce -lM -lc_r"
1.4     ! millert  3085:                    CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1       millert  3086:                fi
                   3087:
                   3088:                # AFS support needs -lBSD
                   3089:                if test "$with_AFS" = "yes"; then
                   3090:                    AFS_LIBS="-lc -lBSD"
                   3091:                fi
                   3092:                ;;
                   3093:     *-*-hpux*)
                   3094:
                   3095:                cat >> confdefs.h <<\EOF
                   3096: #define BROKEN_SYSLOG 1
                   3097: EOF
                   3098:
                   3099:
                   3100:                # Not sure if setuid binaries are safe in < 9.x
                   3101:                if test -n "$GCC"; then
                   3102:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3103:                else
                   3104:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3105:                fi
                   3106:
                   3107:                # AFS support needs -lBSD
                   3108:                if test "$with_AFS" = "yes"; then
                   3109:                    AFS_LIBS="-lc -lBSD"
                   3110:                fi
                   3111:                ;;
                   3112:     *-dec-osf*)
                   3113:                # ignore envariables wrt dynamic lib path
                   3114:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
                   3115:
                   3116:                echo $ac_n "checking whether to disable sia support on Digital UNIX""... $ac_c" 1>&6
1.4     ! millert  3117: echo "configure:3118: checking whether to disable sia support on Digital UNIX" >&5
1.1       millert  3118:                # Check whether --enable-sia or --disable-sia was given.
                   3119: if test "${enable_sia+set}" = set; then
                   3120:   enableval="$enable_sia"
                   3121:    case "$enableval" in
                   3122:                    yes)        echo "$ac_t""no" 1>&6
                   3123:                                ;;
                   3124:                    no)         echo "$ac_t""yes" 1>&6
                   3125:                                CHECKSIA=false
                   3126:                                ;;
                   3127:                    *)          echo "$ac_t""no" 1>&6
                   3128:                                echo "Ignoring unknown argument to --enable-sia: $enableval"
                   3129:                                ;;
                   3130:                  esac
                   3131:
                   3132: else
                   3133:   echo "$ac_t""no" 1>&6
                   3134: fi
                   3135:
                   3136:
                   3137:                # use SIA by default, if we have it, else SecureWare
                   3138:                # unless overridden on the command line
                   3139:                if test "$CHECKSIA" = "true"; then
                   3140:                    echo $ac_n "checking for sia_ses_init""... $ac_c" 1>&6
1.4     ! millert  3141: echo "configure:3142: checking for sia_ses_init" >&5
1.1       millert  3142: if eval "test \"`echo '$''{'ac_cv_func_sia_ses_init'+set}'`\" = set"; then
                   3143:   echo $ac_n "(cached) $ac_c" 1>&6
                   3144: else
                   3145:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3146: #line 3147 "configure"
1.1       millert  3147: #include "confdefs.h"
                   3148: /* System header to define __stub macros and hopefully few prototypes,
                   3149:     which can conflict with char sia_ses_init(); below.  */
                   3150: #include <assert.h>
                   3151: /* Override any gcc2 internal prototype to avoid an error.  */
                   3152: /* We use char because int might match the return type of a gcc2
                   3153:     builtin and then its argument prototype would still apply.  */
                   3154: char sia_ses_init();
                   3155:
                   3156: int main() {
                   3157:
                   3158: /* The GNU C library defines this for functions which it implements
                   3159:     to always fail with ENOSYS.  Some functions are actually named
                   3160:     something starting with __ and the normal name is an alias.  */
                   3161: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
                   3162: choke me
                   3163: #else
                   3164: sia_ses_init();
                   3165: #endif
                   3166:
                   3167: ; return 0; }
                   3168: EOF
1.4     ! millert  3169: if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3170:   rm -rf conftest*
                   3171:   eval "ac_cv_func_sia_ses_init=yes"
                   3172: else
                   3173:   echo "configure: failed program was:" >&5
                   3174:   cat conftest.$ac_ext >&5
                   3175:   rm -rf conftest*
                   3176:   eval "ac_cv_func_sia_ses_init=no"
                   3177: fi
                   3178: rm -f conftest*
                   3179: fi
                   3180:
                   3181: if eval "test \"`echo '$ac_cv_func_'sia_ses_init`\" = yes"; then
                   3182:   echo "$ac_t""yes" 1>&6
                   3183:   cat >> confdefs.h <<\EOF
                   3184: #define HAVE_SIA 1
                   3185: EOF
                   3186:
                   3187:                    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
                   3188:                        { 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; }
                   3189:                    fi; CHECKSHADOW=false
                   3190: else
                   3191:   echo "$ac_t""no" 1>&6
                   3192: fi
                   3193:
                   3194:                fi
                   3195:                if test "$CHECKSHADOW" = "true"; then
                   3196:                    echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.4     ! millert  3197: echo "configure:3198: checking for getprpwnam in -lsecurity" >&5
1.1       millert  3198: if test -n ""; then
                   3199:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3200: else
                   3201:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3202: fi
                   3203: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3204:   echo $ac_n "(cached) $ac_c" 1>&6
                   3205: else
                   3206:   ac_save_LIBS="$LIBS"
                   3207: LIBS="-lsecurity  $LIBS"
                   3208: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3209: #line 3210 "configure"
1.1       millert  3210: #include "confdefs.h"
                   3211: /* Override any gcc2 internal prototype to avoid an error.  */
                   3212: /* We use char because int might match the return type of a gcc2
                   3213:     builtin and then its argument prototype would still apply.  */
                   3214: char getprpwnam();
                   3215:
                   3216: int main() {
                   3217: getprpwnam()
                   3218: ; return 0; }
                   3219: EOF
1.4     ! millert  3220: if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3221:   rm -rf conftest*
                   3222:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3223: else
                   3224:   echo "configure: failed program was:" >&5
                   3225:   cat conftest.$ac_ext >&5
                   3226:   rm -rf conftest*
                   3227:   eval "ac_cv_lib_$ac_lib_var=no"
                   3228: fi
                   3229: rm -f conftest*
                   3230: LIBS="$ac_save_LIBS"
                   3231:
                   3232: fi
                   3233: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3234:   echo "$ac_t""yes" 1>&6
                   3235:   SECUREWARE=1
                   3236: else
                   3237:   echo "$ac_t""no" 1>&6
                   3238: fi
                   3239:
                   3240:                    CHECKSHADOW="false"
                   3241:                fi
                   3242:
                   3243:                if test -n "$SECUREWARE"; then
                   3244:                    cat >> confdefs.h <<\EOF
                   3245: #define HAVE_GETPRPWNAM 1
                   3246: EOF
                   3247:
                   3248:                    # -ldb includes bogus versions of snprintf/vsnprintf
                   3249:                    echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.4     ! millert  3250: echo "configure:3251: checking for snprintf" >&5
1.1       millert  3251: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   3252:   echo $ac_n "(cached) $ac_c" 1>&6
                   3253: else
                   3254:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3255: #line 3256 "configure"
1.1       millert  3256: #include "confdefs.h"
                   3257: /* System header to define __stub macros and hopefully few prototypes,
                   3258:     which can conflict with char snprintf(); below.  */
                   3259: #include <assert.h>
                   3260: /* Override any gcc2 internal prototype to avoid an error.  */
                   3261: /* We use char because int might match the return type of a gcc2
                   3262:     builtin and then its argument prototype would still apply.  */
                   3263: char snprintf();
                   3264:
                   3265: int main() {
                   3266:
                   3267: /* The GNU C library defines this for functions which it implements
                   3268:     to always fail with ENOSYS.  Some functions are actually named
                   3269:     something starting with __ and the normal name is an alias.  */
                   3270: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   3271: choke me
                   3272: #else
                   3273: snprintf();
                   3274: #endif
                   3275:
                   3276: ; return 0; }
                   3277: EOF
1.4     ! millert  3278: if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3279:   rm -rf conftest*
                   3280:   eval "ac_cv_func_snprintf=yes"
                   3281: else
                   3282:   echo "configure: failed program was:" >&5
                   3283:   cat conftest.$ac_ext >&5
                   3284:   rm -rf conftest*
                   3285:   eval "ac_cv_func_snprintf=no"
                   3286: fi
                   3287: rm -f conftest*
                   3288: fi
                   3289:
                   3290: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   3291:   echo "$ac_t""yes" 1>&6
                   3292:   cat >> confdefs.h <<\EOF
                   3293: #define HAVE_SNPRINTF 1
                   3294: EOF
                   3295:
                   3296: else
                   3297:   echo "$ac_t""no" 1>&6
                   3298: NEED_SNPRINTF=1
                   3299: fi
                   3300:
                   3301:                    echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.4     ! millert  3302: echo "configure:3303: checking for vsnprintf" >&5
1.1       millert  3303: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   3304:   echo $ac_n "(cached) $ac_c" 1>&6
                   3305: else
                   3306:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3307: #line 3308 "configure"
1.1       millert  3308: #include "confdefs.h"
                   3309: /* System header to define __stub macros and hopefully few prototypes,
                   3310:     which can conflict with char vsnprintf(); below.  */
                   3311: #include <assert.h>
                   3312: /* Override any gcc2 internal prototype to avoid an error.  */
                   3313: /* We use char because int might match the return type of a gcc2
                   3314:     builtin and then its argument prototype would still apply.  */
                   3315: char vsnprintf();
                   3316:
                   3317: int main() {
                   3318:
                   3319: /* The GNU C library defines this for functions which it implements
                   3320:     to always fail with ENOSYS.  Some functions are actually named
                   3321:     something starting with __ and the normal name is an alias.  */
                   3322: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   3323: choke me
                   3324: #else
                   3325: vsnprintf();
                   3326: #endif
                   3327:
                   3328: ; return 0; }
                   3329: EOF
1.4     ! millert  3330: if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3331:   rm -rf conftest*
                   3332:   eval "ac_cv_func_vsnprintf=yes"
                   3333: else
                   3334:   echo "configure: failed program was:" >&5
                   3335:   cat conftest.$ac_ext >&5
                   3336:   rm -rf conftest*
                   3337:   eval "ac_cv_func_vsnprintf=no"
                   3338: fi
                   3339: rm -f conftest*
                   3340: fi
                   3341:
                   3342: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   3343:   echo "$ac_t""yes" 1>&6
                   3344:   cat >> confdefs.h <<\EOF
                   3345: #define HAVE_VSNPRINTF 1
                   3346: EOF
                   3347:
                   3348: else
                   3349:   echo "$ac_t""no" 1>&6
                   3350: NEED_SNPRINTF=1
                   3351: fi
                   3352:
                   3353:                    # 4.x and higher need -ldb too...
                   3354:                    echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
1.4     ! millert  3355: echo "configure:3356: checking for dbopen in -ldb" >&5
1.1       millert  3356: if test -n ""; then
                   3357:   ac_lib_var=`echo db'_'dbopen | sed 'y% ./+-%___p_%'`
                   3358: else
                   3359:   ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
                   3360: fi
                   3361: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3362:   echo $ac_n "(cached) $ac_c" 1>&6
                   3363: else
                   3364:   ac_save_LIBS="$LIBS"
                   3365: LIBS="-ldb  $LIBS"
                   3366: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3367: #line 3368 "configure"
1.1       millert  3368: #include "confdefs.h"
                   3369: /* Override any gcc2 internal prototype to avoid an error.  */
                   3370: /* We use char because int might match the return type of a gcc2
                   3371:     builtin and then its argument prototype would still apply.  */
                   3372: char dbopen();
                   3373:
                   3374: int main() {
                   3375: dbopen()
                   3376: ; return 0; }
                   3377: EOF
1.4     ! millert  3378: if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3379:   rm -rf conftest*
                   3380:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3381: else
                   3382:   echo "configure: failed program was:" >&5
                   3383:   cat conftest.$ac_ext >&5
                   3384:   rm -rf conftest*
                   3385:   eval "ac_cv_lib_$ac_lib_var=no"
                   3386: fi
                   3387: rm -f conftest*
                   3388: LIBS="$ac_save_LIBS"
                   3389:
                   3390: fi
                   3391: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3392:   echo "$ac_t""yes" 1>&6
                   3393:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3394: else
                   3395:   echo "$ac_t""no" 1>&6
                   3396: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3397: fi
                   3398:
                   3399:                    for ac_func in dispcrypt
                   3400: do
                   3401: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  3402: echo "configure:3403: checking for $ac_func" >&5
1.1       millert  3403: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3404:   echo $ac_n "(cached) $ac_c" 1>&6
                   3405: else
                   3406:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3407: #line 3408 "configure"
1.1       millert  3408: #include "confdefs.h"
                   3409: /* System header to define __stub macros and hopefully few prototypes,
                   3410:     which can conflict with char $ac_func(); below.  */
                   3411: #include <assert.h>
                   3412: /* Override any gcc2 internal prototype to avoid an error.  */
                   3413: /* We use char because int might match the return type of a gcc2
                   3414:     builtin and then its argument prototype would still apply.  */
                   3415: char $ac_func();
                   3416:
                   3417: int main() {
                   3418:
                   3419: /* The GNU C library defines this for functions which it implements
                   3420:     to always fail with ENOSYS.  Some functions are actually named
                   3421:     something starting with __ and the normal name is an alias.  */
                   3422: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3423: choke me
                   3424: #else
                   3425: $ac_func();
                   3426: #endif
                   3427:
                   3428: ; return 0; }
                   3429: EOF
1.4     ! millert  3430: if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3431:   rm -rf conftest*
                   3432:   eval "ac_cv_func_$ac_func=yes"
                   3433: else
                   3434:   echo "configure: failed program was:" >&5
                   3435:   cat conftest.$ac_ext >&5
                   3436:   rm -rf conftest*
                   3437:   eval "ac_cv_func_$ac_func=no"
                   3438: fi
                   3439: rm -f conftest*
                   3440: fi
                   3441:
                   3442: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3443:   echo "$ac_t""yes" 1>&6
                   3444:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3445:   cat >> confdefs.h <<EOF
                   3446: #define $ac_tr_func 1
                   3447: EOF
                   3448:
                   3449: else
                   3450:   echo "$ac_t""no" 1>&6
                   3451: fi
                   3452: done
                   3453:
                   3454:                    echo $ac_n "checking for broken /usr/include/prot.h""... $ac_c" 1>&6
1.4     ! millert  3455: echo "configure:3456: checking for broken /usr/include/prot.h" >&5
1.1       millert  3456:                    cat > conftest.$ac_ext <<EOF
1.4     ! millert  3457: #line 3458 "configure"
1.1       millert  3458: #include "confdefs.h"
                   3459:
                   3460: #include <sys/types.h>
                   3461: #include <sys/security.h>
                   3462: #include <prot.h>
                   3463:
                   3464: int main() {
                   3465: exit(0);
                   3466: ; return 0; }
                   3467: EOF
1.4     ! millert  3468: if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  3469:   rm -rf conftest*
                   3470:   echo "$ac_t""no" 1>&6
                   3471: else
                   3472:   echo "configure: failed program was:" >&5
                   3473:   cat conftest.$ac_ext >&5
                   3474:   rm -rf conftest*
                   3475:   echo "$ac_t""yes, fixing locally" 1>&6
                   3476:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
                   3477:
                   3478: fi
                   3479: rm -f conftest*
                   3480:                else
                   3481:                    with_passwd=no
                   3482:                    AUTH_OBJS="sia.o"
                   3483:                fi
                   3484:                ;;
                   3485:     *-*-irix*)
                   3486:                # configure may not think irix has stdc headers
                   3487:                # but it's good enough for sudo
                   3488:                cat >> confdefs.h <<\EOF
                   3489: #define STDC_HEADERS 1
                   3490: EOF
                   3491:
                   3492:                CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
                   3493:                if test -z "$NROFFPROG"; then
                   3494:                    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)'
                   3495:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3496:                        if test -d /usr/share/catman/local; then
                   3497:                            mandir="/usr/share/catman/local"
                   3498:                        else
                   3499:                            mandir="/usr/catman/local"
                   3500:                        fi
                   3501:                    fi
                   3502:                else
                   3503:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3504:                        if test -d "/usr/share/man/local"; then
                   3505:                            mandir="/usr/share/man/local"
                   3506:                        else
                   3507:                            mandir="/usr/man/local"
                   3508:                        fi
                   3509:                    fi
                   3510:                fi
                   3511:                # IRIX <= 4 needs -lsun
                   3512:                if test "$OSREV" -le 4; then
                   3513:                    echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
1.4     ! millert  3514: echo "configure:3515: checking for getpwnam in -lsun" >&5
1.1       millert  3515: if test -n ""; then
                   3516:   ac_lib_var=`echo sun'_'getpwnam | sed 'y% ./+-%___p_%'`
                   3517: else
                   3518:   ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
                   3519: fi
                   3520: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3521:   echo $ac_n "(cached) $ac_c" 1>&6
                   3522: else
                   3523:   ac_save_LIBS="$LIBS"
                   3524: LIBS="-lsun  $LIBS"
                   3525: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3526: #line 3527 "configure"
1.1       millert  3527: #include "confdefs.h"
                   3528: /* Override any gcc2 internal prototype to avoid an error.  */
                   3529: /* We use char because int might match the return type of a gcc2
                   3530:     builtin and then its argument prototype would still apply.  */
                   3531: char getpwnam();
                   3532:
                   3533: int main() {
                   3534: getpwnam()
                   3535: ; return 0; }
                   3536: EOF
1.4     ! millert  3537: if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3538:   rm -rf conftest*
                   3539:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3540: else
                   3541:   echo "configure: failed program was:" >&5
                   3542:   cat conftest.$ac_ext >&5
                   3543:   rm -rf conftest*
                   3544:   eval "ac_cv_lib_$ac_lib_var=no"
                   3545: fi
                   3546: rm -f conftest*
                   3547: LIBS="$ac_save_LIBS"
                   3548:
                   3549: fi
                   3550: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3551:   echo "$ac_t""yes" 1>&6
                   3552:   LIBS="${LIBS} -lsun"
                   3553: else
                   3554:   echo "$ac_t""no" 1>&6
                   3555: fi
                   3556:
                   3557:                fi
                   3558:                ;;
                   3559:     *-*-linux*)
                   3560:                # To get crypt(3) and vasprintf() prototypes (so we pass -Wall)
                   3561:                cat >> confdefs.h <<\EOF
                   3562: #define _GNU_SOURCE 1
                   3563: EOF
                   3564:
                   3565:
                   3566:                # Some Linux versions need to link with -lshadow
                   3567:                if test "$CHECKSHADOW" = "true"; then
                   3568:                    echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.4     ! millert  3569: echo "configure:3570: checking for getspnam" >&5
1.1       millert  3570: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   3571:   echo $ac_n "(cached) $ac_c" 1>&6
                   3572: else
                   3573:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  3574: #line 3575 "configure"
1.1       millert  3575: #include "confdefs.h"
                   3576: /* System header to define __stub macros and hopefully few prototypes,
                   3577:     which can conflict with char getspnam(); below.  */
                   3578: #include <assert.h>
                   3579: /* Override any gcc2 internal prototype to avoid an error.  */
                   3580: /* We use char because int might match the return type of a gcc2
                   3581:     builtin and then its argument prototype would still apply.  */
                   3582: char getspnam();
                   3583:
                   3584: int main() {
                   3585:
                   3586: /* The GNU C library defines this for functions which it implements
                   3587:     to always fail with ENOSYS.  Some functions are actually named
                   3588:     something starting with __ and the normal name is an alias.  */
                   3589: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   3590: choke me
                   3591: #else
                   3592: getspnam();
                   3593: #endif
                   3594:
                   3595: ; return 0; }
                   3596: EOF
1.4     ! millert  3597: if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3598:   rm -rf conftest*
                   3599:   eval "ac_cv_func_getspnam=yes"
                   3600: else
                   3601:   echo "configure: failed program was:" >&5
                   3602:   cat conftest.$ac_ext >&5
                   3603:   rm -rf conftest*
                   3604:   eval "ac_cv_func_getspnam=no"
                   3605: fi
                   3606: rm -f conftest*
                   3607: fi
                   3608:
                   3609: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   3610:   echo "$ac_t""yes" 1>&6
                   3611:   cat >> confdefs.h <<\EOF
                   3612: #define HAVE_GETSPNAM 1
                   3613: EOF
                   3614:
                   3615: else
                   3616:   echo "$ac_t""no" 1>&6
                   3617: echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1.4     ! millert  3618: echo "configure:3619: checking for getspnam in -lshadow" >&5
1.1       millert  3619: if test -n ""; then
                   3620:   ac_lib_var=`echo shadow'_'getspnam | sed 'y% ./+-%___p_%'`
                   3621: else
                   3622:   ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
                   3623: fi
                   3624: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3625:   echo $ac_n "(cached) $ac_c" 1>&6
                   3626: else
                   3627:   ac_save_LIBS="$LIBS"
                   3628: LIBS="-lshadow  $LIBS"
                   3629: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3630: #line 3631 "configure"
1.1       millert  3631: #include "confdefs.h"
                   3632: /* Override any gcc2 internal prototype to avoid an error.  */
                   3633: /* We use char because int might match the return type of a gcc2
                   3634:     builtin and then its argument prototype would still apply.  */
                   3635: char getspnam();
                   3636:
                   3637: int main() {
                   3638: getspnam()
                   3639: ; return 0; }
                   3640: EOF
1.4     ! millert  3641: if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3642:   rm -rf conftest*
                   3643:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3644: else
                   3645:   echo "configure: failed program was:" >&5
                   3646:   cat conftest.$ac_ext >&5
                   3647:   rm -rf conftest*
                   3648:   eval "ac_cv_lib_$ac_lib_var=no"
                   3649: fi
                   3650: rm -f conftest*
                   3651: LIBS="$ac_save_LIBS"
                   3652:
                   3653: fi
                   3654: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3655:   echo "$ac_t""yes" 1>&6
                   3656:   cat >> confdefs.h <<\EOF
                   3657: #define HAVE_GETSPNAM 1
                   3658: EOF
                   3659:  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
                   3660: else
                   3661:   echo "$ac_t""no" 1>&6
                   3662: fi
                   3663:
                   3664: fi
                   3665:
                   3666:                    CHECKSHADOW="false"
                   3667:                fi
                   3668:                ;;
                   3669:     *-convex-bsd*)
                   3670:                cat >> confdefs.h <<\EOF
                   3671: #define _CONVEX_SOURCE 1
                   3672: EOF
                   3673:
                   3674:                if test -z "$GCC"; then
                   3675:                    CFLAGS="${CFLAGS} -D__STDC__"
                   3676:                fi
                   3677:
                   3678:                if test "$CHECKSHADOW" = "true"; then
                   3679:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.4     ! millert  3680: echo "configure:3681: checking for getprpwnam in -lsec" >&5
1.1       millert  3681: if test -n ""; then
                   3682:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3683: else
                   3684:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3685: fi
                   3686: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3687:   echo $ac_n "(cached) $ac_c" 1>&6
                   3688: else
                   3689:   ac_save_LIBS="$LIBS"
                   3690: LIBS="-lsec  $LIBS"
                   3691: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3692: #line 3693 "configure"
1.1       millert  3693: #include "confdefs.h"
                   3694: /* Override any gcc2 internal prototype to avoid an error.  */
                   3695: /* We use char because int might match the return type of a gcc2
                   3696:     builtin and then its argument prototype would still apply.  */
                   3697: char getprpwnam();
                   3698:
                   3699: int main() {
                   3700: getprpwnam()
                   3701: ; return 0; }
                   3702: EOF
1.4     ! millert  3703: if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3704:   rm -rf conftest*
                   3705:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3706: else
                   3707:   echo "configure: failed program was:" >&5
                   3708:   cat conftest.$ac_ext >&5
                   3709:   rm -rf conftest*
                   3710:   eval "ac_cv_lib_$ac_lib_var=no"
                   3711: fi
                   3712: rm -f conftest*
                   3713: LIBS="$ac_save_LIBS"
                   3714:
                   3715: fi
                   3716: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3717:   echo "$ac_t""yes" 1>&6
                   3718:   cat >> confdefs.h <<\EOF
                   3719: #define HAVE_GETPRPWNAM 1
                   3720: EOF
                   3721:  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
                   3722: else
                   3723:   echo "$ac_t""no" 1>&6
                   3724: fi
                   3725:
                   3726:                    CHECKSHADOW="false"
                   3727:                fi
                   3728:                ;;
                   3729:     *-*-ultrix*)
                   3730:                OS="ultrix"
                   3731:                if test "$CHECKSHADOW" = "true"; then
                   3732:                    echo $ac_n "checking for getauthuid in -lauth""... $ac_c" 1>&6
1.4     ! millert  3733: echo "configure:3734: checking for getauthuid in -lauth" >&5
1.1       millert  3734: if test -n ""; then
                   3735:   ac_lib_var=`echo auth'_'getauthuid | sed 'y% ./+-%___p_%'`
                   3736: else
                   3737:   ac_lib_var=`echo auth'_'getauthuid | sed 'y%./+-%__p_%'`
                   3738: fi
                   3739: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3740:   echo $ac_n "(cached) $ac_c" 1>&6
                   3741: else
                   3742:   ac_save_LIBS="$LIBS"
                   3743: LIBS="-lauth  $LIBS"
                   3744: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3745: #line 3746 "configure"
1.1       millert  3746: #include "confdefs.h"
                   3747: /* Override any gcc2 internal prototype to avoid an error.  */
                   3748: /* We use char because int might match the return type of a gcc2
                   3749:     builtin and then its argument prototype would still apply.  */
                   3750: char getauthuid();
                   3751:
                   3752: int main() {
                   3753: getauthuid()
                   3754: ; return 0; }
                   3755: EOF
1.4     ! millert  3756: if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3757:   rm -rf conftest*
                   3758:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3759: else
                   3760:   echo "configure: failed program was:" >&5
                   3761:   cat conftest.$ac_ext >&5
                   3762:   rm -rf conftest*
                   3763:   eval "ac_cv_lib_$ac_lib_var=no"
                   3764: fi
                   3765: rm -f conftest*
                   3766: LIBS="$ac_save_LIBS"
                   3767:
                   3768: fi
                   3769: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3770:   echo "$ac_t""yes" 1>&6
                   3771:   cat >> confdefs.h <<\EOF
                   3772: #define HAVE_GETAUTHUID 1
                   3773: EOF
                   3774:  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
                   3775: else
                   3776:   echo "$ac_t""no" 1>&6
                   3777: fi
                   3778:
                   3779:                    CHECKSHADOW="false"
                   3780:                fi
                   3781:                ;;
                   3782:     *-*-riscos*)
                   3783:                LIBS="${LIBS} -lsun -lbsd"
                   3784:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   3785:                OSDEFS="${OSDEFS} -D_MIPS"
                   3786:                ;;
                   3787:     *-*-isc*)
                   3788:                OSDEFS="${OSDEFS} -D_ISC"
                   3789:                LIB_CRYPT=1
                   3790:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   3791:                LIBS="${LIBS} -lcrypt"
                   3792:
                   3793:                if test "$CHECKSHADOW" = "true"; then
                   3794:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.4     ! millert  3795: echo "configure:3796: checking for getspnam in -lsec" >&5
1.1       millert  3796: if test -n ""; then
                   3797:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3798: else
                   3799:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3800: fi
                   3801: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3802:   echo $ac_n "(cached) $ac_c" 1>&6
                   3803: else
                   3804:   ac_save_LIBS="$LIBS"
                   3805: LIBS="-lsec  $LIBS"
                   3806: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3807: #line 3808 "configure"
1.1       millert  3808: #include "confdefs.h"
                   3809: /* Override any gcc2 internal prototype to avoid an error.  */
                   3810: /* We use char because int might match the return type of a gcc2
                   3811:     builtin and then its argument prototype would still apply.  */
                   3812: char getspnam();
                   3813:
                   3814: int main() {
                   3815: getspnam()
                   3816: ; return 0; }
                   3817: EOF
1.4     ! millert  3818: if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3819:   rm -rf conftest*
                   3820:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3821: else
                   3822:   echo "configure: failed program was:" >&5
                   3823:   cat conftest.$ac_ext >&5
                   3824:   rm -rf conftest*
                   3825:   eval "ac_cv_lib_$ac_lib_var=no"
                   3826: fi
                   3827: rm -f conftest*
                   3828: LIBS="$ac_save_LIBS"
                   3829:
                   3830: fi
                   3831: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3832:   echo "$ac_t""yes" 1>&6
                   3833:   cat >> confdefs.h <<\EOF
                   3834: #define HAVE_GETSPNAM 1
                   3835: EOF
                   3836:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   3837: else
                   3838:   echo "$ac_t""no" 1>&6
                   3839: fi
                   3840:
                   3841:                    CHECKSHADOW="false"
                   3842:                fi
                   3843:                ;;
                   3844:     *-*-sco*)
                   3845:                if test "$CHECKSHADOW" = "true"; then
                   3846:                    echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.4     ! millert  3847: echo "configure:3848: checking for getprpwnam in -lprot" >&5
1.1       millert  3848: if test -n "-lx"; then
                   3849:   ac_lib_var=`echo prot'_'getprpwnam-lx | sed 'y% ./+-%___p_%'`
                   3850: else
                   3851:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3852: fi
                   3853: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3854:   echo $ac_n "(cached) $ac_c" 1>&6
                   3855: else
                   3856:   ac_save_LIBS="$LIBS"
                   3857: LIBS="-lprot -lx $LIBS"
                   3858: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3859: #line 3860 "configure"
1.1       millert  3860: #include "confdefs.h"
                   3861: /* Override any gcc2 internal prototype to avoid an error.  */
                   3862: /* We use char because int might match the return type of a gcc2
                   3863:     builtin and then its argument prototype would still apply.  */
                   3864: char getprpwnam();
                   3865:
                   3866: int main() {
                   3867: getprpwnam()
                   3868: ; return 0; }
                   3869: EOF
1.4     ! millert  3870: if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3871:   rm -rf conftest*
                   3872:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3873: else
                   3874:   echo "configure: failed program was:" >&5
                   3875:   cat conftest.$ac_ext >&5
                   3876:   rm -rf conftest*
                   3877:   eval "ac_cv_lib_$ac_lib_var=no"
                   3878: fi
                   3879: rm -f conftest*
                   3880: LIBS="$ac_save_LIBS"
                   3881:
                   3882: fi
                   3883: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3884:   echo "$ac_t""yes" 1>&6
                   3885:   cat >> confdefs.h <<\EOF
                   3886: #define HAVE_GETPRPWNAM 1
                   3887: EOF
                   3888:  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
                   3889: else
                   3890:   echo "$ac_t""no" 1>&6
                   3891: fi
                   3892:
                   3893:                    echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
1.4     ! millert  3894: echo "configure:3895: checking for getspnam in -lgen" >&5
1.1       millert  3895: if test -n ""; then
                   3896:   ac_lib_var=`echo gen'_'getspnam | sed 'y% ./+-%___p_%'`
                   3897: else
                   3898:   ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
                   3899: fi
                   3900: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3901:   echo $ac_n "(cached) $ac_c" 1>&6
                   3902: else
                   3903:   ac_save_LIBS="$LIBS"
                   3904: LIBS="-lgen  $LIBS"
                   3905: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3906: #line 3907 "configure"
1.1       millert  3907: #include "confdefs.h"
                   3908: /* Override any gcc2 internal prototype to avoid an error.  */
                   3909: /* We use char because int might match the return type of a gcc2
                   3910:     builtin and then its argument prototype would still apply.  */
                   3911: char getspnam();
                   3912:
                   3913: int main() {
                   3914: getspnam()
                   3915: ; return 0; }
                   3916: EOF
1.4     ! millert  3917: if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3918:   rm -rf conftest*
                   3919:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3920: else
                   3921:   echo "configure: failed program was:" >&5
                   3922:   cat conftest.$ac_ext >&5
                   3923:   rm -rf conftest*
                   3924:   eval "ac_cv_lib_$ac_lib_var=no"
                   3925: fi
                   3926: rm -f conftest*
                   3927: LIBS="$ac_save_LIBS"
                   3928:
                   3929: fi
                   3930: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3931:   echo "$ac_t""yes" 1>&6
                   3932:   cat >> confdefs.h <<\EOF
                   3933: #define HAVE_GETSPNAM 1
                   3934: EOF
                   3935:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   3936: else
                   3937:   echo "$ac_t""no" 1>&6
                   3938: fi
                   3939:
                   3940:                    CHECKSHADOW="false"
                   3941:                fi
                   3942:                ;;
                   3943:     *-sequent-sysv*)
                   3944:                if test "$CHECKSHADOW" = "true"; then
                   3945:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.4     ! millert  3946: echo "configure:3947: checking for getspnam in -lsec" >&5
1.1       millert  3947: if test -n ""; then
                   3948:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3949: else
                   3950:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3951: fi
                   3952: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3953:   echo $ac_n "(cached) $ac_c" 1>&6
                   3954: else
                   3955:   ac_save_LIBS="$LIBS"
                   3956: LIBS="-lsec  $LIBS"
                   3957: cat > conftest.$ac_ext <<EOF
1.4     ! millert  3958: #line 3959 "configure"
1.1       millert  3959: #include "confdefs.h"
                   3960: /* Override any gcc2 internal prototype to avoid an error.  */
                   3961: /* We use char because int might match the return type of a gcc2
                   3962:     builtin and then its argument prototype would still apply.  */
                   3963: char getspnam();
                   3964:
                   3965: int main() {
                   3966: getspnam()
                   3967: ; return 0; }
                   3968: EOF
1.4     ! millert  3969: if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3970:   rm -rf conftest*
                   3971:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3972: else
                   3973:   echo "configure: failed program was:" >&5
                   3974:   cat conftest.$ac_ext >&5
                   3975:   rm -rf conftest*
                   3976:   eval "ac_cv_lib_$ac_lib_var=no"
                   3977: fi
                   3978: rm -f conftest*
                   3979: LIBS="$ac_save_LIBS"
                   3980:
                   3981: fi
                   3982: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3983:   echo "$ac_t""yes" 1>&6
                   3984:   cat >> confdefs.h <<\EOF
                   3985: #define HAVE_GETSPNAM 1
                   3986: EOF
                   3987:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   3988: else
                   3989:   echo "$ac_t""no" 1>&6
                   3990: fi
                   3991:
                   3992:                    CHECKSHADOW="false"
                   3993:                fi
                   3994:                ;;
                   3995:     *-ccur-sysv4|*-ccur-sysvr4)
                   3996:                LIBS="${LIBS} -lgen"
                   3997:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   3998:                ;;
                   3999:     *-*-bsdi*)
                   4000:                # Use shlicc for BSD/OS 2.x unless asked to do otherwise
                   4001:                if test "$OSREV" -ge 2 -a "${with_CC+set}" != set -a \
                   4002:                        "$ac_cv_prog_CC" = "gcc"; then
                   4003:                    echo 'using shlicc as CC'
                   4004:                    ac_cv_prog_CC=shlicc
                   4005:                    CC="$ac_cv_prog_CC"
                   4006:                fi
                   4007:                ;;
                   4008:     *-*-*bsd*)
                   4009:                if test "$CHECKSHADOW" = "true"; then
                   4010:                    CHECKSHADOW="false"
                   4011:                fi
                   4012:                ;;
                   4013: esac
                   4014:
                   4015: if test "$CHECKSHADOW" = "true"; then
                   4016:     echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.4     ! millert  4017: echo "configure:4018: checking for getspnam" >&5
1.1       millert  4018: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   4019:   echo $ac_n "(cached) $ac_c" 1>&6
                   4020: else
                   4021:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4022: #line 4023 "configure"
1.1       millert  4023: #include "confdefs.h"
                   4024: /* System header to define __stub macros and hopefully few prototypes,
                   4025:     which can conflict with char getspnam(); below.  */
                   4026: #include <assert.h>
                   4027: /* Override any gcc2 internal prototype to avoid an error.  */
                   4028: /* We use char because int might match the return type of a gcc2
                   4029:     builtin and then its argument prototype would still apply.  */
                   4030: char getspnam();
                   4031:
                   4032: int main() {
                   4033:
                   4034: /* The GNU C library defines this for functions which it implements
                   4035:     to always fail with ENOSYS.  Some functions are actually named
                   4036:     something starting with __ and the normal name is an alias.  */
                   4037: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   4038: choke me
                   4039: #else
                   4040: getspnam();
                   4041: #endif
                   4042:
                   4043: ; return 0; }
                   4044: EOF
1.4     ! millert  4045: if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4046:   rm -rf conftest*
                   4047:   eval "ac_cv_func_getspnam=yes"
                   4048: else
                   4049:   echo "configure: failed program was:" >&5
                   4050:   cat conftest.$ac_ext >&5
                   4051:   rm -rf conftest*
                   4052:   eval "ac_cv_func_getspnam=no"
                   4053: fi
                   4054: rm -f conftest*
                   4055: fi
                   4056:
                   4057: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   4058:   echo "$ac_t""yes" 1>&6
                   4059:   cat >> confdefs.h <<\EOF
                   4060: #define HAVE_GETSPNAM 1
                   4061: EOF
                   4062:  CHECKSHADOW="false"
                   4063: else
                   4064:   echo "$ac_t""no" 1>&6
                   4065: fi
                   4066:
                   4067: fi
                   4068: if test "$CHECKSHADOW" = "true"; then
                   4069:     echo $ac_n "checking for getprpwnam""... $ac_c" 1>&6
1.4     ! millert  4070: echo "configure:4071: checking for getprpwnam" >&5
1.1       millert  4071: if eval "test \"`echo '$''{'ac_cv_func_getprpwnam'+set}'`\" = set"; then
                   4072:   echo $ac_n "(cached) $ac_c" 1>&6
                   4073: else
                   4074:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4075: #line 4076 "configure"
1.1       millert  4076: #include "confdefs.h"
                   4077: /* System header to define __stub macros and hopefully few prototypes,
                   4078:     which can conflict with char getprpwnam(); below.  */
                   4079: #include <assert.h>
                   4080: /* Override any gcc2 internal prototype to avoid an error.  */
                   4081: /* We use char because int might match the return type of a gcc2
                   4082:     builtin and then its argument prototype would still apply.  */
                   4083: char getprpwnam();
                   4084:
                   4085: int main() {
                   4086:
                   4087: /* The GNU C library defines this for functions which it implements
                   4088:     to always fail with ENOSYS.  Some functions are actually named
                   4089:     something starting with __ and the normal name is an alias.  */
                   4090: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
                   4091: choke me
                   4092: #else
                   4093: getprpwnam();
                   4094: #endif
                   4095:
                   4096: ; return 0; }
                   4097: EOF
1.4     ! millert  4098: if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4099:   rm -rf conftest*
                   4100:   eval "ac_cv_func_getprpwnam=yes"
                   4101: else
                   4102:   echo "configure: failed program was:" >&5
                   4103:   cat conftest.$ac_ext >&5
                   4104:   rm -rf conftest*
                   4105:   eval "ac_cv_func_getprpwnam=no"
                   4106: fi
                   4107: rm -f conftest*
                   4108: fi
                   4109:
                   4110: if eval "test \"`echo '$ac_cv_func_'getprpwnam`\" = yes"; then
                   4111:   echo "$ac_t""yes" 1>&6
                   4112:   cat >> confdefs.h <<\EOF
                   4113: #define HAVE_GETPRPWNAM 1
                   4114: EOF
                   4115:  CHECKSHADOW="false"; SECUREWARE=1
                   4116: else
                   4117:   echo "$ac_t""no" 1>&6
                   4118: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.4     ! millert  4119: echo "configure:4120: checking for getprpwnam in -lsec" >&5
1.1       millert  4120: if test -n ""; then
                   4121:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4122: else
                   4123:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4124: fi
                   4125: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4126:   echo $ac_n "(cached) $ac_c" 1>&6
                   4127: else
                   4128:   ac_save_LIBS="$LIBS"
                   4129: LIBS="-lsec  $LIBS"
                   4130: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4131: #line 4132 "configure"
1.1       millert  4132: #include "confdefs.h"
                   4133: /* Override any gcc2 internal prototype to avoid an error.  */
                   4134: /* We use char because int might match the return type of a gcc2
                   4135:     builtin and then its argument prototype would still apply.  */
                   4136: char getprpwnam();
                   4137:
                   4138: int main() {
                   4139: getprpwnam()
                   4140: ; return 0; }
                   4141: EOF
1.4     ! millert  4142: if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4143:   rm -rf conftest*
                   4144:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4145: else
                   4146:   echo "configure: failed program was:" >&5
                   4147:   cat conftest.$ac_ext >&5
                   4148:   rm -rf conftest*
                   4149:   eval "ac_cv_lib_$ac_lib_var=no"
                   4150: fi
                   4151: rm -f conftest*
                   4152: LIBS="$ac_save_LIBS"
                   4153:
                   4154: fi
                   4155: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4156:   echo "$ac_t""yes" 1>&6
                   4157:   cat >> confdefs.h <<\EOF
                   4158: #define HAVE_GETPRPWNAM 1
                   4159: EOF
                   4160:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   4161: else
                   4162:   echo "$ac_t""no" 1>&6
                   4163: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.4     ! millert  4164: echo "configure:4165: checking for getprpwnam in -lsecurity" >&5
1.1       millert  4165: if test -n ""; then
                   4166:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4167: else
                   4168:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4169: fi
                   4170: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4171:   echo $ac_n "(cached) $ac_c" 1>&6
                   4172: else
                   4173:   ac_save_LIBS="$LIBS"
                   4174: LIBS="-lsecurity  $LIBS"
                   4175: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4176: #line 4177 "configure"
1.1       millert  4177: #include "confdefs.h"
                   4178: /* Override any gcc2 internal prototype to avoid an error.  */
                   4179: /* We use char because int might match the return type of a gcc2
                   4180:     builtin and then its argument prototype would still apply.  */
                   4181: char getprpwnam();
                   4182:
                   4183: int main() {
                   4184: getprpwnam()
                   4185: ; return 0; }
                   4186: EOF
1.4     ! millert  4187: if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4188:   rm -rf conftest*
                   4189:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4190: else
                   4191:   echo "configure: failed program was:" >&5
                   4192:   cat conftest.$ac_ext >&5
                   4193:   rm -rf conftest*
                   4194:   eval "ac_cv_lib_$ac_lib_var=no"
                   4195: fi
                   4196: rm -f conftest*
                   4197: LIBS="$ac_save_LIBS"
                   4198:
                   4199: fi
                   4200: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4201:   echo "$ac_t""yes" 1>&6
                   4202:   cat >> confdefs.h <<\EOF
                   4203: #define HAVE_GETPRPWNAM 1
                   4204: EOF
                   4205:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
                   4206: else
                   4207:   echo "$ac_t""no" 1>&6
                   4208: echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.4     ! millert  4209: echo "configure:4210: checking for getprpwnam in -lprot" >&5
1.1       millert  4210: if test -n ""; then
                   4211:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4212: else
                   4213:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4214: fi
                   4215: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4216:   echo $ac_n "(cached) $ac_c" 1>&6
                   4217: else
                   4218:   ac_save_LIBS="$LIBS"
                   4219: LIBS="-lprot  $LIBS"
                   4220: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4221: #line 4222 "configure"
1.1       millert  4222: #include "confdefs.h"
                   4223: /* Override any gcc2 internal prototype to avoid an error.  */
                   4224: /* We use char because int might match the return type of a gcc2
                   4225:     builtin and then its argument prototype would still apply.  */
                   4226: char getprpwnam();
                   4227:
                   4228: int main() {
                   4229: getprpwnam()
                   4230: ; return 0; }
                   4231: EOF
1.4     ! millert  4232: if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4233:   rm -rf conftest*
                   4234:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4235: else
                   4236:   echo "configure: failed program was:" >&5
                   4237:   cat conftest.$ac_ext >&5
                   4238:   rm -rf conftest*
                   4239:   eval "ac_cv_lib_$ac_lib_var=no"
                   4240: fi
                   4241: rm -f conftest*
                   4242: LIBS="$ac_save_LIBS"
                   4243:
                   4244: fi
                   4245: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4246:   echo "$ac_t""yes" 1>&6
                   4247:   cat >> confdefs.h <<\EOF
                   4248: #define HAVE_GETPRPWNAM 1
                   4249: EOF
                   4250:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   4251: else
                   4252:   echo "$ac_t""no" 1>&6
                   4253: fi
                   4254:
                   4255: fi
                   4256:
                   4257: fi
                   4258:
                   4259: fi
                   4260:
                   4261: fi
                   4262:
                   4263: if test $ac_cv_prog_gcc = yes; then
                   4264:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.4     ! millert  4265: echo "configure:4266: checking whether ${CC-cc} needs -traditional" >&5
1.1       millert  4266: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   4267:   echo $ac_n "(cached) $ac_c" 1>&6
                   4268: else
                   4269:     ac_pattern="Autoconf.*'x'"
                   4270:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4271: #line 4272 "configure"
1.1       millert  4272: #include "confdefs.h"
                   4273: #include <sgtty.h>
                   4274: Autoconf TIOCGETP
                   4275: EOF
                   4276: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4277:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4278:   rm -rf conftest*
                   4279:   ac_cv_prog_gcc_traditional=yes
                   4280: else
                   4281:   rm -rf conftest*
                   4282:   ac_cv_prog_gcc_traditional=no
                   4283: fi
                   4284: rm -f conftest*
                   4285:
                   4286:
                   4287:   if test $ac_cv_prog_gcc_traditional = no; then
                   4288:     cat > conftest.$ac_ext <<EOF
1.4     ! millert  4289: #line 4290 "configure"
1.1       millert  4290: #include "confdefs.h"
                   4291: #include <termio.h>
                   4292: Autoconf TCGETA
                   4293: EOF
                   4294: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4295:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4296:   rm -rf conftest*
                   4297:   ac_cv_prog_gcc_traditional=yes
                   4298: fi
                   4299: rm -f conftest*
                   4300:
                   4301:   fi
                   4302: fi
                   4303:
                   4304: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   4305:   if test $ac_cv_prog_gcc_traditional = yes; then
                   4306:     CC="$CC -traditional"
                   4307:   fi
                   4308: fi
                   4309:
                   4310: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.4     ! millert  4311: echo "configure:4312: checking for working const" >&5
1.1       millert  4312: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   4313:   echo $ac_n "(cached) $ac_c" 1>&6
                   4314: else
                   4315:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4316: #line 4317 "configure"
1.1       millert  4317: #include "confdefs.h"
                   4318:
                   4319: int main() {
                   4320:
                   4321: /* Ultrix mips cc rejects this.  */
                   4322: typedef int charset[2]; const charset x;
                   4323: /* SunOS 4.1.1 cc rejects this.  */
                   4324: char const *const *ccp;
                   4325: char **p;
                   4326: /* NEC SVR4.0.2 mips cc rejects this.  */
                   4327: struct point {int x, y;};
                   4328: static struct point const zero = {0,0};
                   4329: /* AIX XL C 1.02.0.0 rejects this.
                   4330:    It does not let you subtract one const X* pointer from another in an arm
                   4331:    of an if-expression whose if-part is not a constant expression */
                   4332: const char *g = "string";
                   4333: ccp = &g + (g ? g-g : 0);
                   4334: /* HPUX 7.0 cc rejects these. */
                   4335: ++ccp;
                   4336: p = (char**) ccp;
                   4337: ccp = (char const *const *) p;
                   4338: { /* SCO 3.2v4 cc rejects this.  */
                   4339:   char *t;
                   4340:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   4341:
                   4342:   *t++ = 0;
                   4343: }
                   4344: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   4345:   int x[] = {25, 17};
                   4346:   const int *foo = &x[0];
                   4347:   ++foo;
                   4348: }
                   4349: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   4350:   typedef const int *iptr;
                   4351:   iptr p = 0;
                   4352:   ++p;
                   4353: }
                   4354: { /* AIX XL C 1.02.0.0 rejects this saying
                   4355:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   4356:   struct s { int j; const int *ap[3]; };
                   4357:   struct s *b; b->j = 5;
                   4358: }
                   4359: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   4360:   const int foo = 10;
                   4361: }
                   4362:
                   4363: ; return 0; }
                   4364: EOF
1.4     ! millert  4365: if { (eval echo configure:4366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  4366:   rm -rf conftest*
                   4367:   ac_cv_c_const=yes
                   4368: else
                   4369:   echo "configure: failed program was:" >&5
                   4370:   cat conftest.$ac_ext >&5
                   4371:   rm -rf conftest*
                   4372:   ac_cv_c_const=no
                   4373: fi
                   4374: rm -f conftest*
                   4375: fi
                   4376:
                   4377: echo "$ac_t""$ac_cv_c_const" 1>&6
                   4378: if test $ac_cv_c_const = no; then
                   4379:   cat >> confdefs.h <<\EOF
                   4380: #define const
                   4381: EOF
                   4382:
                   4383: fi
                   4384:
                   4385: for ac_prog in 'bison -y' byacc
                   4386: do
                   4387: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4388: set dummy $ac_prog; ac_word=$2
                   4389: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.4     ! millert  4390: echo "configure:4391: checking for $ac_word" >&5
1.1       millert  4391: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
                   4392:   echo $ac_n "(cached) $ac_c" 1>&6
                   4393: else
                   4394:   if test -n "$YACC"; then
                   4395:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   4396: else
                   4397:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   4398:   for ac_dir in $PATH; do
                   4399:     test -z "$ac_dir" && ac_dir=.
                   4400:     if test -f $ac_dir/$ac_word; then
                   4401:       ac_cv_prog_YACC="$ac_prog"
                   4402:       break
                   4403:     fi
                   4404:   done
                   4405:   IFS="$ac_save_ifs"
                   4406: fi
                   4407: fi
                   4408: YACC="$ac_cv_prog_YACC"
                   4409: if test -n "$YACC"; then
                   4410:   echo "$ac_t""$YACC" 1>&6
                   4411: else
                   4412:   echo "$ac_t""no" 1>&6
                   4413: fi
                   4414:
                   4415: test -n "$YACC" && break
                   4416: done
                   4417: test -n "$YACC" || YACC="yacc"
                   4418:
                   4419: if test -z "$with_sendmail"; then
                   4420:     echo $ac_n "checking for sendmail""... $ac_c" 1>&6
1.4     ! millert  4421: echo "configure:4422: checking for sendmail" >&5
1.1       millert  4422: if test -f "/usr/sbin/sendmail"; then
                   4423:     echo "$ac_t""/usr/sbin/sendmail" 1>&6
                   4424:     cat >> confdefs.h <<\EOF
                   4425: #define _PATH_SENDMAIL "/usr/sbin/sendmail"
                   4426: EOF
                   4427:
                   4428: elif test -f "/usr/lib/sendmail"; then
                   4429:     echo "$ac_t""/usr/lib/sendmail" 1>&6
                   4430:     cat >> confdefs.h <<\EOF
                   4431: #define _PATH_SENDMAIL "/usr/lib/sendmail"
                   4432: EOF
                   4433:
                   4434: elif test -f "/usr/etc/sendmail"; then
                   4435:     echo "$ac_t""/usr/etc/sendmail" 1>&6
                   4436:     cat >> confdefs.h <<\EOF
                   4437: #define _PATH_SENDMAIL "/usr/etc/sendmail"
                   4438: EOF
                   4439:
                   4440: elif test -f "/usr/ucblib/sendmail"; then
                   4441:     echo "$ac_t""/usr/ucblib/sendmail" 1>&6
                   4442:     cat >> confdefs.h <<\EOF
                   4443: #define _PATH_SENDMAIL "/usr/ucblib/sendmail"
                   4444: EOF
                   4445:
                   4446: elif test -f "/usr/local/lib/sendmail"; then
                   4447:     echo "$ac_t""/usr/local/lib/sendmail" 1>&6
                   4448:     cat >> confdefs.h <<\EOF
                   4449: #define _PATH_SENDMAIL "/usr/local/lib/sendmail"
                   4450: EOF
                   4451:
                   4452: elif test -f "/usr/local/bin/sendmail"; then
                   4453:     echo "$ac_t""/usr/local/bin/sendmail" 1>&6
                   4454:     cat >> confdefs.h <<\EOF
                   4455: #define _PATH_SENDMAIL "/usr/local/bin/sendmail"
                   4456: EOF
                   4457:
                   4458: else
                   4459:     echo "$ac_t""not found" 1>&6
                   4460: fi
                   4461:
                   4462: fi
                   4463: echo $ac_n "checking for mv""... $ac_c" 1>&6
1.4     ! millert  4464: echo "configure:4465: checking for mv" >&5
1.1       millert  4465: if test -f "/usr/bin/mv"; then
                   4466:     echo "$ac_t""/usr/bin/mv" 1>&6
                   4467:     cat >> confdefs.h <<\EOF
                   4468: #define _PATH_MV "/usr/bin/mv"
                   4469: EOF
                   4470:
                   4471: elif test -f "/bin/mv"; then
                   4472:     echo "$ac_t""/bin/mv" 1>&6
                   4473:     cat >> confdefs.h <<\EOF
                   4474: #define _PATH_MV "/bin/mv"
                   4475: EOF
                   4476:
                   4477: elif test -f "/usr/ucb/mv"; then
                   4478:     echo "$ac_t""/usr/ucb/mv" 1>&6
                   4479:     cat >> confdefs.h <<\EOF
                   4480: #define _PATH_MV "/usr/ucb/mv"
                   4481: EOF
                   4482:
                   4483: elif test -f "/usr/sbin/mv"; then
                   4484:     echo "$ac_t""/usr/sbin/mv" 1>&6
                   4485:     cat >> confdefs.h <<\EOF
                   4486: #define _PATH_MV "/usr/sbin/mv"
                   4487: EOF
                   4488:
                   4489: else
                   4490:     echo "$ac_t""not found" 1>&6
                   4491: fi
                   4492:
                   4493: echo $ac_n "checking for bourne shell""... $ac_c" 1>&6
1.4     ! millert  4494: echo "configure:4495: checking for bourne shell" >&5
1.1       millert  4495: if test -f "/bin/sh"; then
                   4496:     echo "$ac_t""/bin/sh" 1>&6
                   4497:     cat >> confdefs.h <<\EOF
                   4498: #define _PATH_BSHELL "/bin/sh"
                   4499: EOF
                   4500:
                   4501: elif test -f "/usr/bin/sh"; then
                   4502:     echo "$ac_t""/usr/bin/sh" 1>&6
                   4503:     cat >> confdefs.h <<\EOF
                   4504: #define _PATH_BSHELL "/usr/bin/sh"
                   4505: EOF
                   4506:
                   4507: elif test -f "/sbin/sh"; then
                   4508:     echo "$ac_t""/sbin/sh" 1>&6
                   4509:     cat >> confdefs.h <<\EOF
                   4510: #define _PATH_BSHELL "/sbin/sh"
                   4511: EOF
                   4512:
                   4513: elif test -f "/usr/sbin/sh"; then
                   4514:     echo "$ac_t""/usr/sbin/sh" 1>&6
                   4515:     cat >> confdefs.h <<\EOF
                   4516: #define _PATH_BSHELL "/usr/sbin/sh"
                   4517: EOF
                   4518:
                   4519: elif test -f "/bin/ksh"; then
                   4520:     echo "$ac_t""/bin/ksh" 1>&6
                   4521:     cat >> confdefs.h <<\EOF
                   4522: #define _PATH_BSHELL "/bin/ksh"
                   4523: EOF
                   4524:
                   4525: elif test -f "/usr/bin/ksh"; then
                   4526:     echo "$ac_t""/usr/bin/ksh" 1>&6
                   4527:     cat >> confdefs.h <<\EOF
                   4528: #define _PATH_BSHELL "/usr/bin/ksh"
                   4529: EOF
                   4530:
                   4531: elif test -f "/bin/bash"; then
                   4532:     echo "$ac_t""/bin/bash" 1>&6
                   4533:     cat >> confdefs.h <<\EOF
                   4534: #define _PATH_BSHELL "/bin/bash"
                   4535: EOF
                   4536:
                   4537: elif test -f "/usr/bin/bash"; then
                   4538:     echo "$ac_t""/usr/bin/bash" 1>&6
                   4539:     cat >> confdefs.h <<\EOF
                   4540: #define _PATH_BSHELL "/usr/bin/bash"
                   4541: EOF
                   4542:
                   4543: else
                   4544:     echo "$ac_t""not found" 1>&6
                   4545: fi
                   4546:
                   4547: echo $ac_n "checking for vi""... $ac_c" 1>&6
1.4     ! millert  4548: echo "configure:4549: checking for vi" >&5
1.1       millert  4549: if test -f "/usr/bin/vi"; then
                   4550:     echo "$ac_t""/usr/bin/vi" 1>&6
                   4551:     cat >> confdefs.h <<\EOF
                   4552: #define _PATH_VI "/usr/bin/vi"
                   4553: EOF
                   4554:
                   4555: elif test -f "/usr/ucb/vi"; then
                   4556:     echo "$ac_t""/usr/ucb/vi" 1>&6
                   4557:     cat >> confdefs.h <<\EOF
                   4558: #define _PATH_VI "/usr/ucb/vi"
                   4559: EOF
                   4560:
                   4561: elif test -f "/usr/bsd/vi"; then
                   4562:     echo "$ac_t""/usr/bsd/vi" 1>&6
                   4563:     cat >> confdefs.h <<\EOF
                   4564: #define _PATH_VI "/usr/bsd/vi"
                   4565: EOF
                   4566:
                   4567: elif test -f "/bin/vi"; then
                   4568:     echo "$ac_t""/bin/vi" 1>&6
                   4569:     cat >> confdefs.h <<\EOF
                   4570: #define _PATH_VI "/bin/vi"
                   4571: EOF
                   4572:
                   4573: elif test -f "/usr/local/bin/vi"; then
                   4574:     echo "$ac_t""/usr/local/bin/vi" 1>&6
                   4575:     cat >> confdefs.h <<\EOF
                   4576: #define _PATH_VI "/usr/local/bin/vi"
                   4577: EOF
                   4578:
                   4579: else
                   4580:     echo "$ac_t""not found" 1>&6
                   4581: fi
                   4582:
                   4583: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.4     ! millert  4584: echo "configure:4585: checking for ANSI C header files" >&5
1.1       millert  4585: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   4586:   echo $ac_n "(cached) $ac_c" 1>&6
                   4587: else
                   4588:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4589: #line 4590 "configure"
1.1       millert  4590: #include "confdefs.h"
                   4591: #include <stdlib.h>
                   4592: #include <stdarg.h>
                   4593: #include <string.h>
                   4594: #include <float.h>
                   4595: EOF
                   4596: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4     ! millert  4597: { (eval echo configure:4598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4598: ac_err=`grep -v '^ *+' conftest.out`
                   4599: if test -z "$ac_err"; then
                   4600:   rm -rf conftest*
                   4601:   ac_cv_header_stdc=yes
                   4602: else
                   4603:   echo "$ac_err" >&5
                   4604:   echo "configure: failed program was:" >&5
                   4605:   cat conftest.$ac_ext >&5
                   4606:   rm -rf conftest*
                   4607:   ac_cv_header_stdc=no
                   4608: fi
                   4609: rm -f conftest*
                   4610:
                   4611: if test $ac_cv_header_stdc = yes; then
                   4612:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   4613: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4614: #line 4615 "configure"
1.1       millert  4615: #include "confdefs.h"
                   4616: #include <string.h>
                   4617: EOF
                   4618: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4619:   egrep "memchr" >/dev/null 2>&1; then
                   4620:   :
                   4621: else
                   4622:   rm -rf conftest*
                   4623:   ac_cv_header_stdc=no
                   4624: fi
                   4625: rm -f conftest*
                   4626:
                   4627: fi
                   4628:
                   4629: if test $ac_cv_header_stdc = yes; then
                   4630:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   4631: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4632: #line 4633 "configure"
1.1       millert  4633: #include "confdefs.h"
                   4634: #include <stdlib.h>
                   4635: EOF
                   4636: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4637:   egrep "free" >/dev/null 2>&1; then
                   4638:   :
                   4639: else
                   4640:   rm -rf conftest*
                   4641:   ac_cv_header_stdc=no
                   4642: fi
                   4643: rm -f conftest*
                   4644:
                   4645: fi
                   4646:
                   4647: if test $ac_cv_header_stdc = yes; then
                   4648:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   4649: if test "$cross_compiling" = yes; then
                   4650:   :
                   4651: else
                   4652:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4653: #line 4654 "configure"
1.1       millert  4654: #include "confdefs.h"
                   4655: #include <ctype.h>
                   4656: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   4657: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   4658: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   4659: int main () { int i; for (i = 0; i < 256; i++)
                   4660: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   4661: exit (0); }
                   4662:
                   4663: EOF
1.4     ! millert  4664: if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  4665: then
                   4666:   :
                   4667: else
                   4668:   echo "configure: failed program was:" >&5
                   4669:   cat conftest.$ac_ext >&5
                   4670:   rm -fr conftest*
                   4671:   ac_cv_header_stdc=no
                   4672: fi
                   4673: rm -fr conftest*
                   4674: fi
                   4675:
                   4676: fi
                   4677: fi
                   4678:
                   4679: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   4680: if test $ac_cv_header_stdc = yes; then
                   4681:   cat >> confdefs.h <<\EOF
                   4682: #define STDC_HEADERS 1
                   4683: EOF
                   4684:
                   4685: fi
                   4686:
                   4687: ac_header_dirent=no
                   4688: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   4689: do
                   4690: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4691: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.4     ! millert  4692: echo "configure:4693: checking for $ac_hdr that defines DIR" >&5
1.1       millert  4693: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   4694:   echo $ac_n "(cached) $ac_c" 1>&6
                   4695: else
                   4696:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4697: #line 4698 "configure"
1.1       millert  4698: #include "confdefs.h"
                   4699: #include <sys/types.h>
                   4700: #include <$ac_hdr>
                   4701: int main() {
                   4702: DIR *dirp = 0;
                   4703: ; return 0; }
                   4704: EOF
1.4     ! millert  4705: if { (eval echo configure:4706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  4706:   rm -rf conftest*
                   4707:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   4708: else
                   4709:   echo "configure: failed program was:" >&5
                   4710:   cat conftest.$ac_ext >&5
                   4711:   rm -rf conftest*
                   4712:   eval "ac_cv_header_dirent_$ac_safe=no"
                   4713: fi
                   4714: rm -f conftest*
                   4715: fi
                   4716: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   4717:   echo "$ac_t""yes" 1>&6
                   4718:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4719:   cat >> confdefs.h <<EOF
                   4720: #define $ac_tr_hdr 1
                   4721: EOF
                   4722:  ac_header_dirent=$ac_hdr; break
                   4723: else
                   4724:   echo "$ac_t""no" 1>&6
                   4725: fi
                   4726: done
                   4727: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   4728: if test $ac_header_dirent = dirent.h; then
                   4729: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.4     ! millert  4730: echo "configure:4731: checking for opendir in -ldir" >&5
1.1       millert  4731: if test -n ""; then
                   4732:   ac_lib_var=`echo dir'_'opendir | sed 'y% ./+-%___p_%'`
                   4733: else
                   4734:   ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
                   4735: fi
                   4736: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4737:   echo $ac_n "(cached) $ac_c" 1>&6
                   4738: else
                   4739:   ac_save_LIBS="$LIBS"
                   4740: LIBS="-ldir  $LIBS"
                   4741: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4742: #line 4743 "configure"
1.1       millert  4743: #include "confdefs.h"
                   4744: /* Override any gcc2 internal prototype to avoid an error.  */
                   4745: /* We use char because int might match the return type of a gcc2
                   4746:     builtin and then its argument prototype would still apply.  */
                   4747: char opendir();
                   4748:
                   4749: int main() {
                   4750: opendir()
                   4751: ; return 0; }
                   4752: EOF
1.4     ! millert  4753: if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4754:   rm -rf conftest*
                   4755:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4756: else
                   4757:   echo "configure: failed program was:" >&5
                   4758:   cat conftest.$ac_ext >&5
                   4759:   rm -rf conftest*
                   4760:   eval "ac_cv_lib_$ac_lib_var=no"
                   4761: fi
                   4762: rm -f conftest*
                   4763: LIBS="$ac_save_LIBS"
                   4764:
                   4765: fi
                   4766: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4767:   echo "$ac_t""yes" 1>&6
                   4768:   LIBS="$LIBS -ldir"
                   4769: else
                   4770:   echo "$ac_t""no" 1>&6
                   4771: fi
                   4772:
                   4773: else
                   4774: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.4     ! millert  4775: echo "configure:4776: checking for opendir in -lx" >&5
1.1       millert  4776: if test -n ""; then
                   4777:   ac_lib_var=`echo x'_'opendir | sed 'y% ./+-%___p_%'`
                   4778: else
                   4779:   ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
                   4780: fi
                   4781: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4782:   echo $ac_n "(cached) $ac_c" 1>&6
                   4783: else
                   4784:   ac_save_LIBS="$LIBS"
                   4785: LIBS="-lx  $LIBS"
                   4786: cat > conftest.$ac_ext <<EOF
1.4     ! millert  4787: #line 4788 "configure"
1.1       millert  4788: #include "confdefs.h"
                   4789: /* Override any gcc2 internal prototype to avoid an error.  */
                   4790: /* We use char because int might match the return type of a gcc2
                   4791:     builtin and then its argument prototype would still apply.  */
                   4792: char opendir();
                   4793:
                   4794: int main() {
                   4795: opendir()
                   4796: ; return 0; }
                   4797: EOF
1.4     ! millert  4798: if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4799:   rm -rf conftest*
                   4800:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4801: else
                   4802:   echo "configure: failed program was:" >&5
                   4803:   cat conftest.$ac_ext >&5
                   4804:   rm -rf conftest*
                   4805:   eval "ac_cv_lib_$ac_lib_var=no"
                   4806: fi
                   4807: rm -f conftest*
                   4808: LIBS="$ac_save_LIBS"
                   4809:
                   4810: fi
                   4811: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4812:   echo "$ac_t""yes" 1>&6
                   4813:   LIBS="$LIBS -lx"
                   4814: else
                   4815:   echo "$ac_t""no" 1>&6
                   4816: fi
                   4817:
                   4818: fi
                   4819:
1.3       millert  4820: 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  4821: do
                   4822: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4823: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.4     ! millert  4824: echo "configure:4825: checking for $ac_hdr" >&5
1.1       millert  4825: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4826:   echo $ac_n "(cached) $ac_c" 1>&6
                   4827: else
                   4828:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4829: #line 4830 "configure"
1.1       millert  4830: #include "confdefs.h"
                   4831: #include <$ac_hdr>
                   4832: EOF
                   4833: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4     ! millert  4834: { (eval echo configure:4835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4835: ac_err=`grep -v '^ *+' conftest.out`
                   4836: if test -z "$ac_err"; then
                   4837:   rm -rf conftest*
                   4838:   eval "ac_cv_header_$ac_safe=yes"
                   4839: else
                   4840:   echo "$ac_err" >&5
                   4841:   echo "configure: failed program was:" >&5
                   4842:   cat conftest.$ac_ext >&5
                   4843:   rm -rf conftest*
                   4844:   eval "ac_cv_header_$ac_safe=no"
                   4845: fi
                   4846: rm -f conftest*
                   4847: fi
                   4848: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4849:   echo "$ac_t""yes" 1>&6
                   4850:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4851:   cat >> confdefs.h <<EOF
                   4852: #define $ac_tr_hdr 1
                   4853: EOF
                   4854:
                   4855: else
                   4856:   echo "$ac_t""no" 1>&6
                   4857: fi
                   4858: done
                   4859:
                   4860: if test "$OS" != "ultrix"; then
                   4861:     for ac_hdr in termio.h
                   4862: do
                   4863: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4864: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.4     ! millert  4865: echo "configure:4866: checking for $ac_hdr" >&5
1.1       millert  4866: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4867:   echo $ac_n "(cached) $ac_c" 1>&6
                   4868: else
                   4869:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4870: #line 4871 "configure"
1.1       millert  4871: #include "confdefs.h"
                   4872: #include <$ac_hdr>
                   4873: EOF
                   4874: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4     ! millert  4875: { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4876: ac_err=`grep -v '^ *+' conftest.out`
                   4877: if test -z "$ac_err"; then
                   4878:   rm -rf conftest*
                   4879:   eval "ac_cv_header_$ac_safe=yes"
                   4880: else
                   4881:   echo "$ac_err" >&5
                   4882:   echo "configure: failed program was:" >&5
                   4883:   cat conftest.$ac_ext >&5
                   4884:   rm -rf conftest*
                   4885:   eval "ac_cv_header_$ac_safe=no"
                   4886: fi
                   4887: rm -f conftest*
                   4888: fi
                   4889: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4890:   echo "$ac_t""yes" 1>&6
                   4891:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4892:   cat >> confdefs.h <<EOF
                   4893: #define $ac_tr_hdr 1
                   4894: EOF
                   4895:
                   4896: else
                   4897:   echo "$ac_t""no" 1>&6
                   4898: fi
                   4899: done
                   4900:
                   4901:     for ac_hdr in termios.h
                   4902: do
                   4903: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4904: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.4     ! millert  4905: echo "configure:4906: checking for $ac_hdr" >&5
1.1       millert  4906: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4907:   echo $ac_n "(cached) $ac_c" 1>&6
                   4908: else
                   4909:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4910: #line 4911 "configure"
1.1       millert  4911: #include "confdefs.h"
                   4912: #include <$ac_hdr>
                   4913: EOF
                   4914: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4     ! millert  4915: { (eval echo configure:4916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4916: ac_err=`grep -v '^ *+' conftest.out`
                   4917: if test -z "$ac_err"; then
                   4918:   rm -rf conftest*
                   4919:   eval "ac_cv_header_$ac_safe=yes"
                   4920: else
                   4921:   echo "$ac_err" >&5
                   4922:   echo "configure: failed program was:" >&5
                   4923:   cat conftest.$ac_ext >&5
                   4924:   rm -rf conftest*
                   4925:   eval "ac_cv_header_$ac_safe=no"
                   4926: fi
                   4927: rm -f conftest*
                   4928: fi
                   4929: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4930:   echo "$ac_t""yes" 1>&6
                   4931:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4932:   cat >> confdefs.h <<EOF
                   4933: #define $ac_tr_hdr 1
                   4934: EOF
                   4935:  for ac_func in tcgetattr
                   4936: do
                   4937: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  4938: echo "configure:4939: checking for $ac_func" >&5
1.1       millert  4939: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   4940:   echo $ac_n "(cached) $ac_c" 1>&6
                   4941: else
                   4942:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  4943: #line 4944 "configure"
1.1       millert  4944: #include "confdefs.h"
                   4945: /* System header to define __stub macros and hopefully few prototypes,
                   4946:     which can conflict with char $ac_func(); below.  */
                   4947: #include <assert.h>
                   4948: /* Override any gcc2 internal prototype to avoid an error.  */
                   4949: /* We use char because int might match the return type of a gcc2
                   4950:     builtin and then its argument prototype would still apply.  */
                   4951: char $ac_func();
                   4952:
                   4953: int main() {
                   4954:
                   4955: /* The GNU C library defines this for functions which it implements
                   4956:     to always fail with ENOSYS.  Some functions are actually named
                   4957:     something starting with __ and the normal name is an alias.  */
                   4958: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4959: choke me
                   4960: #else
                   4961: $ac_func();
                   4962: #endif
                   4963:
                   4964: ; return 0; }
                   4965: EOF
1.4     ! millert  4966: if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4967:   rm -rf conftest*
                   4968:   eval "ac_cv_func_$ac_func=yes"
                   4969: else
                   4970:   echo "configure: failed program was:" >&5
                   4971:   cat conftest.$ac_ext >&5
                   4972:   rm -rf conftest*
                   4973:   eval "ac_cv_func_$ac_func=no"
                   4974: fi
                   4975: rm -f conftest*
                   4976: fi
                   4977:
                   4978: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   4979:   echo "$ac_t""yes" 1>&6
                   4980:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4981:   cat >> confdefs.h <<EOF
                   4982: #define $ac_tr_func 1
                   4983: EOF
                   4984:
                   4985: else
                   4986:   echo "$ac_t""no" 1>&6
                   4987: fi
                   4988: done
                   4989:
                   4990: else
                   4991:   echo "$ac_t""no" 1>&6
                   4992: fi
                   4993: done
                   4994:
                   4995: fi
                   4996: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.4     ! millert  4997: echo "configure:4998: checking for mode_t" >&5
1.1       millert  4998: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   4999:   echo $ac_n "(cached) $ac_c" 1>&6
                   5000: else
                   5001:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5002: #line 5003 "configure"
1.1       millert  5003: #include "confdefs.h"
                   5004: #include <sys/types.h>
                   5005: #if STDC_HEADERS
                   5006: #include <stdlib.h>
                   5007: #include <stddef.h>
                   5008: #endif
                   5009: EOF
                   5010: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5011:   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   5012:   rm -rf conftest*
                   5013:   ac_cv_type_mode_t=yes
                   5014: else
                   5015:   rm -rf conftest*
                   5016:   ac_cv_type_mode_t=no
                   5017: fi
                   5018: rm -f conftest*
                   5019:
                   5020: fi
                   5021: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   5022: if test $ac_cv_type_mode_t = no; then
                   5023:   cat >> confdefs.h <<\EOF
                   5024: #define mode_t int
                   5025: EOF
                   5026:
                   5027: fi
                   5028:
                   5029: echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1.4     ! millert  5030: echo "configure:5031: checking for uid_t in sys/types.h" >&5
1.1       millert  5031: if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
                   5032:   echo $ac_n "(cached) $ac_c" 1>&6
                   5033: else
                   5034:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5035: #line 5036 "configure"
1.1       millert  5036: #include "confdefs.h"
                   5037: #include <sys/types.h>
                   5038: EOF
                   5039: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5040:   egrep "uid_t" >/dev/null 2>&1; then
                   5041:   rm -rf conftest*
                   5042:   ac_cv_type_uid_t=yes
                   5043: else
                   5044:   rm -rf conftest*
                   5045:   ac_cv_type_uid_t=no
                   5046: fi
                   5047: rm -f conftest*
                   5048:
                   5049: fi
                   5050:
                   5051: echo "$ac_t""$ac_cv_type_uid_t" 1>&6
                   5052: if test $ac_cv_type_uid_t = no; then
                   5053:   cat >> confdefs.h <<\EOF
                   5054: #define uid_t int
                   5055: EOF
                   5056:
                   5057:   cat >> confdefs.h <<\EOF
                   5058: #define gid_t int
                   5059: EOF
                   5060:
                   5061: fi
                   5062:
                   5063: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.4     ! millert  5064: echo "configure:5065: checking for size_t" >&5
1.1       millert  5065: if eval "test \"`echo '$''{'sudo_cv_type_size_t'+set}'`\" = set"; then
                   5066:   echo $ac_n "(cached) $ac_c" 1>&6
                   5067: else
                   5068:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5069: #line 5070 "configure"
1.1       millert  5070: #include "confdefs.h"
                   5071: #include <sys/types.h>
                   5072: #if STDC_HEADERS
                   5073: #include <stdlib.h>
                   5074: #endif
                   5075: #if HAVE_UNISTD_H
                   5076: #include <unistd.h>
                   5077: #endif
                   5078: EOF
                   5079: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5080:   egrep "size_t" >/dev/null 2>&1; then
                   5081:   rm -rf conftest*
                   5082:   sudo_cv_type_size_t=yes
                   5083: else
                   5084:   rm -rf conftest*
                   5085:   sudo_cv_type_size_t=no
                   5086: fi
                   5087: rm -f conftest*
                   5088:
                   5089: fi
                   5090: echo "$ac_t""$sudo_cv_type_size_t" 1>&6
                   5091: if test $sudo_cv_type_size_t = no; then
                   5092:   cat >> confdefs.h <<\EOF
                   5093: #define size_t int
                   5094: EOF
                   5095:
                   5096: fi
                   5097:
                   5098: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.4     ! millert  5099: echo "configure:5100: checking for ssize_t" >&5
1.1       millert  5100: if eval "test \"`echo '$''{'sudo_cv_type_ssize_t'+set}'`\" = set"; then
                   5101:   echo $ac_n "(cached) $ac_c" 1>&6
                   5102: else
                   5103:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5104: #line 5105 "configure"
1.1       millert  5105: #include "confdefs.h"
                   5106: #include <sys/types.h>
                   5107: #if STDC_HEADERS
                   5108: #include <stdlib.h>
                   5109: #endif
                   5110: #if HAVE_UNISTD_H
                   5111: #include <unistd.h>
                   5112: #endif
                   5113: EOF
                   5114: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5115:   egrep "ssize_t" >/dev/null 2>&1; then
                   5116:   rm -rf conftest*
                   5117:   sudo_cv_type_ssize_t=yes
                   5118: else
                   5119:   rm -rf conftest*
                   5120:   sudo_cv_type_ssize_t=no
                   5121: fi
                   5122: rm -f conftest*
                   5123:
                   5124: fi
                   5125: echo "$ac_t""$sudo_cv_type_ssize_t" 1>&6
                   5126: if test $sudo_cv_type_ssize_t = no; then
                   5127:   cat >> confdefs.h <<\EOF
                   5128: #define ssize_t int
                   5129: EOF
                   5130:
                   5131: fi
                   5132:
                   5133: echo $ac_n "checking for dev_t""... $ac_c" 1>&6
1.4     ! millert  5134: echo "configure:5135: checking for dev_t" >&5
1.1       millert  5135: if eval "test \"`echo '$''{'sudo_cv_type_dev_t'+set}'`\" = set"; then
                   5136:   echo $ac_n "(cached) $ac_c" 1>&6
                   5137: else
                   5138:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5139: #line 5140 "configure"
1.1       millert  5140: #include "confdefs.h"
                   5141: #include <sys/types.h>
                   5142: #if STDC_HEADERS
                   5143: #include <stdlib.h>
                   5144: #endif
                   5145: #if HAVE_UNISTD_H
                   5146: #include <unistd.h>
                   5147: #endif
                   5148: EOF
                   5149: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5150:   egrep "dev_t" >/dev/null 2>&1; then
                   5151:   rm -rf conftest*
                   5152:   sudo_cv_type_dev_t=yes
                   5153: else
                   5154:   rm -rf conftest*
                   5155:   sudo_cv_type_dev_t=no
                   5156: fi
                   5157: rm -f conftest*
                   5158:
                   5159: fi
                   5160: echo "$ac_t""$sudo_cv_type_dev_t" 1>&6
                   5161: if test $sudo_cv_type_dev_t = no; then
                   5162:   cat >> confdefs.h <<\EOF
                   5163: #define dev_t int
                   5164: EOF
                   5165:
                   5166: fi
                   5167:
                   5168: echo $ac_n "checking for ino_t""... $ac_c" 1>&6
1.4     ! millert  5169: echo "configure:5170: checking for ino_t" >&5
1.1       millert  5170: if eval "test \"`echo '$''{'sudo_cv_type_ino_t'+set}'`\" = set"; then
                   5171:   echo $ac_n "(cached) $ac_c" 1>&6
                   5172: else
                   5173:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5174: #line 5175 "configure"
1.1       millert  5175: #include "confdefs.h"
                   5176: #include <sys/types.h>
                   5177: #if STDC_HEADERS
                   5178: #include <stdlib.h>
                   5179: #endif
                   5180: #if HAVE_UNISTD_H
                   5181: #include <unistd.h>
                   5182: #endif
                   5183: EOF
                   5184: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5185:   egrep "ino_t" >/dev/null 2>&1; then
                   5186:   rm -rf conftest*
                   5187:   sudo_cv_type_ino_t=yes
                   5188: else
                   5189:   rm -rf conftest*
                   5190:   sudo_cv_type_ino_t=no
                   5191: fi
                   5192: rm -f conftest*
                   5193:
                   5194: fi
                   5195: echo "$ac_t""$sudo_cv_type_ino_t" 1>&6
                   5196: if test $sudo_cv_type_ino_t = no; then
                   5197:   cat >> confdefs.h <<\EOF
                   5198: #define ino_t unsigned int
                   5199: EOF
                   5200:
                   5201: fi
                   5202:
                   5203: echo $ac_n "checking for full void implementation""... $ac_c" 1>&6
1.4     ! millert  5204: echo "configure:5205: checking for full void implementation" >&5
1.1       millert  5205: cat > conftest.$ac_ext <<EOF
1.4     ! millert  5206: #line 5207 "configure"
1.1       millert  5207: #include "confdefs.h"
                   5208:
                   5209: int main() {
                   5210: void *foo;
                   5211: foo = (void *)0; (void *)"test";
                   5212: ; return 0; }
                   5213: EOF
1.4     ! millert  5214: if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  5215:   rm -rf conftest*
                   5216:   cat >> confdefs.h <<\EOF
                   5217: #define VOID void
                   5218: EOF
                   5219:
                   5220: echo "$ac_t""yes" 1>&6
                   5221: else
                   5222:   echo "configure: failed program was:" >&5
                   5223:   cat conftest.$ac_ext >&5
                   5224:   rm -rf conftest*
                   5225:   cat >> confdefs.h <<\EOF
                   5226: #define VOID char
                   5227: EOF
                   5228:
                   5229: echo "$ac_t""no" 1>&6
                   5230: fi
                   5231: rm -f conftest*
                   5232:
                   5233: echo $ac_n "checking max length of uid_t""... $ac_c" 1>&6
1.4     ! millert  5234: echo "configure:5235: checking max length of uid_t" >&5
1.1       millert  5235: if eval "test \"`echo '$''{'sudo_cv_uid_t_len'+set}'`\" = set"; then
                   5236:   echo $ac_n "(cached) $ac_c" 1>&6
                   5237: else
                   5238:   rm -f conftestdata
                   5239: if test "$cross_compiling" = yes; then
                   5240:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5241: else
                   5242:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5243: #line 5244 "configure"
1.1       millert  5244: #include "confdefs.h"
                   5245: #include <stdio.h>
                   5246: #include <pwd.h>
                   5247: #include <limits.h>
                   5248: #include <sys/types.h>
                   5249: #include <sys/param.h>
                   5250: main() {
                   5251:   FILE *f;
                   5252:   char b[1024];
                   5253:   uid_t u = (uid_t) -1;
                   5254:
                   5255:   if ((f = fopen("conftestdata", "w")) == NULL)
                   5256:     exit(1);
                   5257:
                   5258:   (void) sprintf(b, "%u", u);
                   5259:   (void) fprintf(f, "%d\n", strlen(b));
                   5260:   (void) fclose(f);
                   5261:   exit(0);
                   5262: }
                   5263: EOF
1.4     ! millert  5264: if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5265: then
                   5266:   sudo_cv_uid_t_len=`cat conftestdata`
                   5267: else
                   5268:   echo "configure: failed program was:" >&5
                   5269:   cat conftest.$ac_ext >&5
                   5270:   rm -fr conftest*
                   5271:   sudo_cv_uid_t_len=10
                   5272: fi
                   5273: rm -fr conftest*
                   5274: fi
                   5275:
                   5276:
                   5277: fi
                   5278:
                   5279: rm -f conftestdata
                   5280: echo "$ac_t""$sudo_cv_uid_t_len" 1>&6
                   5281: cat >> confdefs.h <<EOF
                   5282: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   5283: EOF
                   5284:
                   5285:
                   5286: echo $ac_n "checking for long long support""... $ac_c" 1>&6
1.4     ! millert  5287: echo "configure:5288: checking for long long support" >&5
1.1       millert  5288: cat > conftest.$ac_ext <<EOF
1.4     ! millert  5289: #line 5290 "configure"
1.1       millert  5290: #include "confdefs.h"
                   5291:
                   5292: int main() {
                   5293: long long foo = 1000; foo /= 10;
                   5294: ; return 0; }
                   5295: EOF
1.4     ! millert  5296: if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5297:   rm -rf conftest*
                   5298:   cat >> confdefs.h <<\EOF
                   5299: #define HAVE_LONG_LONG 1
                   5300: EOF
                   5301:
                   5302: if test "$cross_compiling" = yes; then
                   5303:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5304: else
                   5305:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5306: #line 5307 "configure"
1.1       millert  5307: #include "confdefs.h"
                   5308: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
                   5309: EOF
1.4     ! millert  5310: if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5311: then
                   5312:   cat >> confdefs.h <<\EOF
                   5313: #define LONG_IS_QUAD 1
                   5314: EOF
                   5315:
                   5316: else
                   5317:   echo "configure: failed program was:" >&5
                   5318:   cat conftest.$ac_ext >&5
                   5319: fi
                   5320: rm -fr conftest*
                   5321: fi
                   5322:
                   5323: echo "$ac_t""yes" 1>&6
                   5324: else
                   5325:   echo "configure: failed program was:" >&5
                   5326:   cat conftest.$ac_ext >&5
                   5327:   rm -rf conftest*
                   5328:   echo "$ac_t""no" 1>&6
                   5329: fi
                   5330: rm -f conftest*
                   5331: echo $ac_n "checking for sa_len field in struct sockaddr""... $ac_c" 1>&6
1.4     ! millert  5332: echo "configure:5333: checking for sa_len field in struct sockaddr" >&5
1.1       millert  5333: if eval "test \"`echo '$''{'sudo_cv_sock_sa_len'+set}'`\" = set"; then
                   5334:   echo $ac_n "(cached) $ac_c" 1>&6
                   5335: else
                   5336:   if test "$cross_compiling" = yes; then
                   5337:   sudo_cv_sock_sa_len=no
                   5338: else
                   5339:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5340: #line 5341 "configure"
1.1       millert  5341: #include "confdefs.h"
                   5342: #include <sys/types.h>
                   5343: #include <sys/socket.h>
                   5344: main() {
                   5345: struct sockaddr s;
                   5346: s.sa_len = 0;
                   5347: exit(0);
                   5348: }
                   5349: EOF
1.4     ! millert  5350: if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5351: then
                   5352:   sudo_cv_sock_sa_len=yes
                   5353: else
                   5354:   echo "configure: failed program was:" >&5
                   5355:   cat conftest.$ac_ext >&5
                   5356:   rm -fr conftest*
                   5357:   sudo_cv_sock_sa_len=no
                   5358: fi
                   5359: rm -fr conftest*
                   5360: fi
                   5361:
                   5362: rm -f core core.* *.core
                   5363: fi
                   5364: echo "$ac_t""$sudo_cv_sock_sa_len" 1>&6
                   5365: if test $sudo_cv_sock_sa_len = yes; then
                   5366:   cat >> confdefs.h <<\EOF
                   5367: #define HAVE_SA_LEN 1
                   5368: EOF
                   5369:
                   5370: fi
                   5371:
                   5372: case "$DEFS" in
                   5373:     *"RETSIGTYPE"*)    ;;
                   5374:     *)                 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.4     ! millert  5375: echo "configure:5376: checking return type of signal handlers" >&5
1.1       millert  5376: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   5377:   echo $ac_n "(cached) $ac_c" 1>&6
                   5378: else
                   5379:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5380: #line 5381 "configure"
1.1       millert  5381: #include "confdefs.h"
                   5382: #include <sys/types.h>
                   5383: #include <signal.h>
                   5384: #ifdef signal
                   5385: #undef signal
                   5386: #endif
                   5387: #ifdef __cplusplus
                   5388: extern "C" void (*signal (int, void (*)(int)))(int);
                   5389: #else
                   5390: void (*signal ()) ();
                   5391: #endif
                   5392:
                   5393: int main() {
                   5394: int i;
                   5395: ; return 0; }
                   5396: EOF
1.4     ! millert  5397: if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  5398:   rm -rf conftest*
                   5399:   ac_cv_type_signal=void
                   5400: else
                   5401:   echo "configure: failed program was:" >&5
                   5402:   cat conftest.$ac_ext >&5
                   5403:   rm -rf conftest*
                   5404:   ac_cv_type_signal=int
                   5405: fi
                   5406: rm -f conftest*
                   5407: fi
                   5408:
                   5409: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   5410: cat >> confdefs.h <<EOF
                   5411: #define RETSIGTYPE $ac_cv_type_signal
                   5412: EOF
                   5413:
                   5414: ;;
                   5415: esac
1.4     ! millert  5416: for ac_func in strchr strrchr memchr memcpy memset sysconf sigaction tzset seteuid strftime setrlimit initgroups fstat
1.1       millert  5417: do
                   5418: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5419: echo "configure:5420: checking for $ac_func" >&5
1.1       millert  5420: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5421:   echo $ac_n "(cached) $ac_c" 1>&6
                   5422: else
                   5423:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5424: #line 5425 "configure"
1.1       millert  5425: #include "confdefs.h"
                   5426: /* System header to define __stub macros and hopefully few prototypes,
                   5427:     which can conflict with char $ac_func(); below.  */
                   5428: #include <assert.h>
                   5429: /* Override any gcc2 internal prototype to avoid an error.  */
                   5430: /* We use char because int might match the return type of a gcc2
                   5431:     builtin and then its argument prototype would still apply.  */
                   5432: char $ac_func();
                   5433:
                   5434: int main() {
                   5435:
                   5436: /* The GNU C library defines this for functions which it implements
                   5437:     to always fail with ENOSYS.  Some functions are actually named
                   5438:     something starting with __ and the normal name is an alias.  */
                   5439: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5440: choke me
                   5441: #else
                   5442: $ac_func();
                   5443: #endif
                   5444:
                   5445: ; return 0; }
                   5446: EOF
1.4     ! millert  5447: if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5448:   rm -rf conftest*
                   5449:   eval "ac_cv_func_$ac_func=yes"
                   5450: else
                   5451:   echo "configure: failed program was:" >&5
                   5452:   cat conftest.$ac_ext >&5
                   5453:   rm -rf conftest*
                   5454:   eval "ac_cv_func_$ac_func=no"
                   5455: fi
                   5456: rm -f conftest*
                   5457: fi
                   5458:
                   5459: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5460:   echo "$ac_t""yes" 1>&6
                   5461:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5462:   cat >> confdefs.h <<EOF
                   5463: #define $ac_tr_func 1
                   5464: EOF
                   5465:
                   5466: else
                   5467:   echo "$ac_t""no" 1>&6
                   5468: fi
                   5469: done
                   5470:
                   5471: if test -n "$SECUREWARE"; then
                   5472:     for ac_func in bigcrypt
                   5473: do
                   5474: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5475: echo "configure:5476: checking for $ac_func" >&5
1.1       millert  5476: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5477:   echo $ac_n "(cached) $ac_c" 1>&6
                   5478: else
                   5479:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5480: #line 5481 "configure"
1.1       millert  5481: #include "confdefs.h"
                   5482: /* System header to define __stub macros and hopefully few prototypes,
                   5483:     which can conflict with char $ac_func(); below.  */
                   5484: #include <assert.h>
                   5485: /* Override any gcc2 internal prototype to avoid an error.  */
                   5486: /* We use char because int might match the return type of a gcc2
                   5487:     builtin and then its argument prototype would still apply.  */
                   5488: char $ac_func();
                   5489:
                   5490: int main() {
                   5491:
                   5492: /* The GNU C library defines this for functions which it implements
                   5493:     to always fail with ENOSYS.  Some functions are actually named
                   5494:     something starting with __ and the normal name is an alias.  */
                   5495: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5496: choke me
                   5497: #else
                   5498: $ac_func();
                   5499: #endif
                   5500:
                   5501: ; return 0; }
                   5502: EOF
1.4     ! millert  5503: if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5504:   rm -rf conftest*
                   5505:   eval "ac_cv_func_$ac_func=yes"
                   5506: else
                   5507:   echo "configure: failed program was:" >&5
                   5508:   cat conftest.$ac_ext >&5
                   5509:   rm -rf conftest*
                   5510:   eval "ac_cv_func_$ac_func=no"
                   5511: fi
                   5512: rm -f conftest*
                   5513: fi
                   5514:
                   5515: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5516:   echo "$ac_t""yes" 1>&6
                   5517:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5518:   cat >> confdefs.h <<EOF
                   5519: #define $ac_tr_func 1
                   5520: EOF
                   5521:
                   5522: else
                   5523:   echo "$ac_t""no" 1>&6
                   5524: fi
                   5525: done
                   5526:
                   5527:     for ac_func in set_auth_parameters
                   5528: do
                   5529: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5530: echo "configure:5531: checking for $ac_func" >&5
1.1       millert  5531: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5532:   echo $ac_n "(cached) $ac_c" 1>&6
                   5533: else
                   5534:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5535: #line 5536 "configure"
1.1       millert  5536: #include "confdefs.h"
                   5537: /* System header to define __stub macros and hopefully few prototypes,
                   5538:     which can conflict with char $ac_func(); below.  */
                   5539: #include <assert.h>
                   5540: /* Override any gcc2 internal prototype to avoid an error.  */
                   5541: /* We use char because int might match the return type of a gcc2
                   5542:     builtin and then its argument prototype would still apply.  */
                   5543: char $ac_func();
                   5544:
                   5545: int main() {
                   5546:
                   5547: /* The GNU C library defines this for functions which it implements
                   5548:     to always fail with ENOSYS.  Some functions are actually named
                   5549:     something starting with __ and the normal name is an alias.  */
                   5550: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5551: choke me
                   5552: #else
                   5553: $ac_func();
                   5554: #endif
                   5555:
                   5556: ; return 0; }
                   5557: EOF
1.4     ! millert  5558: if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5559:   rm -rf conftest*
                   5560:   eval "ac_cv_func_$ac_func=yes"
                   5561: else
                   5562:   echo "configure: failed program was:" >&5
                   5563:   cat conftest.$ac_ext >&5
                   5564:   rm -rf conftest*
                   5565:   eval "ac_cv_func_$ac_func=no"
                   5566: fi
                   5567: rm -f conftest*
                   5568: fi
                   5569:
                   5570: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5571:   echo "$ac_t""yes" 1>&6
                   5572:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5573:   cat >> confdefs.h <<EOF
                   5574: #define $ac_tr_func 1
                   5575: EOF
                   5576:
                   5577: else
                   5578:   echo "$ac_t""no" 1>&6
                   5579: fi
                   5580: done
                   5581:
                   5582:     for ac_func in initprivs
                   5583: do
                   5584: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5585: echo "configure:5586: checking for $ac_func" >&5
1.1       millert  5586: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5587:   echo $ac_n "(cached) $ac_c" 1>&6
                   5588: else
                   5589:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5590: #line 5591 "configure"
1.1       millert  5591: #include "confdefs.h"
                   5592: /* System header to define __stub macros and hopefully few prototypes,
                   5593:     which can conflict with char $ac_func(); below.  */
                   5594: #include <assert.h>
                   5595: /* Override any gcc2 internal prototype to avoid an error.  */
                   5596: /* We use char because int might match the return type of a gcc2
                   5597:     builtin and then its argument prototype would still apply.  */
                   5598: char $ac_func();
                   5599:
                   5600: int main() {
                   5601:
                   5602: /* The GNU C library defines this for functions which it implements
                   5603:     to always fail with ENOSYS.  Some functions are actually named
                   5604:     something starting with __ and the normal name is an alias.  */
                   5605: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5606: choke me
                   5607: #else
                   5608: $ac_func();
                   5609: #endif
                   5610:
                   5611: ; return 0; }
                   5612: EOF
1.4     ! millert  5613: if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5614:   rm -rf conftest*
                   5615:   eval "ac_cv_func_$ac_func=yes"
                   5616: else
                   5617:   echo "configure: failed program was:" >&5
                   5618:   cat conftest.$ac_ext >&5
                   5619:   rm -rf conftest*
                   5620:   eval "ac_cv_func_$ac_func=no"
                   5621: fi
                   5622: rm -f conftest*
                   5623: fi
                   5624:
                   5625: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5626:   echo "$ac_t""yes" 1>&6
                   5627:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5628:   cat >> confdefs.h <<EOF
                   5629: #define $ac_tr_func 1
                   5630: EOF
                   5631:
                   5632: else
                   5633:   echo "$ac_t""no" 1>&6
                   5634: fi
                   5635: done
                   5636:
                   5637: fi
                   5638: if test -z "$BROKEN_GETCWD"; then
                   5639:     echo $ac_n "checking for getcwd""... $ac_c" 1>&6
1.4     ! millert  5640: echo "configure:5641: checking for getcwd" >&5
1.1       millert  5641: if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
                   5642:   echo $ac_n "(cached) $ac_c" 1>&6
                   5643: else
                   5644:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5645: #line 5646 "configure"
1.1       millert  5646: #include "confdefs.h"
                   5647: /* System header to define __stub macros and hopefully few prototypes,
                   5648:     which can conflict with char getcwd(); below.  */
                   5649: #include <assert.h>
                   5650: /* Override any gcc2 internal prototype to avoid an error.  */
                   5651: /* We use char because int might match the return type of a gcc2
                   5652:     builtin and then its argument prototype would still apply.  */
                   5653: char getcwd();
                   5654:
                   5655: int main() {
                   5656:
                   5657: /* The GNU C library defines this for functions which it implements
                   5658:     to always fail with ENOSYS.  Some functions are actually named
                   5659:     something starting with __ and the normal name is an alias.  */
                   5660: #if defined (__stub_getcwd) || defined (__stub___getcwd)
                   5661: choke me
                   5662: #else
                   5663: getcwd();
                   5664: #endif
                   5665:
                   5666: ; return 0; }
                   5667: EOF
1.4     ! millert  5668: if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5669:   rm -rf conftest*
                   5670:   eval "ac_cv_func_getcwd=yes"
                   5671: else
                   5672:   echo "configure: failed program was:" >&5
                   5673:   cat conftest.$ac_ext >&5
                   5674:   rm -rf conftest*
                   5675:   eval "ac_cv_func_getcwd=no"
                   5676: fi
                   5677: rm -f conftest*
                   5678: fi
                   5679:
                   5680: if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
                   5681:   echo "$ac_t""yes" 1>&6
                   5682:   cat >> confdefs.h <<\EOF
                   5683: #define HAVE_GETCWD 1
                   5684: EOF
                   5685:
                   5686: else
                   5687:   echo "$ac_t""no" 1>&6
                   5688: LIBOBJS="$LIBOBJS getcwd.o"
                   5689: fi
                   5690:
                   5691: fi
                   5692: echo $ac_n "checking for lockf""... $ac_c" 1>&6
1.4     ! millert  5693: echo "configure:5694: checking for lockf" >&5
1.1       millert  5694: if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
                   5695:   echo $ac_n "(cached) $ac_c" 1>&6
                   5696: else
                   5697:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5698: #line 5699 "configure"
1.1       millert  5699: #include "confdefs.h"
                   5700: /* System header to define __stub macros and hopefully few prototypes,
                   5701:     which can conflict with char lockf(); below.  */
                   5702: #include <assert.h>
                   5703: /* Override any gcc2 internal prototype to avoid an error.  */
                   5704: /* We use char because int might match the return type of a gcc2
                   5705:     builtin and then its argument prototype would still apply.  */
                   5706: char lockf();
                   5707:
                   5708: int main() {
                   5709:
                   5710: /* The GNU C library defines this for functions which it implements
                   5711:     to always fail with ENOSYS.  Some functions are actually named
                   5712:     something starting with __ and the normal name is an alias.  */
                   5713: #if defined (__stub_lockf) || defined (__stub___lockf)
                   5714: choke me
                   5715: #else
                   5716: lockf();
                   5717: #endif
                   5718:
                   5719: ; return 0; }
                   5720: EOF
1.4     ! millert  5721: if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5722:   rm -rf conftest*
                   5723:   eval "ac_cv_func_lockf=yes"
                   5724: else
                   5725:   echo "configure: failed program was:" >&5
                   5726:   cat conftest.$ac_ext >&5
                   5727:   rm -rf conftest*
                   5728:   eval "ac_cv_func_lockf=no"
                   5729: fi
                   5730: rm -f conftest*
                   5731: fi
                   5732:
                   5733: if eval "test \"`echo '$ac_cv_func_'lockf`\" = yes"; then
                   5734:   echo "$ac_t""yes" 1>&6
                   5735:   cat >> confdefs.h <<\EOF
                   5736: #define HAVE_LOCKF 1
                   5737: EOF
                   5738:
                   5739: else
                   5740:   echo "$ac_t""no" 1>&6
                   5741: for ac_func in flock
                   5742: do
                   5743: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5744: echo "configure:5745: checking for $ac_func" >&5
1.1       millert  5745: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5746:   echo $ac_n "(cached) $ac_c" 1>&6
                   5747: else
                   5748:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5749: #line 5750 "configure"
1.1       millert  5750: #include "confdefs.h"
                   5751: /* System header to define __stub macros and hopefully few prototypes,
                   5752:     which can conflict with char $ac_func(); below.  */
                   5753: #include <assert.h>
                   5754: /* Override any gcc2 internal prototype to avoid an error.  */
                   5755: /* We use char because int might match the return type of a gcc2
                   5756:     builtin and then its argument prototype would still apply.  */
                   5757: char $ac_func();
                   5758:
                   5759: int main() {
                   5760:
                   5761: /* The GNU C library defines this for functions which it implements
                   5762:     to always fail with ENOSYS.  Some functions are actually named
                   5763:     something starting with __ and the normal name is an alias.  */
                   5764: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5765: choke me
                   5766: #else
                   5767: $ac_func();
                   5768: #endif
                   5769:
                   5770: ; return 0; }
                   5771: EOF
1.4     ! millert  5772: if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5773:   rm -rf conftest*
                   5774:   eval "ac_cv_func_$ac_func=yes"
                   5775: else
                   5776:   echo "configure: failed program was:" >&5
                   5777:   cat conftest.$ac_ext >&5
                   5778:   rm -rf conftest*
                   5779:   eval "ac_cv_func_$ac_func=no"
                   5780: fi
                   5781: rm -f conftest*
                   5782: fi
                   5783:
                   5784: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5785:   echo "$ac_t""yes" 1>&6
                   5786:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5787:   cat >> confdefs.h <<EOF
                   5788: #define $ac_tr_func 1
                   5789: EOF
                   5790:
                   5791: else
                   5792:   echo "$ac_t""no" 1>&6
                   5793: fi
                   5794: done
                   5795:
                   5796: fi
                   5797:
                   5798: echo $ac_n "checking for waitpid""... $ac_c" 1>&6
1.4     ! millert  5799: echo "configure:5800: checking for waitpid" >&5
1.1       millert  5800: if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
                   5801:   echo $ac_n "(cached) $ac_c" 1>&6
                   5802: else
                   5803:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5804: #line 5805 "configure"
1.1       millert  5805: #include "confdefs.h"
                   5806: /* System header to define __stub macros and hopefully few prototypes,
                   5807:     which can conflict with char waitpid(); below.  */
                   5808: #include <assert.h>
                   5809: /* Override any gcc2 internal prototype to avoid an error.  */
                   5810: /* We use char because int might match the return type of a gcc2
                   5811:     builtin and then its argument prototype would still apply.  */
                   5812: char waitpid();
                   5813:
                   5814: int main() {
                   5815:
                   5816: /* The GNU C library defines this for functions which it implements
                   5817:     to always fail with ENOSYS.  Some functions are actually named
                   5818:     something starting with __ and the normal name is an alias.  */
                   5819: #if defined (__stub_waitpid) || defined (__stub___waitpid)
                   5820: choke me
                   5821: #else
                   5822: waitpid();
                   5823: #endif
                   5824:
                   5825: ; return 0; }
                   5826: EOF
1.4     ! millert  5827: if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5828:   rm -rf conftest*
                   5829:   eval "ac_cv_func_waitpid=yes"
                   5830: else
                   5831:   echo "configure: failed program was:" >&5
                   5832:   cat conftest.$ac_ext >&5
                   5833:   rm -rf conftest*
                   5834:   eval "ac_cv_func_waitpid=no"
                   5835: fi
                   5836: rm -f conftest*
                   5837: fi
                   5838:
                   5839: if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
                   5840:   echo "$ac_t""yes" 1>&6
                   5841:   cat >> confdefs.h <<\EOF
                   5842: #define HAVE_WAITPID 1
                   5843: EOF
                   5844:
                   5845: else
                   5846:   echo "$ac_t""no" 1>&6
                   5847: for ac_func in wait3
                   5848: do
                   5849: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5850: echo "configure:5851: checking for $ac_func" >&5
1.1       millert  5851: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5852:   echo $ac_n "(cached) $ac_c" 1>&6
                   5853: else
                   5854:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5855: #line 5856 "configure"
1.1       millert  5856: #include "confdefs.h"
                   5857: /* System header to define __stub macros and hopefully few prototypes,
                   5858:     which can conflict with char $ac_func(); below.  */
                   5859: #include <assert.h>
                   5860: /* Override any gcc2 internal prototype to avoid an error.  */
                   5861: /* We use char because int might match the return type of a gcc2
                   5862:     builtin and then its argument prototype would still apply.  */
                   5863: char $ac_func();
                   5864:
                   5865: int main() {
                   5866:
                   5867: /* The GNU C library defines this for functions which it implements
                   5868:     to always fail with ENOSYS.  Some functions are actually named
                   5869:     something starting with __ and the normal name is an alias.  */
                   5870: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5871: choke me
                   5872: #else
                   5873: $ac_func();
                   5874: #endif
                   5875:
                   5876: ; return 0; }
                   5877: EOF
1.4     ! millert  5878: if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5879:   rm -rf conftest*
                   5880:   eval "ac_cv_func_$ac_func=yes"
                   5881: else
                   5882:   echo "configure: failed program was:" >&5
                   5883:   cat conftest.$ac_ext >&5
                   5884:   rm -rf conftest*
                   5885:   eval "ac_cv_func_$ac_func=no"
                   5886: fi
                   5887: rm -f conftest*
                   5888: fi
                   5889:
                   5890: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5891:   echo "$ac_t""yes" 1>&6
                   5892:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5893:   cat >> confdefs.h <<EOF
                   5894: #define $ac_tr_func 1
                   5895: EOF
                   5896:
                   5897: else
                   5898:   echo "$ac_t""no" 1>&6
                   5899: fi
                   5900: done
                   5901:
                   5902: fi
                   5903:
                   5904: echo $ac_n "checking for innetgr""... $ac_c" 1>&6
1.4     ! millert  5905: echo "configure:5906: checking for innetgr" >&5
1.1       millert  5906: if eval "test \"`echo '$''{'ac_cv_func_innetgr'+set}'`\" = set"; then
                   5907:   echo $ac_n "(cached) $ac_c" 1>&6
                   5908: else
                   5909:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5910: #line 5911 "configure"
1.1       millert  5911: #include "confdefs.h"
                   5912: /* System header to define __stub macros and hopefully few prototypes,
                   5913:     which can conflict with char innetgr(); below.  */
                   5914: #include <assert.h>
                   5915: /* Override any gcc2 internal prototype to avoid an error.  */
                   5916: /* We use char because int might match the return type of a gcc2
                   5917:     builtin and then its argument prototype would still apply.  */
                   5918: char innetgr();
                   5919:
                   5920: int main() {
                   5921:
                   5922: /* The GNU C library defines this for functions which it implements
                   5923:     to always fail with ENOSYS.  Some functions are actually named
                   5924:     something starting with __ and the normal name is an alias.  */
                   5925: #if defined (__stub_innetgr) || defined (__stub___innetgr)
                   5926: choke me
                   5927: #else
                   5928: innetgr();
                   5929: #endif
                   5930:
                   5931: ; return 0; }
                   5932: EOF
1.4     ! millert  5933: if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5934:   rm -rf conftest*
                   5935:   eval "ac_cv_func_innetgr=yes"
                   5936: else
                   5937:   echo "configure: failed program was:" >&5
                   5938:   cat conftest.$ac_ext >&5
                   5939:   rm -rf conftest*
                   5940:   eval "ac_cv_func_innetgr=no"
                   5941: fi
                   5942: rm -f conftest*
                   5943: fi
                   5944:
                   5945: if eval "test \"`echo '$ac_cv_func_'innetgr`\" = yes"; then
                   5946:   echo "$ac_t""yes" 1>&6
                   5947:   cat >> confdefs.h <<\EOF
                   5948: #define HAVE_INNETGR 1
                   5949: EOF
                   5950:  for ac_func in getdomainname
                   5951: do
                   5952: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  5953: echo "configure:5954: checking for $ac_func" >&5
1.1       millert  5954: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5955:   echo $ac_n "(cached) $ac_c" 1>&6
                   5956: else
                   5957:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  5958: #line 5959 "configure"
1.1       millert  5959: #include "confdefs.h"
                   5960: /* System header to define __stub macros and hopefully few prototypes,
                   5961:     which can conflict with char $ac_func(); below.  */
                   5962: #include <assert.h>
                   5963: /* Override any gcc2 internal prototype to avoid an error.  */
                   5964: /* We use char because int might match the return type of a gcc2
                   5965:     builtin and then its argument prototype would still apply.  */
                   5966: char $ac_func();
                   5967:
                   5968: int main() {
                   5969:
                   5970: /* The GNU C library defines this for functions which it implements
                   5971:     to always fail with ENOSYS.  Some functions are actually named
                   5972:     something starting with __ and the normal name is an alias.  */
                   5973: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5974: choke me
                   5975: #else
                   5976: $ac_func();
                   5977: #endif
                   5978:
                   5979: ; return 0; }
                   5980: EOF
1.4     ! millert  5981: if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5982:   rm -rf conftest*
                   5983:   eval "ac_cv_func_$ac_func=yes"
                   5984: else
                   5985:   echo "configure: failed program was:" >&5
                   5986:   cat conftest.$ac_ext >&5
                   5987:   rm -rf conftest*
                   5988:   eval "ac_cv_func_$ac_func=no"
                   5989: fi
                   5990: rm -f conftest*
                   5991: fi
                   5992:
                   5993: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5994:   echo "$ac_t""yes" 1>&6
                   5995:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5996:   cat >> confdefs.h <<EOF
                   5997: #define $ac_tr_func 1
                   5998: EOF
                   5999:
                   6000: else
                   6001:   echo "$ac_t""no" 1>&6
                   6002: fi
                   6003: done
                   6004:
                   6005: else
                   6006:   echo "$ac_t""no" 1>&6
                   6007: fi
                   6008:
                   6009: echo $ac_n "checking for lsearch""... $ac_c" 1>&6
1.4     ! millert  6010: echo "configure:6011: checking for lsearch" >&5
1.1       millert  6011: if eval "test \"`echo '$''{'ac_cv_func_lsearch'+set}'`\" = set"; then
                   6012:   echo $ac_n "(cached) $ac_c" 1>&6
                   6013: else
                   6014:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6015: #line 6016 "configure"
1.1       millert  6016: #include "confdefs.h"
                   6017: /* System header to define __stub macros and hopefully few prototypes,
                   6018:     which can conflict with char lsearch(); below.  */
                   6019: #include <assert.h>
                   6020: /* Override any gcc2 internal prototype to avoid an error.  */
                   6021: /* We use char because int might match the return type of a gcc2
                   6022:     builtin and then its argument prototype would still apply.  */
                   6023: char lsearch();
                   6024:
                   6025: int main() {
                   6026:
                   6027: /* The GNU C library defines this for functions which it implements
                   6028:     to always fail with ENOSYS.  Some functions are actually named
                   6029:     something starting with __ and the normal name is an alias.  */
                   6030: #if defined (__stub_lsearch) || defined (__stub___lsearch)
                   6031: choke me
                   6032: #else
                   6033: lsearch();
                   6034: #endif
                   6035:
                   6036: ; return 0; }
                   6037: EOF
1.4     ! millert  6038: if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6039:   rm -rf conftest*
                   6040:   eval "ac_cv_func_lsearch=yes"
                   6041: else
                   6042:   echo "configure: failed program was:" >&5
                   6043:   cat conftest.$ac_ext >&5
                   6044:   rm -rf conftest*
                   6045:   eval "ac_cv_func_lsearch=no"
                   6046: fi
                   6047: rm -f conftest*
                   6048: fi
                   6049:
                   6050: if eval "test \"`echo '$ac_cv_func_'lsearch`\" = yes"; then
                   6051:   echo "$ac_t""yes" 1>&6
                   6052:   cat >> confdefs.h <<\EOF
                   6053: #define HAVE_LSEARCH 1
                   6054: EOF
                   6055:
                   6056: else
                   6057:   echo "$ac_t""no" 1>&6
                   6058: echo $ac_n "checking for lsearch in -lcompat""... $ac_c" 1>&6
1.4     ! millert  6059: echo "configure:6060: checking for lsearch in -lcompat" >&5
1.1       millert  6060: if test -n ""; then
                   6061:   ac_lib_var=`echo compat'_'lsearch | sed 'y% ./+-%___p_%'`
                   6062: else
                   6063:   ac_lib_var=`echo compat'_'lsearch | sed 'y%./+-%__p_%'`
                   6064: fi
                   6065: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6066:   echo $ac_n "(cached) $ac_c" 1>&6
                   6067: else
                   6068:   ac_save_LIBS="$LIBS"
                   6069: LIBS="-lcompat  $LIBS"
                   6070: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6071: #line 6072 "configure"
1.1       millert  6072: #include "confdefs.h"
                   6073: /* Override any gcc2 internal prototype to avoid an error.  */
                   6074: /* We use char because int might match the return type of a gcc2
                   6075:     builtin and then its argument prototype would still apply.  */
                   6076: char lsearch();
                   6077:
                   6078: int main() {
                   6079: lsearch()
                   6080: ; return 0; }
                   6081: EOF
1.4     ! millert  6082: if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6083:   rm -rf conftest*
                   6084:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6085: else
                   6086:   echo "configure: failed program was:" >&5
                   6087:   cat conftest.$ac_ext >&5
                   6088:   rm -rf conftest*
                   6089:   eval "ac_cv_lib_$ac_lib_var=no"
                   6090: fi
                   6091: rm -f conftest*
                   6092: LIBS="$ac_save_LIBS"
                   6093:
                   6094: fi
                   6095: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6096:   echo "$ac_t""yes" 1>&6
                   6097:   ac_safe=`echo "search.h" | sed 'y%./+-%__p_%'`
                   6098: echo $ac_n "checking for search.h""... $ac_c" 1>&6
1.4     ! millert  6099: echo "configure:6100: checking for search.h" >&5
1.1       millert  6100: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   6101:   echo $ac_n "(cached) $ac_c" 1>&6
                   6102: else
                   6103:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6104: #line 6105 "configure"
1.1       millert  6105: #include "confdefs.h"
                   6106: #include <search.h>
                   6107: EOF
                   6108: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4     ! millert  6109: { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  6110: ac_err=`grep -v '^ *+' conftest.out`
                   6111: if test -z "$ac_err"; then
                   6112:   rm -rf conftest*
                   6113:   eval "ac_cv_header_$ac_safe=yes"
                   6114: else
                   6115:   echo "$ac_err" >&5
                   6116:   echo "configure: failed program was:" >&5
                   6117:   cat conftest.$ac_ext >&5
                   6118:   rm -rf conftest*
                   6119:   eval "ac_cv_header_$ac_safe=no"
                   6120: fi
                   6121: rm -f conftest*
                   6122: fi
                   6123: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   6124:   echo "$ac_t""yes" 1>&6
                   6125:   cat >> confdefs.h <<\EOF
                   6126: #define HAVE_LSEARCH 1
                   6127: EOF
                   6128:  LIBS="${LIBS} -lcompat"
                   6129: else
                   6130:   echo "$ac_t""no" 1>&6
                   6131: LIBOBJS="$LIBOBJS lsearch.o"
                   6132: fi
                   6133:
                   6134: else
                   6135:   echo "$ac_t""no" 1>&6
                   6136: LIBOBJS="$LIBOBJS lsearch.o"
                   6137: fi
                   6138:
                   6139: fi
                   6140:
                   6141: echo $ac_n "checking for setenv""... $ac_c" 1>&6
1.4     ! millert  6142: echo "configure:6143: checking for setenv" >&5
1.1       millert  6143: if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
                   6144:   echo $ac_n "(cached) $ac_c" 1>&6
                   6145: else
                   6146:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6147: #line 6148 "configure"
1.1       millert  6148: #include "confdefs.h"
                   6149: /* System header to define __stub macros and hopefully few prototypes,
                   6150:     which can conflict with char setenv(); below.  */
                   6151: #include <assert.h>
                   6152: /* Override any gcc2 internal prototype to avoid an error.  */
                   6153: /* We use char because int might match the return type of a gcc2
                   6154:     builtin and then its argument prototype would still apply.  */
                   6155: char setenv();
                   6156:
                   6157: int main() {
                   6158:
                   6159: /* The GNU C library defines this for functions which it implements
                   6160:     to always fail with ENOSYS.  Some functions are actually named
                   6161:     something starting with __ and the normal name is an alias.  */
                   6162: #if defined (__stub_setenv) || defined (__stub___setenv)
                   6163: choke me
                   6164: #else
                   6165: setenv();
                   6166: #endif
                   6167:
                   6168: ; return 0; }
                   6169: EOF
1.4     ! millert  6170: if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6171:   rm -rf conftest*
                   6172:   eval "ac_cv_func_setenv=yes"
                   6173: else
                   6174:   echo "configure: failed program was:" >&5
                   6175:   cat conftest.$ac_ext >&5
                   6176:   rm -rf conftest*
                   6177:   eval "ac_cv_func_setenv=no"
                   6178: fi
                   6179: rm -f conftest*
                   6180: fi
                   6181:
                   6182: if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
                   6183:   echo "$ac_t""yes" 1>&6
                   6184:   cat >> confdefs.h <<\EOF
                   6185: #define HAVE_SETENV 1
                   6186: EOF
                   6187:
                   6188: else
                   6189:   echo "$ac_t""no" 1>&6
                   6190: echo $ac_n "checking for putenv""... $ac_c" 1>&6
1.4     ! millert  6191: echo "configure:6192: checking for putenv" >&5
1.1       millert  6192: if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
                   6193:   echo $ac_n "(cached) $ac_c" 1>&6
                   6194: else
                   6195:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6196: #line 6197 "configure"
1.1       millert  6197: #include "confdefs.h"
                   6198: /* System header to define __stub macros and hopefully few prototypes,
                   6199:     which can conflict with char putenv(); below.  */
                   6200: #include <assert.h>
                   6201: /* Override any gcc2 internal prototype to avoid an error.  */
                   6202: /* We use char because int might match the return type of a gcc2
                   6203:     builtin and then its argument prototype would still apply.  */
                   6204: char putenv();
                   6205:
                   6206: int main() {
                   6207:
                   6208: /* The GNU C library defines this for functions which it implements
                   6209:     to always fail with ENOSYS.  Some functions are actually named
                   6210:     something starting with __ and the normal name is an alias.  */
                   6211: #if defined (__stub_putenv) || defined (__stub___putenv)
                   6212: choke me
                   6213: #else
                   6214: putenv();
                   6215: #endif
                   6216:
                   6217: ; return 0; }
                   6218: EOF
1.4     ! millert  6219: if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6220:   rm -rf conftest*
                   6221:   eval "ac_cv_func_putenv=yes"
                   6222: else
                   6223:   echo "configure: failed program was:" >&5
                   6224:   cat conftest.$ac_ext >&5
                   6225:   rm -rf conftest*
                   6226:   eval "ac_cv_func_putenv=no"
                   6227: fi
                   6228: rm -f conftest*
                   6229: fi
                   6230:
                   6231: if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
                   6232:   echo "$ac_t""yes" 1>&6
                   6233:   cat >> confdefs.h <<\EOF
                   6234: #define HAVE_PUTENV 1
                   6235: EOF
                   6236:
                   6237: else
                   6238:   echo "$ac_t""no" 1>&6
                   6239: LIBOBJS="$LIBOBJS putenv.o"
                   6240: fi
                   6241:
                   6242: fi
                   6243:
                   6244: echo $ac_n "checking for utime""... $ac_c" 1>&6
1.4     ! millert  6245: echo "configure:6246: checking for utime" >&5
1.1       millert  6246: if eval "test \"`echo '$''{'ac_cv_func_utime'+set}'`\" = set"; then
                   6247:   echo $ac_n "(cached) $ac_c" 1>&6
                   6248: else
                   6249:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6250: #line 6251 "configure"
1.1       millert  6251: #include "confdefs.h"
                   6252: /* System header to define __stub macros and hopefully few prototypes,
                   6253:     which can conflict with char utime(); below.  */
                   6254: #include <assert.h>
                   6255: /* Override any gcc2 internal prototype to avoid an error.  */
                   6256: /* We use char because int might match the return type of a gcc2
                   6257:     builtin and then its argument prototype would still apply.  */
                   6258: char utime();
                   6259:
                   6260: int main() {
                   6261:
                   6262: /* The GNU C library defines this for functions which it implements
                   6263:     to always fail with ENOSYS.  Some functions are actually named
                   6264:     something starting with __ and the normal name is an alias.  */
                   6265: #if defined (__stub_utime) || defined (__stub___utime)
                   6266: choke me
                   6267: #else
                   6268: utime();
                   6269: #endif
                   6270:
                   6271: ; return 0; }
                   6272: EOF
1.4     ! millert  6273: if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6274:   rm -rf conftest*
                   6275:   eval "ac_cv_func_utime=yes"
                   6276: else
                   6277:   echo "configure: failed program was:" >&5
                   6278:   cat conftest.$ac_ext >&5
                   6279:   rm -rf conftest*
                   6280:   eval "ac_cv_func_utime=no"
                   6281: fi
                   6282: rm -f conftest*
                   6283: fi
                   6284:
                   6285: if eval "test \"`echo '$ac_cv_func_'utime`\" = yes"; then
                   6286:   echo "$ac_t""yes" 1>&6
                   6287:   cat >> confdefs.h <<\EOF
                   6288: #define HAVE_UTIME 1
                   6289: EOF
                   6290:
                   6291: echo $ac_n "checking for POSIX utime""... $ac_c" 1>&6
1.4     ! millert  6292: echo "configure:6293: checking for POSIX utime" >&5
1.1       millert  6293: if eval "test \"`echo '$''{'sudo_cv_func_utime_posix'+set}'`\" = set"; then
                   6294:   echo $ac_n "(cached) $ac_c" 1>&6
                   6295: else
                   6296:   rm -f conftestdata; > conftestdata
                   6297: if test "$cross_compiling" = yes; then
                   6298:   sudo_cv_func_utime_posix=no
                   6299: else
                   6300:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6301: #line 6302 "configure"
1.1       millert  6302: #include "confdefs.h"
                   6303: #include <sys/types.h>
                   6304: #include <sys/time.h>
                   6305: #include <utime.h>
                   6306: main() {
                   6307: struct utimbuf ut;
                   6308: ut.actime = ut.modtime = time(0);
                   6309: utime("conftestdata", &ut);
                   6310: exit(0);
                   6311: }
                   6312: EOF
1.4     ! millert  6313: if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  6314: then
                   6315:   sudo_cv_func_utime_posix=yes
                   6316: else
                   6317:   echo "configure: failed program was:" >&5
                   6318:   cat conftest.$ac_ext >&5
                   6319:   rm -fr conftest*
                   6320:   sudo_cv_func_utime_posix=no
                   6321: fi
                   6322: rm -fr conftest*
                   6323: fi
                   6324:
                   6325: rm -f core core.* *.core
                   6326: fi
                   6327: echo "$ac_t""$sudo_cv_func_utime_posix" 1>&6
                   6328: if test $sudo_cv_func_utime_posix = yes; then
                   6329:   cat >> confdefs.h <<\EOF
                   6330: #define HAVE_UTIME_POSIX 1
                   6331: EOF
                   6332:
                   6333: fi
                   6334:
                   6335: else
                   6336:   echo "$ac_t""no" 1>&6
                   6337: LIBOBJS="$LIBOBJS utime.o"
                   6338: fi
                   6339:
                   6340: echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
1.4     ! millert  6341: echo "configure:6342: checking for working fnmatch" >&5
1.1       millert  6342: if eval "test \"`echo '$''{'sudo_cv_func_fnmatch'+set}'`\" = set"; then
                   6343:   echo $ac_n "(cached) $ac_c" 1>&6
                   6344: else
                   6345:   rm -f conftestdata; > conftestdata
                   6346: if test "$cross_compiling" = yes; then
                   6347:   sudo_cv_func_fnmatch=no
                   6348: else
                   6349:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6350: #line 6351 "configure"
1.1       millert  6351: #include "confdefs.h"
1.3       millert  6352: #include <fnmatch.h>
                   6353: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", 0)); }
                   6354:
1.1       millert  6355: EOF
1.4     ! millert  6356: if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  6357: then
                   6358:   sudo_cv_func_fnmatch=yes
                   6359: else
                   6360:   echo "configure: failed program was:" >&5
                   6361:   cat conftest.$ac_ext >&5
                   6362:   rm -fr conftest*
                   6363:   sudo_cv_func_fnmatch=no
                   6364: fi
                   6365: rm -fr conftest*
                   6366: fi
                   6367:
                   6368: rm -f core core.* *.core
                   6369: fi
                   6370: echo "$ac_t""$sudo_cv_func_fnmatch" 1>&6
                   6371: if test $sudo_cv_func_fnmatch = yes; then
                   6372:   cat >> confdefs.h <<\EOF
                   6373: #define HAVE_FNMATCH 1
                   6374: EOF
                   6375:
                   6376: else
                   6377:   LIBOBJS="$LIBOBJS fnmatch.o"
                   6378: fi
                   6379:
                   6380: for ac_func in strerror strcasecmp
                   6381: do
                   6382: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  6383: echo "configure:6384: checking for $ac_func" >&5
1.1       millert  6384: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   6385:   echo $ac_n "(cached) $ac_c" 1>&6
                   6386: else
                   6387:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6388: #line 6389 "configure"
1.1       millert  6389: #include "confdefs.h"
                   6390: /* System header to define __stub macros and hopefully few prototypes,
                   6391:     which can conflict with char $ac_func(); below.  */
                   6392: #include <assert.h>
                   6393: /* Override any gcc2 internal prototype to avoid an error.  */
                   6394: /* We use char because int might match the return type of a gcc2
                   6395:     builtin and then its argument prototype would still apply.  */
                   6396: char $ac_func();
                   6397:
                   6398: int main() {
                   6399:
                   6400: /* The GNU C library defines this for functions which it implements
                   6401:     to always fail with ENOSYS.  Some functions are actually named
                   6402:     something starting with __ and the normal name is an alias.  */
                   6403: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   6404: choke me
                   6405: #else
                   6406: $ac_func();
                   6407: #endif
                   6408:
                   6409: ; return 0; }
                   6410: EOF
1.4     ! millert  6411: if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6412:   rm -rf conftest*
                   6413:   eval "ac_cv_func_$ac_func=yes"
                   6414: else
                   6415:   echo "configure: failed program was:" >&5
                   6416:   cat conftest.$ac_ext >&5
                   6417:   rm -rf conftest*
                   6418:   eval "ac_cv_func_$ac_func=no"
                   6419: fi
                   6420: rm -f conftest*
                   6421: fi
                   6422:
                   6423: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   6424:   echo "$ac_t""yes" 1>&6
                   6425:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   6426:   cat >> confdefs.h <<EOF
                   6427: #define $ac_tr_func 1
                   6428: EOF
                   6429:
                   6430: else
                   6431:   echo "$ac_t""no" 1>&6
                   6432: LIBOBJS="$LIBOBJS ${ac_func}.o"
                   6433: fi
                   6434: done
                   6435:
                   6436:
                   6437: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.4     ! millert  6438: echo "configure:6439: checking for snprintf" >&5
1.1       millert  6439: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   6440:   echo $ac_n "(cached) $ac_c" 1>&6
                   6441: else
                   6442:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6443: #line 6444 "configure"
1.1       millert  6444: #include "confdefs.h"
                   6445: /* System header to define __stub macros and hopefully few prototypes,
                   6446:     which can conflict with char snprintf(); below.  */
                   6447: #include <assert.h>
                   6448: /* Override any gcc2 internal prototype to avoid an error.  */
                   6449: /* We use char because int might match the return type of a gcc2
                   6450:     builtin and then its argument prototype would still apply.  */
                   6451: char snprintf();
                   6452:
                   6453: int main() {
                   6454:
                   6455: /* The GNU C library defines this for functions which it implements
                   6456:     to always fail with ENOSYS.  Some functions are actually named
                   6457:     something starting with __ and the normal name is an alias.  */
                   6458: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   6459: choke me
                   6460: #else
                   6461: snprintf();
                   6462: #endif
                   6463:
                   6464: ; return 0; }
                   6465: EOF
1.4     ! millert  6466: if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6467:   rm -rf conftest*
                   6468:   eval "ac_cv_func_snprintf=yes"
                   6469: else
                   6470:   echo "configure: failed program was:" >&5
                   6471:   cat conftest.$ac_ext >&5
                   6472:   rm -rf conftest*
                   6473:   eval "ac_cv_func_snprintf=no"
                   6474: fi
                   6475: rm -f conftest*
                   6476: fi
                   6477:
                   6478: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   6479:   echo "$ac_t""yes" 1>&6
                   6480:   cat >> confdefs.h <<\EOF
                   6481: #define HAVE_SNPRINTF 1
                   6482: EOF
                   6483:
                   6484: else
                   6485:   echo "$ac_t""no" 1>&6
                   6486: NEED_SNPRINTF=1
                   6487: fi
                   6488:
                   6489: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.4     ! millert  6490: echo "configure:6491: checking for vsnprintf" >&5
1.1       millert  6491: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   6492:   echo $ac_n "(cached) $ac_c" 1>&6
                   6493: else
                   6494:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6495: #line 6496 "configure"
1.1       millert  6496: #include "confdefs.h"
                   6497: /* System header to define __stub macros and hopefully few prototypes,
                   6498:     which can conflict with char vsnprintf(); below.  */
                   6499: #include <assert.h>
                   6500: /* Override any gcc2 internal prototype to avoid an error.  */
                   6501: /* We use char because int might match the return type of a gcc2
                   6502:     builtin and then its argument prototype would still apply.  */
                   6503: char vsnprintf();
                   6504:
                   6505: int main() {
                   6506:
                   6507: /* The GNU C library defines this for functions which it implements
                   6508:     to always fail with ENOSYS.  Some functions are actually named
                   6509:     something starting with __ and the normal name is an alias.  */
                   6510: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   6511: choke me
                   6512: #else
                   6513: vsnprintf();
                   6514: #endif
                   6515:
                   6516: ; return 0; }
                   6517: EOF
1.4     ! millert  6518: if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6519:   rm -rf conftest*
                   6520:   eval "ac_cv_func_vsnprintf=yes"
                   6521: else
                   6522:   echo "configure: failed program was:" >&5
                   6523:   cat conftest.$ac_ext >&5
                   6524:   rm -rf conftest*
                   6525:   eval "ac_cv_func_vsnprintf=no"
                   6526: fi
                   6527: rm -f conftest*
                   6528: fi
                   6529:
                   6530: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   6531:   echo "$ac_t""yes" 1>&6
                   6532:   cat >> confdefs.h <<\EOF
                   6533: #define HAVE_VSNPRINTF 1
                   6534: EOF
                   6535:
                   6536: else
                   6537:   echo "$ac_t""no" 1>&6
                   6538: NEED_SNPRINTF=1
                   6539: fi
                   6540:
                   6541: echo $ac_n "checking for asprintf""... $ac_c" 1>&6
1.4     ! millert  6542: echo "configure:6543: checking for asprintf" >&5
1.1       millert  6543: if eval "test \"`echo '$''{'ac_cv_func_asprintf'+set}'`\" = set"; then
                   6544:   echo $ac_n "(cached) $ac_c" 1>&6
                   6545: else
                   6546:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6547: #line 6548 "configure"
1.1       millert  6548: #include "confdefs.h"
                   6549: /* System header to define __stub macros and hopefully few prototypes,
                   6550:     which can conflict with char asprintf(); below.  */
                   6551: #include <assert.h>
                   6552: /* Override any gcc2 internal prototype to avoid an error.  */
                   6553: /* We use char because int might match the return type of a gcc2
                   6554:     builtin and then its argument prototype would still apply.  */
                   6555: char asprintf();
                   6556:
                   6557: int main() {
                   6558:
                   6559: /* The GNU C library defines this for functions which it implements
                   6560:     to always fail with ENOSYS.  Some functions are actually named
                   6561:     something starting with __ and the normal name is an alias.  */
                   6562: #if defined (__stub_asprintf) || defined (__stub___asprintf)
                   6563: choke me
                   6564: #else
                   6565: asprintf();
                   6566: #endif
                   6567:
                   6568: ; return 0; }
                   6569: EOF
1.4     ! millert  6570: if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6571:   rm -rf conftest*
                   6572:   eval "ac_cv_func_asprintf=yes"
                   6573: else
                   6574:   echo "configure: failed program was:" >&5
                   6575:   cat conftest.$ac_ext >&5
                   6576:   rm -rf conftest*
                   6577:   eval "ac_cv_func_asprintf=no"
                   6578: fi
                   6579: rm -f conftest*
                   6580: fi
                   6581:
                   6582: if eval "test \"`echo '$ac_cv_func_'asprintf`\" = yes"; then
                   6583:   echo "$ac_t""yes" 1>&6
                   6584:   cat >> confdefs.h <<\EOF
                   6585: #define HAVE_ASPRINTF 1
                   6586: EOF
                   6587:
                   6588: else
                   6589:   echo "$ac_t""no" 1>&6
                   6590: NEED_SNPRINTF=1
                   6591: fi
                   6592:
                   6593: echo $ac_n "checking for vasprintf""... $ac_c" 1>&6
1.4     ! millert  6594: echo "configure:6595: checking for vasprintf" >&5
1.1       millert  6595: if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then
                   6596:   echo $ac_n "(cached) $ac_c" 1>&6
                   6597: else
                   6598:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6599: #line 6600 "configure"
1.1       millert  6600: #include "confdefs.h"
                   6601: /* System header to define __stub macros and hopefully few prototypes,
                   6602:     which can conflict with char vasprintf(); below.  */
                   6603: #include <assert.h>
                   6604: /* Override any gcc2 internal prototype to avoid an error.  */
                   6605: /* We use char because int might match the return type of a gcc2
                   6606:     builtin and then its argument prototype would still apply.  */
                   6607: char vasprintf();
                   6608:
                   6609: int main() {
                   6610:
                   6611: /* The GNU C library defines this for functions which it implements
                   6612:     to always fail with ENOSYS.  Some functions are actually named
                   6613:     something starting with __ and the normal name is an alias.  */
                   6614: #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
                   6615: choke me
                   6616: #else
                   6617: vasprintf();
                   6618: #endif
                   6619:
                   6620: ; return 0; }
                   6621: EOF
1.4     ! millert  6622: if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6623:   rm -rf conftest*
                   6624:   eval "ac_cv_func_vasprintf=yes"
                   6625: else
                   6626:   echo "configure: failed program was:" >&5
                   6627:   cat conftest.$ac_ext >&5
                   6628:   rm -rf conftest*
                   6629:   eval "ac_cv_func_vasprintf=no"
                   6630: fi
                   6631: rm -f conftest*
                   6632: fi
                   6633:
                   6634: if eval "test \"`echo '$ac_cv_func_'vasprintf`\" = yes"; then
                   6635:   echo "$ac_t""yes" 1>&6
                   6636:   cat >> confdefs.h <<\EOF
                   6637: #define HAVE_VASPRINTF 1
                   6638: EOF
                   6639:
                   6640: else
                   6641:   echo "$ac_t""no" 1>&6
                   6642: NEED_SNPRINTF=1
                   6643: fi
                   6644:
                   6645: if test -n "$NEED_SNPRINTF"; then
                   6646:     LIBOBJS="$LIBOBJS snprintf.o"
                   6647: fi
                   6648: if test -z "$LIB_CRYPT"; then
                   6649:     echo $ac_n "checking for crypt""... $ac_c" 1>&6
1.4     ! millert  6650: echo "configure:6651: checking for crypt" >&5
1.1       millert  6651: if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
                   6652:   echo $ac_n "(cached) $ac_c" 1>&6
                   6653: else
                   6654:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6655: #line 6656 "configure"
1.1       millert  6656: #include "confdefs.h"
                   6657: /* System header to define __stub macros and hopefully few prototypes,
                   6658:     which can conflict with char crypt(); below.  */
                   6659: #include <assert.h>
                   6660: /* Override any gcc2 internal prototype to avoid an error.  */
                   6661: /* We use char because int might match the return type of a gcc2
                   6662:     builtin and then its argument prototype would still apply.  */
                   6663: char crypt();
                   6664:
                   6665: int main() {
                   6666:
                   6667: /* The GNU C library defines this for functions which it implements
                   6668:     to always fail with ENOSYS.  Some functions are actually named
                   6669:     something starting with __ and the normal name is an alias.  */
                   6670: #if defined (__stub_crypt) || defined (__stub___crypt)
                   6671: choke me
                   6672: #else
                   6673: crypt();
                   6674: #endif
                   6675:
                   6676: ; return 0; }
                   6677: EOF
1.4     ! millert  6678: if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6679:   rm -rf conftest*
                   6680:   eval "ac_cv_func_crypt=yes"
                   6681: else
                   6682:   echo "configure: failed program was:" >&5
                   6683:   cat conftest.$ac_ext >&5
                   6684:   rm -rf conftest*
                   6685:   eval "ac_cv_func_crypt=no"
                   6686: fi
                   6687: rm -f conftest*
                   6688: fi
                   6689:
                   6690: if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
                   6691:   echo "$ac_t""yes" 1>&6
                   6692:   :
                   6693: else
                   6694:   echo "$ac_t""no" 1>&6
                   6695: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.4     ! millert  6696: echo "configure:6697: checking for crypt in -lcrypt" >&5
1.1       millert  6697: if test -n ""; then
                   6698:   ac_lib_var=`echo crypt'_'crypt | sed 'y% ./+-%___p_%'`
                   6699: else
                   6700:   ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
                   6701: fi
                   6702: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6703:   echo $ac_n "(cached) $ac_c" 1>&6
                   6704: else
                   6705:   ac_save_LIBS="$LIBS"
                   6706: LIBS="-lcrypt  $LIBS"
                   6707: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6708: #line 6709 "configure"
1.1       millert  6709: #include "confdefs.h"
                   6710: /* Override any gcc2 internal prototype to avoid an error.  */
                   6711: /* We use char because int might match the return type of a gcc2
                   6712:     builtin and then its argument prototype would still apply.  */
                   6713: char crypt();
                   6714:
                   6715: int main() {
                   6716: crypt()
                   6717: ; return 0; }
                   6718: EOF
1.4     ! millert  6719: if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6720:   rm -rf conftest*
                   6721:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6722: else
                   6723:   echo "configure: failed program was:" >&5
                   6724:   cat conftest.$ac_ext >&5
                   6725:   rm -rf conftest*
                   6726:   eval "ac_cv_lib_$ac_lib_var=no"
                   6727: fi
                   6728: rm -f conftest*
                   6729: LIBS="$ac_save_LIBS"
                   6730:
                   6731: fi
                   6732: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6733:   echo "$ac_t""yes" 1>&6
                   6734:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   6735: else
                   6736:   echo "$ac_t""no" 1>&6
                   6737: echo $ac_n "checking for crypt in -lcrypt_d""... $ac_c" 1>&6
1.4     ! millert  6738: echo "configure:6739: checking for crypt in -lcrypt_d" >&5
1.1       millert  6739: if test -n ""; then
                   6740:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y% ./+-%___p_%'`
                   6741: else
                   6742:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y%./+-%__p_%'`
                   6743: fi
                   6744: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6745:   echo $ac_n "(cached) $ac_c" 1>&6
                   6746: else
                   6747:   ac_save_LIBS="$LIBS"
                   6748: LIBS="-lcrypt_d  $LIBS"
                   6749: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6750: #line 6751 "configure"
1.1       millert  6751: #include "confdefs.h"
                   6752: /* Override any gcc2 internal prototype to avoid an error.  */
                   6753: /* We use char because int might match the return type of a gcc2
                   6754:     builtin and then its argument prototype would still apply.  */
                   6755: char crypt();
                   6756:
                   6757: int main() {
                   6758: crypt()
                   6759: ; return 0; }
                   6760: EOF
1.4     ! millert  6761: if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6762:   rm -rf conftest*
                   6763:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6764: else
                   6765:   echo "configure: failed program was:" >&5
                   6766:   cat conftest.$ac_ext >&5
                   6767:   rm -rf conftest*
                   6768:   eval "ac_cv_lib_$ac_lib_var=no"
                   6769: fi
                   6770: rm -f conftest*
                   6771: LIBS="$ac_save_LIBS"
                   6772:
                   6773: fi
                   6774: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6775:   echo "$ac_t""yes" 1>&6
                   6776:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   6777: else
                   6778:   echo "$ac_t""no" 1>&6
                   6779: echo $ac_n "checking for crypt in -lufc""... $ac_c" 1>&6
1.4     ! millert  6780: echo "configure:6781: checking for crypt in -lufc" >&5
1.1       millert  6781: if test -n ""; then
                   6782:   ac_lib_var=`echo ufc'_'crypt | sed 'y% ./+-%___p_%'`
                   6783: else
                   6784:   ac_lib_var=`echo ufc'_'crypt | sed 'y%./+-%__p_%'`
                   6785: fi
                   6786: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6787:   echo $ac_n "(cached) $ac_c" 1>&6
                   6788: else
                   6789:   ac_save_LIBS="$LIBS"
                   6790: LIBS="-lufc  $LIBS"
                   6791: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6792: #line 6793 "configure"
1.1       millert  6793: #include "confdefs.h"
                   6794: /* Override any gcc2 internal prototype to avoid an error.  */
                   6795: /* We use char because int might match the return type of a gcc2
                   6796:     builtin and then its argument prototype would still apply.  */
                   6797: char crypt();
                   6798:
                   6799: int main() {
                   6800: crypt()
                   6801: ; return 0; }
                   6802: EOF
1.4     ! millert  6803: if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6804:   rm -rf conftest*
                   6805:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6806: else
                   6807:   echo "configure: failed program was:" >&5
                   6808:   cat conftest.$ac_ext >&5
                   6809:   rm -rf conftest*
                   6810:   eval "ac_cv_lib_$ac_lib_var=no"
                   6811: fi
                   6812: rm -f conftest*
                   6813: LIBS="$ac_save_LIBS"
                   6814:
                   6815: fi
                   6816: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6817:   echo "$ac_t""yes" 1>&6
                   6818:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
                   6819: else
                   6820:   echo "$ac_t""no" 1>&6
                   6821: fi
                   6822:
                   6823: fi
                   6824:
                   6825: fi
                   6826:
                   6827: fi
                   6828:
                   6829: fi
                   6830: echo $ac_n "checking for socket""... $ac_c" 1>&6
1.4     ! millert  6831: echo "configure:6832: checking for socket" >&5
1.1       millert  6832: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
                   6833:   echo $ac_n "(cached) $ac_c" 1>&6
                   6834: else
                   6835:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  6836: #line 6837 "configure"
1.1       millert  6837: #include "confdefs.h"
                   6838: /* System header to define __stub macros and hopefully few prototypes,
                   6839:     which can conflict with char socket(); below.  */
                   6840: #include <assert.h>
                   6841: /* Override any gcc2 internal prototype to avoid an error.  */
                   6842: /* We use char because int might match the return type of a gcc2
                   6843:     builtin and then its argument prototype would still apply.  */
                   6844: char socket();
                   6845:
                   6846: int main() {
                   6847:
                   6848: /* The GNU C library defines this for functions which it implements
                   6849:     to always fail with ENOSYS.  Some functions are actually named
                   6850:     something starting with __ and the normal name is an alias.  */
                   6851: #if defined (__stub_socket) || defined (__stub___socket)
                   6852: choke me
                   6853: #else
                   6854: socket();
                   6855: #endif
                   6856:
                   6857: ; return 0; }
                   6858: EOF
1.4     ! millert  6859: if { (eval echo configure:6860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6860:   rm -rf conftest*
                   6861:   eval "ac_cv_func_socket=yes"
                   6862: else
                   6863:   echo "configure: failed program was:" >&5
                   6864:   cat conftest.$ac_ext >&5
                   6865:   rm -rf conftest*
                   6866:   eval "ac_cv_func_socket=no"
                   6867: fi
                   6868: rm -f conftest*
                   6869: fi
                   6870:
                   6871: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
                   6872:   echo "$ac_t""yes" 1>&6
                   6873:   :
                   6874: else
                   6875:   echo "$ac_t""no" 1>&6
                   6876: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.4     ! millert  6877: echo "configure:6878: checking for socket in -lsocket" >&5
1.1       millert  6878: if test -n ""; then
                   6879:   ac_lib_var=`echo socket'_'socket | sed 'y% ./+-%___p_%'`
                   6880: else
                   6881:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   6882: fi
                   6883: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6884:   echo $ac_n "(cached) $ac_c" 1>&6
                   6885: else
                   6886:   ac_save_LIBS="$LIBS"
                   6887: LIBS="-lsocket  $LIBS"
                   6888: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6889: #line 6890 "configure"
1.1       millert  6890: #include "confdefs.h"
                   6891: /* Override any gcc2 internal prototype to avoid an error.  */
                   6892: /* We use char because int might match the return type of a gcc2
                   6893:     builtin and then its argument prototype would still apply.  */
                   6894: char socket();
                   6895:
                   6896: int main() {
                   6897: socket()
                   6898: ; return 0; }
                   6899: EOF
1.4     ! millert  6900: if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6901:   rm -rf conftest*
                   6902:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6903: else
                   6904:   echo "configure: failed program was:" >&5
                   6905:   cat conftest.$ac_ext >&5
                   6906:   rm -rf conftest*
                   6907:   eval "ac_cv_lib_$ac_lib_var=no"
                   6908: fi
                   6909: rm -f conftest*
                   6910: LIBS="$ac_save_LIBS"
                   6911:
                   6912: fi
                   6913: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6914:   echo "$ac_t""yes" 1>&6
                   6915:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   6916: else
                   6917:   echo "$ac_t""no" 1>&6
                   6918: echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1.4     ! millert  6919: echo "configure:6920: checking for socket in -linet" >&5
1.1       millert  6920: if test -n ""; then
                   6921:   ac_lib_var=`echo inet'_'socket | sed 'y% ./+-%___p_%'`
                   6922: else
                   6923:   ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
                   6924: fi
                   6925: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6926:   echo $ac_n "(cached) $ac_c" 1>&6
                   6927: else
                   6928:   ac_save_LIBS="$LIBS"
                   6929: LIBS="-linet  $LIBS"
                   6930: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6931: #line 6932 "configure"
1.1       millert  6932: #include "confdefs.h"
                   6933: /* Override any gcc2 internal prototype to avoid an error.  */
                   6934: /* We use char because int might match the return type of a gcc2
                   6935:     builtin and then its argument prototype would still apply.  */
                   6936: char socket();
                   6937:
                   6938: int main() {
                   6939: socket()
                   6940: ; return 0; }
                   6941: EOF
1.4     ! millert  6942: if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6943:   rm -rf conftest*
                   6944:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6945: else
                   6946:   echo "configure: failed program was:" >&5
                   6947:   cat conftest.$ac_ext >&5
                   6948:   rm -rf conftest*
                   6949:   eval "ac_cv_lib_$ac_lib_var=no"
                   6950: fi
                   6951: rm -f conftest*
                   6952: LIBS="$ac_save_LIBS"
                   6953:
                   6954: fi
                   6955: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6956:   echo "$ac_t""yes" 1>&6
                   6957:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   6958: else
                   6959:   echo "$ac_t""no" 1>&6
                   6960: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
                   6961: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.4     ! millert  6962: echo "configure:6963: checking for socket in -lsocket" >&5
1.1       millert  6963: if test -n "-lnsl"; then
                   6964:   ac_lib_var=`echo socket'_'socket-lnsl | sed 'y% ./+-%___p_%'`
                   6965: else
                   6966:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   6967: fi
                   6968: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6969:   echo $ac_n "(cached) $ac_c" 1>&6
                   6970: else
                   6971:   ac_save_LIBS="$LIBS"
                   6972: LIBS="-lsocket -lnsl $LIBS"
                   6973: cat > conftest.$ac_ext <<EOF
1.4     ! millert  6974: #line 6975 "configure"
1.1       millert  6975: #include "confdefs.h"
                   6976: /* Override any gcc2 internal prototype to avoid an error.  */
                   6977: /* We use char because int might match the return type of a gcc2
                   6978:     builtin and then its argument prototype would still apply.  */
                   6979: char socket();
                   6980:
                   6981: int main() {
                   6982: socket()
                   6983: ; return 0; }
                   6984: EOF
1.4     ! millert  6985: if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6986:   rm -rf conftest*
                   6987:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6988: else
                   6989:   echo "configure: failed program was:" >&5
                   6990:   cat conftest.$ac_ext >&5
                   6991:   rm -rf conftest*
                   6992:   eval "ac_cv_lib_$ac_lib_var=no"
                   6993: fi
                   6994: rm -f conftest*
                   6995: LIBS="$ac_save_LIBS"
                   6996:
                   6997: fi
                   6998: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6999:   echo "$ac_t""yes" 1>&6
                   7000:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   7001: else
                   7002:   echo "$ac_t""no" 1>&6
                   7003: fi
                   7004:
                   7005: fi
                   7006:
                   7007: fi
                   7008:
                   7009: fi
                   7010:
                   7011: echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
1.4     ! millert  7012: echo "configure:7013: checking for inet_addr" >&5
1.1       millert  7013: if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
                   7014:   echo $ac_n "(cached) $ac_c" 1>&6
                   7015: else
                   7016:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7017: #line 7018 "configure"
1.1       millert  7018: #include "confdefs.h"
                   7019: /* System header to define __stub macros and hopefully few prototypes,
                   7020:     which can conflict with char inet_addr(); below.  */
                   7021: #include <assert.h>
                   7022: /* Override any gcc2 internal prototype to avoid an error.  */
                   7023: /* We use char because int might match the return type of a gcc2
                   7024:     builtin and then its argument prototype would still apply.  */
                   7025: char inet_addr();
                   7026:
                   7027: int main() {
                   7028:
                   7029: /* The GNU C library defines this for functions which it implements
                   7030:     to always fail with ENOSYS.  Some functions are actually named
                   7031:     something starting with __ and the normal name is an alias.  */
                   7032: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
                   7033: choke me
                   7034: #else
                   7035: inet_addr();
                   7036: #endif
                   7037:
                   7038: ; return 0; }
                   7039: EOF
1.4     ! millert  7040: if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7041:   rm -rf conftest*
                   7042:   eval "ac_cv_func_inet_addr=yes"
                   7043: else
                   7044:   echo "configure: failed program was:" >&5
                   7045:   cat conftest.$ac_ext >&5
                   7046:   rm -rf conftest*
                   7047:   eval "ac_cv_func_inet_addr=no"
                   7048: fi
                   7049: rm -f conftest*
                   7050: fi
                   7051:
                   7052: if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then
                   7053:   echo "$ac_t""yes" 1>&6
                   7054:   :
                   7055: else
                   7056:   echo "$ac_t""no" 1>&6
                   7057: echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1.4     ! millert  7058: echo "configure:7059: checking for inet_addr in -lnsl" >&5
1.1       millert  7059: if test -n ""; then
                   7060:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7061: else
                   7062:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
                   7063: fi
                   7064: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7065:   echo $ac_n "(cached) $ac_c" 1>&6
                   7066: else
                   7067:   ac_save_LIBS="$LIBS"
                   7068: LIBS="-lnsl  $LIBS"
                   7069: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7070: #line 7071 "configure"
1.1       millert  7071: #include "confdefs.h"
                   7072: /* Override any gcc2 internal prototype to avoid an error.  */
                   7073: /* We use char because int might match the return type of a gcc2
                   7074:     builtin and then its argument prototype would still apply.  */
                   7075: char inet_addr();
                   7076:
                   7077: int main() {
                   7078: inet_addr()
                   7079: ; return 0; }
                   7080: EOF
1.4     ! millert  7081: if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7082:   rm -rf conftest*
                   7083:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7084: else
                   7085:   echo "configure: failed program was:" >&5
                   7086:   cat conftest.$ac_ext >&5
                   7087:   rm -rf conftest*
                   7088:   eval "ac_cv_lib_$ac_lib_var=no"
                   7089: fi
                   7090: rm -f conftest*
                   7091: LIBS="$ac_save_LIBS"
                   7092:
                   7093: fi
                   7094: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7095:   echo "$ac_t""yes" 1>&6
                   7096:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7097: else
                   7098:   echo "$ac_t""no" 1>&6
                   7099: echo $ac_n "checking for inet_addr in -linet""... $ac_c" 1>&6
1.4     ! millert  7100: echo "configure:7101: checking for inet_addr in -linet" >&5
1.1       millert  7101: if test -n ""; then
                   7102:   ac_lib_var=`echo inet'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7103: else
                   7104:   ac_lib_var=`echo inet'_'inet_addr | sed 'y%./+-%__p_%'`
                   7105: fi
                   7106: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7107:   echo $ac_n "(cached) $ac_c" 1>&6
                   7108: else
                   7109:   ac_save_LIBS="$LIBS"
                   7110: LIBS="-linet  $LIBS"
                   7111: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7112: #line 7113 "configure"
1.1       millert  7113: #include "confdefs.h"
                   7114: /* Override any gcc2 internal prototype to avoid an error.  */
                   7115: /* We use char because int might match the return type of a gcc2
                   7116:     builtin and then its argument prototype would still apply.  */
                   7117: char inet_addr();
                   7118:
                   7119: int main() {
                   7120: inet_addr()
                   7121: ; return 0; }
                   7122: EOF
1.4     ! millert  7123: if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7124:   rm -rf conftest*
                   7125:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7126: else
                   7127:   echo "configure: failed program was:" >&5
                   7128:   cat conftest.$ac_ext >&5
                   7129:   rm -rf conftest*
                   7130:   eval "ac_cv_lib_$ac_lib_var=no"
                   7131: fi
                   7132: rm -f conftest*
                   7133: LIBS="$ac_save_LIBS"
                   7134:
                   7135: fi
                   7136: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7137:   echo "$ac_t""yes" 1>&6
                   7138:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7139: else
                   7140:   echo "$ac_t""no" 1>&6
                   7141: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
                   7142: echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
1.4     ! millert  7143: echo "configure:7144: checking for inet_addr in -lsocket" >&5
1.1       millert  7144: if test -n "-lnsl"; then
                   7145:   ac_lib_var=`echo socket'_'inet_addr-lnsl | sed 'y% ./+-%___p_%'`
                   7146: else
                   7147:   ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
                   7148: fi
                   7149: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7150:   echo $ac_n "(cached) $ac_c" 1>&6
                   7151: else
                   7152:   ac_save_LIBS="$LIBS"
                   7153: LIBS="-lsocket -lnsl $LIBS"
                   7154: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7155: #line 7156 "configure"
1.1       millert  7156: #include "confdefs.h"
                   7157: /* Override any gcc2 internal prototype to avoid an error.  */
                   7158: /* We use char because int might match the return type of a gcc2
                   7159:     builtin and then its argument prototype would still apply.  */
                   7160: char inet_addr();
                   7161:
                   7162: int main() {
                   7163: inet_addr()
                   7164: ; return 0; }
                   7165: EOF
1.4     ! millert  7166: if { (eval echo configure:7167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7167:   rm -rf conftest*
                   7168:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7169: else
                   7170:   echo "configure: failed program was:" >&5
                   7171:   cat conftest.$ac_ext >&5
                   7172:   rm -rf conftest*
                   7173:   eval "ac_cv_lib_$ac_lib_var=no"
                   7174: fi
                   7175: rm -f conftest*
                   7176: LIBS="$ac_save_LIBS"
                   7177:
                   7178: fi
                   7179: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7180:   echo "$ac_t""yes" 1>&6
                   7181:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   7182: else
                   7183:   echo "$ac_t""no" 1>&6
                   7184: fi
                   7185:
                   7186: fi
                   7187:
                   7188: fi
                   7189:
                   7190: fi
                   7191:
                   7192: echo $ac_n "checking for syslog""... $ac_c" 1>&6
1.4     ! millert  7193: echo "configure:7194: checking for syslog" >&5
1.1       millert  7194: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
                   7195:   echo $ac_n "(cached) $ac_c" 1>&6
                   7196: else
                   7197:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7198: #line 7199 "configure"
1.1       millert  7199: #include "confdefs.h"
                   7200: /* System header to define __stub macros and hopefully few prototypes,
                   7201:     which can conflict with char syslog(); below.  */
                   7202: #include <assert.h>
                   7203: /* Override any gcc2 internal prototype to avoid an error.  */
                   7204: /* We use char because int might match the return type of a gcc2
                   7205:     builtin and then its argument prototype would still apply.  */
                   7206: char syslog();
                   7207:
                   7208: int main() {
                   7209:
                   7210: /* The GNU C library defines this for functions which it implements
                   7211:     to always fail with ENOSYS.  Some functions are actually named
                   7212:     something starting with __ and the normal name is an alias.  */
                   7213: #if defined (__stub_syslog) || defined (__stub___syslog)
                   7214: choke me
                   7215: #else
                   7216: syslog();
                   7217: #endif
                   7218:
                   7219: ; return 0; }
                   7220: EOF
1.4     ! millert  7221: if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7222:   rm -rf conftest*
                   7223:   eval "ac_cv_func_syslog=yes"
                   7224: else
                   7225:   echo "configure: failed program was:" >&5
                   7226:   cat conftest.$ac_ext >&5
                   7227:   rm -rf conftest*
                   7228:   eval "ac_cv_func_syslog=no"
                   7229: fi
                   7230: rm -f conftest*
                   7231: fi
                   7232:
                   7233: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
                   7234:   echo "$ac_t""yes" 1>&6
                   7235:   :
                   7236: else
                   7237:   echo "$ac_t""no" 1>&6
                   7238: echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
1.4     ! millert  7239: echo "configure:7240: checking for syslog in -lsocket" >&5
1.1       millert  7240: if test -n ""; then
                   7241:   ac_lib_var=`echo socket'_'syslog | sed 'y% ./+-%___p_%'`
                   7242: else
                   7243:   ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
                   7244: fi
                   7245: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7246:   echo $ac_n "(cached) $ac_c" 1>&6
                   7247: else
                   7248:   ac_save_LIBS="$LIBS"
                   7249: LIBS="-lsocket  $LIBS"
                   7250: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7251: #line 7252 "configure"
1.1       millert  7252: #include "confdefs.h"
                   7253: /* Override any gcc2 internal prototype to avoid an error.  */
                   7254: /* We use char because int might match the return type of a gcc2
                   7255:     builtin and then its argument prototype would still apply.  */
                   7256: char syslog();
                   7257:
                   7258: int main() {
                   7259: syslog()
                   7260: ; return 0; }
                   7261: EOF
1.4     ! millert  7262: if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7263:   rm -rf conftest*
                   7264:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7265: else
                   7266:   echo "configure: failed program was:" >&5
                   7267:   cat conftest.$ac_ext >&5
                   7268:   rm -rf conftest*
                   7269:   eval "ac_cv_lib_$ac_lib_var=no"
                   7270: fi
                   7271: rm -f conftest*
                   7272: LIBS="$ac_save_LIBS"
                   7273:
                   7274: fi
                   7275: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7276:   echo "$ac_t""yes" 1>&6
                   7277:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   7278: else
                   7279:   echo "$ac_t""no" 1>&6
                   7280: echo $ac_n "checking for syslog in -lnsl""... $ac_c" 1>&6
1.4     ! millert  7281: echo "configure:7282: checking for syslog in -lnsl" >&5
1.1       millert  7282: if test -n ""; then
                   7283:   ac_lib_var=`echo nsl'_'syslog | sed 'y% ./+-%___p_%'`
                   7284: else
                   7285:   ac_lib_var=`echo nsl'_'syslog | sed 'y%./+-%__p_%'`
                   7286: fi
                   7287: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7288:   echo $ac_n "(cached) $ac_c" 1>&6
                   7289: else
                   7290:   ac_save_LIBS="$LIBS"
                   7291: LIBS="-lnsl  $LIBS"
                   7292: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7293: #line 7294 "configure"
1.1       millert  7294: #include "confdefs.h"
                   7295: /* Override any gcc2 internal prototype to avoid an error.  */
                   7296: /* We use char because int might match the return type of a gcc2
                   7297:     builtin and then its argument prototype would still apply.  */
                   7298: char syslog();
                   7299:
                   7300: int main() {
                   7301: syslog()
                   7302: ; return 0; }
                   7303: EOF
1.4     ! millert  7304: if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7305:   rm -rf conftest*
                   7306:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7307: else
                   7308:   echo "configure: failed program was:" >&5
                   7309:   cat conftest.$ac_ext >&5
                   7310:   rm -rf conftest*
                   7311:   eval "ac_cv_lib_$ac_lib_var=no"
                   7312: fi
                   7313: rm -f conftest*
                   7314: LIBS="$ac_save_LIBS"
                   7315:
                   7316: fi
                   7317: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7318:   echo "$ac_t""yes" 1>&6
                   7319:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7320: else
                   7321:   echo "$ac_t""no" 1>&6
                   7322: echo $ac_n "checking for syslog in -linet""... $ac_c" 1>&6
1.4     ! millert  7323: echo "configure:7324: checking for syslog in -linet" >&5
1.1       millert  7324: if test -n ""; then
                   7325:   ac_lib_var=`echo inet'_'syslog | sed 'y% ./+-%___p_%'`
                   7326: else
                   7327:   ac_lib_var=`echo inet'_'syslog | sed 'y%./+-%__p_%'`
                   7328: fi
                   7329: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7330:   echo $ac_n "(cached) $ac_c" 1>&6
                   7331: else
                   7332:   ac_save_LIBS="$LIBS"
                   7333: LIBS="-linet  $LIBS"
                   7334: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7335: #line 7336 "configure"
1.1       millert  7336: #include "confdefs.h"
                   7337: /* Override any gcc2 internal prototype to avoid an error.  */
                   7338: /* We use char because int might match the return type of a gcc2
                   7339:     builtin and then its argument prototype would still apply.  */
                   7340: char syslog();
                   7341:
                   7342: int main() {
                   7343: syslog()
                   7344: ; return 0; }
                   7345: EOF
1.4     ! millert  7346: if { (eval echo configure:7347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7347:   rm -rf conftest*
                   7348:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7349: else
                   7350:   echo "configure: failed program was:" >&5
                   7351:   cat conftest.$ac_ext >&5
                   7352:   rm -rf conftest*
                   7353:   eval "ac_cv_lib_$ac_lib_var=no"
                   7354: fi
                   7355: rm -f conftest*
                   7356: LIBS="$ac_save_LIBS"
                   7357:
                   7358: fi
                   7359: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7360:   echo "$ac_t""yes" 1>&6
                   7361:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7362: else
                   7363:   echo "$ac_t""no" 1>&6
                   7364: fi
                   7365:
                   7366: fi
                   7367:
                   7368: fi
                   7369:
                   7370: fi
                   7371:
                   7372: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   7373:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   7374: # for constant arguments.  Useless!
                   7375: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1.4     ! millert  7376: echo "configure:7377: checking for working alloca.h" >&5
1.1       millert  7377: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
                   7378:   echo $ac_n "(cached) $ac_c" 1>&6
                   7379: else
                   7380:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7381: #line 7382 "configure"
1.1       millert  7382: #include "confdefs.h"
                   7383: #include <alloca.h>
                   7384: int main() {
                   7385: char *p = alloca(2 * sizeof(int));
                   7386: ; return 0; }
                   7387: EOF
1.4     ! millert  7388: if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7389:   rm -rf conftest*
                   7390:   ac_cv_header_alloca_h=yes
                   7391: else
                   7392:   echo "configure: failed program was:" >&5
                   7393:   cat conftest.$ac_ext >&5
                   7394:   rm -rf conftest*
                   7395:   ac_cv_header_alloca_h=no
                   7396: fi
                   7397: rm -f conftest*
                   7398: fi
                   7399:
                   7400: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
                   7401: if test $ac_cv_header_alloca_h = yes; then
                   7402:   cat >> confdefs.h <<\EOF
                   7403: #define HAVE_ALLOCA_H 1
                   7404: EOF
                   7405:
                   7406: fi
                   7407:
                   7408: echo $ac_n "checking for alloca""... $ac_c" 1>&6
1.4     ! millert  7409: echo "configure:7410: checking for alloca" >&5
1.1       millert  7410: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
                   7411:   echo $ac_n "(cached) $ac_c" 1>&6
                   7412: else
                   7413:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7414: #line 7415 "configure"
1.1       millert  7415: #include "confdefs.h"
                   7416:
                   7417: #ifdef __GNUC__
                   7418: # define alloca __builtin_alloca
                   7419: #else
                   7420: # if HAVE_ALLOCA_H
                   7421: #  include <alloca.h>
                   7422: # else
                   7423: #  ifdef _AIX
                   7424:  #pragma alloca
                   7425: #  else
                   7426: #   ifndef alloca /* predefined by HP cc +Olibcalls */
                   7427: char *alloca ();
                   7428: #   endif
                   7429: #  endif
                   7430: # endif
                   7431: #endif
                   7432:
                   7433: int main() {
                   7434: char *p = (char *) alloca(1);
                   7435: ; return 0; }
                   7436: EOF
1.4     ! millert  7437: if { (eval echo configure:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7438:   rm -rf conftest*
                   7439:   ac_cv_func_alloca_works=yes
                   7440: else
                   7441:   echo "configure: failed program was:" >&5
                   7442:   cat conftest.$ac_ext >&5
                   7443:   rm -rf conftest*
                   7444:   ac_cv_func_alloca_works=no
                   7445: fi
                   7446: rm -f conftest*
                   7447: fi
                   7448:
                   7449: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
                   7450: if test $ac_cv_func_alloca_works = yes; then
                   7451:   cat >> confdefs.h <<\EOF
                   7452: #define HAVE_ALLOCA 1
                   7453: EOF
                   7454:
                   7455: fi
                   7456:
                   7457: if test $ac_cv_func_alloca_works = no; then
                   7458:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   7459:   # that cause trouble.  Some versions do not even contain alloca or
                   7460:   # contain a buggy version.  If you still want to use their alloca,
                   7461:   # use ar to extract alloca.o from them instead of compiling alloca.c.
                   7462:   ALLOCA=alloca.o
                   7463:   cat >> confdefs.h <<\EOF
                   7464: #define C_ALLOCA 1
                   7465: EOF
                   7466:
                   7467:
                   7468: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1.4     ! millert  7469: echo "configure:7470: checking whether alloca needs Cray hooks" >&5
1.1       millert  7470: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
                   7471:   echo $ac_n "(cached) $ac_c" 1>&6
                   7472: else
                   7473:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7474: #line 7475 "configure"
1.1       millert  7475: #include "confdefs.h"
                   7476: #if defined(CRAY) && ! defined(CRAY2)
                   7477: webecray
                   7478: #else
                   7479: wenotbecray
                   7480: #endif
                   7481:
                   7482: EOF
                   7483: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7484:   egrep "webecray" >/dev/null 2>&1; then
                   7485:   rm -rf conftest*
                   7486:   ac_cv_os_cray=yes
                   7487: else
                   7488:   rm -rf conftest*
                   7489:   ac_cv_os_cray=no
                   7490: fi
                   7491: rm -f conftest*
                   7492:
                   7493: fi
                   7494:
                   7495: echo "$ac_t""$ac_cv_os_cray" 1>&6
                   7496: if test $ac_cv_os_cray = yes; then
                   7497: for ac_func in _getb67 GETB67 getb67; do
                   7498:   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.4     ! millert  7499: echo "configure:7500: checking for $ac_func" >&5
1.1       millert  7500: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   7501:   echo $ac_n "(cached) $ac_c" 1>&6
                   7502: else
                   7503:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7504: #line 7505 "configure"
1.1       millert  7505: #include "confdefs.h"
                   7506: /* System header to define __stub macros and hopefully few prototypes,
                   7507:     which can conflict with char $ac_func(); below.  */
                   7508: #include <assert.h>
                   7509: /* Override any gcc2 internal prototype to avoid an error.  */
                   7510: /* We use char because int might match the return type of a gcc2
                   7511:     builtin and then its argument prototype would still apply.  */
                   7512: char $ac_func();
                   7513:
                   7514: int main() {
                   7515:
                   7516: /* The GNU C library defines this for functions which it implements
                   7517:     to always fail with ENOSYS.  Some functions are actually named
                   7518:     something starting with __ and the normal name is an alias.  */
                   7519: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7520: choke me
                   7521: #else
                   7522: $ac_func();
                   7523: #endif
                   7524:
                   7525: ; return 0; }
                   7526: EOF
1.4     ! millert  7527: if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7528:   rm -rf conftest*
                   7529:   eval "ac_cv_func_$ac_func=yes"
                   7530: else
                   7531:   echo "configure: failed program was:" >&5
                   7532:   cat conftest.$ac_ext >&5
                   7533:   rm -rf conftest*
                   7534:   eval "ac_cv_func_$ac_func=no"
                   7535: fi
                   7536: rm -f conftest*
                   7537: fi
                   7538:
                   7539: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   7540:   echo "$ac_t""yes" 1>&6
                   7541:   cat >> confdefs.h <<EOF
                   7542: #define CRAY_STACKSEG_END $ac_func
                   7543: EOF
                   7544:
                   7545:   break
                   7546: else
                   7547:   echo "$ac_t""no" 1>&6
                   7548: fi
                   7549:
                   7550: done
                   7551: fi
                   7552:
                   7553: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1.4     ! millert  7554: echo "configure:7555: checking stack direction for C alloca" >&5
1.1       millert  7555: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
                   7556:   echo $ac_n "(cached) $ac_c" 1>&6
                   7557: else
                   7558:   if test "$cross_compiling" = yes; then
                   7559:   ac_cv_c_stack_direction=0
                   7560: else
                   7561:   cat > conftest.$ac_ext <<EOF
1.4     ! millert  7562: #line 7563 "configure"
1.1       millert  7563: #include "confdefs.h"
                   7564: find_stack_direction ()
                   7565: {
                   7566:   static char *addr = 0;
                   7567:   auto char dummy;
                   7568:   if (addr == 0)
                   7569:     {
                   7570:       addr = &dummy;
                   7571:       return find_stack_direction ();
                   7572:     }
                   7573:   else
                   7574:     return (&dummy > addr) ? 1 : -1;
                   7575: }
                   7576: main ()
                   7577: {
                   7578:   exit (find_stack_direction() < 0);
                   7579: }
                   7580: EOF
1.4     ! millert  7581: if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  7582: then
                   7583:   ac_cv_c_stack_direction=1
                   7584: else
                   7585:   echo "configure: failed program was:" >&5
                   7586:   cat conftest.$ac_ext >&5
                   7587:   rm -fr conftest*
                   7588:   ac_cv_c_stack_direction=-1
                   7589: fi
                   7590: rm -fr conftest*
                   7591: fi
                   7592:
                   7593: fi
                   7594:
                   7595: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
                   7596: cat >> confdefs.h <<EOF
                   7597: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   7598: EOF
                   7599:
                   7600: fi
                   7601:
                   7602: fi
                   7603:
                   7604: if test "$with_kerb5" = "yes"; then
                   7605:     cat >> confdefs.h <<\EOF
                   7606: #define HAVE_KERB5 1
                   7607: EOF
                   7608:
                   7609:     if test -f "/usr/local/include/krb5.h"; then
                   7610:        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
                   7611:     elif test -f "/usr/local/kerberos/include/krb5.h"; then
                   7612:        CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
                   7613:     elif test -f "/usr/local/krb5/include/krb5.h"; then
                   7614:        CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
                   7615:     else
                   7616:        echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7617:     fi
                   7618:
                   7619:     if test -f "/usr/local/lib/libkrb5.a"; then
                   7620:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7621:     elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
                   7622:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
                   7623:     elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
                   7624:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
                   7625:     else
                   7626:        echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7627:     fi
                   7628:
                   7629:     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   7630:     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
                   7631: fi
                   7632:
                   7633: if test "$with_kerb4" = "yes"; then
                   7634:     cat >> confdefs.h <<\EOF
                   7635: #define HAVE_KERB4 1
                   7636: EOF
                   7637:
                   7638:     if test -f "/usr/include/kerberosIV/krb.h"; then
                   7639:        CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
                   7640:     elif test -f "/usr/local/include/kerberosIV/krb.h"; then
                   7641:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
                   7642:     elif test -f "/usr/kerberos/include/krb.h"; then
                   7643:        CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
                   7644:     elif test -f "/usr/local/kerberos/include/krb.h"; then
                   7645:        CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
                   7646:     else
                   7647:        echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7648:     fi
                   7649:
                   7650:     if test -d "/usr/kerberos/lib"; then
                   7651:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
                   7652:     elif test -d "/usr/lib/kerberos"; then
                   7653:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
                   7654:     elif test -f "/usr/local/lib/libkrb.a"; then
                   7655:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7656:     elif test ! -f "/usr/lib/libkrb.a"; then
                   7657:        echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7658:     fi
                   7659:
                   7660:     echo $ac_n "checking for -ldes""... $ac_c" 1>&6
1.4     ! millert  7661: echo "configure:7662: checking for -ldes" >&5
1.1       millert  7662: if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
                   7663:   echo $ac_n "(cached) $ac_c" 1>&6
                   7664: else
                   7665:   ac_save_LIBS="$LIBS"
                   7666: LIBS="-ldes  $LIBS"
                   7667: cat > conftest.$ac_ext <<EOF
1.4     ! millert  7668: #line 7669 "configure"
1.1       millert  7669: #include "confdefs.h"
                   7670:
                   7671: int main() {
                   7672: main()
                   7673: ; return 0; }
                   7674: EOF
1.4     ! millert  7675: if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7676:   rm -rf conftest*
                   7677:   ac_cv_lib_des=yes
                   7678: else
                   7679:   echo "configure: failed program was:" >&5
                   7680:   cat conftest.$ac_ext >&5
                   7681:   rm -rf conftest*
                   7682:   ac_cv_lib_des=no
                   7683: fi
                   7684: rm -f conftest*
                   7685: LIBS="$ac_save_LIBS"
                   7686:
                   7687: fi
                   7688: echo "$ac_t""$ac_cv_lib_des" 1>&6
                   7689: if test "$ac_cv_lib_des" = yes; then
                   7690:   SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
                   7691: else
                   7692:   SUDO_LIBS="${SUDO_LIBS} -lkrb"
                   7693: fi
                   7694:
                   7695:     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
                   7696: fi
                   7697:
                   7698: if test "$with_pam" = "yes"; then
                   7699:     SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
                   7700: fi
                   7701:
                   7702: if test "$with_AFS" = "yes"; then
                   7703:
                   7704:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   7705:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   7706:     for i in $AFSLIBDIRS; do
                   7707:        if test -d ${i}; then
                   7708:            SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
                   7709:            FOUND_AFSLIBDIR=true
                   7710:        fi
                   7711:     done
                   7712:     if test -z "$FOUND_AFSLIBDIR"; then
                   7713:        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.'
                   7714:     fi
                   7715:
                   7716:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   7717:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   7718:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   7719:     for i in $AFSLIBDIRS; do
                   7720:        if test -f ${i}/util.a; then
                   7721:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   7722:            FOUND_UTIL_A=true
                   7723:            break;
                   7724:        fi
                   7725:     done
                   7726:     if test -z "$FOUND_UTIL_A"; then
                   7727:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   7728:     fi
                   7729:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   7730:
                   7731:     # AFS includes may live in /usr/include on some machines...
                   7732:     for i in /usr/afsws/include; do
                   7733:        if test -d ${i}; then
                   7734:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   7735:            FOUND_AFSINCDIR=true
                   7736:        fi
                   7737:     done
                   7738:
                   7739:     if test -z "$FOUND_AFSLIBDIR"; then
                   7740:        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.'
                   7741:     fi
                   7742: fi
                   7743:
                   7744: if test "$with_DCE" = "yes"; then
                   7745:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   7746:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   7747: fi
                   7748:
                   7749: if test "$with_skey" = "yes"; then
                   7750:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   7751:     if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
                   7752:        :
                   7753:     elif test -f /usr/local/include/skey.h; then
                   7754:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7755:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7756:     elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
                   7757:        CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
                   7758:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
                   7759:     else
                   7760:        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'
                   7761:     fi
                   7762: fi
                   7763:
                   7764: if test "$with_opie" = "yes"; then
                   7765:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   7766:     if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
                   7767:        :
                   7768:     elif test -f /usr/local/include/opie.h; then
                   7769:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7770:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7771:     else
                   7772:        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'
                   7773:     fi
                   7774: fi
                   7775:
                   7776: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
                   7777:     if test "$with_SecurID" != "yes"; then
                   7778:        SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   7779:        CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   7780:     elif test -f /usr/ace/examples/sdiclient.a; then
                   7781:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
                   7782:        CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
                   7783:     else
                   7784:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
                   7785:        CPPFLAGS="${CPPFLAGS} -I/usr/ace"
                   7786:     fi
                   7787: fi
                   7788:
                   7789: if test "$with_fwtk" = "yes"; then
                   7790:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   7791: fi
                   7792:
                   7793: if test "$with_authenticate" = "yes"; then
                   7794:     SUDO_LIBS="${SUDO_LIBS} -ls"
                   7795: fi
                   7796:
                   7797: echo $ac_n "checking for log file location""... $ac_c" 1>&6
1.4     ! millert  7798: echo "configure:7799: checking for log file location" >&5
1.1       millert  7799: if test -n "$with_logpath"; then
                   7800:     echo "$ac_t""$with_logpath" 1>&6
                   7801:     cat >> confdefs.h <<EOF
                   7802: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   7803: EOF
                   7804:
                   7805: elif test -d "/var/log"; then
                   7806:     echo "$ac_t""/var/log/sudo.log" 1>&6
                   7807:     cat >> confdefs.h <<\EOF
                   7808: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   7809: EOF
                   7810:
                   7811: elif test -d "/var/adm"; then
                   7812:     echo "$ac_t""/var/adm/sudo.log" 1>&6
                   7813:     cat >> confdefs.h <<\EOF
                   7814: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   7815: EOF
                   7816:
                   7817: elif test -d "/usr/adm"; then
                   7818:     echo "$ac_t""/usr/adm/sudo.log" 1>&6
                   7819:     cat >> confdefs.h <<\EOF
                   7820: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   7821: EOF
                   7822:
                   7823: else
                   7824:     echo "$ac_t""unknown" 1>&6
                   7825: fi
                   7826:
                   7827: echo $ac_n "checking for timestamp file location""... $ac_c" 1>&6
1.4     ! millert  7828: echo "configure:7829: checking for timestamp file location" >&5
1.1       millert  7829: if test -n "$with_timedir"; then
                   7830:     echo "$ac_t""$with_timedir" 1>&6
                   7831:     cat >> confdefs.h <<EOF
                   7832: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   7833: EOF
                   7834:
                   7835: elif test -d "/var/run"; then
                   7836:     echo "$ac_t""/var/run/sudo" 1>&6
                   7837:     cat >> confdefs.h <<\EOF
                   7838: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   7839: EOF
                   7840:
                   7841: elif test -d "/tmp"; then
                   7842:     echo "$ac_t""/tmp/.odus" 1>&6
                   7843:     cat >> confdefs.h <<\EOF
                   7844: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
                   7845: EOF
                   7846:
                   7847: else
                   7848:     echo "$ac_t""unknown" 1>&6
                   7849: fi
                   7850:
                   7851:
                   7852: if test "$with_passwd" = "no"; then
                   7853:     cat >> confdefs.h <<\EOF
                   7854: #define WITHOUT_PASSWD 1
                   7855: EOF
                   7856:
                   7857:     if test -z "$AUTH_OBJS"; then
                   7858:        { echo "configure: error: no authentication methods defined." 1>&2; exit 1; }
                   7859:     fi
                   7860: else
                   7861:     if test -n "$SECUREWARE"; then
                   7862:        AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
                   7863:     else
                   7864:        AUTH_OBJS="${AUTH_OBJS} passwd.o"
                   7865:     fi
                   7866: fi
                   7867:
                   7868: if test -n "$LIBS"; then
                   7869:     L="$LIBS"
                   7870:     LIBS=
                   7871:     for l in ${L}; do
                   7872:        dupe=0
                   7873:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   7874:            test $l = $sl && dupe=1
                   7875:        done
                   7876:        test $dupe = 0 && LIBS="${LIBS} $l"
                   7877:     done
                   7878: fi
                   7879:
                   7880: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   7881:
                   7882: trap '' 1 2 15
                   7883: cat > confcache <<\EOF
                   7884: # This file is a shell script that caches the results of configure
                   7885: # tests run on this system so they can be shared between configure
                   7886: # scripts and configure runs.  It is not useful on other systems.
                   7887: # If it contains results you don't want to keep, you may remove or edit it.
                   7888: #
                   7889: # By default, configure uses ./config.cache as the cache file,
                   7890: # creating it if it does not exist already.  You can give configure
                   7891: # the --cache-file=FILE option to use a different cache file; that is
                   7892: # what configure does when it calls configure scripts in
                   7893: # subdirectories, so they share the cache.
                   7894: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   7895: # config.status only pays attention to the cache file if you give it the
                   7896: # --recheck option to rerun configure.
                   7897: #
                   7898: EOF
                   7899: # The following way of writing the cache mishandles newlines in values,
                   7900: # but we know of no workaround that is simple, portable, and efficient.
                   7901: # So, don't put newlines in cache variables' values.
                   7902: # Ultrix sh set writes to stderr and can't be redirected directly,
                   7903: # and sets the high bit in the cache file unless we assign to the vars.
                   7904: (set) 2>&1 |
                   7905:   case `(ac_space=' '; set) 2>&1` in
                   7906:   *ac_space=\ *)
                   7907:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   7908:     # turns \\\\ into \\, and sed turns \\ into \).
                   7909:     sed -n \
                   7910:       -e "s/'/'\\\\''/g" \
                   7911:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   7912:     ;;
                   7913:   *)
                   7914:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   7915:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   7916:     ;;
                   7917:   esac >> confcache
                   7918: if cmp -s $cache_file confcache; then
                   7919:   :
                   7920: else
                   7921:   if test -w $cache_file; then
                   7922:     echo "updating cache $cache_file"
                   7923:     cat confcache > $cache_file
                   7924:   else
                   7925:     echo "not updating unwritable cache $cache_file"
                   7926:   fi
                   7927: fi
                   7928: rm -f confcache
                   7929:
                   7930: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   7931:
                   7932: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   7933: # Let make expand exec_prefix.
                   7934: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   7935:
                   7936: # Any assignment to VPATH causes Sun make to only execute
                   7937: # the first set of double-colon rules, so remove it if not needed.
                   7938: # If there is a colon in the path, we need to keep it.
                   7939: if test "x$srcdir" = x.; then
                   7940:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   7941: fi
                   7942:
                   7943: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   7944:
                   7945: DEFS=-DHAVE_CONFIG_H
                   7946:
                   7947: # Without the "./", some shells look in PATH for config.status.
                   7948: : ${CONFIG_STATUS=./config.status}
                   7949:
                   7950: echo creating $CONFIG_STATUS
                   7951: rm -f $CONFIG_STATUS
                   7952: cat > $CONFIG_STATUS <<EOF
                   7953: #! /bin/sh
                   7954: # Generated automatically by configure.
                   7955: # Run this file to recreate the current configuration.
                   7956: # This directory was configured as follows,
                   7957: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   7958: #
                   7959: # $0 $ac_configure_args
                   7960: #
                   7961: # Compiler output produced by configure, useful for debugging
                   7962: # configure, is in ./config.log if it exists.
                   7963:
                   7964: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   7965: for ac_option
                   7966: do
                   7967:   case "\$ac_option" in
                   7968:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   7969:     echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion
                   7970:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   7971:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   7972:     echo "$CONFIG_STATUS generated by autoconf version 2.12"
                   7973:     exit 0 ;;
                   7974:   -help | --help | --hel | --he | --h)
                   7975:     echo "\$ac_cs_usage"; exit 0 ;;
                   7976:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   7977:   esac
                   7978: done
                   7979:
                   7980: ac_given_srcdir=$srcdir
                   7981:
                   7982: trap 'rm -fr `echo "Makefile config.h pathnames.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   7983: EOF
                   7984: cat >> $CONFIG_STATUS <<EOF
                   7985:
                   7986: # Protect against being on the right side of a sed subst in config.status.
                   7987: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   7988:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   7989: $ac_vpsub
                   7990: $extrasub
                   7991: s%@CFLAGS@%$CFLAGS%g
                   7992: s%@CPPFLAGS@%$CPPFLAGS%g
                   7993: s%@CXXFLAGS@%$CXXFLAGS%g
                   7994: s%@DEFS@%$DEFS%g
                   7995: s%@LDFLAGS@%$LDFLAGS%g
                   7996: s%@LIBS@%$LIBS%g
                   7997: s%@exec_prefix@%$exec_prefix%g
                   7998: s%@prefix@%$prefix%g
                   7999: s%@program_transform_name@%$program_transform_name%g
                   8000: s%@bindir@%$bindir%g
                   8001: s%@sbindir@%$sbindir%g
                   8002: s%@libexecdir@%$libexecdir%g
                   8003: s%@datadir@%$datadir%g
                   8004: s%@sysconfdir@%$sysconfdir%g
                   8005: s%@sharedstatedir@%$sharedstatedir%g
                   8006: s%@localstatedir@%$localstatedir%g
                   8007: s%@libdir@%$libdir%g
                   8008: s%@includedir@%$includedir%g
                   8009: s%@oldincludedir@%$oldincludedir%g
                   8010: s%@infodir@%$infodir%g
                   8011: s%@mandir@%$mandir%g
                   8012: s%@PROGS@%$PROGS%g
                   8013: s%@SUDO_LDFLAGS@%$SUDO_LDFLAGS%g
                   8014: s%@SUDO_LIBS@%$SUDO_LIBS%g
                   8015: s%@NET_LIBS@%$NET_LIBS%g
                   8016: s%@AFS_LIBS@%$AFS_LIBS%g
                   8017: s%@OSDEFS@%$OSDEFS%g
                   8018: s%@AUTH_OBJS@%$AUTH_OBJS%g
                   8019: s%@LIBOBJS@%$LIBOBJS%g
                   8020: s%@MANTYPE@%$MANTYPE%g
                   8021: s%@MAN_POSTINSTALL@%$MAN_POSTINSTALL%g
                   8022: s%@SUDOERS_MODE@%$SUDOERS_MODE%g
                   8023: s%@SUDOERS_UID@%$SUDOERS_UID%g
                   8024: s%@SUDOERS_GID@%$SUDOERS_GID%g
                   8025: s%@DEV@%$DEV%g
                   8026: s%@EGREPPROG@%$EGREPPROG%g
                   8027: s%@CC@%$CC%g
                   8028: s%@CPP@%$CPP%g
                   8029: s%@UNAMEPROG@%$UNAMEPROG%g
                   8030: s%@TRPROG@%$TRPROG%g
                   8031: s%@SEDPROG@%$SEDPROG%g
                   8032: s%@NROFFPROG@%$NROFFPROG%g
                   8033: s%@host@%$host%g
                   8034: s%@host_alias@%$host_alias%g
                   8035: s%@host_cpu@%$host_cpu%g
                   8036: s%@host_vendor@%$host_vendor%g
                   8037: s%@host_os@%$host_os%g
                   8038: s%@YACC@%$YACC%g
                   8039: s%@ALLOCA@%$ALLOCA%g
                   8040:
                   8041: CEOF
                   8042: EOF
                   8043:
                   8044: cat >> $CONFIG_STATUS <<\EOF
                   8045:
                   8046: # Split the substitutions into bite-sized pieces for seds with
                   8047: # small command number limits, like on Digital OSF/1 and HP-UX.
                   8048: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   8049: ac_file=1 # Number of current file.
                   8050: ac_beg=1 # First line for current file.
                   8051: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   8052: ac_more_lines=:
                   8053: ac_sed_cmds=""
                   8054: while $ac_more_lines; do
                   8055:   if test $ac_beg -gt 1; then
                   8056:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   8057:   else
                   8058:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   8059:   fi
                   8060:   if test ! -s conftest.s$ac_file; then
                   8061:     ac_more_lines=false
                   8062:     rm -f conftest.s$ac_file
                   8063:   else
                   8064:     if test -z "$ac_sed_cmds"; then
                   8065:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   8066:     else
                   8067:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   8068:     fi
                   8069:     ac_file=`expr $ac_file + 1`
                   8070:     ac_beg=$ac_end
                   8071:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   8072:   fi
                   8073: done
                   8074: if test -z "$ac_sed_cmds"; then
                   8075:   ac_sed_cmds=cat
                   8076: fi
                   8077: EOF
                   8078:
                   8079: cat >> $CONFIG_STATUS <<EOF
                   8080:
                   8081: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
                   8082: EOF
                   8083: cat >> $CONFIG_STATUS <<\EOF
                   8084: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   8085:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8086:   case "$ac_file" in
                   8087:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8088:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8089:   *) ac_file_in="${ac_file}.in" ;;
                   8090:   esac
                   8091:
                   8092:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   8093:
                   8094:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   8095:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8096:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8097:     # The file is in a subdirectory.
                   8098:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8099:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   8100:     # A "../" for each directory in $ac_dir_suffix.
                   8101:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   8102:   else
                   8103:     ac_dir_suffix= ac_dots=
                   8104:   fi
                   8105:
                   8106:   case "$ac_given_srcdir" in
                   8107:   .)  srcdir=.
                   8108:       if test -z "$ac_dots"; then top_srcdir=.
                   8109:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   8110:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   8111:   *) # Relative path.
                   8112:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   8113:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   8114:   esac
                   8115:
                   8116:
                   8117:   echo creating "$ac_file"
                   8118:   rm -f "$ac_file"
                   8119:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   8120:   case "$ac_file" in
                   8121:   *Makefile*) ac_comsub="1i\\
                   8122: # $configure_input" ;;
                   8123:   *) ac_comsub= ;;
                   8124:   esac
                   8125:
                   8126:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8127:   sed -e "$ac_comsub
                   8128: s%@configure_input@%$configure_input%g
                   8129: s%@srcdir@%$srcdir%g
                   8130: s%@top_srcdir@%$top_srcdir%g
                   8131: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   8132: fi; done
                   8133: rm -f conftest.s*
                   8134:
                   8135: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   8136: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   8137: #
                   8138: # ac_d sets the value in "#define NAME VALUE" lines.
                   8139: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   8140: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   8141: ac_dC='\3'
                   8142: ac_dD='%g'
                   8143: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   8144: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8145: ac_uB='\([     ]\)%\1#\2define\3'
                   8146: ac_uC=' '
                   8147: ac_uD='\4%g'
                   8148: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   8149: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8150: ac_eB='$%\1#\2define\3'
                   8151: ac_eC=' '
                   8152: ac_eD='%g'
                   8153:
                   8154: if test "${CONFIG_HEADERS+set}" != set; then
                   8155: EOF
                   8156: cat >> $CONFIG_STATUS <<EOF
                   8157:   CONFIG_HEADERS="config.h pathnames.h"
                   8158: EOF
                   8159: cat >> $CONFIG_STATUS <<\EOF
                   8160: fi
                   8161: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   8162:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8163:   case "$ac_file" in
                   8164:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8165:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8166:   *) ac_file_in="${ac_file}.in" ;;
                   8167:   esac
                   8168:
                   8169:   echo creating $ac_file
                   8170:
                   8171:   rm -f conftest.frag conftest.in conftest.out
                   8172:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8173:   cat $ac_file_inputs > conftest.in
                   8174:
                   8175: EOF
                   8176:
                   8177: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   8178: # the proper values into config.h.in to produce config.h.  And first:
                   8179: # Protect against being on the right side of a sed subst in config.status.
                   8180: # Protect against being in an unquoted here document in config.status.
                   8181: rm -f conftest.vals
                   8182: cat > conftest.hdr <<\EOF
                   8183: s/[\\&%]/\\&/g
                   8184: s%[\\$`]%\\&%g
                   8185: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   8186: s%ac_d%ac_u%gp
                   8187: s%ac_u%ac_e%gp
                   8188: EOF
                   8189: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   8190: rm -f conftest.hdr
                   8191:
                   8192: # This sed command replaces #undef with comments.  This is necessary, for
                   8193: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   8194: # on some systems where configure will not decide to define it.
                   8195: cat >> conftest.vals <<\EOF
                   8196: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   8197: EOF
                   8198:
                   8199: # Break up conftest.vals because some shells have a limit on
                   8200: # the size of here documents, and old seds have small limits too.
                   8201:
                   8202: rm -f conftest.tail
                   8203: while :
                   8204: do
                   8205:   ac_lines=`grep -c . conftest.vals`
                   8206:   # grep -c gives empty output for an empty file on some AIX systems.
                   8207:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   8208:   # Write a limited-size here document to conftest.frag.
                   8209:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   8210:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   8211:   echo 'CEOF
                   8212:   sed -f conftest.frag conftest.in > conftest.out
                   8213:   rm -f conftest.in
                   8214:   mv conftest.out conftest.in
                   8215: ' >> $CONFIG_STATUS
                   8216:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   8217:   rm -f conftest.vals
                   8218:   mv conftest.tail conftest.vals
                   8219: done
                   8220: rm -f conftest.vals
                   8221:
                   8222: cat >> $CONFIG_STATUS <<\EOF
                   8223:   rm -f conftest.frag conftest.h
                   8224:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   8225:   cat conftest.in >> conftest.h
                   8226:   rm -f conftest.in
                   8227:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   8228:     echo "$ac_file is unchanged"
                   8229:     rm -f conftest.h
                   8230:   else
                   8231:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   8232:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8233:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8234:       # The file is in a subdirectory.
                   8235:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8236:     fi
                   8237:     rm -f $ac_file
                   8238:     mv conftest.h $ac_file
                   8239:   fi
                   8240: fi; done
                   8241:
                   8242: EOF
                   8243: cat >> $CONFIG_STATUS <<EOF
                   8244:
                   8245: EOF
                   8246: cat >> $CONFIG_STATUS <<\EOF
                   8247:
                   8248: exit 0
                   8249: EOF
                   8250: chmod +x $CONFIG_STATUS
                   8251: rm -fr confdefs* $ac_clean_files
                   8252: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   8253:
                   8254:
                   8255: if test "$with_pam" = "yes"; then
                   8256:     echo ""
                   8257:     case $host in
                   8258:        *-*-linux*)
                   8259:            echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
                   8260:            ;;
                   8261:     esac
                   8262:     echo ""
                   8263: fi