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

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

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.16    ! millert     3: # Generated by GNU Autoconf 2.57 for sudo 1.6.7.
1.1       millert     4: #
1.16    ! millert     5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9       millert     6: # Free Software Foundation, Inc.
1.1       millert     7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
1.16    ! millert     9: ## --------------------- ##
        !            10: ## M4sh Initialization.  ##
        !            11: ## --------------------- ##
1.1       millert    12:
1.16    ! millert    13: # Be Bourne compatible
        !            14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
        !            15:   emulate sh
        !            16:   NULLCMD=:
        !            17:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
        !            18:   # is contrary to our usage.  Disable this feature.
        !            19:   alias -g '${1+"$@"}'='"$@"'
        !            20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
        !            21:   set -o posix
        !            22: fi
        !            23:
        !            24: # Support unset when possible.
        !            25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
        !            26:   as_unset=unset
        !            27: else
        !            28:   as_unset=false
        !            29: fi
        !            30:
        !            31:
        !            32: # Work around bugs in pre-3.0 UWIN ksh.
        !            33: $as_unset ENV MAIL MAILPATH
        !            34: PS1='$ '
        !            35: PS2='> '
        !            36: PS4='+ '
        !            37:
        !            38: # NLS nuisances.
        !            39: for as_var in \
        !            40:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
        !            41:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
        !            42:   LC_TELEPHONE LC_TIME
        !            43: do
        !            44:   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
        !            45:     eval $as_var=C; export $as_var
        !            46:   else
        !            47:     $as_unset $as_var
        !            48:   fi
        !            49: done
        !            50:
        !            51: # Required to use basename.
        !            52: if expr a : '\(a\)' >/dev/null 2>&1; then
        !            53:   as_expr=expr
        !            54: else
        !            55:   as_expr=false
        !            56: fi
        !            57:
        !            58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
        !            59:   as_basename=basename
        !            60: else
        !            61:   as_basename=false
        !            62: fi
        !            63:
        !            64:
        !            65: # Name of the executable.
        !            66: as_me=`$as_basename "$0" ||
        !            67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
        !            68:         X"$0" : 'X\(//\)$' \| \
        !            69:         X"$0" : 'X\(/\)$' \| \
        !            70:         .     : '\(.\)' 2>/dev/null ||
        !            71: echo X/"$0" |
        !            72:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
        !            73:          /^X\/\(\/\/\)$/{ s//\1/; q; }
        !            74:          /^X\/\(\/\).*/{ s//\1/; q; }
        !            75:          s/.*/./; q'`
        !            76:
        !            77:
        !            78: # PATH needs CR, and LINENO needs CR and PATH.
1.9       millert    79: # Avoid depending upon Character Ranges.
                     80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     83: as_cr_digits='0123456789'
                     84: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     85:
1.16    ! millert    86: # The user is always right.
        !            87: if test "${PATH_SEPARATOR+set}" != set; then
        !            88:   echo "#! /bin/sh" >conf$$.sh
        !            89:   echo  "exit 0"   >>conf$$.sh
        !            90:   chmod +x conf$$.sh
        !            91:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
        !            92:     PATH_SEPARATOR=';'
        !            93:   else
        !            94:     PATH_SEPARATOR=:
        !            95:   fi
        !            96:   rm -f conf$$.sh
        !            97: fi
        !            98:
        !            99:
        !           100:   as_lineno_1=$LINENO
        !           101:   as_lineno_2=$LINENO
        !           102:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
        !           103:   test "x$as_lineno_1" != "x$as_lineno_2" &&
        !           104:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
        !           105:   # Find who we are.  Look in the path if we contain no path at all
        !           106:   # relative or not.
        !           107:   case $0 in
        !           108:     *[\\/]* ) as_myself=$0 ;;
        !           109:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !           110: for as_dir in $PATH
        !           111: do
        !           112:   IFS=$as_save_IFS
        !           113:   test -z "$as_dir" && as_dir=.
        !           114:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
        !           115: done
        !           116:
        !           117:        ;;
        !           118:   esac
        !           119:   # We did not find ourselves, most probably we were run as `sh COMMAND'
        !           120:   # in which case we are not to be found in the path.
        !           121:   if test "x$as_myself" = x; then
        !           122:     as_myself=$0
        !           123:   fi
        !           124:   if test ! -f "$as_myself"; then
        !           125:     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
        !           126:    { (exit 1); exit 1; }; }
        !           127:   fi
        !           128:   case $CONFIG_SHELL in
        !           129:   '')
        !           130:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !           131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
        !           132: do
        !           133:   IFS=$as_save_IFS
        !           134:   test -z "$as_dir" && as_dir=.
        !           135:   for as_base in sh bash ksh sh5; do
        !           136:         case $as_dir in
        !           137:         /*)
        !           138:           if ("$as_dir/$as_base" -c '
        !           139:   as_lineno_1=$LINENO
        !           140:   as_lineno_2=$LINENO
        !           141:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
        !           142:   test "x$as_lineno_1" != "x$as_lineno_2" &&
        !           143:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
        !           144:             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
        !           145:             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
        !           146:             CONFIG_SHELL=$as_dir/$as_base
        !           147:             export CONFIG_SHELL
        !           148:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
        !           149:           fi;;
        !           150:         esac
        !           151:        done
        !           152: done
        !           153: ;;
        !           154:   esac
1.9       millert   155:
1.16    ! millert   156:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
        !           157:   # uniformly replaced by the line number.  The first 'sed' inserts a
        !           158:   # line-number line before each line; the second 'sed' does the real
        !           159:   # work.  The second script uses 'N' to pair each line-number line
        !           160:   # with the numbered line, and appends trailing '-' during
        !           161:   # substitution so that $LINENO is not a special case at line end.
        !           162:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
        !           163:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
        !           164:   sed '=' <$as_myself |
        !           165:     sed '
        !           166:       N
        !           167:       s,$,-,
        !           168:       : loop
        !           169:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
        !           170:       t loop
        !           171:       s,-$,,
        !           172:       s,^['$as_cr_digits']*\n,,
        !           173:     ' >$as_me.lineno &&
        !           174:   chmod +x $as_me.lineno ||
        !           175:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
        !           176:    { (exit 1); exit 1; }; }
        !           177:
        !           178:   # Don't try to exec as it changes $[0], causing all sort of problems
        !           179:   # (the dirname of $[0] is not the place where we might find the
        !           180:   # original and so on.  Autoconf is especially sensible to this).
        !           181:   . ./$as_me.lineno
        !           182:   # Exit status is that of the last command.
        !           183:   exit
        !           184: }
1.9       millert   185:
                    186:
1.16    ! millert   187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
        !           188:   *c*,-n*) ECHO_N= ECHO_C='
        !           189: ' ECHO_T='     ' ;;
        !           190:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
        !           191:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
        !           192: esac
1.9       millert   193:
                    194: if expr a : '\(a\)' >/dev/null 2>&1; then
                    195:   as_expr=expr
                    196: else
                    197:   as_expr=false
                    198: fi
                    199:
                    200: rm -f conf$$ conf$$.exe conf$$.file
                    201: echo >conf$$.file
                    202: if ln -s conf$$.file conf$$ 2>/dev/null; then
                    203:   # We could just check for DJGPP; but this test a) works b) is more generic
                    204:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                    205:   if test -f conf$$.exe; then
                    206:     # Don't use ln at all; we don't have any links
                    207:     as_ln_s='cp -p'
                    208:   else
                    209:     as_ln_s='ln -s'
                    210:   fi
                    211: elif ln conf$$.file conf$$ 2>/dev/null; then
                    212:   as_ln_s=ln
                    213: else
                    214:   as_ln_s='cp -p'
                    215: fi
                    216: rm -f conf$$ conf$$.exe conf$$.file
                    217:
1.16    ! millert   218: if mkdir -p . 2>/dev/null; then
        !           219:   as_mkdir_p=:
        !           220: else
        !           221:   as_mkdir_p=false
        !           222: fi
        !           223:
1.9       millert   224: as_executable_p="test -f"
                    225:
1.16    ! millert   226: # Sed expression to map a string onto a valid CPP name.
        !           227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
        !           228:
        !           229: # Sed expression to map a string onto a valid variable name.
        !           230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9       millert   231:
                    232:
                    233: # IFS
                    234: # We need space, tab and new line, in precisely that order.
                    235: as_nl='
                    236: '
                    237: IFS="  $as_nl"
                    238:
                    239: # CDPATH.
1.16    ! millert   240: $as_unset CDPATH
        !           241:
1.9       millert   242:
                    243: # Name of the host.
                    244: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    245: # so uname gets run too.
                    246: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    247:
                    248: exec 6>&1
                    249:
                    250: #
                    251: # Initializations.
                    252: #
1.1       millert   253: ac_default_prefix=/usr/local
1.16    ! millert   254: ac_config_libobj_dir=.
1.9       millert   255: cross_compiling=no
                    256: subdirs=
1.16    ! millert   257: MFLAGS=
        !           258: MAKEFLAGS=
1.9       millert   259: SHELL=${CONFIG_SHELL-/bin/sh}
                    260:
                    261: # Maximum number of lines to put in a shell here document.
                    262: # This variable seems obsolete.  It should probably be removed, and
                    263: # only ac_max_sed_lines should be used.
                    264: : ${ac_max_here_lines=38}
                    265:
1.16    ! millert   266: # Identity of this package.
        !           267: PACKAGE_NAME='sudo'
        !           268: PACKAGE_TARNAME='sudo'
        !           269: PACKAGE_VERSION='1.6.7'
        !           270: PACKAGE_STRING='sudo 1.6.7'
        !           271: PACKAGE_BUGREPORT=''
        !           272:
1.9       millert   273: # Factoring default headers for most tests.
                    274: ac_includes_default="\
                    275: #include <stdio.h>
                    276: #if HAVE_SYS_TYPES_H
                    277: # include <sys/types.h>
                    278: #endif
                    279: #if HAVE_SYS_STAT_H
                    280: # include <sys/stat.h>
                    281: #endif
                    282: #if STDC_HEADERS
                    283: # include <stdlib.h>
                    284: # include <stddef.h>
                    285: #else
                    286: # if HAVE_STDLIB_H
                    287: #  include <stdlib.h>
                    288: # endif
                    289: #endif
                    290: #if HAVE_STRING_H
                    291: # if !STDC_HEADERS && HAVE_MEMORY_H
                    292: #  include <memory.h>
                    293: # endif
                    294: # include <string.h>
                    295: #endif
                    296: #if HAVE_STRINGS_H
                    297: # include <strings.h>
                    298: #endif
                    299: #if HAVE_INTTYPES_H
                    300: # include <inttypes.h>
                    301: #else
                    302: # if HAVE_STDINT_H
                    303: #  include <stdint.h>
                    304: # endif
                    305: #endif
                    306: #if HAVE_UNISTD_H
                    307: # include <unistd.h>
                    308: #endif"
1.1       millert   309:
1.16    ! millert   310: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir timedir timeout password_timeout sudo_umask passprompt long_otp_prompt lecture logfac goodpri badpri loglen ignore_dot mail_no_user mail_no_host mail_no_perms mailto mailsub badpass_message fqdn runas_default env_editor passwd_tries tty_tickets insults EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP UNAMEPROG TRPROG SEDPROG NROFFPROG build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP YACC LIBOBJS ALLOCA LTLIBOBJS'
        !           311: ac_subst_files=''
        !           312:
1.1       millert   313: # Initialize some variables set by options.
1.9       millert   314: ac_init_help=
                    315: ac_init_version=false
1.1       millert   316: # The variables have the same names as the options, with
                    317: # dashes changed to underlines.
1.9       millert   318: cache_file=/dev/null
1.1       millert   319: exec_prefix=NONE
                    320: no_create=
                    321: no_recursion=
                    322: prefix=NONE
                    323: program_prefix=NONE
                    324: program_suffix=NONE
                    325: program_transform_name=s,x,x,
                    326: silent=
                    327: site=
                    328: srcdir=
                    329: verbose=
                    330: x_includes=NONE
                    331: x_libraries=NONE
1.9       millert   332:
                    333: # Installation directory options.
                    334: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    335: # and all the variables that are supposed to be based on exec_prefix
                    336: # by default will actually change.
                    337: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1       millert   338: bindir='${exec_prefix}/bin'
                    339: sbindir='${exec_prefix}/sbin'
                    340: libexecdir='${exec_prefix}/libexec'
                    341: datadir='${prefix}/share'
                    342: sysconfdir='${prefix}/etc'
                    343: sharedstatedir='${prefix}/com'
                    344: localstatedir='${prefix}/var'
                    345: libdir='${exec_prefix}/lib'
                    346: includedir='${prefix}/include'
                    347: oldincludedir='/usr/include'
                    348: infodir='${prefix}/info'
                    349: mandir='${prefix}/man'
                    350:
                    351: ac_prev=
                    352: for ac_option
                    353: do
                    354:   # If the previous option needs an argument, assign it.
                    355:   if test -n "$ac_prev"; then
                    356:     eval "$ac_prev=\$ac_option"
                    357:     ac_prev=
                    358:     continue
                    359:   fi
                    360:
1.9       millert   361:   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1       millert   362:
                    363:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    364:
1.9       millert   365:   case $ac_option in
1.1       millert   366:
                    367:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    368:     ac_prev=bindir ;;
                    369:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   370:     bindir=$ac_optarg ;;
1.1       millert   371:
                    372:   -build | --build | --buil | --bui | --bu)
1.9       millert   373:     ac_prev=build_alias ;;
1.1       millert   374:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   375:     build_alias=$ac_optarg ;;
1.1       millert   376:
                    377:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    378:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    379:     ac_prev=cache_file ;;
                    380:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    381:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert   382:     cache_file=$ac_optarg ;;
                    383:
                    384:   --config-cache | -C)
                    385:     cache_file=config.cache ;;
1.1       millert   386:
                    387:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    388:     ac_prev=datadir ;;
                    389:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    390:   | --da=*)
1.9       millert   391:     datadir=$ac_optarg ;;
1.1       millert   392:
                    393:   -disable-* | --disable-*)
1.9       millert   394:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert   395:     # Reject names that are not valid shell variable names.
1.9       millert   396:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    397:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    398:    { (exit 1); exit 1; }; }
                    399:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    400:     eval "enable_$ac_feature=no" ;;
1.1       millert   401:
                    402:   -enable-* | --enable-*)
1.9       millert   403:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert   404:     # Reject names that are not valid shell variable names.
1.9       millert   405:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    406:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    407:    { (exit 1); exit 1; }; }
                    408:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    409:     case $ac_option in
                    410:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       millert   411:       *) ac_optarg=yes ;;
                    412:     esac
1.9       millert   413:     eval enable_$ac_feature='$ac_optarg' ;;
1.1       millert   414:
                    415:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    416:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    417:   | --exec | --exe | --ex)
                    418:     ac_prev=exec_prefix ;;
                    419:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    420:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    421:   | --exec=* | --exe=* | --ex=*)
1.9       millert   422:     exec_prefix=$ac_optarg ;;
1.1       millert   423:
                    424:   -gas | --gas | --ga | --g)
                    425:     # Obsolete; use --with-gas.
                    426:     with_gas=yes ;;
                    427:
1.9       millert   428:   -help | --help | --hel | --he | -h)
                    429:     ac_init_help=long ;;
                    430:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    431:     ac_init_help=recursive ;;
                    432:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    433:     ac_init_help=short ;;
1.1       millert   434:
                    435:   -host | --host | --hos | --ho)
1.9       millert   436:     ac_prev=host_alias ;;
1.1       millert   437:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert   438:     host_alias=$ac_optarg ;;
1.1       millert   439:
                    440:   -includedir | --includedir | --includedi | --included | --include \
                    441:   | --includ | --inclu | --incl | --inc)
                    442:     ac_prev=includedir ;;
                    443:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    444:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert   445:     includedir=$ac_optarg ;;
1.1       millert   446:
                    447:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    448:     ac_prev=infodir ;;
                    449:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert   450:     infodir=$ac_optarg ;;
1.1       millert   451:
                    452:   -libdir | --libdir | --libdi | --libd)
                    453:     ac_prev=libdir ;;
                    454:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert   455:     libdir=$ac_optarg ;;
1.1       millert   456:
                    457:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    458:   | --libexe | --libex | --libe)
                    459:     ac_prev=libexecdir ;;
                    460:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    461:   | --libexe=* | --libex=* | --libe=*)
1.9       millert   462:     libexecdir=$ac_optarg ;;
1.1       millert   463:
                    464:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    465:   | --localstate | --localstat | --localsta | --localst \
                    466:   | --locals | --local | --loca | --loc | --lo)
                    467:     ac_prev=localstatedir ;;
                    468:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    469:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    470:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9       millert   471:     localstatedir=$ac_optarg ;;
1.1       millert   472:
                    473:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    474:     ac_prev=mandir ;;
                    475:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert   476:     mandir=$ac_optarg ;;
1.1       millert   477:
                    478:   -nfp | --nfp | --nf)
                    479:     # Obsolete; use --without-fp.
                    480:     with_fp=no ;;
                    481:
                    482:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16    ! millert   483:   | --no-cr | --no-c | -n)
1.1       millert   484:     no_create=yes ;;
                    485:
                    486:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    487:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    488:     no_recursion=yes ;;
                    489:
                    490:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    491:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    492:   | --oldin | --oldi | --old | --ol | --o)
                    493:     ac_prev=oldincludedir ;;
                    494:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    495:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    496:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert   497:     oldincludedir=$ac_optarg ;;
1.1       millert   498:
                    499:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    500:     ac_prev=prefix ;;
                    501:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert   502:     prefix=$ac_optarg ;;
1.1       millert   503:
                    504:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    505:   | --program-pre | --program-pr | --program-p)
                    506:     ac_prev=program_prefix ;;
                    507:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    508:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert   509:     program_prefix=$ac_optarg ;;
1.1       millert   510:
                    511:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    512:   | --program-suf | --program-su | --program-s)
                    513:     ac_prev=program_suffix ;;
                    514:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    515:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert   516:     program_suffix=$ac_optarg ;;
1.1       millert   517:
                    518:   -program-transform-name | --program-transform-name \
                    519:   | --program-transform-nam | --program-transform-na \
                    520:   | --program-transform-n | --program-transform- \
                    521:   | --program-transform | --program-transfor \
                    522:   | --program-transfo | --program-transf \
                    523:   | --program-trans | --program-tran \
                    524:   | --progr-tra | --program-tr | --program-t)
                    525:     ac_prev=program_transform_name ;;
                    526:   -program-transform-name=* | --program-transform-name=* \
                    527:   | --program-transform-nam=* | --program-transform-na=* \
                    528:   | --program-transform-n=* | --program-transform-=* \
                    529:   | --program-transform=* | --program-transfor=* \
                    530:   | --program-transfo=* | --program-transf=* \
                    531:   | --program-trans=* | --program-tran=* \
                    532:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert   533:     program_transform_name=$ac_optarg ;;
1.1       millert   534:
                    535:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    536:   | -silent | --silent | --silen | --sile | --sil)
                    537:     silent=yes ;;
                    538:
                    539:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    540:     ac_prev=sbindir ;;
                    541:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    542:   | --sbi=* | --sb=*)
1.9       millert   543:     sbindir=$ac_optarg ;;
1.1       millert   544:
                    545:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    546:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    547:   | --sharedst | --shareds | --shared | --share | --shar \
                    548:   | --sha | --sh)
                    549:     ac_prev=sharedstatedir ;;
                    550:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    551:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    552:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    553:   | --sha=* | --sh=*)
1.9       millert   554:     sharedstatedir=$ac_optarg ;;
1.1       millert   555:
                    556:   -site | --site | --sit)
                    557:     ac_prev=site ;;
                    558:   -site=* | --site=* | --sit=*)
1.9       millert   559:     site=$ac_optarg ;;
1.1       millert   560:
                    561:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    562:     ac_prev=srcdir ;;
                    563:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert   564:     srcdir=$ac_optarg ;;
1.1       millert   565:
                    566:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    567:   | --syscon | --sysco | --sysc | --sys | --sy)
                    568:     ac_prev=sysconfdir ;;
                    569:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    570:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert   571:     sysconfdir=$ac_optarg ;;
1.1       millert   572:
                    573:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert   574:     ac_prev=target_alias ;;
1.1       millert   575:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert   576:     target_alias=$ac_optarg ;;
1.1       millert   577:
                    578:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    579:     verbose=yes ;;
                    580:
1.9       millert   581:   -version | --version | --versio | --versi | --vers | -V)
                    582:     ac_init_version=: ;;
1.1       millert   583:
                    584:   -with-* | --with-*)
1.9       millert   585:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert   586:     # Reject names that are not valid shell variable names.
1.9       millert   587:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    588:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    589:    { (exit 1); exit 1; }; }
1.1       millert   590:     ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9       millert   591:     case $ac_option in
                    592:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       millert   593:       *) ac_optarg=yes ;;
                    594:     esac
1.9       millert   595:     eval with_$ac_package='$ac_optarg' ;;
1.1       millert   596:
                    597:   -without-* | --without-*)
1.9       millert   598:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert   599:     # Reject names that are not valid shell variable names.
1.9       millert   600:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    601:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    602:    { (exit 1); exit 1; }; }
                    603:     ac_package=`echo $ac_package | sed 's/-/_/g'`
                    604:     eval "with_$ac_package=no" ;;
1.1       millert   605:
                    606:   --x)
                    607:     # Obsolete; use --with-x.
                    608:     with_x=yes ;;
                    609:
                    610:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    611:   | --x-incl | --x-inc | --x-in | --x-i)
                    612:     ac_prev=x_includes ;;
                    613:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    614:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert   615:     x_includes=$ac_optarg ;;
1.1       millert   616:
                    617:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    618:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    619:     ac_prev=x_libraries ;;
                    620:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    621:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert   622:     x_libraries=$ac_optarg ;;
1.1       millert   623:
1.9       millert   624:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                    625: Try \`$0 --help' for more information." >&2
                    626:    { (exit 1); exit 1; }; }
1.1       millert   627:     ;;
                    628:
1.9       millert   629:   *=*)
                    630:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                    631:     # Reject names that are not valid shell variable names.
                    632:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                    633:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                    634:    { (exit 1); exit 1; }; }
                    635:     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
                    636:     eval "$ac_envvar='$ac_optarg'"
                    637:     export $ac_envvar ;;
                    638:
1.1       millert   639:   *)
1.9       millert   640:     # FIXME: should be removed in autoconf 3.0.
                    641:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                    642:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                    643:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                    644:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert   645:     ;;
                    646:
                    647:   esac
                    648: done
                    649:
                    650: if test -n "$ac_prev"; then
1.9       millert   651:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                    652:   { echo "$as_me: error: missing argument to $ac_option" >&2
                    653:    { (exit 1); exit 1; }; }
1.1       millert   654: fi
                    655:
1.9       millert   656: # Be sure to have absolute paths.
                    657: for ac_var in exec_prefix prefix
                    658: do
                    659:   eval ac_val=$`echo $ac_var`
                    660:   case $ac_val in
                    661:     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.16    ! millert   662:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9       millert   663:    { (exit 1); exit 1; }; };;
                    664:   esac
                    665: done
1.1       millert   666:
1.9       millert   667: # Be sure to have absolute paths.
                    668: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
                    669:               localstatedir libdir includedir oldincludedir infodir mandir
1.1       millert   670: do
1.9       millert   671:   eval ac_val=$`echo $ac_var`
                    672:   case $ac_val in
                    673:     [\\/$]* | ?:[\\/]* ) ;;
1.16    ! millert   674:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9       millert   675:    { (exit 1); exit 1; }; };;
1.1       millert   676:   esac
                    677: done
                    678:
1.9       millert   679: # There might be people who depend on the old broken behavior: `$host'
                    680: # used to hold the argument of --host etc.
1.16    ! millert   681: # FIXME: To remove some day.
1.9       millert   682: build=$build_alias
                    683: host=$host_alias
                    684: target=$target_alias
                    685:
1.16    ! millert   686: # FIXME: To remove some day.
1.9       millert   687: if test "x$host_alias" != x; then
                    688:   if test "x$build_alias" = x; then
                    689:     cross_compiling=maybe
                    690:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                    691:     If a cross compiler is detected then cross compile mode will be used." >&2
                    692:   elif test "x$build_alias" != "x$host_alias"; then
                    693:     cross_compiling=yes
                    694:   fi
                    695: fi
1.1       millert   696:
1.9       millert   697: ac_tool_prefix=
                    698: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert   699:
1.9       millert   700: test "$silent" = yes && exec 6>/dev/null
1.1       millert   701:
1.16    ! millert   702:
1.1       millert   703: # Find the source files, if location was not specified.
                    704: if test -z "$srcdir"; then
                    705:   ac_srcdir_defaulted=yes
                    706:   # Try the directory containing this script, then its parent.
1.16    ! millert   707:   ac_confdir=`(dirname "$0") 2>/dev/null ||
        !           708: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
        !           709:          X"$0" : 'X\(//\)[^/]' \| \
        !           710:          X"$0" : 'X\(//\)$' \| \
        !           711:          X"$0" : 'X\(/\)' \| \
        !           712:          .     : '\(.\)' 2>/dev/null ||
        !           713: echo X"$0" |
        !           714:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
        !           715:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
        !           716:          /^X\(\/\/\)$/{ s//\1/; q; }
        !           717:          /^X\(\/\).*/{ s//\1/; q; }
        !           718:          s/.*/./; q'`
1.1       millert   719:   srcdir=$ac_confdir
                    720:   if test ! -r $srcdir/$ac_unique_file; then
                    721:     srcdir=..
                    722:   fi
                    723: else
                    724:   ac_srcdir_defaulted=no
                    725: fi
                    726: if test ! -r $srcdir/$ac_unique_file; then
                    727:   if test "$ac_srcdir_defaulted" = yes; then
1.16    ! millert   728:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.9       millert   729:    { (exit 1); exit 1; }; }
1.1       millert   730:   else
1.16    ! millert   731:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.9       millert   732:    { (exit 1); exit 1; }; }
1.1       millert   733:   fi
                    734: fi
1.16    ! millert   735: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
        !           736:   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
        !           737:    { (exit 1); exit 1; }; }
1.9       millert   738: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
                    739: ac_env_build_alias_set=${build_alias+set}
                    740: ac_env_build_alias_value=$build_alias
                    741: ac_cv_env_build_alias_set=${build_alias+set}
                    742: ac_cv_env_build_alias_value=$build_alias
                    743: ac_env_host_alias_set=${host_alias+set}
                    744: ac_env_host_alias_value=$host_alias
                    745: ac_cv_env_host_alias_set=${host_alias+set}
                    746: ac_cv_env_host_alias_value=$host_alias
                    747: ac_env_target_alias_set=${target_alias+set}
                    748: ac_env_target_alias_value=$target_alias
                    749: ac_cv_env_target_alias_set=${target_alias+set}
                    750: ac_cv_env_target_alias_value=$target_alias
                    751: ac_env_CC_set=${CC+set}
                    752: ac_env_CC_value=$CC
                    753: ac_cv_env_CC_set=${CC+set}
                    754: ac_cv_env_CC_value=$CC
                    755: ac_env_CFLAGS_set=${CFLAGS+set}
                    756: ac_env_CFLAGS_value=$CFLAGS
                    757: ac_cv_env_CFLAGS_set=${CFLAGS+set}
                    758: ac_cv_env_CFLAGS_value=$CFLAGS
                    759: ac_env_LDFLAGS_set=${LDFLAGS+set}
                    760: ac_env_LDFLAGS_value=$LDFLAGS
                    761: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
                    762: ac_cv_env_LDFLAGS_value=$LDFLAGS
                    763: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
                    764: ac_env_CPPFLAGS_value=$CPPFLAGS
                    765: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
                    766: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
                    767: ac_env_CPP_set=${CPP+set}
                    768: ac_env_CPP_value=$CPP
                    769: ac_cv_env_CPP_set=${CPP+set}
                    770: ac_cv_env_CPP_value=$CPP
                    771:
                    772: #
                    773: # Report the --help message.
                    774: #
                    775: if test "$ac_init_help" = "long"; then
                    776:   # Omit some internal or obsolete options to make the list less imposing.
                    777:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16    ! millert   778:   cat <<_ACEOF
        !           779: \`configure' configures sudo 1.6.7 to adapt to many kinds of systems.
1.9       millert   780:
                    781: Usage: $0 [OPTION]... [VAR=VALUE]...
                    782:
                    783: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                    784: VAR=VALUE.  See below for descriptions of some of the useful variables.
                    785:
                    786: Defaults for the options are specified in brackets.
                    787:
                    788: Configuration:
                    789:   -h, --help              display this help and exit
                    790:       --help=short        display options specific to this package
                    791:       --help=recursive    display the short help of all the included packages
                    792:   -V, --version           display version information and exit
                    793:   -q, --quiet, --silent   do not print \`checking...' messages
                    794:       --cache-file=FILE   cache test results in FILE [disabled]
                    795:   -C, --config-cache      alias for \`--cache-file=config.cache'
                    796:   -n, --no-create         do not create output files
                    797:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                    798:
1.16    ! millert   799: _ACEOF
1.9       millert   800:
1.16    ! millert   801:   cat <<_ACEOF
1.9       millert   802: Installation directories:
                    803:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    804:                           [$ac_default_prefix]
                    805:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    806:                           [PREFIX]
                    807:
                    808: By default, \`make install' will install all the files in
                    809: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                    810: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                    811: for instance \`--prefix=\$HOME'.
                    812:
                    813: For better control, use the options below.
                    814:
                    815: Fine tuning of the installation directories:
                    816:   --bindir=DIR           user executables [EPREFIX/bin]
                    817:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                    818:   --libexecdir=DIR       program executables [EPREFIX/libexec]
                    819:   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
                    820:   --sysconfdir=DIR       read-only single-machine data [/etc]
                    821:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                    822:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                    823:   --libdir=DIR           object code libraries [EPREFIX/lib]
                    824:   --includedir=DIR       C header files [PREFIX/include]
                    825:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
                    826:   --infodir=DIR          info documentation [PREFIX/info]
                    827:   --mandir=DIR           man documentation [PREFIX/man]
1.16    ! millert   828: _ACEOF
1.9       millert   829:
1.16    ! millert   830:   cat <<\_ACEOF
1.9       millert   831:
                    832: System types:
                    833:   --build=BUILD     configure for building on BUILD [guessed]
1.16    ! millert   834:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
        !           835: _ACEOF
1.9       millert   836: fi
                    837:
                    838: if test -n "$ac_init_help"; then
                    839:   case $ac_init_help in
1.16    ! millert   840:      short | recursive ) echo "Configuration of sudo 1.6.7:";;
1.9       millert   841:    esac
1.16    ! millert   842:   cat <<\_ACEOF
1.9       millert   843:
                    844: Optional Features:
                    845:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    846:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    847:   --disable-authentication
                    848:                           Do not require authentication by default
1.12      millert   849:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert   850:   --disable-setreuid      Don't try to use the setreuid() function
1.16    ! millert   851:   --disable-setresuid      Don't try to use the setresuid() function
1.12      millert   852:   --disable-saved-ids     Don't try to use POSIX saved ids
1.9       millert   853:   --disable-shadow        Never use shadow passwords
1.12      millert   854:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert   855:   --enable-log-host       Log the hostname in the log file
                    856:   --enable-noargs-shell   If sudo is given no arguments run a shell
                    857:   --enable-shell-sets-home
                    858:                           set $HOME to target user in shell mode
                    859:   --disable-path-info     Print 'command not allowed' not 'command not found'
                    860:   --disable-sia           Never use SIA on Digital UNIX
                    861:
                    862: Optional Packages:
                    863:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    864:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    865:   --with-otp-only         deprecated
                    866:   --with-alertmail        deprecated
                    867:   --with-CC               C compiler to use
                    868:   --with-incpath          additional places to look for include files
                    869:   --with-libpath          additional places to look for libraries
                    870:   --with-libraries        additional libraries to link with
1.15      david     871:   --with-devel            add development options
1.11      millert   872:   --with-efence           link with -lefence for malloc() debugging
1.9       millert   873:   --with-csops            add CSOps standard options
                    874:   --without-passwd        don't use passwd/shadow file for authentication
                    875:   --with-skey             enable S/Key support
                    876:   --with-opie             enable OPIE support
                    877:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
                    878:   --with-SecurID          enable SecurID support
                    879:   --with-fwtk             enable FWTK AuthSRV support
                    880:   --with-kerb4            enable kerberos v4 support
                    881:   --with-kerb5            enable kerberos v5 support
                    882:   --with-authenticate     enable AIX general authentication support
                    883:   --with-pam              enable PAM support
                    884:   --with-AFS              enable AFS support
                    885:   --with-DCE              enable DCE support
                    886:   --with-logincap         enable BSD login class support
                    887:   --with-bsdauth          enable BSD authentication support
                    888:   --without-lecture       don't print lecture for first-time sudoer
                    889:   --with-logging          log via syslog, file, or both
                    890:   --with-logfac           syslog facility to log with (default is "local2")
                    891:   --with-goodpri          syslog priority for commands (def is "notice")
                    892:   --with-badpri           syslog priority for failures (def is "alert")
                    893:   --with-logpath          path to the sudo log file
                    894:   --with-loglen           maximum length of a log file line (default is 80)
                    895:   --with-ignore-dot       ignore '.' in the PATH
                    896:   --without-mail-if-no-user do not send mail if user not in sudoers
                    897:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                    898:   --with-mail-if-noperms  send mail if user not allowed to run command
                    899:   --with-mailto           who should get sudo mail (default is "root")
                    900:   --with-mailsubject      subject of sudo mail
                    901:   --with-passprompt       default password prompt
                    902:   --with-badpass-message  message the user sees when the password is wrong
                    903:   --with-fqdn             expect fully qualified hosts in sudoers
                    904:   --with-timedir          path to the sudo timestamp dir
                    905:   --with-sendmail=path    set path to sendmail
                    906:   --without-sendmail      do not send mail at all
                    907:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                    908:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                    909:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                    910:   --with-umask            umask with which the prog should run (default is 022)
                    911:   --without-umask         Preserves the umask of the user invoking sudo.
                    912:   --with-runas-default    User to run commands as (default is "root")
                    913:   --with-exempt=group     no passwd needed for users in this group
                    914:   --with-editor=path      Default editor for visudo (defaults to vi)
                    915:   --with-env-editor       Use the environment variable EDITOR for visudo
                    916:   --with-passwd-tries     number of tries to enter password (default is 3)
                    917:   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
                    918:   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
                    919:   --with-execv            use execv() instead of execvp()
                    920:   --with-tty-tickets      use a different ticket file for each tty
                    921:   --with-insults          insult the user for entering an incorrect password
                    922:   --with-all-insults      include all the sudo insult sets
                    923:   --with-classic-insults  include the insults from the "classic" sudo
                    924:   --with-csops-insults    include CSOps insults
                    925:   --with-hal-insults      include 2001-like insults
                    926:   --with-goons-insults    include the insults from the "Goon Show"
                    927:   --with-secure-path      override the user's path with a builtin one
                    928:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16    ! millert   929:   --with-stow             properly handle GNU stow packaging
1.9       millert   930:
                    931: Some influential environment variables:
                    932:   CC          C compiler command
                    933:   CFLAGS      C compiler flags
                    934:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                    935:               nonstandard directory <lib dir>
                    936:   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
                    937:               headers in a nonstandard directory <include dir>
                    938:   CPP         C preprocessor
                    939:
                    940: Use these variables to override the choices made by `configure' or to help
                    941: it to find libraries and programs with nonstandard names/locations.
                    942:
1.16    ! millert   943: _ACEOF
1.9       millert   944: fi
                    945:
                    946: if test "$ac_init_help" = "recursive"; then
                    947:   # If there are subdirs, report their specific --help.
                    948:   ac_popdir=`pwd`
1.16    ! millert   949:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
        !           950:     test -d $ac_dir || continue
        !           951:     ac_builddir=.
        !           952:
        !           953: if test "$ac_dir" != .; then
        !           954:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
        !           955:   # A "../" for each directory in $ac_dir_suffix.
        !           956:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
        !           957: else
        !           958:   ac_dir_suffix= ac_top_builddir=
        !           959: fi
        !           960:
        !           961: case $srcdir in
        !           962:   .)  # No --srcdir option.  We are building in place.
        !           963:     ac_srcdir=.
        !           964:     if test -z "$ac_top_builddir"; then
        !           965:        ac_top_srcdir=.
        !           966:     else
        !           967:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
        !           968:     fi ;;
        !           969:   [\\/]* | ?:[\\/]* )  # Absolute path.
        !           970:     ac_srcdir=$srcdir$ac_dir_suffix;
        !           971:     ac_top_srcdir=$srcdir ;;
        !           972:   *) # Relative path.
        !           973:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
        !           974:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
        !           975: esac
        !           976: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
        !           977: # absolute.
        !           978: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
        !           979: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
        !           980: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
        !           981: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.9       millert   982:
1.16    ! millert   983:     cd $ac_dir
1.9       millert   984:     # Check for guested configure; otherwise get Cygnus style configure.
1.16    ! millert   985:     if test -f $ac_srcdir/configure.gnu; then
1.9       millert   986:       echo
1.16    ! millert   987:       $SHELL $ac_srcdir/configure.gnu  --help=recursive
        !           988:     elif test -f $ac_srcdir/configure; then
1.9       millert   989:       echo
1.16    ! millert   990:       $SHELL $ac_srcdir/configure  --help=recursive
        !           991:     elif test -f $ac_srcdir/configure.ac ||
        !           992:            test -f $ac_srcdir/configure.in; then
1.9       millert   993:       echo
                    994:       $ac_configure --help
                    995:     else
1.16    ! millert   996:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9       millert   997:     fi
                    998:     cd $ac_popdir
                    999:   done
                   1000: fi
                   1001:
                   1002: test -n "$ac_init_help" && exit 0
                   1003: if $ac_init_version; then
1.16    ! millert  1004:   cat <<\_ACEOF
        !          1005: sudo configure 1.6.7
        !          1006: generated by GNU Autoconf 2.57
1.9       millert  1007:
1.16    ! millert  1008: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9       millert  1009: Free Software Foundation, Inc.
                   1010: This configure script is free software; the Free Software Foundation
                   1011: gives unlimited permission to copy, distribute and modify it.
1.16    ! millert  1012: _ACEOF
1.9       millert  1013:   exit 0
                   1014: fi
                   1015: exec 5>config.log
1.16    ! millert  1016: cat >&5 <<_ACEOF
1.9       millert  1017: This file contains any messages produced by compilers while
                   1018: running configure, to aid debugging if configure makes a mistake.
                   1019:
1.16    ! millert  1020: It was created by sudo $as_me 1.6.7, which was
        !          1021: generated by GNU Autoconf 2.57.  Invocation command line was
1.9       millert  1022:
                   1023:   $ $0 $@
                   1024:
1.16    ! millert  1025: _ACEOF
1.9       millert  1026: {
                   1027: cat <<_ASUNAME
1.16    ! millert  1028: ## --------- ##
        !          1029: ## Platform. ##
        !          1030: ## --------- ##
1.9       millert  1031:
                   1032: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1033: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1034: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1035: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1036: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1037:
                   1038: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1039: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1040:
                   1041: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1042: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1043: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   1044: hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
                   1045: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1046: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1047: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1048:
1.16    ! millert  1049: _ASUNAME
        !          1050:
        !          1051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          1052: for as_dir in $PATH
        !          1053: do
        !          1054:   IFS=$as_save_IFS
        !          1055:   test -z "$as_dir" && as_dir=.
        !          1056:   echo "PATH: $as_dir"
        !          1057: done
1.9       millert  1058:
                   1059: } >&5
                   1060:
1.16    ! millert  1061: cat >&5 <<_ACEOF
        !          1062:
        !          1063:
        !          1064: ## ----------- ##
        !          1065: ## Core tests. ##
        !          1066: ## ----------- ##
        !          1067:
        !          1068: _ACEOF
1.9       millert  1069:
                   1070:
                   1071: # Keep a trace of the command line.
                   1072: # Strip out --no-create and --no-recursion so they do not pile up.
1.16    ! millert  1073: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1074: # Also quote any args containing shell meta-characters.
1.16    ! millert  1075: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1076: ac_configure_args=
1.16    ! millert  1077: ac_configure_args0=
        !          1078: ac_configure_args1=
1.9       millert  1079: ac_sep=
1.16    ! millert  1080: ac_must_keep_next=false
        !          1081: for ac_pass in 1 2
1.9       millert  1082: do
1.16    ! millert  1083:   for ac_arg
        !          1084:   do
        !          1085:     case $ac_arg in
        !          1086:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
        !          1087:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
        !          1088:     | -silent | --silent | --silen | --sile | --sil)
        !          1089:       continue ;;
        !          1090:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
        !          1091:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
        !          1092:     esac
        !          1093:     case $ac_pass in
        !          1094:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
        !          1095:     2)
        !          1096:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
        !          1097:       if test $ac_must_keep_next = true; then
        !          1098:         ac_must_keep_next=false # Got value, back to normal.
        !          1099:       else
        !          1100:         case $ac_arg in
        !          1101:           *=* | --config-cache | -C | -disable-* | --disable-* \
        !          1102:           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
        !          1103:           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
        !          1104:           | -with-* | --with-* | -without-* | --without-* | --x)
        !          1105:             case "$ac_configure_args0 " in
        !          1106:               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
        !          1107:             esac
        !          1108:             ;;
        !          1109:           -* ) ac_must_keep_next=true ;;
        !          1110:         esac
        !          1111:       fi
        !          1112:       ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
        !          1113:       # Get rid of the leading space.
        !          1114:       ac_sep=" "
        !          1115:       ;;
        !          1116:     esac
        !          1117:   done
1.9       millert  1118: done
1.16    ! millert  1119: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
        !          1120: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1121:
                   1122: # When interrupted or exit'd, cleanup temporary files, and complete
                   1123: # config.log.  We remove comments because anyway the quotes in there
                   1124: # would cause problems or look ugly.
1.16    ! millert  1125: # WARNING: Be sure not to use single quotes in there, as some shells,
        !          1126: # such as our DU 5.0 friend, will then `close' the trap.
1.9       millert  1127: trap 'exit_status=$?
                   1128:   # Save into config.log some information that might help in debugging.
1.16    ! millert  1129:   {
        !          1130:     echo
        !          1131:
        !          1132:     cat <<\_ASBOX
        !          1133: ## ---------------- ##
        !          1134: ## Cache variables. ##
        !          1135: ## ---------------- ##
        !          1136: _ASBOX
        !          1137:     echo
        !          1138:     # The following way of writing the cache mishandles newlines in values,
1.9       millert  1139: {
                   1140:   (set) 2>&1 |
                   1141:     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
                   1142:     *ac_space=\ *)
                   1143:       sed -n \
                   1144:         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
                   1145:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
                   1146:       ;;
                   1147:     *)
                   1148:       sed -n \
                   1149:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   1150:       ;;
                   1151:     esac;
1.16    ! millert  1152: }
        !          1153:     echo
        !          1154:
        !          1155:     cat <<\_ASBOX
        !          1156: ## ----------------- ##
        !          1157: ## Output variables. ##
        !          1158: ## ----------------- ##
        !          1159: _ASBOX
        !          1160:     echo
        !          1161:     for ac_var in $ac_subst_vars
        !          1162:     do
        !          1163:       eval ac_val=$`echo $ac_var`
        !          1164:       echo "$ac_var='"'"'$ac_val'"'"'"
        !          1165:     done | sort
        !          1166:     echo
        !          1167:
        !          1168:     if test -n "$ac_subst_files"; then
        !          1169:       cat <<\_ASBOX
        !          1170: ## ------------- ##
        !          1171: ## Output files. ##
        !          1172: ## ------------- ##
        !          1173: _ASBOX
        !          1174:       echo
        !          1175:       for ac_var in $ac_subst_files
        !          1176:       do
        !          1177:        eval ac_val=$`echo $ac_var`
        !          1178:         echo "$ac_var='"'"'$ac_val'"'"'"
        !          1179:       done | sort
        !          1180:       echo
        !          1181:     fi
        !          1182:
        !          1183:     if test -s confdefs.h; then
        !          1184:       cat <<\_ASBOX
        !          1185: ## ----------- ##
        !          1186: ## confdefs.h. ##
        !          1187: ## ----------- ##
        !          1188: _ASBOX
        !          1189:       echo
        !          1190:       sed "/^$/d" confdefs.h | sort
        !          1191:       echo
        !          1192:     fi
        !          1193:     test "$ac_signal" != 0 &&
        !          1194:       echo "$as_me: caught signal $ac_signal"
        !          1195:     echo "$as_me: exit $exit_status"
        !          1196:   } >&5
        !          1197:   rm -f core core.* *.core &&
        !          1198:   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1199:     exit $exit_status
                   1200:      ' 0
                   1201: for ac_signal in 1 2 13 15; do
                   1202:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1203: done
                   1204: ac_signal=0
1.1       millert  1205:
1.9       millert  1206: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   1207: rm -rf conftest* confdefs.h
                   1208: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                   1209: echo >confdefs.h
                   1210:
1.16    ! millert  1211: # Predefined preprocessor variables.
        !          1212:
        !          1213: cat >>confdefs.h <<_ACEOF
        !          1214: #define PACKAGE_NAME "$PACKAGE_NAME"
        !          1215: _ACEOF
        !          1216:
        !          1217:
        !          1218: cat >>confdefs.h <<_ACEOF
        !          1219: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
        !          1220: _ACEOF
        !          1221:
        !          1222:
        !          1223: cat >>confdefs.h <<_ACEOF
        !          1224: #define PACKAGE_VERSION "$PACKAGE_VERSION"
        !          1225: _ACEOF
        !          1226:
        !          1227:
        !          1228: cat >>confdefs.h <<_ACEOF
        !          1229: #define PACKAGE_STRING "$PACKAGE_STRING"
        !          1230: _ACEOF
        !          1231:
        !          1232:
        !          1233: cat >>confdefs.h <<_ACEOF
        !          1234: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
        !          1235: _ACEOF
        !          1236:
        !          1237:
1.9       millert  1238: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1239: # Prefer explicitly selected file to automatically selected ones.
                   1240: if test -z "$CONFIG_SITE"; then
                   1241:   if test "x$prefix" != xNONE; then
                   1242:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                   1243:   else
                   1244:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                   1245:   fi
                   1246: fi
                   1247: for ac_site_file in $CONFIG_SITE; do
                   1248:   if test -r "$ac_site_file"; then
1.16    ! millert  1249:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1250: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16    ! millert  1251:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1252:     . "$ac_site_file"
                   1253:   fi
                   1254: done
                   1255:
                   1256: if test -r "$cache_file"; then
1.9       millert  1257:   # Some versions of bash will fail to source /dev/null (special
                   1258:   # files actually), so we avoid doing that.
                   1259:   if test -f "$cache_file"; then
1.16    ! millert  1260:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1261: echo "$as_me: loading cache $cache_file" >&6;}
                   1262:     case $cache_file in
                   1263:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                   1264:       *)                      . ./$cache_file;;
                   1265:     esac
                   1266:   fi
1.1       millert  1267: else
1.16    ! millert  1268:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1269: echo "$as_me: creating cache $cache_file" >&6;}
                   1270:   >$cache_file
                   1271: fi
                   1272:
                   1273: # Check that the precious variables saved in the cache have kept the same
                   1274: # value.
                   1275: ac_cache_corrupted=false
                   1276: for ac_var in `(set) 2>&1 |
                   1277:                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
                   1278:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1279:   eval ac_new_set=\$ac_env_${ac_var}_set
                   1280:   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
                   1281:   eval ac_new_val="\$ac_env_${ac_var}_value"
                   1282:   case $ac_old_set,$ac_new_set in
                   1283:     set,)
1.16    ! millert  1284:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1285: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1286:       ac_cache_corrupted=: ;;
                   1287:     ,set)
1.16    ! millert  1288:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1289: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1290:       ac_cache_corrupted=: ;;
                   1291:     ,);;
                   1292:     *)
                   1293:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.16    ! millert  1294:         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1295: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16    ! millert  1296:         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1297: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.16    ! millert  1298:         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1299: echo "$as_me:   current value: $ac_new_val" >&2;}
                   1300:         ac_cache_corrupted=:
                   1301:       fi;;
                   1302:   esac
1.16    ! millert  1303:   # Pass precious variables to config.status.
1.9       millert  1304:   if test "$ac_new_set" = set; then
                   1305:     case $ac_new_val in
                   1306:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.16    ! millert  1307:       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
        !          1308:     *) ac_arg=$ac_var=$ac_new_val ;;
        !          1309:     esac
        !          1310:     case " $ac_configure_args " in
        !          1311:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
        !          1312:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  1313:     esac
                   1314:   fi
                   1315: done
                   1316: if $ac_cache_corrupted; then
1.16    ! millert  1317:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  1318: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16    ! millert  1319:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  1320: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1321:    { (exit 1); exit 1; }; }
1.1       millert  1322: fi
                   1323:
                   1324: ac_ext=c
                   1325: ac_cpp='$CPP $CPPFLAGS'
1.9       millert  1326: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1327: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1328: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1329:
                   1330:
                   1331:
1.16    ! millert  1332:
        !          1333:
        !          1334:
        !          1335:
        !          1336:
        !          1337:
        !          1338:
        !          1339:
        !          1340:
        !          1341:
        !          1342:
        !          1343:
        !          1344:
        !          1345:
        !          1346:
        !          1347:
        !          1348:
        !          1349:
        !          1350:
        !          1351:
        !          1352:
        !          1353:
        !          1354:
        !          1355:
        !          1356:                     ac_config_headers="$ac_config_headers config.h pathnames.h"
        !          1357:
        !          1358: echo "Configuring Sudo version 1.6.7"
        !          1359:
        !          1360:
        !          1361:
        !          1362:
        !          1363:
        !          1364:
        !          1365:
        !          1366:
        !          1367:
        !          1368:
        !          1369:
        !          1370:
        !          1371:
        !          1372:
        !          1373:
        !          1374:
        !          1375:
        !          1376:
        !          1377:
        !          1378:
        !          1379:
        !          1380:
        !          1381:
        !          1382:
        !          1383:
        !          1384:
1.9       millert  1385:
                   1386: timeout=5
                   1387: password_timeout=5
                   1388: sudo_umask=0022
                   1389: passprompt="Password:"
                   1390: long_otp_prompt=off
                   1391: lecture=on
                   1392: logfac=local2
                   1393: goodpri=notice
                   1394: badpri=alert
                   1395: loglen=80
                   1396: ignore_dot=off
                   1397: mail_no_user=on
                   1398: mail_no_host=off
                   1399: mail_no_perms=off
                   1400: mailto=root
                   1401: mailsub='*** SECURITY information for %h ***'
                   1402: badpass_message='Sorry, try again.'
                   1403: fqdn=off
                   1404: runas_default=root
                   1405: env_editor=off
                   1406: passwd_tries=3
                   1407: tty_tickets=off
                   1408: insults=off
1.1       millert  1409: PROGS="sudo visudo"
1.6       millert  1410: test -n "$MANTYPE" || MANTYPE="man"
                   1411: test -n "$mansrcdir" || mansrcdir="."
                   1412: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
                   1413: test -n "$SUDOERS_UID" || SUDOERS_UID=0
                   1414: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1       millert  1415: DEV="#"
                   1416:
                   1417: CHECKSHADOW=true
                   1418: CHECKSIA=true
                   1419:
                   1420: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                   1421: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   1422: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16    ! millert  1423: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
        !          1424:
        !          1425:
1.1       millert  1426:
                   1427: # Check whether --with-otp-only or --without-otp-only was given.
                   1428: if test "${with_otp_only+set}" = set; then
                   1429:   withval="$with_otp_only"
                   1430:   case $with_otp_only in
                   1431:     yes)       with_passwd=no
1.9       millert  1432:
1.16    ! millert  1433: cat >>confdefs.h <<\_ACEOF
1.1       millert  1434: #define WITHOUT_PASSWD 1
1.16    ! millert  1435: _ACEOF
1.1       millert  1436:
1.16    ! millert  1437:                { echo "$as_me:$LINENO: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&5
1.9       millert  1438: echo "$as_me: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&2;}
1.1       millert  1439:                ;;
                   1440: esac
1.9       millert  1441: fi;
1.1       millert  1442:
1.16    ! millert  1443:
1.1       millert  1444: # Check whether --with-alertmail or --without-alertmail was given.
                   1445: if test "${with_alertmail+set}" = set; then
                   1446:   withval="$with_alertmail"
                   1447:   case $with_alertmail in
                   1448:     *)         with_mailto="$with_alertmail"
1.16    ! millert  1449:                { echo "$as_me:$LINENO: WARNING: --with-alertmail option deprecated, treating as --mailto" >&5
1.9       millert  1450: echo "$as_me: WARNING: --with-alertmail option deprecated, treating as --mailto" >&2;}
1.1       millert  1451:                ;;
                   1452: esac
1.9       millert  1453: fi;
1.1       millert  1454:
1.16    ! millert  1455:
        !          1456:
1.1       millert  1457: # Check whether --with-CC or --without-CC was given.
                   1458: if test "${with_CC+set}" = set; then
                   1459:   withval="$with_CC"
                   1460:   case $with_CC in
1.16    ! millert  1461:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  1462: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   1463:    { (exit 1); exit 1; }; }
                   1464:                ;;
1.16    ! millert  1465:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  1466: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   1467:    { (exit 1); exit 1; }; }
1.1       millert  1468:                ;;
                   1469:     *)         CC=$with_CC
                   1470:                ;;
                   1471: esac
1.9       millert  1472: fi;
1.1       millert  1473:
1.16    ! millert  1474:
1.1       millert  1475: # Check whether --with-incpath or --without-incpath was given.
                   1476: if test "${with_incpath+set}" = set; then
                   1477:   withval="$with_incpath"
1.9       millert  1478:   case $with_incpath in
1.16    ! millert  1479:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  1480: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   1481:    { (exit 1); exit 1; }; }
                   1482:                ;;
1.16    ! millert  1483:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  1484: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   1485:    { (exit 1); exit 1; }; }
1.1       millert  1486:                ;;
                   1487:     *)         echo "Adding ${with_incpath} to CPPFLAGS"
                   1488:                for i in ${with_incpath}; do
                   1489:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   1490:                done
                   1491:                ;;
                   1492: esac
1.9       millert  1493: fi;
1.1       millert  1494:
1.16    ! millert  1495:
1.1       millert  1496: # Check whether --with-libpath or --without-libpath was given.
                   1497: if test "${with_libpath+set}" = set; then
                   1498:   withval="$with_libpath"
1.9       millert  1499:   case $with_libpath in
1.16    ! millert  1500:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  1501: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   1502:    { (exit 1); exit 1; }; }
                   1503:                ;;
1.16    ! millert  1504:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  1505: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   1506:    { (exit 1); exit 1; }; }
1.1       millert  1507:                ;;
                   1508:     *)         echo "Adding ${with_libpath} to LDFLAGS"
                   1509:                for i in ${with_libpath}; do
                   1510:                    LDFLAGS="${LDFLAGS} -L${i}"
                   1511:                done
                   1512:                ;;
                   1513: esac
1.9       millert  1514: fi;
1.1       millert  1515:
1.16    ! millert  1516:
1.1       millert  1517: # Check whether --with-libraries or --without-libraries was given.
                   1518: if test "${with_libraries+set}" = set; then
                   1519:   withval="$with_libraries"
1.9       millert  1520:   case $with_libraries in
1.16    ! millert  1521:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  1522: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   1523:    { (exit 1); exit 1; }; }
                   1524:                ;;
1.16    ! millert  1525:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  1526: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   1527:    { (exit 1); exit 1; }; }
1.1       millert  1528:                ;;
                   1529:     *)         echo "Adding ${with_libraries} to LIBS"
                   1530:                for i in ${with_libraries}; do
                   1531:                    case $i in
                   1532:                        -l*)    ;;
                   1533:                        *.a)    ;;
                   1534:                        *.o)    ;;
                   1535:                        *)      i="-l${i}";;
                   1536:                    esac
                   1537:                    LIBS="${LIBS} ${i}"
                   1538:                done
                   1539:                ;;
                   1540: esac
1.9       millert  1541: fi;
1.1       millert  1542:
1.16    ! millert  1543:
1.1       millert  1544: # Check whether --with-devel or --without-devel was given.
                   1545: if test "${with_devel+set}" = set; then
                   1546:   withval="$with_devel"
1.9       millert  1547:   case $with_devel in
1.15      david    1548:     yes)       echo 'Setting up for development: -Wall, flex, yacc'
1.1       millert  1549:                PROGS="${PROGS} testsudoers"
                   1550:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   1551:                DEV=""
                   1552:                ;;
                   1553:     no)                ;;
1.6       millert  1554:     *)         echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1       millert  1555:                ;;
                   1556: esac
1.9       millert  1557: fi;
1.1       millert  1558:
1.16    ! millert  1559:
1.11      millert  1560: # Check whether --with-efence or --without-efence was given.
                   1561: if test "${with_efence+set}" = set; then
                   1562:   withval="$with_efence"
                   1563:   case $with_efence in
                   1564:     yes)       echo 'Sudo will link with -lefence (Electric Fence)'
                   1565:                LIBS="${LIBS} -lefence"
                   1566:                if test -f /usr/local/lib/libefence.a; then
                   1567:                    LDFLAGS="${LDFLAGS} -L/usr/local/lib"
                   1568:                fi
                   1569:                ;;
                   1570:     no)                ;;
                   1571:     *)         echo "Ignoring unknown argument to --with-efence: $with_efence"
                   1572:                ;;
                   1573: esac
                   1574: fi;
                   1575:
1.16    ! millert  1576:
1.1       millert  1577: # Check whether --with-csops or --without-csops was given.
                   1578: if test "${with_csops+set}" = set; then
                   1579:   withval="$with_csops"
1.9       millert  1580:   case $with_csops in
1.1       millert  1581:     yes)       echo 'Adding CSOps standard options'
                   1582:                CHECKSIA=false
                   1583:                with_ignore_dot=yes
1.9       millert  1584:                insults=on
1.1       millert  1585:                with_classic_insults=yes
                   1586:                with_csops_insults=yes
                   1587:                with_env_editor=yes
                   1588:                ;;
                   1589:     no)                ;;
                   1590:     *)         echo "Ignoring unknown argument to --with-csops: $with_csops"
                   1591:                ;;
                   1592: esac
1.9       millert  1593: fi;
1.1       millert  1594:
1.16    ! millert  1595:
1.1       millert  1596: # Check whether --with-passwd or --without-passwd was given.
                   1597: if test "${with_passwd+set}" = set; then
                   1598:   withval="$with_passwd"
                   1599:   case $with_passwd in
                   1600:     yes)       ;;
1.16    ! millert  1601:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  1602: #define WITHOUT_PASSWD 1
1.16    ! millert  1603: _ACEOF
1.1       millert  1604:
1.16    ! millert  1605:                echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1.9       millert  1606: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.16    ! millert  1607:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  1608: echo "${ECHO_T}no" >&6
1.1       millert  1609:                ;;
1.16    ! millert  1610:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  1611: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   1612:    { (exit 1); exit 1; }; }
1.1       millert  1613:                ;;
                   1614: esac
1.9       millert  1615: fi;
1.1       millert  1616:
1.16    ! millert  1617:
1.1       millert  1618: # Check whether --with-skey or --without-skey was given.
                   1619: if test "${with_skey+set}" = set; then
                   1620:   withval="$with_skey"
                   1621:   case $with_skey in
                   1622:     yes)       if test -n "$with_opie"; then
1.16    ! millert  1623:                    { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9       millert  1624: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1625:    { (exit 1); exit 1; }; }
1.1       millert  1626:                fi
1.9       millert  1627:
1.16    ! millert  1628: cat >>confdefs.h <<\_ACEOF
1.1       millert  1629: #define HAVE_SKEY 1
1.16    ! millert  1630: _ACEOF
1.1       millert  1631:
1.16    ! millert  1632:                echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1.9       millert  1633: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.16    ! millert  1634:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1635: echo "${ECHO_T}yes" >&6
1.1       millert  1636:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                   1637:                ;;
                   1638:     no)                ;;
                   1639:     *)         echo "Ignoring unknown argument to --with-skey: $with_skey"
                   1640:                ;;
                   1641: esac
1.9       millert  1642: fi;
1.1       millert  1643:
1.16    ! millert  1644:
1.1       millert  1645: # Check whether --with-opie or --without-opie was given.
                   1646: if test "${with_opie+set}" = set; then
                   1647:   withval="$with_opie"
                   1648:   case $with_opie in
                   1649:     yes)       if test -n "$with_skey"; then
1.16    ! millert  1650:                    { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9       millert  1651: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1652:    { (exit 1); exit 1; }; }
1.1       millert  1653:                fi
1.9       millert  1654:
1.16    ! millert  1655: cat >>confdefs.h <<\_ACEOF
1.1       millert  1656: #define HAVE_OPIE 1
1.16    ! millert  1657: _ACEOF
1.1       millert  1658:
1.16    ! millert  1659:                echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1.9       millert  1660: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1.16    ! millert  1661:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1662: echo "${ECHO_T}yes" >&6
1.1       millert  1663:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                   1664:                ;;
                   1665:     no)                ;;
                   1666:     *)         echo "Ignoring unknown argument to --with-opie: $with_opie"
                   1667:                ;;
                   1668: esac
1.9       millert  1669: fi;
1.1       millert  1670:
1.16    ! millert  1671:
1.1       millert  1672: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
                   1673: if test "${with_long_otp_prompt+set}" = set; then
                   1674:   withval="$with_long_otp_prompt"
                   1675:   case $with_long_otp_prompt in
1.9       millert  1676:     yes)
1.16    ! millert  1677: cat >>confdefs.h <<\_ACEOF
1.1       millert  1678: #define LONG_OTP_PROMPT 1
1.16    ! millert  1679: _ACEOF
1.1       millert  1680:
1.16    ! millert  1681:                echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1.9       millert  1682: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.16    ! millert  1683:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1684: echo "${ECHO_T}yes" >&6
                   1685:                long_otp_prompt=on
1.1       millert  1686:                ;;
1.9       millert  1687:     no)                long_otp_prompt=off
                   1688:                ;;
1.16    ! millert  1689:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  1690: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   1691:    { (exit 1); exit 1; }; }
1.1       millert  1692:                ;;
                   1693: esac
1.9       millert  1694: fi;
1.1       millert  1695:
1.16    ! millert  1696:
1.1       millert  1697: # Check whether --with-SecurID or --without-SecurID was given.
                   1698: if test "${with_SecurID+set}" = set; then
                   1699:   withval="$with_SecurID"
                   1700:   case $with_SecurID in
                   1701:     no)                ;;
1.9       millert  1702:     *)
1.16    ! millert  1703: cat >>confdefs.h <<\_ACEOF
1.1       millert  1704: #define HAVE_SECURID 1
1.16    ! millert  1705: _ACEOF
1.1       millert  1706:
1.16    ! millert  1707:                echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1.9       millert  1708: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.16    ! millert  1709:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1710: echo "${ECHO_T}yes" >&6
1.1       millert  1711:                with_passwd=no
                   1712:                ;;
                   1713: esac
1.9       millert  1714: fi;
1.1       millert  1715:
1.16    ! millert  1716:
1.1       millert  1717: # Check whether --with-fwtk or --without-fwtk was given.
                   1718: if test "${with_fwtk+set}" = set; then
                   1719:   withval="$with_fwtk"
                   1720:   case $with_fwtk in
                   1721:     no)                ;;
1.9       millert  1722:     *)
1.16    ! millert  1723: cat >>confdefs.h <<\_ACEOF
1.1       millert  1724: #define HAVE_FWTK 1
1.16    ! millert  1725: _ACEOF
1.1       millert  1726:
1.16    ! millert  1727:                echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1.9       millert  1728: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.16    ! millert  1729:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1730: echo "${ECHO_T}yes" >&6
1.1       millert  1731:                with_passwd=no
                   1732:                AUTH_OBJS="fwtk.o"
1.9       millert  1733:                if test "$with_fwtk" != "yes"; then
                   1734:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   1735:                    CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   1736:                    with_fwtk=yes
                   1737:                fi
1.1       millert  1738:                ;;
                   1739: esac
1.9       millert  1740: fi;
1.1       millert  1741:
1.16    ! millert  1742:
1.1       millert  1743: # Check whether --with-kerb4 or --without-kerb4 was given.
                   1744: if test "${with_kerb4+set}" = set; then
                   1745:   withval="$with_kerb4"
                   1746:   case $with_kerb4 in
1.16    ! millert  1747:     yes)       echo "$as_me:$LINENO: checking whether to try Kerberos 4 authentication" >&5
1.9       millert  1748: echo $ECHO_N "checking whether to try Kerberos 4 authentication... $ECHO_C" >&6
1.16    ! millert  1749:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1750: echo "${ECHO_T}yes" >&6
1.1       millert  1751:                ;;
                   1752:     no)                ;;
1.16    ! millert  1753:     *)         { { echo "$as_me:$LINENO: error: \"--with-kerb4 does not take an argument.\"" >&5
1.9       millert  1754: echo "$as_me: error: \"--with-kerb4 does not take an argument.\"" >&2;}
                   1755:    { (exit 1); exit 1; }; }
1.1       millert  1756:                ;;
                   1757: esac
1.9       millert  1758: fi;
1.1       millert  1759:
1.16    ! millert  1760:
1.1       millert  1761: # Check whether --with-kerb5 or --without-kerb5 was given.
                   1762: if test "${with_kerb5+set}" = set; then
                   1763:   withval="$with_kerb5"
                   1764:   case $with_kerb5 in
1.16    ! millert  1765:     yes)       echo "$as_me:$LINENO: checking whether to try Kerberos 5 authentication" >&5
1.9       millert  1766: echo $ECHO_N "checking whether to try Kerberos 5 authentication... $ECHO_C" >&6
1.16    ! millert  1767:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1768: echo "${ECHO_T}yes" >&6
1.1       millert  1769:                ;;
                   1770:     no)                ;;
1.16    ! millert  1771:     *)         { { echo "$as_me:$LINENO: error: \"--with-kerb5 does not take an argument.\"" >&5
1.9       millert  1772: echo "$as_me: error: \"--with-kerb5 does not take an argument.\"" >&2;}
                   1773:    { (exit 1); exit 1; }; }
1.1       millert  1774:                ;;
                   1775: esac
1.9       millert  1776: fi;
1.1       millert  1777:
1.16    ! millert  1778:
1.1       millert  1779: # Check whether --with-authenticate or --without-authenticate was given.
                   1780: if test "${with_authenticate+set}" = set; then
                   1781:   withval="$with_authenticate"
                   1782:   case $with_authenticate in
1.9       millert  1783:     yes)
1.16    ! millert  1784: cat >>confdefs.h <<\_ACEOF
1.1       millert  1785: #define HAVE_AUTHENTICATE 1
1.16    ! millert  1786: _ACEOF
1.1       millert  1787:
1.16    ! millert  1788:                echo "$as_me:$LINENO: checking whether to use AIX general authentication" >&5
1.9       millert  1789: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1.16    ! millert  1790:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1791: echo "${ECHO_T}yes" >&6
1.1       millert  1792:                with_passwd=no
                   1793:                AUTH_OBJS="aix_auth.o"
                   1794:                ;;
                   1795:     no)                ;;
1.16    ! millert  1796:     *)         { { echo "$as_me:$LINENO: error: \"--with-authenticate does not take an argument.\"" >&5
1.9       millert  1797: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
                   1798:    { (exit 1); exit 1; }; }
1.1       millert  1799:                ;;
                   1800: esac
1.9       millert  1801: fi;
1.1       millert  1802:
1.16    ! millert  1803:
1.1       millert  1804: # Check whether --with-pam or --without-pam was given.
                   1805: if test "${with_pam+set}" = set; then
                   1806:   withval="$with_pam"
                   1807:   case $with_pam in
1.9       millert  1808:     yes)
1.16    ! millert  1809: cat >>confdefs.h <<\_ACEOF
1.1       millert  1810: #define HAVE_PAM 1
1.16    ! millert  1811: _ACEOF
1.1       millert  1812:
1.16    ! millert  1813:                echo "$as_me:$LINENO: checking whether to use PAM authentication" >&5
1.9       millert  1814: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
1.16    ! millert  1815:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1816: echo "${ECHO_T}yes" >&6
1.1       millert  1817:                with_passwd=no
                   1818:                AUTH_OBJS="pam.o"
                   1819:                ;;
                   1820:     no)                ;;
1.16    ! millert  1821:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  1822: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   1823:    { (exit 1); exit 1; }; }
1.1       millert  1824:                ;;
                   1825: esac
1.9       millert  1826: fi;
1.1       millert  1827:
1.16    ! millert  1828:
1.1       millert  1829: # Check whether --with-AFS or --without-AFS was given.
                   1830: if test "${with_AFS+set}" = set; then
                   1831:   withval="$with_AFS"
                   1832:   case $with_AFS in
1.9       millert  1833:     yes)
1.16    ! millert  1834: cat >>confdefs.h <<\_ACEOF
1.1       millert  1835: #define HAVE_AFS 1
1.16    ! millert  1836: _ACEOF
1.1       millert  1837:
1.16    ! millert  1838:                echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
1.9       millert  1839: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.16    ! millert  1840:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1841: echo "${ECHO_T}yes" >&6
1.1       millert  1842:                AUTH_OBJS="${AUTH_OBJS} afs.o"
                   1843:                ;;
                   1844:     no)                ;;
1.16    ! millert  1845:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  1846: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   1847:    { (exit 1); exit 1; }; }
1.1       millert  1848:                ;;
                   1849: esac
1.9       millert  1850: fi;
1.1       millert  1851:
1.16    ! millert  1852:
1.1       millert  1853: # Check whether --with-DCE or --without-DCE was given.
                   1854: if test "${with_DCE+set}" = set; then
                   1855:   withval="$with_DCE"
                   1856:   case $with_DCE in
1.9       millert  1857:     yes)
1.16    ! millert  1858: cat >>confdefs.h <<\_ACEOF
1.1       millert  1859: #define HAVE_DCE 1
1.16    ! millert  1860: _ACEOF
1.1       millert  1861:
1.16    ! millert  1862:                echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
1.9       millert  1863: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.16    ! millert  1864:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1865: echo "${ECHO_T}yes" >&6
1.1       millert  1866:                AUTH_OBJS="${AUTH_OBJS} dce.o"
                   1867:                ;;
                   1868:     no)                ;;
1.16    ! millert  1869:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  1870: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   1871:    { (exit 1); exit 1; }; }
1.1       millert  1872:                ;;
                   1873: esac
1.9       millert  1874: fi;
1.1       millert  1875:
1.16    ! millert  1876:
1.6       millert  1877: # Check whether --with-logincap or --without-logincap was given.
                   1878: if test "${with_logincap+set}" = set; then
                   1879:   withval="$with_logincap"
                   1880:   case $with_logincap in
1.7       millert  1881:     yes|no)    ;;
1.16    ! millert  1882:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  1883: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   1884:    { (exit 1); exit 1; }; }
1.7       millert  1885:                ;;
                   1886: esac
1.9       millert  1887: fi;
1.6       millert  1888:
1.16    ! millert  1889:
1.7       millert  1890: # Check whether --with-bsdauth or --without-bsdauth was given.
                   1891: if test "${with_bsdauth+set}" = set; then
                   1892:   withval="$with_bsdauth"
                   1893:   case $with_bsdauth in
                   1894:     yes)       with_logincap=yes
1.6       millert  1895:                ;;
                   1896:     no)                ;;
1.16    ! millert  1897:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  1898: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   1899:    { (exit 1); exit 1; }; }
1.6       millert  1900:                ;;
                   1901: esac
1.9       millert  1902: fi;
1.6       millert  1903:
1.16    ! millert  1904: echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
1.9       millert  1905: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6       millert  1906:
1.1       millert  1907: # Check whether --with-lecture or --without-lecture was given.
                   1908: if test "${with_lecture+set}" = set; then
                   1909:   withval="$with_lecture"
1.9       millert  1910:   case $with_lecture in
                   1911:     yes|short) lecture=on
1.1       millert  1912:                ;;
1.9       millert  1913:     no|none)   lecture=off
1.1       millert  1914:                ;;
1.16    ! millert  1915:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  1916: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   1917:    { (exit 1); exit 1; }; }
1.1       millert  1918:                ;;
                   1919: esac
1.9       millert  1920: fi;
                   1921: if test "$lecture" = "on"; then
1.16    ! millert  1922:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1923: echo "${ECHO_T}yes" >&6
1.1       millert  1924: else
1.9       millert  1925:
1.16    ! millert  1926: cat >>confdefs.h <<\_ACEOF
1.9       millert  1927: #define NO_LECTURE 1
1.16    ! millert  1928: _ACEOF
1.9       millert  1929:
1.16    ! millert  1930:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  1931: echo "${ECHO_T}no" >&6
1.1       millert  1932: fi
                   1933:
1.16    ! millert  1934: echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
1.9       millert  1935: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1       millert  1936:
                   1937: # Check whether --with-logging or --without-logging was given.
                   1938: if test "${with_logging+set}" = set; then
                   1939:   withval="$with_logging"
1.9       millert  1940:   case $with_logging in
1.16    ! millert  1941:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  1942: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   1943:    { (exit 1); exit 1; }; }
                   1944:                ;;
1.16    ! millert  1945:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  1946: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   1947:    { (exit 1); exit 1; }; }
1.1       millert  1948:                ;;
1.9       millert  1949:     syslog)
1.16    ! millert  1950: cat >>confdefs.h <<\_ACEOF
1.1       millert  1951: #define LOGGING SLOG_SYSLOG
1.16    ! millert  1952: _ACEOF
1.1       millert  1953:
1.16    ! millert  1954:                echo "$as_me:$LINENO: result: syslog" >&5
1.9       millert  1955: echo "${ECHO_T}syslog" >&6
1.1       millert  1956:                ;;
1.16    ! millert  1957:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  1958: #define LOGGING SLOG_FILE
1.16    ! millert  1959: _ACEOF
1.1       millert  1960:
1.16    ! millert  1961:                echo "$as_me:$LINENO: result: file" >&5
1.9       millert  1962: echo "${ECHO_T}file" >&6
1.1       millert  1963:                ;;
1.16    ! millert  1964:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  1965: #define LOGGING SLOG_BOTH
1.16    ! millert  1966: _ACEOF
1.1       millert  1967:
1.16    ! millert  1968:                echo "$as_me:$LINENO: result: both" >&5
1.9       millert  1969: echo "${ECHO_T}both" >&6
1.1       millert  1970:                ;;
1.16    ! millert  1971:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  1972: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   1973:    { (exit 1); exit 1; }; }
1.1       millert  1974:                ;;
                   1975: esac
                   1976: else
1.16    ! millert  1977:   cat >>confdefs.h <<\_ACEOF
1.1       millert  1978: #define LOGGING SLOG_SYSLOG
1.16    ! millert  1979: _ACEOF
        !          1980:  echo "$as_me:$LINENO: result: syslog" >&5
1.9       millert  1981: echo "${ECHO_T}syslog" >&6
                   1982: fi;
1.1       millert  1983:
1.16    ! millert  1984: echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
1.9       millert  1985: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1       millert  1986:
                   1987: # Check whether --with-logfac or --without-logfac was given.
                   1988: if test "${with_logfac+set}" = set; then
                   1989:   withval="$with_logfac"
1.9       millert  1990:   case $with_logfac in
1.16    ! millert  1991:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  1992: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   1993:    { (exit 1); exit 1; }; }
                   1994:                ;;
1.16    ! millert  1995:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  1996: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   1997:    { (exit 1); exit 1; }; }
1.1       millert  1998:                ;;
1.9       millert  1999:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2000:                ;;
1.16    ! millert  2001:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2002: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2003:    { (exit 1); exit 1; }; }
1.1       millert  2004:                ;;
                   2005: esac
1.9       millert  2006: fi;
                   2007:
1.16    ! millert  2008: cat >>confdefs.h <<_ACEOF
1.9       millert  2009: #define LOGFAC "$logfac"
1.16    ! millert  2010: _ACEOF
1.1       millert  2011:
1.16    ! millert  2012: echo "$as_me:$LINENO: result: $logfac" >&5
1.9       millert  2013: echo "${ECHO_T}$logfac" >&6
                   2014:
1.16    ! millert  2015: echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
1.9       millert  2016: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1       millert  2017:
                   2018: # Check whether --with-goodpri or --without-goodpri was given.
                   2019: if test "${with_goodpri+set}" = set; then
                   2020:   withval="$with_goodpri"
1.9       millert  2021:   case $with_goodpri in
1.16    ! millert  2022:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2023: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2024:    { (exit 1); exit 1; }; }
1.1       millert  2025:                ;;
1.16    ! millert  2026:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2027: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2028:    { (exit 1); exit 1; }; }
1.1       millert  2029:                ;;
1.9       millert  2030:     alert|crit|debug|emerg|err|info|notice|warning)
                   2031:                goodpri=$with_goodpri
1.1       millert  2032:                ;;
1.16    ! millert  2033:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2034: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2035:    { (exit 1); exit 1; }; }
1.1       millert  2036:                ;;
                   2037: esac
1.9       millert  2038: fi;
                   2039:
1.16    ! millert  2040: cat >>confdefs.h <<_ACEOF
1.9       millert  2041: #define PRI_SUCCESS "$goodpri"
1.16    ! millert  2042: _ACEOF
1.1       millert  2043:
1.16    ! millert  2044: echo "$as_me:$LINENO: result: $goodpri" >&5
1.9       millert  2045: echo "${ECHO_T}$goodpri" >&6
                   2046:
1.16    ! millert  2047: echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
1.9       millert  2048: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1       millert  2049:
                   2050: # Check whether --with-badpri or --without-badpri was given.
                   2051: if test "${with_badpri+set}" = set; then
                   2052:   withval="$with_badpri"
1.9       millert  2053:   case $with_badpri in
1.16    ! millert  2054:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2055: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2056:    { (exit 1); exit 1; }; }
1.1       millert  2057:                ;;
1.16    ! millert  2058:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2059: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2060:    { (exit 1); exit 1; }; }
1.1       millert  2061:                ;;
1.9       millert  2062:     alert|crit|debug|emerg|err|info|notice|warning)
                   2063:                badpri=$with_badpri
1.1       millert  2064:                ;;
1.16    ! millert  2065:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2066: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2067:    { (exit 1); exit 1; }; }
1.1       millert  2068:                ;;
                   2069: esac
1.9       millert  2070: fi;
                   2071:
1.16    ! millert  2072: cat >>confdefs.h <<_ACEOF
1.9       millert  2073: #define PRI_FAILURE "$badpri"
1.16    ! millert  2074: _ACEOF
        !          2075:
        !          2076: echo "$as_me:$LINENO: result: $badpri" >&5
        !          2077: echo "${ECHO_T}$badpri" >&6
1.1       millert  2078:
                   2079:
                   2080: # Check whether --with-logpath or --without-logpath was given.
                   2081: if test "${with_logpath+set}" = set; then
                   2082:   withval="$with_logpath"
1.9       millert  2083:   case $with_logpath in
1.16    ! millert  2084:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2085: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2086:    { (exit 1); exit 1; }; }
1.1       millert  2087:                ;;
1.16    ! millert  2088:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2089: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2090:    { (exit 1); exit 1; }; }
1.1       millert  2091:                ;;
                   2092: esac
1.9       millert  2093: fi;
1.1       millert  2094:
1.16    ! millert  2095: echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
1.9       millert  2096: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1       millert  2097:
                   2098: # Check whether --with-loglen or --without-loglen was given.
                   2099: if test "${with_loglen+set}" = set; then
                   2100:   withval="$with_loglen"
1.9       millert  2101:   case $with_loglen in
1.16    ! millert  2102:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2103: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2104:    { (exit 1); exit 1; }; }
1.1       millert  2105:                ;;
1.16    ! millert  2106:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2107: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2108:    { (exit 1); exit 1; }; }
1.1       millert  2109:                ;;
1.9       millert  2110:     [0-9]*)    loglen=$with_loglen
1.1       millert  2111:                ;;
1.16    ! millert  2112:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2113: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2114:    { (exit 1); exit 1; }; }
1.1       millert  2115:                ;;
                   2116: esac
1.9       millert  2117: fi;
                   2118:
1.16    ! millert  2119: cat >>confdefs.h <<_ACEOF
1.9       millert  2120: #define MAXLOGFILELEN $loglen
1.16    ! millert  2121: _ACEOF
1.1       millert  2122:
1.16    ! millert  2123: echo "$as_me:$LINENO: result: $loglen" >&5
1.9       millert  2124: echo "${ECHO_T}$loglen" >&6
                   2125:
1.16    ! millert  2126: echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9       millert  2127: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1       millert  2128:
                   2129: # Check whether --with-ignore-dot or --without-ignore-dot was given.
                   2130: if test "${with_ignore_dot+set}" = set; then
                   2131:   withval="$with_ignore_dot"
1.9       millert  2132:   case $with_ignore_dot in
                   2133:     yes)       ignore_dot=on
1.1       millert  2134:                ;;
1.9       millert  2135:     no)                ignore_dot=off
1.1       millert  2136:                ;;
1.16    ! millert  2137:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2138: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2139:    { (exit 1); exit 1; }; }
1.1       millert  2140:                ;;
                   2141: esac
1.9       millert  2142: fi;
                   2143: if test "$ignore_dot" = "on"; then
                   2144:
1.16    ! millert  2145: cat >>confdefs.h <<\_ACEOF
1.9       millert  2146: #define IGNORE_DOT_PATH 1
1.16    ! millert  2147: _ACEOF
1.9       millert  2148:
1.16    ! millert  2149:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2150: echo "${ECHO_T}yes" >&6
1.1       millert  2151: else
1.16    ! millert  2152:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2153: echo "${ECHO_T}no" >&6
1.1       millert  2154: fi
                   2155:
1.16    ! millert  2156: echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
1.9       millert  2157: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1       millert  2158:
1.9       millert  2159: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
                   2160: if test "${with_mail_if_no_user+set}" = set; then
                   2161:   withval="$with_mail_if_no_user"
                   2162:   case $with_mail_if_no_user in
                   2163:     yes)       mail_no_user=on
                   2164:                ;;
                   2165:     no)                mail_no_user=off
1.1       millert  2166:                ;;
1.16    ! millert  2167:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2168: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2169:    { (exit 1); exit 1; }; }
1.1       millert  2170:                ;;
1.9       millert  2171: esac
                   2172: fi;
                   2173: if test "$mail_no_user" = "on"; then
                   2174:
1.16    ! millert  2175: cat >>confdefs.h <<\_ACEOF
1.9       millert  2176: #define SEND_MAIL_WHEN_NO_USER 1
1.16    ! millert  2177: _ACEOF
1.1       millert  2178:
1.16    ! millert  2179:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2180: echo "${ECHO_T}yes" >&6
1.1       millert  2181: else
1.16    ! millert  2182:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2183: echo "${ECHO_T}no" >&6
1.1       millert  2184: fi
                   2185:
1.16    ! millert  2186: echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
1.9       millert  2187: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1       millert  2188:
1.9       millert  2189: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
                   2190: if test "${with_mail_if_no_host+set}" = set; then
                   2191:   withval="$with_mail_if_no_host"
                   2192:   case $with_mail_if_no_host in
                   2193:     yes)       mail_no_host=on
1.1       millert  2194:                ;;
1.9       millert  2195:     no)                mail_no_host=off
1.1       millert  2196:                ;;
1.16    ! millert  2197:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2198: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2199:    { (exit 1); exit 1; }; }
1.1       millert  2200:                ;;
                   2201: esac
1.9       millert  2202: fi;
                   2203: if test "$mail_no_host" = "on"; then
                   2204:
1.16    ! millert  2205: cat >>confdefs.h <<\_ACEOF
1.9       millert  2206: #define SEND_MAIL_WHEN_NO_HOST 1
1.16    ! millert  2207: _ACEOF
1.1       millert  2208:
1.16    ! millert  2209:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2210: echo "${ECHO_T}yes" >&6
                   2211: else
1.16    ! millert  2212:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2213: echo "${ECHO_T}no" >&6
1.1       millert  2214: fi
                   2215:
1.16    ! millert  2216: echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
1.9       millert  2217: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1       millert  2218:
1.9       millert  2219: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
                   2220: if test "${with_mail_if_noperms+set}" = set; then
                   2221:   withval="$with_mail_if_noperms"
                   2222:   case $with_mail_if_noperms in
                   2223:     yes)       mail_noperms=on
1.1       millert  2224:                ;;
1.9       millert  2225:     no)                mail_noperms=off
1.1       millert  2226:                ;;
1.16    ! millert  2227:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2228: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2229:    { (exit 1); exit 1; }; }
1.1       millert  2230:                ;;
                   2231: esac
1.9       millert  2232: fi;
                   2233: if test "$mail_noperms" = "on"; then
                   2234:
1.16    ! millert  2235: cat >>confdefs.h <<\_ACEOF
1.9       millert  2236: #define SEND_MAIL_WHEN_NOT_OK 1
1.16    ! millert  2237: _ACEOF
1.9       millert  2238:
1.16    ! millert  2239:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2240: echo "${ECHO_T}yes" >&6
1.1       millert  2241: else
1.16    ! millert  2242:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2243: echo "${ECHO_T}no" >&6
1.1       millert  2244: fi
                   2245:
1.16    ! millert  2246: echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
1.9       millert  2247: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1       millert  2248:
1.9       millert  2249: # Check whether --with-mailto or --without-mailto was given.
                   2250: if test "${with_mailto+set}" = set; then
                   2251:   withval="$with_mailto"
                   2252:   case $with_mailto in
1.16    ! millert  2253:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  2254: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   2255:    { (exit 1); exit 1; }; }
1.1       millert  2256:                ;;
1.16    ! millert  2257:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  2258: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   2259:    { (exit 1); exit 1; }; }
1.1       millert  2260:                ;;
1.9       millert  2261:     *)         mailto=$with_mailto
1.1       millert  2262:                ;;
                   2263: esac
1.9       millert  2264: fi;
1.1       millert  2265:
1.16    ! millert  2266: cat >>confdefs.h <<_ACEOF
1.9       millert  2267: #define MAILTO "$mailto"
1.16    ! millert  2268: _ACEOF
1.1       millert  2269:
1.16    ! millert  2270: echo "$as_me:$LINENO: result: $mailto" >&5
1.9       millert  2271: echo "${ECHO_T}$mailto" >&6
1.1       millert  2272:
1.16    ! millert  2273:
1.9       millert  2274: # Check whether --with-mailsubject or --without-mailsubject was given.
                   2275: if test "${with_mailsubject+set}" = set; then
                   2276:   withval="$with_mailsubject"
                   2277:   case $with_mailsubject in
1.16    ! millert  2278:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  2279: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   2280:    { (exit 1); exit 1; }; }
1.1       millert  2281:                ;;
1.9       millert  2282:     no)                echo "Sorry, --without-mailsubject not supported."
1.1       millert  2283:                ;;
1.9       millert  2284:     *)         mailsub="$with_mailsubject"
1.16    ! millert  2285:                echo "$as_me:$LINENO: checking sudo mail subject" >&5
1.9       millert  2286: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.16    ! millert  2287:                echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
1.9       millert  2288: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1       millert  2289:                ;;
                   2290: esac
1.9       millert  2291: fi;
                   2292:
1.16    ! millert  2293: cat >>confdefs.h <<_ACEOF
1.9       millert  2294: #define MAILSUBJECT "$mailsub"
1.16    ! millert  2295: _ACEOF
        !          2296:
1.1       millert  2297:
1.16    ! millert  2298: echo "$as_me:$LINENO: checking for bad password prompt" >&5
1.9       millert  2299: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1       millert  2300:
                   2301: # Check whether --with-passprompt or --without-passprompt was given.
                   2302: if test "${with_passprompt+set}" = set; then
                   2303:   withval="$with_passprompt"
1.9       millert  2304:   case $with_passprompt in
1.16    ! millert  2305:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  2306: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   2307:    { (exit 1); exit 1; }; }
1.1       millert  2308:                ;;
                   2309:     no)                echo "Sorry, --without-passprompt not supported."
                   2310:                ;;
1.9       millert  2311:     *)         passprompt="$with_passprompt"
                   2312: esac
                   2313: fi;
1.16    ! millert  2314: echo "$as_me:$LINENO: result: $passprompt" >&5
1.9       millert  2315: echo "${ECHO_T}$passprompt" >&6
1.1       millert  2316:
1.16    ! millert  2317: cat >>confdefs.h <<_ACEOF
1.9       millert  2318: #define PASSPROMPT "$passprompt"
1.16    ! millert  2319: _ACEOF
        !          2320:
1.1       millert  2321:
1.16    ! millert  2322: echo "$as_me:$LINENO: checking for bad password message" >&5
1.9       millert  2323: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1       millert  2324:
                   2325: # Check whether --with-badpass-message or --without-badpass-message was given.
                   2326: if test "${with_badpass_message+set}" = set; then
                   2327:   withval="$with_badpass_message"
1.9       millert  2328:   case $with_badpass_message in
1.16    ! millert  2329:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  2330: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   2331:    { (exit 1); exit 1; }; }
1.1       millert  2332:                ;;
                   2333:     no)                echo "Sorry, --without-badpass-message not supported."
                   2334:                ;;
1.9       millert  2335:     *)         badpass_message="$with_badpass_message"
1.1       millert  2336:                ;;
                   2337: esac
1.9       millert  2338: fi;
                   2339:
1.16    ! millert  2340: cat >>confdefs.h <<_ACEOF
1.9       millert  2341: #define INCORRECT_PASSWORD "$badpass_message"
1.16    ! millert  2342: _ACEOF
1.1       millert  2343:
1.16    ! millert  2344: echo "$as_me:$LINENO: result: $badpass_message" >&5
1.9       millert  2345: echo "${ECHO_T}$badpass_message" >&6
                   2346:
1.16    ! millert  2347: echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
1.9       millert  2348: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1       millert  2349:
                   2350: # Check whether --with-fqdn or --without-fqdn was given.
                   2351: if test "${with_fqdn+set}" = set; then
                   2352:   withval="$with_fqdn"
1.9       millert  2353:   case $with_fqdn in
                   2354:     yes)       fqdn=on
1.1       millert  2355:                ;;
1.9       millert  2356:     no)                fqdn=off
1.1       millert  2357:                ;;
1.16    ! millert  2358:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  2359: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   2360:    { (exit 1); exit 1; }; }
1.1       millert  2361:                ;;
                   2362: esac
1.9       millert  2363: fi;
                   2364: if test "$fqdn" = "on"; then
                   2365:
1.16    ! millert  2366: cat >>confdefs.h <<\_ACEOF
1.9       millert  2367: #define FQDN 1
1.16    ! millert  2368: _ACEOF
1.9       millert  2369:
1.16    ! millert  2370:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2371: echo "${ECHO_T}yes" >&6
1.1       millert  2372: else
1.16    ! millert  2373:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2374: echo "${ECHO_T}no" >&6
1.1       millert  2375: fi
                   2376:
1.16    ! millert  2377:
1.1       millert  2378: # Check whether --with-timedir or --without-timedir was given.
                   2379: if test "${with_timedir+set}" = set; then
                   2380:   withval="$with_timedir"
1.9       millert  2381:   case $with_timedir in
1.16    ! millert  2382:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  2383: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   2384:    { (exit 1); exit 1; }; }
1.1       millert  2385:                ;;
1.16    ! millert  2386:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  2387: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   2388:    { (exit 1); exit 1; }; }
1.1       millert  2389:                ;;
                   2390: esac
1.9       millert  2391: fi;
1.1       millert  2392:
1.16    ! millert  2393:
1.1       millert  2394: # Check whether --with-sendmail or --without-sendmail was given.
                   2395: if test "${with_sendmail+set}" = set; then
                   2396:   withval="$with_sendmail"
1.9       millert  2397:   case $with_sendmail in
1.1       millert  2398:     yes)       with_sendmail=""
                   2399:                ;;
                   2400:     no)                ;;
1.9       millert  2401:     *)         cat >>confdefs.h <<EOF
                   2402: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  2403: EOF
                   2404:
                   2405:                ;;
                   2406: esac
1.9       millert  2407: fi;
1.1       millert  2408:
1.16    ! millert  2409:
1.1       millert  2410: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
                   2411: if test "${with_sudoers_mode+set}" = set; then
                   2412:   withval="$with_sudoers_mode"
1.9       millert  2413:   case $with_sudoers_mode in
1.16    ! millert  2414:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  2415: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   2416:    { (exit 1); exit 1; }; }
                   2417:                ;;
1.16    ! millert  2418:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  2419: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   2420:    { (exit 1); exit 1; }; }
1.1       millert  2421:                ;;
                   2422:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   2423:                ;;
                   2424:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   2425:                ;;
1.16    ! millert  2426:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
        !          2427: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  2428:    { (exit 1); exit 1; }; }
1.1       millert  2429:                ;;
                   2430: esac
1.9       millert  2431: fi;
1.1       millert  2432:
1.16    ! millert  2433:
1.1       millert  2434: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
                   2435: if test "${with_sudoers_uid+set}" = set; then
                   2436:   withval="$with_sudoers_uid"
1.9       millert  2437:   case $with_sudoers_uid in
1.16    ! millert  2438:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  2439: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   2440:    { (exit 1); exit 1; }; }
                   2441:                ;;
1.16    ! millert  2442:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  2443: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   2444:    { (exit 1); exit 1; }; }
1.1       millert  2445:                ;;
                   2446:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   2447:                ;;
1.16    ! millert  2448:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
        !          2449: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  2450:    { (exit 1); exit 1; }; }
1.1       millert  2451:                ;;
                   2452: esac
1.9       millert  2453: fi;
1.1       millert  2454:
1.16    ! millert  2455:
1.1       millert  2456: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
                   2457: if test "${with_sudoers_gid+set}" = set; then
                   2458:   withval="$with_sudoers_gid"
1.9       millert  2459:   case $with_sudoers_gid in
1.16    ! millert  2460:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  2461: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   2462:    { (exit 1); exit 1; }; }
                   2463:                ;;
1.16    ! millert  2464:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  2465: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   2466:    { (exit 1); exit 1; }; }
1.1       millert  2467:                ;;
                   2468:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   2469:                ;;
1.16    ! millert  2470:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
        !          2471: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  2472:    { (exit 1); exit 1; }; }
1.1       millert  2473:                ;;
                   2474: esac
1.9       millert  2475: fi;
1.1       millert  2476:
1.16    ! millert  2477: echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
1.9       millert  2478: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1       millert  2479:
                   2480: # Check whether --with-umask or --without-umask was given.
                   2481: if test "${with_umask+set}" = set; then
                   2482:   withval="$with_umask"
1.9       millert  2483:   case $with_umask in
1.16    ! millert  2484:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  2485: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   2486:    { (exit 1); exit 1; }; }
1.1       millert  2487:                ;;
1.9       millert  2488:     no)                sudo_umask=0777
1.1       millert  2489:                ;;
1.9       millert  2490:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  2491:                ;;
1.16    ! millert  2492:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  2493: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   2494:    { (exit 1); exit 1; }; }
1.1       millert  2495:                ;;
                   2496: esac
1.9       millert  2497: fi;
                   2498:
1.16    ! millert  2499: cat >>confdefs.h <<_ACEOF
1.9       millert  2500: #define SUDO_UMASK $sudo_umask
1.16    ! millert  2501: _ACEOF
1.9       millert  2502:
                   2503: if test "$sudo_umask" = "0777"; then
1.16    ! millert  2504:     echo "$as_me:$LINENO: result: user" >&5
1.9       millert  2505: echo "${ECHO_T}user" >&6
1.1       millert  2506: else
1.16    ! millert  2507:     echo "$as_me:$LINENO: result: $sudo_umask" >&5
1.9       millert  2508: echo "${ECHO_T}$sudo_umask" >&6
1.1       millert  2509: fi
                   2510:
1.16    ! millert  2511: echo "$as_me:$LINENO: checking for default user to run commands as" >&5
1.9       millert  2512: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1       millert  2513:
                   2514: # Check whether --with-runas-default or --without-runas-default was given.
                   2515: if test "${with_runas_default+set}" = set; then
                   2516:   withval="$with_runas_default"
1.9       millert  2517:   case $with_runas_default in
1.16    ! millert  2518:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  2519: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   2520:    { (exit 1); exit 1; }; }
1.1       millert  2521:                ;;
1.16    ! millert  2522:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  2523: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   2524:    { (exit 1); exit 1; }; }
1.1       millert  2525:                ;;
1.9       millert  2526:     *)         runas_default="$with_runas_default"
1.1       millert  2527:                ;;
                   2528: esac
1.9       millert  2529: fi;
                   2530:
1.16    ! millert  2531: cat >>confdefs.h <<_ACEOF
1.9       millert  2532: #define RUNAS_DEFAULT "$runas_default"
1.16    ! millert  2533: _ACEOF
1.1       millert  2534:
1.16    ! millert  2535: echo "$as_me:$LINENO: result: $runas_default" >&5
1.9       millert  2536: echo "${ECHO_T}$runas_default" >&6
1.1       millert  2537:
1.16    ! millert  2538:
1.1       millert  2539: # Check whether --with-exempt or --without-exempt was given.
                   2540: if test "${with_exempt+set}" = set; then
                   2541:   withval="$with_exempt"
1.9       millert  2542:   case $with_exempt in
1.16    ! millert  2543:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  2544: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   2545:    { (exit 1); exit 1; }; }
                   2546:                ;;
1.16    ! millert  2547:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  2548: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   2549:    { (exit 1); exit 1; }; }
1.1       millert  2550:                ;;
1.9       millert  2551:     *)
1.16    ! millert  2552: cat >>confdefs.h <<_ACEOF
1.1       millert  2553: #define EXEMPTGROUP "$with_exempt"
1.16    ! millert  2554: _ACEOF
1.1       millert  2555:
1.16    ! millert  2556:                echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
1.9       millert  2557: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.16    ! millert  2558:                echo "$as_me:$LINENO: result: $with_exempt" >&5
1.9       millert  2559: echo "${ECHO_T}$with_exempt" >&6
1.1       millert  2560:                ;;
                   2561: esac
1.9       millert  2562: fi;
1.1       millert  2563:
1.16    ! millert  2564: echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
1.9       millert  2565: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1       millert  2566:
                   2567: # Check whether --with-editor or --without-editor was given.
                   2568: if test "${with_editor+set}" = set; then
                   2569:   withval="$with_editor"
1.9       millert  2570:   case $with_editor in
1.16    ! millert  2571:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  2572: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   2573:    { (exit 1); exit 1; }; }
                   2574:                ;;
1.16    ! millert  2575:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  2576: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2577:    { (exit 1); exit 1; }; }
1.1       millert  2578:                ;;
1.9       millert  2579:     *)
1.16    ! millert  2580: cat >>confdefs.h <<_ACEOF
1.1       millert  2581: #define EDITOR "$with_editor"
1.16    ! millert  2582: _ACEOF
1.1       millert  2583:
1.16    ! millert  2584:                echo "$as_me:$LINENO: result: $with_editor" >&5
1.9       millert  2585: echo "${ECHO_T}$with_editor" >&6
1.1       millert  2586:                ;;
                   2587: esac
                   2588: else
1.16    ! millert  2589:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2590: #define EDITOR _PATH_VI
1.16    ! millert  2591: _ACEOF
        !          2592:  echo "$as_me:$LINENO: result: vi" >&5
1.9       millert  2593: echo "${ECHO_T}vi" >&6
                   2594: fi;
1.1       millert  2595:
1.16    ! millert  2596: echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9       millert  2597: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1       millert  2598:
                   2599: # Check whether --with-env-editor or --without-env-editor was given.
                   2600: if test "${with_env_editor+set}" = set; then
                   2601:   withval="$with_env_editor"
1.9       millert  2602:   case $with_env_editor in
                   2603:     yes)       env_editor=on
1.1       millert  2604:                ;;
1.9       millert  2605:     no)                env_editor=off
1.1       millert  2606:                ;;
1.16    ! millert  2607:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  2608: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   2609:    { (exit 1); exit 1; }; }
1.1       millert  2610:                ;;
                   2611: esac
1.9       millert  2612: fi;
                   2613: if test "$env_editor" = "on"; then
                   2614:
1.16    ! millert  2615: cat >>confdefs.h <<\_ACEOF
1.9       millert  2616: #define ENV_EDITOR 1
1.16    ! millert  2617: _ACEOF
1.9       millert  2618:
1.16    ! millert  2619:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2620: echo "${ECHO_T}yes" >&6
1.1       millert  2621: else
1.16    ! millert  2622:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2623: echo "${ECHO_T}no" >&6
1.1       millert  2624: fi
                   2625:
1.16    ! millert  2626: echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
1.9       millert  2627: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1       millert  2628:
                   2629: # Check whether --with-passwd-tries or --without-passwd-tries was given.
                   2630: if test "${with_passwd_tries+set}" = set; then
                   2631:   withval="$with_passwd_tries"
1.9       millert  2632:   case $with_passwd_tries in
                   2633:     yes)       ;;
1.16    ! millert  2634:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  2635: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2636:    { (exit 1); exit 1; }; }
1.1       millert  2637:                ;;
1.9       millert  2638:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  2639:                ;;
1.16    ! millert  2640:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  2641: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   2642:    { (exit 1); exit 1; }; }
1.1       millert  2643:                ;;
                   2644: esac
1.9       millert  2645: fi;
                   2646:
1.16    ! millert  2647: cat >>confdefs.h <<_ACEOF
1.9       millert  2648: #define TRIES_FOR_PASSWORD $passwd_tries
1.16    ! millert  2649: _ACEOF
1.1       millert  2650:
1.16    ! millert  2651: echo "$as_me:$LINENO: result: $passwd_tries" >&5
1.9       millert  2652: echo "${ECHO_T}$passwd_tries" >&6
                   2653:
1.16    ! millert  2654: echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
1.9       millert  2655: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1       millert  2656:
                   2657: # Check whether --with-timeout or --without-timeout was given.
                   2658: if test "${with_timeout+set}" = set; then
                   2659:   withval="$with_timeout"
1.16    ! millert  2660:   case $with_timeout in
1.9       millert  2661:     yes)       ;;
                   2662:     no)                timeout=0
1.1       millert  2663:                ;;
1.9       millert  2664:     [0-9]*)    timeout=$with_timeout
1.1       millert  2665:                ;;
1.16    ! millert  2666:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  2667: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2668:    { (exit 1); exit 1; }; }
1.1       millert  2669:                ;;
                   2670: esac
1.9       millert  2671: fi;
                   2672:
1.16    ! millert  2673: cat >>confdefs.h <<_ACEOF
1.9       millert  2674: #define TIMEOUT $timeout
1.16    ! millert  2675: _ACEOF
1.1       millert  2676:
1.16    ! millert  2677: echo "$as_me:$LINENO: result: $timeout" >&5
1.9       millert  2678: echo "${ECHO_T}$timeout" >&6
                   2679:
1.16    ! millert  2680: echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
1.9       millert  2681: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1       millert  2682:
                   2683: # Check whether --with-password-timeout or --without-password-timeout was given.
                   2684: if test "${with_password_timeout+set}" = set; then
                   2685:   withval="$with_password_timeout"
1.9       millert  2686:   case $with_password_timeout in
                   2687:     yes)       ;;
                   2688:     no)                password_timeout=0
1.1       millert  2689:                ;;
1.9       millert  2690:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  2691:                ;;
1.16    ! millert  2692:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  2693: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2694:    { (exit 1); exit 1; }; }
1.1       millert  2695:                ;;
                   2696: esac
1.9       millert  2697: fi;
                   2698:
1.16    ! millert  2699: cat >>confdefs.h <<_ACEOF
1.9       millert  2700: #define PASSWORD_TIMEOUT $password_timeout
1.16    ! millert  2701: _ACEOF
1.1       millert  2702:
1.16    ! millert  2703: echo "$as_me:$LINENO: result: $password_timeout" >&5
1.9       millert  2704: echo "${ECHO_T}$password_timeout" >&6
1.1       millert  2705:
1.16    ! millert  2706:
1.1       millert  2707: # Check whether --with-execv or --without-execv was given.
                   2708: if test "${with_execv+set}" = set; then
                   2709:   withval="$with_execv"
1.9       millert  2710:   case $with_execv in
1.16    ! millert  2711:     yes)       echo "$as_me:$LINENO: checking whether to use execvp or execv" >&5
1.9       millert  2712: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
1.16    ! millert  2713:                echo "$as_me:$LINENO: result: execv" >&5
1.9       millert  2714: echo "${ECHO_T}execv" >&6
                   2715:
1.16    ! millert  2716: cat >>confdefs.h <<\_ACEOF
1.1       millert  2717: #define USE_EXECV 1
1.16    ! millert  2718: _ACEOF
1.1       millert  2719:
                   2720:                ;;
1.9       millert  2721:     no)                ;;
1.16    ! millert  2722:     *)         { { echo "$as_me:$LINENO: error: \"--with-execv does not take an argument.\"" >&5
1.9       millert  2723: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
                   2724:    { (exit 1); exit 1; }; }
1.1       millert  2725:                ;;
                   2726: esac
1.9       millert  2727: fi;
1.1       millert  2728:
1.16    ! millert  2729: echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
1.9       millert  2730: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1       millert  2731:
                   2732: # Check whether --with-tty-tickets or --without-tty-tickets was given.
                   2733: if test "${with_tty_tickets+set}" = set; then
                   2734:   withval="$with_tty_tickets"
1.9       millert  2735:   case $with_tty_tickets in
                   2736:     yes)       tty_tickets=on
1.1       millert  2737:                ;;
1.9       millert  2738:     no)                tty_tickets=off
1.1       millert  2739:                ;;
1.16    ! millert  2740:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  2741: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   2742:    { (exit 1); exit 1; }; }
1.1       millert  2743:                ;;
                   2744: esac
1.9       millert  2745: fi;
                   2746: if test "$tty_tickets" = "on"; then
                   2747:
1.16    ! millert  2748: cat >>confdefs.h <<\_ACEOF
1.9       millert  2749: #define USE_TTY_TICKETS 1
1.16    ! millert  2750: _ACEOF
1.9       millert  2751:
1.16    ! millert  2752:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2753: echo "${ECHO_T}yes" >&6
1.1       millert  2754: else
1.16    ! millert  2755:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2756: echo "${ECHO_T}no" >&6
1.1       millert  2757: fi
                   2758:
1.16    ! millert  2759: echo "$as_me:$LINENO: checking whether to include insults" >&5
1.9       millert  2760: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1       millert  2761:
                   2762: # Check whether --with-insults or --without-insults was given.
                   2763: if test "${with_insults+set}" = set; then
                   2764:   withval="$with_insults"
1.9       millert  2765:   case $with_insults in
                   2766:     yes)       insults=on
1.1       millert  2767:                with_classic_insults=yes
                   2768:                with_csops_insults=yes
                   2769:                ;;
1.9       millert  2770:     no)                insults=off
1.1       millert  2771:                ;;
1.16    ! millert  2772:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  2773: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   2774:    { (exit 1); exit 1; }; }
1.1       millert  2775:                ;;
                   2776: esac
1.9       millert  2777: fi;
                   2778: if test "$insults" = "on"; then
                   2779:
1.16    ! millert  2780: cat >>confdefs.h <<\_ACEOF
1.9       millert  2781: #define USE_INSULTS 1
1.16    ! millert  2782: _ACEOF
1.9       millert  2783:
1.16    ! millert  2784:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2785: echo "${ECHO_T}yes" >&6
1.1       millert  2786: else
1.16    ! millert  2787:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2788: echo "${ECHO_T}no" >&6
1.1       millert  2789: fi
                   2790:
1.16    ! millert  2791:
1.1       millert  2792: # Check whether --with-all-insults or --without-all-insults was given.
                   2793: if test "${with_all_insults+set}" = set; then
                   2794:   withval="$with_all_insults"
1.9       millert  2795:   case $with_all_insults in
1.1       millert  2796:     yes)       with_classic_insults=yes
                   2797:                with_csops_insults=yes
                   2798:                with_hal_insults=yes
                   2799:                with_goons_insults=yes
                   2800:                ;;
                   2801:     no)                ;;
1.16    ! millert  2802:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  2803: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   2804:    { (exit 1); exit 1; }; }
1.1       millert  2805:                ;;
                   2806: esac
1.9       millert  2807: fi;
1.1       millert  2808:
1.16    ! millert  2809:
1.1       millert  2810: # Check whether --with-classic-insults or --without-classic-insults was given.
                   2811: if test "${with_classic_insults+set}" = set; then
                   2812:   withval="$with_classic_insults"
1.9       millert  2813:   case $with_classic_insults in
                   2814:     yes)
1.16    ! millert  2815: cat >>confdefs.h <<\_ACEOF
1.1       millert  2816: #define CLASSIC_INSULTS 1
1.16    ! millert  2817: _ACEOF
1.1       millert  2818:
                   2819:                ;;
                   2820:     no)                ;;
1.16    ! millert  2821:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  2822: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   2823:    { (exit 1); exit 1; }; }
1.1       millert  2824:                ;;
                   2825: esac
1.9       millert  2826: fi;
1.1       millert  2827:
1.16    ! millert  2828:
1.1       millert  2829: # Check whether --with-csops-insults or --without-csops-insults was given.
                   2830: if test "${with_csops_insults+set}" = set; then
                   2831:   withval="$with_csops_insults"
1.9       millert  2832:   case $with_csops_insults in
                   2833:     yes)
1.16    ! millert  2834: cat >>confdefs.h <<\_ACEOF
1.1       millert  2835: #define CSOPS_INSULTS 1
1.16    ! millert  2836: _ACEOF
1.1       millert  2837:
                   2838:                ;;
                   2839:     no)                ;;
1.16    ! millert  2840:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  2841: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   2842:    { (exit 1); exit 1; }; }
1.1       millert  2843:                ;;
                   2844: esac
1.9       millert  2845: fi;
1.1       millert  2846:
1.16    ! millert  2847:
1.1       millert  2848: # Check whether --with-hal-insults or --without-hal-insults was given.
                   2849: if test "${with_hal_insults+set}" = set; then
                   2850:   withval="$with_hal_insults"
1.9       millert  2851:   case $with_hal_insults in
                   2852:     yes)
1.16    ! millert  2853: cat >>confdefs.h <<\_ACEOF
1.1       millert  2854: #define HAL_INSULTS 1
1.16    ! millert  2855: _ACEOF
1.1       millert  2856:
                   2857:                ;;
                   2858:     no)                ;;
1.16    ! millert  2859:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  2860: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
                   2861:    { (exit 1); exit 1; }; }
1.1       millert  2862:                ;;
                   2863: esac
1.9       millert  2864: fi;
1.1       millert  2865:
1.16    ! millert  2866:
1.1       millert  2867: # Check whether --with-goons-insults or --without-goons-insults was given.
                   2868: if test "${with_goons_insults+set}" = set; then
                   2869:   withval="$with_goons_insults"
1.9       millert  2870:   case $with_goons_insults in
                   2871:     yes)
1.16    ! millert  2872: cat >>confdefs.h <<\_ACEOF
1.1       millert  2873: #define GOONS_INSULTS 1
1.16    ! millert  2874: _ACEOF
1.1       millert  2875:
                   2876:                ;;
                   2877:     no)                ;;
1.16    ! millert  2878:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  2879: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   2880:    { (exit 1); exit 1; }; }
1.1       millert  2881:                ;;
                   2882: esac
1.9       millert  2883: fi;
1.1       millert  2884:
1.9       millert  2885: if test "$insults" = "on"; then
1.16    ! millert  2886:     echo "$as_me:$LINENO: checking which insult sets to include" >&5
1.9       millert  2887: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1       millert  2888:     i=""
                   2889:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   2890:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   2891:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   2892:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.16    ! millert  2893:     echo "$as_me:$LINENO: result: $i" >&5
1.9       millert  2894: echo "${ECHO_T}$i" >&6
1.1       millert  2895: fi
                   2896:
1.16    ! millert  2897: echo "$as_me:$LINENO: checking whether to override the user's path" >&5
1.9       millert  2898: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
                   2899:
1.1       millert  2900: # Check whether --with-secure-path or --without-secure-path was given.
                   2901: if test "${with_secure_path+set}" = set; then
                   2902:   withval="$with_secure_path"
1.9       millert  2903:   case $with_secure_path in
                   2904:     yes)
1.16    ! millert  2905: cat >>confdefs.h <<_ACEOF
1.1       millert  2906: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16    ! millert  2907: _ACEOF
1.1       millert  2908:
1.16    ! millert  2909:                echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9       millert  2910: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1       millert  2911:                ;;
1.16    ! millert  2912:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2913: echo "${ECHO_T}no" >&6
1.1       millert  2914:                ;;
1.16    ! millert  2915:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  2916: #define SECURE_PATH "$with_secure_path"
1.16    ! millert  2917: _ACEOF
1.1       millert  2918:
1.16    ! millert  2919:                echo "$as_me:$LINENO: result: $with_secure_path" >&5
1.9       millert  2920: echo "${ECHO_T}$with_secure_path" >&6
1.1       millert  2921:                ;;
                   2922: esac
                   2923: else
1.16    ! millert  2924:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2925: echo "${ECHO_T}no" >&6
                   2926: fi;
1.1       millert  2927:
1.16    ! millert  2928: echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
1.9       millert  2929: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1       millert  2930:
                   2931: # Check whether --with-interfaces or --without-interfaces was given.
                   2932: if test "${with_interfaces+set}" = set; then
                   2933:   withval="$with_interfaces"
1.9       millert  2934:   case $with_interfaces in
1.16    ! millert  2935:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2936: echo "${ECHO_T}yes" >&6
1.1       millert  2937:                ;;
1.9       millert  2938:     no)
1.16    ! millert  2939: cat >>confdefs.h <<\_ACEOF
1.1       millert  2940: #define STUB_LOAD_INTERFACES 1
1.16    ! millert  2941: _ACEOF
1.1       millert  2942:
1.16    ! millert  2943:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2944: echo "${ECHO_T}no" >&6
1.1       millert  2945:                ;;
1.16    ! millert  2946:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  2947: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   2948:    { (exit 1); exit 1; }; }
1.1       millert  2949:                ;;
                   2950: esac
                   2951: else
1.16    ! millert  2952:   echo "$as_me:$LINENO: result: yes" >&5
        !          2953: echo "${ECHO_T}yes" >&6
        !          2954: fi;
        !          2955:
        !          2956: echo "$as_me:$LINENO: checking whether stow should be used" >&5
        !          2957: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
        !          2958:
        !          2959: # Check whether --with-stow or --without-stow was given.
        !          2960: if test "${with_stow+set}" = set; then
        !          2961:   withval="$with_stow"
        !          2962:   case $with_stow in
        !          2963:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2964: echo "${ECHO_T}yes" >&6
1.16    ! millert  2965:
        !          2966: cat >>confdefs.h <<\_ACEOF
        !          2967: #define USE_STOW 1
        !          2968: _ACEOF
        !          2969:
        !          2970:                ;;
        !          2971:     no)                echo "$as_me:$LINENO: result: no" >&5
        !          2972: echo "${ECHO_T}no" >&6
        !          2973:                ;;
        !          2974:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
        !          2975: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
        !          2976:    { (exit 1); exit 1; }; }
        !          2977:                ;;
        !          2978: esac
        !          2979: else
        !          2980:   echo "$as_me:$LINENO: result: no" >&5
        !          2981: echo "${ECHO_T}no" >&6
1.9       millert  2982: fi;
1.1       millert  2983:
1.16    ! millert  2984:
        !          2985: echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
1.9       millert  2986: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1       millert  2987: # Check whether --enable-authentication or --disable-authentication was given.
                   2988: if test "${enable_authentication+set}" = set; then
                   2989:   enableval="$enable_authentication"
                   2990:    case "$enableval" in
1.16    ! millert  2991:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2992: echo "${ECHO_T}yes" >&6
1.1       millert  2993:                ;;
1.16    ! millert  2994:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2995: echo "${ECHO_T}no" >&6
                   2996:
1.16    ! millert  2997: cat >>confdefs.h <<\_ACEOF
1.1       millert  2998: #define NO_AUTHENTICATION 1
1.16    ! millert  2999: _ACEOF
1.1       millert  3000:
                   3001:                ;;
1.16    ! millert  3002:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3003: echo "${ECHO_T}no" >&6
1.1       millert  3004:                echo "Ignoring unknown argument to --enable-authentication: $enableval"
                   3005:                ;;
                   3006:   esac
                   3007:
                   3008: else
1.16    ! millert  3009:   echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3010: echo "${ECHO_T}yes" >&6
                   3011: fi;
1.1       millert  3012:
1.16    ! millert  3013: echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
1.12      millert  3014: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
                   3015: # Check whether --enable-root-mailer or --disable-root-mailer was given.
                   3016: if test "${enable_root_mailer+set}" = set; then
                   3017:   enableval="$enable_root_mailer"
                   3018:    case "$enableval" in
1.16    ! millert  3019:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3020: echo "${ECHO_T}no" >&6
                   3021:                ;;
1.16    ! millert  3022:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.12      millert  3023: echo "${ECHO_T}yes" >&6
                   3024:
1.16    ! millert  3025: cat >>confdefs.h <<\_ACEOF
1.12      millert  3026: #define NO_ROOT_MAILER 1
1.16    ! millert  3027: _ACEOF
1.12      millert  3028:
                   3029:                ;;
1.16    ! millert  3030:     *)         echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3031: echo "${ECHO_T}no" >&6
                   3032:                echo "Ignoring unknown argument to --enable-root-mailer: $enableval"
                   3033:                ;;
                   3034:   esac
                   3035:
                   3036: else
1.16    ! millert  3037:   echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3038: echo "${ECHO_T}no" >&6
                   3039: fi;
                   3040:
1.13      millert  3041: # Check whether --enable-setreuid or --disable-setreuid was given.
                   3042: if test "${enable_setreuid+set}" = set; then
                   3043:   enableval="$enable_setreuid"
                   3044:    case "$enableval" in
1.16    ! millert  3045:     no)                SKIP_SETREUID=yes
        !          3046:                ;;
        !          3047:     *)         ;;
        !          3048:   esac
        !          3049:
        !          3050: fi;
        !          3051:
        !          3052: # Check whether --enable-setresuid or --disable-setresuid was given.
        !          3053: if test "${enable_setresuid+set}" = set; then
        !          3054:   enableval="$enable_setresuid"
        !          3055:    case "$enableval" in
        !          3056:     no)                SKIP_SETRESUID=yes
1.13      millert  3057:                ;;
                   3058:     *)         ;;
                   3059:   esac
                   3060:
                   3061: fi;
                   3062:
1.16    ! millert  3063: echo "$as_me:$LINENO: checking whether to disable use of POSIX saved ids" >&5
1.11      millert  3064: echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
                   3065: # Check whether --enable-saved-ids or --disable-saved-ids was given.
                   3066: if test "${enable_saved_ids+set}" = set; then
                   3067:   enableval="$enable_saved_ids"
                   3068:    case "$enableval" in
1.16    ! millert  3069:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.11      millert  3070: echo "${ECHO_T}no" >&6
                   3071:                ;;
1.16    ! millert  3072:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.11      millert  3073: echo "${ECHO_T}yes" >&6
                   3074:
1.16    ! millert  3075: cat >>confdefs.h <<\_ACEOF
1.11      millert  3076: #define NO_SAVED_IDS 1
1.16    ! millert  3077: _ACEOF
1.11      millert  3078:
                   3079:                ;;
1.16    ! millert  3080:     *)         echo "$as_me:$LINENO: result: no" >&5
1.11      millert  3081: echo "${ECHO_T}no" >&6
                   3082:                echo "Ignoring unknown argument to --enable-saved-ids: $enableval"
                   3083:                ;;
                   3084:   esac
                   3085:
                   3086: else
1.16    ! millert  3087:   echo "$as_me:$LINENO: result: no" >&5
1.11      millert  3088: echo "${ECHO_T}no" >&6
                   3089: fi;
                   3090:
1.16    ! millert  3091: echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
1.9       millert  3092: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1       millert  3093: # Check whether --enable-shadow or --disable-shadow was given.
                   3094: if test "${enable_shadow+set}" = set; then
                   3095:   enableval="$enable_shadow"
                   3096:    case "$enableval" in
1.16    ! millert  3097:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3098: echo "${ECHO_T}no" >&6
1.1       millert  3099:                ;;
1.16    ! millert  3100:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3101: echo "${ECHO_T}yes" >&6
1.1       millert  3102:                CHECKSHADOW="false"
                   3103:                ;;
1.16    ! millert  3104:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3105: echo "${ECHO_T}no" >&6
1.1       millert  3106:                echo "Ignoring unknown argument to --enable-shadow: $enableval"
                   3107:                ;;
                   3108:   esac
                   3109:
                   3110: else
1.16    ! millert  3111:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3112: echo "${ECHO_T}no" >&6
                   3113: fi;
1.1       millert  3114:
1.16    ! millert  3115: echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
1.9       millert  3116: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1       millert  3117: # Check whether --enable-root-sudo or --disable-root-sudo was given.
                   3118: if test "${enable_root_sudo+set}" = set; then
                   3119:   enableval="$enable_root_sudo"
1.9       millert  3120:    case "$enableval" in
1.16    ! millert  3121:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3122: echo "${ECHO_T}yes" >&6
1.1       millert  3123:                ;;
1.9       millert  3124:     no)
1.16    ! millert  3125: cat >>confdefs.h <<\_ACEOF
1.1       millert  3126: #define NO_ROOT_SUDO 1
1.16    ! millert  3127: _ACEOF
1.1       millert  3128:
1.16    ! millert  3129:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3130: echo "${ECHO_T}no" >&6
1.1       millert  3131:                ;;
1.16    ! millert  3132:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9       millert  3133: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   3134:    { (exit 1); exit 1; }; }
1.1       millert  3135:                ;;
                   3136:   esac
                   3137:
                   3138: else
1.16    ! millert  3139:   echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3140: echo "${ECHO_T}yes" >&6
                   3141: fi;
1.1       millert  3142:
1.16    ! millert  3143: echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
1.9       millert  3144: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1       millert  3145: # Check whether --enable-log-host or --disable-log-host was given.
                   3146: if test "${enable_log_host+set}" = set; then
                   3147:   enableval="$enable_log_host"
                   3148:    case "$enableval" in
1.16    ! millert  3149:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3150: echo "${ECHO_T}yes" >&6
                   3151:
1.16    ! millert  3152: cat >>confdefs.h <<\_ACEOF
1.1       millert  3153: #define HOST_IN_LOG 1
1.16    ! millert  3154: _ACEOF
1.1       millert  3155:
                   3156:                ;;
1.16    ! millert  3157:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3158: echo "${ECHO_T}no" >&6
1.1       millert  3159:                ;;
1.16    ! millert  3160:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3161: echo "${ECHO_T}no" >&6
1.1       millert  3162:                echo "Ignoring unknown argument to --enable-log-host: $enableval"
                   3163:                ;;
                   3164:   esac
                   3165:
                   3166: else
1.16    ! millert  3167:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3168: echo "${ECHO_T}no" >&6
                   3169: fi;
1.1       millert  3170:
1.16    ! millert  3171: echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9       millert  3172: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1       millert  3173: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
                   3174: if test "${enable_noargs_shell+set}" = set; then
                   3175:   enableval="$enable_noargs_shell"
                   3176:    case "$enableval" in
1.16    ! millert  3177:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3178: echo "${ECHO_T}yes" >&6
                   3179:
1.16    ! millert  3180: cat >>confdefs.h <<\_ACEOF
1.1       millert  3181: #define SHELL_IF_NO_ARGS 1
1.16    ! millert  3182: _ACEOF
1.1       millert  3183:
                   3184:                ;;
1.16    ! millert  3185:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3186: echo "${ECHO_T}no" >&6
1.1       millert  3187:                ;;
1.16    ! millert  3188:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3189: echo "${ECHO_T}no" >&6
1.1       millert  3190:                echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
                   3191:                ;;
                   3192:   esac
                   3193:
                   3194: else
1.16    ! millert  3195:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3196: echo "${ECHO_T}no" >&6
                   3197: fi;
1.1       millert  3198:
1.16    ! millert  3199: echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
1.9       millert  3200: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1       millert  3201: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
                   3202: if test "${enable_shell_sets_home+set}" = set; then
                   3203:   enableval="$enable_shell_sets_home"
                   3204:    case "$enableval" in
1.16    ! millert  3205:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3206: echo "${ECHO_T}yes" >&6
                   3207:
1.16    ! millert  3208: cat >>confdefs.h <<\_ACEOF
1.1       millert  3209: #define SHELL_SETS_HOME 1
1.16    ! millert  3210: _ACEOF
1.1       millert  3211:
                   3212:                ;;
1.16    ! millert  3213:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3214: echo "${ECHO_T}no" >&6
1.1       millert  3215:                ;;
1.16    ! millert  3216:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3217: echo "${ECHO_T}no" >&6
1.1       millert  3218:                echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
                   3219:                ;;
                   3220:   esac
                   3221:
                   3222: else
1.16    ! millert  3223:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3224: echo "${ECHO_T}no" >&6
                   3225: fi;
1.1       millert  3226:
1.16    ! millert  3227: echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
1.9       millert  3228: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1       millert  3229: # Check whether --enable-path_info or --disable-path_info was given.
                   3230: if test "${enable_path_info+set}" = set; then
                   3231:   enableval="$enable_path_info"
                   3232:    case "$enableval" in
1.16    ! millert  3233:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3234: echo "${ECHO_T}no" >&6
1.1       millert  3235:                ;;
1.16    ! millert  3236:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3237: echo "${ECHO_T}yes" >&6
                   3238:
1.16    ! millert  3239: cat >>confdefs.h <<\_ACEOF
1.1       millert  3240: #define DONT_LEAK_PATH_INFO 1
1.16    ! millert  3241: _ACEOF
1.1       millert  3242:
                   3243:                ;;
1.16    ! millert  3244:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3245: echo "${ECHO_T}no" >&6
1.1       millert  3246:                echo "Ignoring unknown argument to --enable-path-info: $enableval"
                   3247:                ;;
                   3248:   esac
                   3249:
                   3250: else
1.16    ! millert  3251:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3252: echo "${ECHO_T}no" >&6
                   3253: fi;
1.1       millert  3254:
                   3255: # Extract the first word of "egrep", so it can be a program name with args.
                   3256: set dummy egrep; ac_word=$2
1.16    ! millert  3257: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3258: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3259: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   3260:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3261: else
                   3262:   if test -n "$EGREPPROG"; then
                   3263:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   3264: else
1.16    ! millert  3265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3266: for as_dir in $PATH
        !          3267: do
        !          3268:   IFS=$as_save_IFS
        !          3269:   test -z "$as_dir" && as_dir=.
        !          3270:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3271:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3272:     ac_cv_prog_EGREPPROG="egrep"
        !          3273:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3274:     break 2
        !          3275:   fi
        !          3276: done
1.9       millert  3277: done
                   3278:
1.1       millert  3279: fi
                   3280: fi
1.9       millert  3281: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  3282: if test -n "$EGREPPROG"; then
1.16    ! millert  3283:   echo "$as_me:$LINENO: result: $EGREPPROG" >&5
1.9       millert  3284: echo "${ECHO_T}$EGREPPROG" >&6
1.1       millert  3285: else
1.16    ! millert  3286:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3287: echo "${ECHO_T}no" >&6
1.1       millert  3288: fi
                   3289:
                   3290: if test -z "$EGREPPROG"; then
                   3291:     echo "Sorry, configure requires egrep to run."
                   3292:     exit
                   3293: fi
                   3294:
1.9       millert  3295: if test "$with_devel" != "yes"; then
                   3296:     ac_cv_prog_cc_g=no
                   3297: fi
                   3298:
                   3299: ac_ext=c
                   3300: ac_cpp='$CPP $CPPFLAGS'
                   3301: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3302: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3303: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3304: if test -n "$ac_tool_prefix"; then
                   3305:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3306: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.16    ! millert  3307: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3308: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3309: if test "${ac_cv_prog_CC+set}" = set; then
                   3310:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3311: else
                   3312:   if test -n "$CC"; then
                   3313:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3314: else
1.16    ! millert  3315: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3316: for as_dir in $PATH
        !          3317: do
        !          3318:   IFS=$as_save_IFS
        !          3319:   test -z "$as_dir" && as_dir=.
        !          3320:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3321:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3322:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
        !          3323:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3324:     break 2
        !          3325:   fi
        !          3326: done
1.9       millert  3327: done
                   3328:
1.1       millert  3329: fi
                   3330: fi
1.9       millert  3331: CC=$ac_cv_prog_CC
1.1       millert  3332: if test -n "$CC"; then
1.16    ! millert  3333:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3334: echo "${ECHO_T}$CC" >&6
1.1       millert  3335: else
1.16    ! millert  3336:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3337: echo "${ECHO_T}no" >&6
                   3338: fi
                   3339:
                   3340: fi
                   3341: if test -z "$ac_cv_prog_CC"; then
                   3342:   ac_ct_CC=$CC
                   3343:   # Extract the first word of "gcc", so it can be a program name with args.
                   3344: set dummy gcc; ac_word=$2
1.16    ! millert  3345: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3346: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3347: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3348:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3349: else
                   3350:   if test -n "$ac_ct_CC"; then
                   3351:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3352: else
1.16    ! millert  3353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3354: for as_dir in $PATH
        !          3355: do
        !          3356:   IFS=$as_save_IFS
        !          3357:   test -z "$as_dir" && as_dir=.
        !          3358:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3359:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3360:     ac_cv_prog_ac_ct_CC="gcc"
        !          3361:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3362:     break 2
        !          3363:   fi
        !          3364: done
1.9       millert  3365: done
                   3366:
                   3367: fi
                   3368: fi
                   3369: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3370: if test -n "$ac_ct_CC"; then
1.16    ! millert  3371:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3372: echo "${ECHO_T}$ac_ct_CC" >&6
                   3373: else
1.16    ! millert  3374:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3375: echo "${ECHO_T}no" >&6
                   3376: fi
                   3377:
                   3378:   CC=$ac_ct_CC
                   3379: else
                   3380:   CC="$ac_cv_prog_CC"
1.1       millert  3381: fi
                   3382:
                   3383: if test -z "$CC"; then
1.9       millert  3384:   if test -n "$ac_tool_prefix"; then
                   3385:   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   3386: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.16    ! millert  3387: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3388: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3389: if test "${ac_cv_prog_CC+set}" = set; then
                   3390:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3391: else
                   3392:   if test -n "$CC"; then
                   3393:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3394: else
1.16    ! millert  3395: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3396: for as_dir in $PATH
        !          3397: do
        !          3398:   IFS=$as_save_IFS
        !          3399:   test -z "$as_dir" && as_dir=.
        !          3400:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3401:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3402:     ac_cv_prog_CC="${ac_tool_prefix}cc"
        !          3403:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3404:     break 2
        !          3405:   fi
        !          3406: done
1.9       millert  3407: done
                   3408:
                   3409: fi
                   3410: fi
                   3411: CC=$ac_cv_prog_CC
                   3412: if test -n "$CC"; then
1.16    ! millert  3413:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3414: echo "${ECHO_T}$CC" >&6
                   3415: else
1.16    ! millert  3416:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3417: echo "${ECHO_T}no" >&6
                   3418: fi
                   3419:
                   3420: fi
                   3421: if test -z "$ac_cv_prog_CC"; then
                   3422:   ac_ct_CC=$CC
1.1       millert  3423:   # Extract the first word of "cc", so it can be a program name with args.
                   3424: set dummy cc; ac_word=$2
1.16    ! millert  3425: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3426: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3427: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3428:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3429: else
                   3430:   if test -n "$ac_ct_CC"; then
                   3431:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3432: else
1.16    ! millert  3433: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3434: for as_dir in $PATH
        !          3435: do
        !          3436:   IFS=$as_save_IFS
        !          3437:   test -z "$as_dir" && as_dir=.
        !          3438:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3439:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3440:     ac_cv_prog_ac_ct_CC="cc"
        !          3441:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3442:     break 2
        !          3443:   fi
        !          3444: done
1.9       millert  3445: done
                   3446:
                   3447: fi
                   3448: fi
                   3449: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3450: if test -n "$ac_ct_CC"; then
1.16    ! millert  3451:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3452: echo "${ECHO_T}$ac_ct_CC" >&6
                   3453: else
1.16    ! millert  3454:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3455: echo "${ECHO_T}no" >&6
                   3456: fi
                   3457:
                   3458:   CC=$ac_ct_CC
                   3459: else
                   3460:   CC="$ac_cv_prog_CC"
                   3461: fi
                   3462:
                   3463: fi
                   3464: if test -z "$CC"; then
                   3465:   # Extract the first word of "cc", so it can be a program name with args.
                   3466: set dummy cc; ac_word=$2
1.16    ! millert  3467: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3468: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3469: if test "${ac_cv_prog_CC+set}" = set; then
                   3470:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3471: else
                   3472:   if test -n "$CC"; then
                   3473:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3474: else
                   3475:   ac_prog_rejected=no
1.16    ! millert  3476: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3477: for as_dir in $PATH
        !          3478: do
        !          3479:   IFS=$as_save_IFS
        !          3480:   test -z "$as_dir" && as_dir=.
        !          3481:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3482:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3483:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
        !          3484:        ac_prog_rejected=yes
        !          3485:        continue
        !          3486:      fi
        !          3487:     ac_cv_prog_CC="cc"
        !          3488:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3489:     break 2
        !          3490:   fi
        !          3491: done
1.9       millert  3492: done
                   3493:
1.1       millert  3494: if test $ac_prog_rejected = yes; then
                   3495:   # We found a bogon in the path, so make sure we never use it.
                   3496:   set dummy $ac_cv_prog_CC
                   3497:   shift
1.9       millert  3498:   if test $# != 0; then
1.1       millert  3499:     # We chose a different compiler from the bogus one.
                   3500:     # However, it has the same basename, so the bogon will be chosen
                   3501:     # first if we set CC to just the basename; use the full file name.
                   3502:     shift
1.16    ! millert  3503:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       millert  3504:   fi
                   3505: fi
                   3506: fi
                   3507: fi
1.9       millert  3508: CC=$ac_cv_prog_CC
1.1       millert  3509: if test -n "$CC"; then
1.16    ! millert  3510:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3511: echo "${ECHO_T}$CC" >&6
                   3512: else
1.16    ! millert  3513:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3514: echo "${ECHO_T}no" >&6
                   3515: fi
                   3516:
                   3517: fi
                   3518: if test -z "$CC"; then
                   3519:   if test -n "$ac_tool_prefix"; then
                   3520:   for ac_prog in cl
                   3521:   do
                   3522:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3523: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.16    ! millert  3524: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3525: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3526: if test "${ac_cv_prog_CC+set}" = set; then
                   3527:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3528: else
                   3529:   if test -n "$CC"; then
                   3530:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3531: else
1.16    ! millert  3532: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3533: for as_dir in $PATH
        !          3534: do
        !          3535:   IFS=$as_save_IFS
        !          3536:   test -z "$as_dir" && as_dir=.
        !          3537:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3538:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3539:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
        !          3540:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3541:     break 2
        !          3542:   fi
        !          3543: done
1.9       millert  3544: done
                   3545:
                   3546: fi
                   3547: fi
                   3548: CC=$ac_cv_prog_CC
                   3549: if test -n "$CC"; then
1.16    ! millert  3550:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3551: echo "${ECHO_T}$CC" >&6
                   3552: else
1.16    ! millert  3553:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3554: echo "${ECHO_T}no" >&6
                   3555: fi
                   3556:
                   3557:     test -n "$CC" && break
                   3558:   done
                   3559: fi
                   3560: if test -z "$CC"; then
                   3561:   ac_ct_CC=$CC
                   3562:   for ac_prog in cl
                   3563: do
                   3564:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3565: set dummy $ac_prog; ac_word=$2
1.16    ! millert  3566: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3567: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3568: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3569:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3570: else
                   3571:   if test -n "$ac_ct_CC"; then
                   3572:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3573: else
1.16    ! millert  3574: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3575: for as_dir in $PATH
        !          3576: do
        !          3577:   IFS=$as_save_IFS
        !          3578:   test -z "$as_dir" && as_dir=.
        !          3579:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          3580:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3581:     ac_cv_prog_ac_ct_CC="$ac_prog"
        !          3582:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3583:     break 2
        !          3584:   fi
        !          3585: done
1.9       millert  3586: done
                   3587:
                   3588: fi
                   3589: fi
                   3590: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3591: if test -n "$ac_ct_CC"; then
1.16    ! millert  3592:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3593: echo "${ECHO_T}$ac_ct_CC" >&6
1.1       millert  3594: else
1.16    ! millert  3595:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3596: echo "${ECHO_T}no" >&6
                   3597: fi
                   3598:
                   3599:   test -n "$ac_ct_CC" && break
                   3600: done
                   3601:
                   3602:   CC=$ac_ct_CC
1.1       millert  3603: fi
                   3604:
                   3605: fi
                   3606:
1.16    ! millert  3607:
        !          3608: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
        !          3609: See \`config.log' for more details." >&5
        !          3610: echo "$as_me: error: no acceptable C compiler found in \$PATH
        !          3611: See \`config.log' for more details." >&2;}
1.9       millert  3612:    { (exit 1); exit 1; }; }
                   3613:
                   3614: # Provide some information about the compiler.
1.16    ! millert  3615: echo "$as_me:$LINENO:" \
1.9       millert  3616:      "checking for C compiler version" >&5
                   3617: ac_compiler=`set X $ac_compile; echo $2`
1.16    ! millert  3618: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9       millert  3619:   (eval $ac_compiler --version </dev/null >&5) 2>&5
                   3620:   ac_status=$?
1.16    ! millert  3621:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3622:   (exit $ac_status); }
1.16    ! millert  3623: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9       millert  3624:   (eval $ac_compiler -v </dev/null >&5) 2>&5
                   3625:   ac_status=$?
1.16    ! millert  3626:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3627:   (exit $ac_status); }
1.16    ! millert  3628: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9       millert  3629:   (eval $ac_compiler -V </dev/null >&5) 2>&5
                   3630:   ac_status=$?
1.16    ! millert  3631:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3632:   (exit $ac_status); }
                   3633:
                   3634: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  3635: #line $LINENO "configure"
        !          3636: /* confdefs.h.  */
        !          3637: _ACEOF
        !          3638: cat confdefs.h >>conftest.$ac_ext
        !          3639: cat >>conftest.$ac_ext <<_ACEOF
        !          3640: /* end confdefs.h.  */
1.9       millert  3641:
                   3642: int
                   3643: main ()
                   3644: {
1.1       millert  3645:
1.9       millert  3646:   ;
                   3647:   return 0;
                   3648: }
                   3649: _ACEOF
                   3650: ac_clean_files_save=$ac_clean_files
1.16    ! millert  3651: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  3652: # Try to create an executable without -o first, disregard a.out.
                   3653: # It will help us diagnose broken compilers, and finding out an intuition
                   3654: # of exeext.
1.16    ! millert  3655: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1.9       millert  3656: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
                   3657: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.16    ! millert  3658: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.9       millert  3659:   (eval $ac_link_default) 2>&5
                   3660:   ac_status=$?
1.16    ! millert  3661:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3662:   (exit $ac_status); }; then
                   3663:   # Find the output, starting from the most likely.  This scheme is
                   3664: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
                   3665: # resort.
1.16    ! millert  3666:
        !          3667: # Be careful to initialize this variable, since it used to be cached.
        !          3668: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
        !          3669: ac_cv_exeext=
        !          3670: # b.out is created by i960 compilers.
        !          3671: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
        !          3672: do
        !          3673:   test -f "$ac_file" || continue
1.9       millert  3674:   case $ac_file in
1.16    ! millert  3675:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
        !          3676:         ;;
        !          3677:     conftest.$ac_ext )
        !          3678:         # This is the source file.
        !          3679:         ;;
        !          3680:     [ab].out )
        !          3681:         # We found the default executable, but exeext='' is most
        !          3682:         # certainly right.
        !          3683:         break;;
        !          3684:     *.* )
        !          3685:         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        !          3686:         # FIXME: I believe we export ac_cv_exeext for Libtool,
        !          3687:         # but it would be cool to find out if it's true.  Does anybody
        !          3688:         # maintain Libtool? --akim.
        !          3689:         export ac_cv_exeext
        !          3690:         break;;
        !          3691:     * )
        !          3692:         break;;
1.9       millert  3693:   esac
                   3694: done
                   3695: else
                   3696:   echo "$as_me: failed program was:" >&5
1.16    ! millert  3697: sed 's/^/| /' conftest.$ac_ext >&5
        !          3698:
        !          3699: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
        !          3700: See \`config.log' for more details." >&5
        !          3701: echo "$as_me: error: C compiler cannot create executables
        !          3702: See \`config.log' for more details." >&2;}
1.9       millert  3703:    { (exit 77); exit 77; }; }
                   3704: fi
                   3705:
                   3706: ac_exeext=$ac_cv_exeext
1.16    ! millert  3707: echo "$as_me:$LINENO: result: $ac_file" >&5
1.9       millert  3708: echo "${ECHO_T}$ac_file" >&6
                   3709:
                   3710: # Check the compiler produces executables we can run.  If not, either
                   3711: # the compiler is broken, or we cross compile.
1.16    ! millert  3712: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.9       millert  3713: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
                   3714: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   3715: # If not cross compiling, check that we can run a simple program.
                   3716: if test "$cross_compiling" != yes; then
                   3717:   if { ac_try='./$ac_file'
1.16    ! millert  3718:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  3719:   (eval $ac_try) 2>&5
                   3720:   ac_status=$?
1.16    ! millert  3721:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3722:   (exit $ac_status); }; }; then
                   3723:     cross_compiling=no
1.1       millert  3724:   else
1.9       millert  3725:     if test "$cross_compiling" = maybe; then
                   3726:        cross_compiling=yes
                   3727:     else
1.16    ! millert  3728:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
        !          3729: If you meant to cross compile, use \`--host'.
        !          3730: See \`config.log' for more details." >&5
1.9       millert  3731: echo "$as_me: error: cannot run C compiled programs.
1.16    ! millert  3732: If you meant to cross compile, use \`--host'.
        !          3733: See \`config.log' for more details." >&2;}
1.9       millert  3734:    { (exit 1); exit 1; }; }
                   3735:     fi
1.1       millert  3736:   fi
1.9       millert  3737: fi
1.16    ! millert  3738: echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3739: echo "${ECHO_T}yes" >&6
                   3740:
1.16    ! millert  3741: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  3742: ac_clean_files=$ac_clean_files_save
                   3743: # Check the compiler produces executables we can run.  If not, either
                   3744: # the compiler is broken, or we cross compile.
1.16    ! millert  3745: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.9       millert  3746: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.16    ! millert  3747: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.9       millert  3748: echo "${ECHO_T}$cross_compiling" >&6
                   3749:
1.16    ! millert  3750: echo "$as_me:$LINENO: checking for suffix of executables" >&5
        !          3751: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
        !          3752: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  3753:   (eval $ac_link) 2>&5
                   3754:   ac_status=$?
1.16    ! millert  3755:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3756:   (exit $ac_status); }; then
                   3757:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3758: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3759: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3760: # `rm'.
1.16    ! millert  3761: for ac_file in conftest.exe conftest conftest.*; do
        !          3762:   test -f "$ac_file" || continue
1.9       millert  3763:   case $ac_file in
1.16    ! millert  3764:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.9       millert  3765:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3766:           export ac_cv_exeext
                   3767:           break;;
                   3768:     * ) break;;
                   3769:   esac
                   3770: done
1.1       millert  3771: else
1.16    ! millert  3772:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
        !          3773: See \`config.log' for more details." >&5
        !          3774: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
        !          3775: See \`config.log' for more details." >&2;}
1.9       millert  3776:    { (exit 1); exit 1; }; }
1.1       millert  3777: fi
                   3778:
1.9       millert  3779: rm -f conftest$ac_cv_exeext
1.16    ! millert  3780: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.9       millert  3781: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1       millert  3782:
1.9       millert  3783: rm -f conftest.$ac_ext
                   3784: EXEEXT=$ac_cv_exeext
                   3785: ac_exeext=$EXEEXT
1.16    ! millert  3786: echo "$as_me:$LINENO: checking for suffix of object files" >&5
        !          3787: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.9       millert  3788: if test "${ac_cv_objext+set}" = set; then
                   3789:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3790: else
1.9       millert  3791:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  3792: #line $LINENO "configure"
        !          3793: /* confdefs.h.  */
        !          3794: _ACEOF
        !          3795: cat confdefs.h >>conftest.$ac_ext
        !          3796: cat >>conftest.$ac_ext <<_ACEOF
        !          3797: /* end confdefs.h.  */
1.9       millert  3798:
                   3799: int
                   3800: main ()
                   3801: {
                   3802:
                   3803:   ;
                   3804:   return 0;
                   3805: }
                   3806: _ACEOF
                   3807: rm -f conftest.o conftest.obj
1.16    ! millert  3808: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  3809:   (eval $ac_compile) 2>&5
                   3810:   ac_status=$?
1.16    ! millert  3811:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3812:   (exit $ac_status); }; then
                   3813:   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
                   3814:   case $ac_file in
1.16    ! millert  3815:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.9       millert  3816:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3817:        break;;
                   3818:   esac
                   3819: done
1.1       millert  3820: else
1.9       millert  3821:   echo "$as_me: failed program was:" >&5
1.16    ! millert  3822: sed 's/^/| /' conftest.$ac_ext >&5
        !          3823:
        !          3824: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
        !          3825: See \`config.log' for more details." >&5
        !          3826: echo "$as_me: error: cannot compute suffix of object files: cannot compile
        !          3827: See \`config.log' for more details." >&2;}
1.9       millert  3828:    { (exit 1); exit 1; }; }
1.1       millert  3829: fi
1.9       millert  3830:
                   3831: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  3832: fi
1.16    ! millert  3833: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.9       millert  3834: echo "${ECHO_T}$ac_cv_objext" >&6
                   3835: OBJEXT=$ac_cv_objext
                   3836: ac_objext=$OBJEXT
1.16    ! millert  3837: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9       millert  3838: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
                   3839: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   3840:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3841: else
                   3842:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  3843: #line $LINENO "configure"
        !          3844: /* confdefs.h.  */
        !          3845: _ACEOF
        !          3846: cat confdefs.h >>conftest.$ac_ext
        !          3847: cat >>conftest.$ac_ext <<_ACEOF
        !          3848: /* end confdefs.h.  */
1.1       millert  3849:
1.9       millert  3850: int
                   3851: main ()
                   3852: {
                   3853: #ifndef __GNUC__
                   3854:        choke me
                   3855: #endif
1.1       millert  3856:
1.9       millert  3857:   ;
                   3858:   return 0;
                   3859: }
                   3860: _ACEOF
                   3861: rm -f conftest.$ac_objext
1.16    ! millert  3862: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  3863:   (eval $ac_compile) 2>&5
                   3864:   ac_status=$?
1.16    ! millert  3865:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3866:   (exit $ac_status); } &&
                   3867:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  3868:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  3869:   (eval $ac_try) 2>&5
                   3870:   ac_status=$?
1.16    ! millert  3871:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3872:   (exit $ac_status); }; }; then
                   3873:   ac_compiler_gnu=yes
                   3874: else
                   3875:   echo "$as_me: failed program was:" >&5
1.16    ! millert  3876: sed 's/^/| /' conftest.$ac_ext >&5
        !          3877:
1.9       millert  3878: ac_compiler_gnu=no
                   3879: fi
                   3880: rm -f conftest.$ac_objext conftest.$ac_ext
                   3881: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   3882:
                   3883: fi
1.16    ! millert  3884: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9       millert  3885: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
                   3886: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   3887: ac_test_CFLAGS=${CFLAGS+set}
                   3888: ac_save_CFLAGS=$CFLAGS
                   3889: CFLAGS="-g"
1.16    ! millert  3890: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.9       millert  3891: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
                   3892: if test "${ac_cv_prog_cc_g+set}" = set; then
                   3893:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3894: else
1.9       millert  3895:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  3896: #line $LINENO "configure"
        !          3897: /* confdefs.h.  */
        !          3898: _ACEOF
        !          3899: cat confdefs.h >>conftest.$ac_ext
        !          3900: cat >>conftest.$ac_ext <<_ACEOF
        !          3901: /* end confdefs.h.  */
1.9       millert  3902:
                   3903: int
                   3904: main ()
                   3905: {
                   3906:
                   3907:   ;
                   3908:   return 0;
                   3909: }
                   3910: _ACEOF
                   3911: rm -f conftest.$ac_objext
1.16    ! millert  3912: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  3913:   (eval $ac_compile) 2>&5
                   3914:   ac_status=$?
1.16    ! millert  3915:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3916:   (exit $ac_status); } &&
                   3917:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  3918:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  3919:   (eval $ac_try) 2>&5
                   3920:   ac_status=$?
1.16    ! millert  3921:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3922:   (exit $ac_status); }; }; then
1.1       millert  3923:   ac_cv_prog_cc_g=yes
                   3924: else
1.9       millert  3925:   echo "$as_me: failed program was:" >&5
1.16    ! millert  3926: sed 's/^/| /' conftest.$ac_ext >&5
        !          3927:
1.9       millert  3928: ac_cv_prog_cc_g=no
                   3929: fi
                   3930: rm -f conftest.$ac_objext conftest.$ac_ext
                   3931: fi
1.16    ! millert  3932: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.9       millert  3933: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
                   3934: if test "$ac_test_CFLAGS" = set; then
                   3935:   CFLAGS=$ac_save_CFLAGS
                   3936: elif test $ac_cv_prog_cc_g = yes; then
                   3937:   if test "$GCC" = yes; then
                   3938:     CFLAGS="-g -O2"
                   3939:   else
                   3940:     CFLAGS="-g"
                   3941:   fi
                   3942: else
                   3943:   if test "$GCC" = yes; then
                   3944:     CFLAGS="-O2"
                   3945:   else
                   3946:     CFLAGS=
                   3947:   fi
                   3948: fi
1.16    ! millert  3949: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
        !          3950: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
        !          3951: if test "${ac_cv_prog_cc_stdc+set}" = set; then
        !          3952:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          3953: else
        !          3954:   ac_cv_prog_cc_stdc=no
        !          3955: ac_save_CC=$CC
1.9       millert  3956: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  3957: #line $LINENO "configure"
        !          3958: /* confdefs.h.  */
1.9       millert  3959: _ACEOF
1.16    ! millert  3960: cat confdefs.h >>conftest.$ac_ext
        !          3961: cat >>conftest.$ac_ext <<_ACEOF
        !          3962: /* end confdefs.h.  */
        !          3963: #include <stdarg.h>
        !          3964: #include <stdio.h>
        !          3965: #include <sys/types.h>
        !          3966: #include <sys/stat.h>
        !          3967: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
        !          3968: struct buf { int x; };
        !          3969: FILE * (*rcsopen) (struct buf *, struct stat *, int);
        !          3970: static char *e (p, i)
        !          3971:      char **p;
        !          3972:      int i;
1.9       millert  3973: {
1.16    ! millert  3974:   return p[i];
1.9       millert  3975: }
1.16    ! millert  3976: static char *f (char * (*g) (char **, int), char **p, ...)
        !          3977: {
        !          3978:   char *s;
        !          3979:   va_list v;
        !          3980:   va_start (v,p);
        !          3981:   s = g (p, va_arg (v,int));
        !          3982:   va_end (v);
        !          3983:   return s;
        !          3984: }
        !          3985: int test (int i, double x);
        !          3986: struct s1 {int (*f) (int a);};
        !          3987: struct s2 {int (*f) (double a);};
        !          3988: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
        !          3989: int argc;
        !          3990: char **argv;
        !          3991: int
        !          3992: main ()
        !          3993: {
        !          3994: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
        !          3995:   ;
        !          3996:   return 0;
        !          3997: }
        !          3998: _ACEOF
        !          3999: # Don't try gcc -ansi; that turns off useful extensions and
        !          4000: # breaks some systems' header files.
        !          4001: # AIX                  -qlanglvl=ansi
        !          4002: # Ultrix and OSF/1     -std1
        !          4003: # HP-UX 10.20 and later        -Ae
        !          4004: # HP-UX older versions -Aa -D_HPUX_SOURCE
        !          4005: # SVR4                 -Xc -D__EXTENSIONS__
        !          4006: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
        !          4007: do
        !          4008:   CC="$ac_save_CC $ac_arg"
        !          4009:   rm -f conftest.$ac_objext
        !          4010: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          4011:   (eval $ac_compile) 2>&5
        !          4012:   ac_status=$?
        !          4013:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4014:   (exit $ac_status); } &&
        !          4015:          { ac_try='test -s conftest.$ac_objext'
        !          4016:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4017:   (eval $ac_try) 2>&5
        !          4018:   ac_status=$?
        !          4019:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4020:   (exit $ac_status); }; }; then
        !          4021:   ac_cv_prog_cc_stdc=$ac_arg
        !          4022: break
        !          4023: else
        !          4024:   echo "$as_me: failed program was:" >&5
        !          4025: sed 's/^/| /' conftest.$ac_ext >&5
        !          4026:
        !          4027: fi
        !          4028: rm -f conftest.$ac_objext
        !          4029: done
        !          4030: rm -f conftest.$ac_ext conftest.$ac_objext
        !          4031: CC=$ac_save_CC
        !          4032:
        !          4033: fi
        !          4034:
        !          4035: case "x$ac_cv_prog_cc_stdc" in
        !          4036:   x|xno)
        !          4037:     echo "$as_me:$LINENO: result: none needed" >&5
        !          4038: echo "${ECHO_T}none needed" >&6 ;;
        !          4039:   *)
        !          4040:     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
        !          4041: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
        !          4042:     CC="$CC $ac_cv_prog_cc_stdc" ;;
        !          4043: esac
        !          4044:
        !          4045: # Some people use a C++ compiler to compile C.  Since we use `exit',
        !          4046: # in C++ we need to declare it.  In case someone uses the same compiler
        !          4047: # for both compiling C and C++ we need to have the C++ compiler decide
        !          4048: # the declaration of exit, since it's the most demanding environment.
        !          4049: cat >conftest.$ac_ext <<_ACEOF
        !          4050: #ifndef __cplusplus
        !          4051:   choke me
        !          4052: #endif
1.9       millert  4053: _ACEOF
                   4054: rm -f conftest.$ac_objext
1.16    ! millert  4055: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  4056:   (eval $ac_compile) 2>&5
                   4057:   ac_status=$?
1.16    ! millert  4058:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4059:   (exit $ac_status); } &&
                   4060:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  4061:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4062:   (eval $ac_try) 2>&5
                   4063:   ac_status=$?
1.16    ! millert  4064:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4065:   (exit $ac_status); }; }; then
        !          4066:   for ac_declaration in \
        !          4067:    ''\
        !          4068:    '#include <stdlib.h>' \
        !          4069:    'extern "C" void std::exit (int) throw (); using std::exit;' \
        !          4070:    'extern "C" void std::exit (int); using std::exit;' \
        !          4071:    'extern "C" void exit (int) throw ();' \
        !          4072:    'extern "C" void exit (int);' \
        !          4073:    'void exit (int);'
        !          4074: do
        !          4075:   cat >conftest.$ac_ext <<_ACEOF
        !          4076: #line $LINENO "configure"
        !          4077: /* confdefs.h.  */
        !          4078: _ACEOF
        !          4079: cat confdefs.h >>conftest.$ac_ext
        !          4080: cat >>conftest.$ac_ext <<_ACEOF
        !          4081: /* end confdefs.h.  */
        !          4082: #include <stdlib.h>
        !          4083: $ac_declaration
        !          4084: int
        !          4085: main ()
        !          4086: {
        !          4087: exit (42);
        !          4088:   ;
        !          4089:   return 0;
        !          4090: }
        !          4091: _ACEOF
        !          4092: rm -f conftest.$ac_objext
        !          4093: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          4094:   (eval $ac_compile) 2>&5
        !          4095:   ac_status=$?
        !          4096:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4097:   (exit $ac_status); } &&
        !          4098:          { ac_try='test -s conftest.$ac_objext'
        !          4099:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4100:   (eval $ac_try) 2>&5
        !          4101:   ac_status=$?
        !          4102:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4103:   (exit $ac_status); }; }; then
                   4104:   :
                   4105: else
                   4106:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4107: sed 's/^/| /' conftest.$ac_ext >&5
        !          4108:
1.9       millert  4109: continue
                   4110: fi
                   4111: rm -f conftest.$ac_objext conftest.$ac_ext
                   4112:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4113: #line $LINENO "configure"
        !          4114: /* confdefs.h.  */
        !          4115: _ACEOF
        !          4116: cat confdefs.h >>conftest.$ac_ext
        !          4117: cat >>conftest.$ac_ext <<_ACEOF
        !          4118: /* end confdefs.h.  */
1.9       millert  4119: $ac_declaration
                   4120: int
                   4121: main ()
                   4122: {
                   4123: exit (42);
                   4124:   ;
                   4125:   return 0;
                   4126: }
                   4127: _ACEOF
                   4128: rm -f conftest.$ac_objext
1.16    ! millert  4129: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  4130:   (eval $ac_compile) 2>&5
                   4131:   ac_status=$?
1.16    ! millert  4132:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4133:   (exit $ac_status); } &&
                   4134:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  4135:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4136:   (eval $ac_try) 2>&5
                   4137:   ac_status=$?
1.16    ! millert  4138:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4139:   (exit $ac_status); }; }; then
                   4140:   break
                   4141: else
                   4142:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4143: sed 's/^/| /' conftest.$ac_ext >&5
        !          4144:
1.1       millert  4145: fi
1.9       millert  4146: rm -f conftest.$ac_objext conftest.$ac_ext
                   4147: done
1.1       millert  4148: rm -f conftest*
1.9       millert  4149: if test -n "$ac_declaration"; then
                   4150:   echo '#ifdef __cplusplus' >>confdefs.h
                   4151:   echo $ac_declaration      >>confdefs.h
                   4152:   echo '#endif'             >>confdefs.h
                   4153: fi
1.1       millert  4154:
1.9       millert  4155: else
                   4156:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4157: sed 's/^/| /' conftest.$ac_ext >&5
        !          4158:
1.1       millert  4159: fi
1.9       millert  4160: rm -f conftest.$ac_objext conftest.$ac_ext
                   4161: ac_ext=c
                   4162: ac_cpp='$CPP $CPPFLAGS'
                   4163: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4164: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4165: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  4166:
1.9       millert  4167:
1.16    ! millert  4168: echo "$as_me:$LINENO: checking for library containing strerror" >&5
        !          4169: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
        !          4170: if test "${ac_cv_search_strerror+set}" = set; then
1.9       millert  4171:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4172: else
1.16    ! millert  4173:   ac_func_search_save_LIBS=$LIBS
        !          4174: ac_cv_search_strerror=no
1.9       millert  4175: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4176: #line $LINENO "configure"
        !          4177: /* confdefs.h.  */
        !          4178: _ACEOF
        !          4179: cat confdefs.h >>conftest.$ac_ext
        !          4180: cat >>conftest.$ac_ext <<_ACEOF
        !          4181: /* end confdefs.h.  */
        !          4182:
        !          4183: /* Override any gcc2 internal prototype to avoid an error.  */
        !          4184: #ifdef __cplusplus
        !          4185: extern "C"
        !          4186: #endif
        !          4187: /* We use char because int might match the return type of a gcc2
        !          4188:    builtin and then its argument prototype would still apply.  */
        !          4189: char strerror ();
        !          4190: int
        !          4191: main ()
1.9       millert  4192: {
1.16    ! millert  4193: strerror ();
        !          4194:   ;
        !          4195:   return 0;
1.9       millert  4196: }
1.16    ! millert  4197: _ACEOF
        !          4198: rm -f conftest.$ac_objext conftest$ac_exeext
        !          4199: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          4200:   (eval $ac_link) 2>&5
        !          4201:   ac_status=$?
        !          4202:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4203:   (exit $ac_status); } &&
        !          4204:          { ac_try='test -s conftest$ac_exeext'
        !          4205:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4206:   (eval $ac_try) 2>&5
        !          4207:   ac_status=$?
        !          4208:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4209:   (exit $ac_status); }; }; then
        !          4210:   ac_cv_search_strerror="none required"
        !          4211: else
        !          4212:   echo "$as_me: failed program was:" >&5
        !          4213: sed 's/^/| /' conftest.$ac_ext >&5
        !          4214:
        !          4215: fi
        !          4216: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        !          4217: if test "$ac_cv_search_strerror" = no; then
        !          4218:   for ac_lib in cposix; do
        !          4219:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
        !          4220:     cat >conftest.$ac_ext <<_ACEOF
        !          4221: #line $LINENO "configure"
        !          4222: /* confdefs.h.  */
        !          4223: _ACEOF
        !          4224: cat confdefs.h >>conftest.$ac_ext
        !          4225: cat >>conftest.$ac_ext <<_ACEOF
        !          4226: /* end confdefs.h.  */
        !          4227:
        !          4228: /* Override any gcc2 internal prototype to avoid an error.  */
        !          4229: #ifdef __cplusplus
        !          4230: extern "C"
        !          4231: #endif
        !          4232: /* We use char because int might match the return type of a gcc2
        !          4233:    builtin and then its argument prototype would still apply.  */
        !          4234: char strerror ();
1.9       millert  4235: int
                   4236: main ()
                   4237: {
1.16    ! millert  4238: strerror ();
1.9       millert  4239:   ;
                   4240:   return 0;
                   4241: }
                   4242: _ACEOF
1.16    ! millert  4243: rm -f conftest.$ac_objext conftest$ac_exeext
        !          4244: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          4245:   (eval $ac_link) 2>&5
1.9       millert  4246:   ac_status=$?
1.16    ! millert  4247:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4248:   (exit $ac_status); } &&
1.16    ! millert  4249:          { ac_try='test -s conftest$ac_exeext'
        !          4250:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4251:   (eval $ac_try) 2>&5
                   4252:   ac_status=$?
1.16    ! millert  4253:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4254:   (exit $ac_status); }; }; then
1.16    ! millert  4255:   ac_cv_search_strerror="-l$ac_lib"
1.9       millert  4256: break
                   4257: else
                   4258:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4259: sed 's/^/| /' conftest.$ac_ext >&5
        !          4260:
        !          4261: fi
        !          4262: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        !          4263:   done
        !          4264: fi
        !          4265: LIBS=$ac_func_search_save_LIBS
1.9       millert  4266: fi
1.16    ! millert  4267: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
        !          4268: echo "${ECHO_T}$ac_cv_search_strerror" >&6
        !          4269: if test "$ac_cv_search_strerror" != no; then
        !          4270:   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.9       millert  4271:
                   4272: fi
                   4273:
1.16    ! millert  4274: ac_cv_prog_cc_cross="no"
        !          4275: cross_compiling="no"
1.9       millert  4276:
                   4277: ac_cv_prog_cc_cross="no"
                   4278: cross_compiling="no"
                   4279: ac_ext=c
                   4280: ac_cpp='$CPP $CPPFLAGS'
                   4281: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4282: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4283: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16    ! millert  4284: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9       millert  4285: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1       millert  4286: # On Suns, sometimes $CPP names a directory.
                   4287: if test -n "$CPP" && test -d "$CPP"; then
                   4288:   CPP=
                   4289: fi
                   4290: if test -z "$CPP"; then
1.9       millert  4291:   if test "${ac_cv_prog_CPP+set}" = set; then
                   4292:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4293: else
1.9       millert  4294:       # Double quotes because CPP needs to be expanded
                   4295:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4296:     do
                   4297:       ac_preproc_ok=false
                   4298: for ac_c_preproc_warn_flag in '' yes
                   4299: do
                   4300:   # Use a header file that comes with gcc, so configuring glibc
                   4301:   # with a fresh cross-compiler works.
1.16    ! millert  4302:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          4303:   # <limits.h> exists even on freestanding compilers.
1.1       millert  4304:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  4305:   # not just through cpp. "Syntax error" is here to catch this case.
                   4306:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4307: #line $LINENO "configure"
        !          4308: /* confdefs.h.  */
        !          4309: _ACEOF
        !          4310: cat confdefs.h >>conftest.$ac_ext
        !          4311: cat >>conftest.$ac_ext <<_ACEOF
        !          4312: /* end confdefs.h.  */
        !          4313: #ifdef __STDC__
        !          4314: # include <limits.h>
        !          4315: #else
        !          4316: # include <assert.h>
        !          4317: #endif
1.9       millert  4318:                      Syntax error
                   4319: _ACEOF
1.16    ! millert  4320: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4321:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4322:   ac_status=$?
1.16    ! millert  4323:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4324:   rm -f conftest.er1
                   4325:   cat conftest.err >&5
1.16    ! millert  4326:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4327:   (exit $ac_status); } >/dev/null; then
                   4328:   if test -s conftest.err; then
                   4329:     ac_cpp_err=$ac_c_preproc_warn_flag
                   4330:   else
                   4331:     ac_cpp_err=
                   4332:   fi
                   4333: else
                   4334:   ac_cpp_err=yes
                   4335: fi
                   4336: if test -z "$ac_cpp_err"; then
1.1       millert  4337:   :
                   4338: else
1.9       millert  4339:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4340: sed 's/^/| /' conftest.$ac_ext >&5
        !          4341:
1.9       millert  4342:   # Broken: fails on valid input.
                   4343: continue
                   4344: fi
                   4345: rm -f conftest.err conftest.$ac_ext
                   4346:
                   4347:   # OK, works on sane cases.  Now check whether non-existent headers
                   4348:   # can be detected and how.
                   4349:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4350: #line $LINENO "configure"
        !          4351: /* confdefs.h.  */
        !          4352: _ACEOF
        !          4353: cat confdefs.h >>conftest.$ac_ext
        !          4354: cat >>conftest.$ac_ext <<_ACEOF
        !          4355: /* end confdefs.h.  */
1.9       millert  4356: #include <ac_nonexistent.h>
                   4357: _ACEOF
1.16    ! millert  4358: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4359:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4360:   ac_status=$?
1.16    ! millert  4361:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4362:   rm -f conftest.er1
                   4363:   cat conftest.err >&5
1.16    ! millert  4364:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4365:   (exit $ac_status); } >/dev/null; then
                   4366:   if test -s conftest.err; then
                   4367:     ac_cpp_err=$ac_c_preproc_warn_flag
                   4368:   else
                   4369:     ac_cpp_err=
                   4370:   fi
                   4371: else
                   4372:   ac_cpp_err=yes
                   4373: fi
                   4374: if test -z "$ac_cpp_err"; then
                   4375:   # Broken: success on invalid input.
                   4376: continue
                   4377: else
                   4378:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4379: sed 's/^/| /' conftest.$ac_ext >&5
        !          4380:
1.9       millert  4381:   # Passes both tests.
                   4382: ac_preproc_ok=:
                   4383: break
                   4384: fi
                   4385: rm -f conftest.err conftest.$ac_ext
                   4386:
                   4387: done
                   4388: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4389: rm -f conftest.err conftest.$ac_ext
                   4390: if $ac_preproc_ok; then
                   4391:   break
                   4392: fi
                   4393:
                   4394:     done
                   4395:     ac_cv_prog_CPP=$CPP
                   4396:
                   4397: fi
                   4398:   CPP=$ac_cv_prog_CPP
                   4399: else
                   4400:   ac_cv_prog_CPP=$CPP
                   4401: fi
1.16    ! millert  4402: echo "$as_me:$LINENO: result: $CPP" >&5
1.9       millert  4403: echo "${ECHO_T}$CPP" >&6
                   4404: ac_preproc_ok=false
                   4405: for ac_c_preproc_warn_flag in '' yes
                   4406: do
                   4407:   # Use a header file that comes with gcc, so configuring glibc
                   4408:   # with a fresh cross-compiler works.
1.16    ! millert  4409:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          4410:   # <limits.h> exists even on freestanding compilers.
1.9       millert  4411:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4412:   # not just through cpp. "Syntax error" is here to catch this case.
                   4413:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4414: #line $LINENO "configure"
        !          4415: /* confdefs.h.  */
        !          4416: _ACEOF
        !          4417: cat confdefs.h >>conftest.$ac_ext
        !          4418: cat >>conftest.$ac_ext <<_ACEOF
        !          4419: /* end confdefs.h.  */
        !          4420: #ifdef __STDC__
        !          4421: # include <limits.h>
        !          4422: #else
        !          4423: # include <assert.h>
        !          4424: #endif
1.9       millert  4425:                      Syntax error
                   4426: _ACEOF
1.16    ! millert  4427: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4428:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4429:   ac_status=$?
1.16    ! millert  4430:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4431:   rm -f conftest.er1
                   4432:   cat conftest.err >&5
1.16    ! millert  4433:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4434:   (exit $ac_status); } >/dev/null; then
                   4435:   if test -s conftest.err; then
                   4436:     ac_cpp_err=$ac_c_preproc_warn_flag
                   4437:   else
                   4438:     ac_cpp_err=
                   4439:   fi
                   4440: else
                   4441:   ac_cpp_err=yes
                   4442: fi
                   4443: if test -z "$ac_cpp_err"; then
1.1       millert  4444:   :
                   4445: else
1.9       millert  4446:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4447: sed 's/^/| /' conftest.$ac_ext >&5
        !          4448:
1.9       millert  4449:   # Broken: fails on valid input.
                   4450: continue
1.1       millert  4451: fi
1.9       millert  4452: rm -f conftest.err conftest.$ac_ext
                   4453:
                   4454:   # OK, works on sane cases.  Now check whether non-existent headers
                   4455:   # can be detected and how.
                   4456:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4457: #line $LINENO "configure"
        !          4458: /* confdefs.h.  */
        !          4459: _ACEOF
        !          4460: cat confdefs.h >>conftest.$ac_ext
        !          4461: cat >>conftest.$ac_ext <<_ACEOF
        !          4462: /* end confdefs.h.  */
1.9       millert  4463: #include <ac_nonexistent.h>
                   4464: _ACEOF
1.16    ! millert  4465: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4466:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4467:   ac_status=$?
1.16    ! millert  4468:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4469:   rm -f conftest.er1
                   4470:   cat conftest.err >&5
1.16    ! millert  4471:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4472:   (exit $ac_status); } >/dev/null; then
                   4473:   if test -s conftest.err; then
                   4474:     ac_cpp_err=$ac_c_preproc_warn_flag
                   4475:   else
                   4476:     ac_cpp_err=
                   4477:   fi
                   4478: else
                   4479:   ac_cpp_err=yes
1.1       millert  4480: fi
1.9       millert  4481: if test -z "$ac_cpp_err"; then
                   4482:   # Broken: success on invalid input.
                   4483: continue
1.1       millert  4484: else
1.9       millert  4485:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4486: sed 's/^/| /' conftest.$ac_ext >&5
        !          4487:
1.9       millert  4488:   # Passes both tests.
                   4489: ac_preproc_ok=:
                   4490: break
1.1       millert  4491: fi
1.9       millert  4492: rm -f conftest.err conftest.$ac_ext
1.1       millert  4493:
1.9       millert  4494: done
                   4495: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4496: rm -f conftest.err conftest.$ac_ext
                   4497: if $ac_preproc_ok; then
                   4498:   :
1.1       millert  4499: else
1.16    ! millert  4500:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
        !          4501: See \`config.log' for more details." >&5
        !          4502: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
        !          4503: See \`config.log' for more details." >&2;}
1.9       millert  4504:    { (exit 1); exit 1; }; }
1.1       millert  4505: fi
                   4506:
1.9       millert  4507: ac_ext=c
                   4508: ac_cpp='$CPP $CPPFLAGS'
                   4509: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4510: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4511: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  4512:
1.16    ! millert  4513:
1.1       millert  4514: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   4515:     CFLAGS="${CFLAGS} -Wall"
                   4516: fi
                   4517:
                   4518: # Extract the first word of "uname", so it can be a program name with args.
                   4519: set dummy uname; ac_word=$2
1.16    ! millert  4520: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  4521: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   4522: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   4523:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4524: else
                   4525:   if test -n "$UNAMEPROG"; then
                   4526:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   4527: else
1.16    ! millert  4528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4529: for as_dir in $PATH
        !          4530: do
        !          4531:   IFS=$as_save_IFS
        !          4532:   test -z "$as_dir" && as_dir=.
        !          4533:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          4534:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          4535:     ac_cv_prog_UNAMEPROG="uname"
        !          4536:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4537:     break 2
        !          4538:   fi
        !          4539: done
1.9       millert  4540: done
                   4541:
1.1       millert  4542: fi
                   4543: fi
1.9       millert  4544: UNAMEPROG=$ac_cv_prog_UNAMEPROG
1.1       millert  4545: if test -n "$UNAMEPROG"; then
1.16    ! millert  4546:   echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
1.9       millert  4547: echo "${ECHO_T}$UNAMEPROG" >&6
1.1       millert  4548: else
1.16    ! millert  4549:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  4550: echo "${ECHO_T}no" >&6
1.1       millert  4551: fi
                   4552:
                   4553: # Extract the first word of "tr", so it can be a program name with args.
                   4554: set dummy tr; ac_word=$2
1.16    ! millert  4555: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  4556: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   4557: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   4558:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4559: else
                   4560:   if test -n "$TRPROG"; then
                   4561:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   4562: else
1.16    ! millert  4563: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4564: for as_dir in $PATH
        !          4565: do
        !          4566:   IFS=$as_save_IFS
        !          4567:   test -z "$as_dir" && as_dir=.
        !          4568:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          4569:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          4570:     ac_cv_prog_TRPROG="tr"
        !          4571:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4572:     break 2
        !          4573:   fi
        !          4574: done
1.9       millert  4575: done
                   4576:
1.1       millert  4577: fi
                   4578: fi
1.9       millert  4579: TRPROG=$ac_cv_prog_TRPROG
1.1       millert  4580: if test -n "$TRPROG"; then
1.16    ! millert  4581:   echo "$as_me:$LINENO: result: $TRPROG" >&5
1.9       millert  4582: echo "${ECHO_T}$TRPROG" >&6
1.1       millert  4583: else
1.16    ! millert  4584:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  4585: echo "${ECHO_T}no" >&6
1.1       millert  4586: fi
                   4587:
                   4588: # Extract the first word of "sed", so it can be a program name with args.
                   4589: set dummy sed; ac_word=$2
1.16    ! millert  4590: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  4591: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   4592: if test "${ac_cv_prog_SEDPROG+set}" = set; then
                   4593:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4594: else
                   4595:   if test -n "$SEDPROG"; then
                   4596:   ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
                   4597: else
1.16    ! millert  4598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4599: for as_dir in $PATH
        !          4600: do
        !          4601:   IFS=$as_save_IFS
        !          4602:   test -z "$as_dir" && as_dir=.
        !          4603:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          4604:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          4605:     ac_cv_prog_SEDPROG="sed"
        !          4606:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4607:     break 2
        !          4608:   fi
        !          4609: done
1.9       millert  4610: done
                   4611:
1.1       millert  4612: fi
                   4613: fi
1.9       millert  4614: SEDPROG=$ac_cv_prog_SEDPROG
1.1       millert  4615: if test -n "$SEDPROG"; then
1.16    ! millert  4616:   echo "$as_me:$LINENO: result: $SEDPROG" >&5
1.9       millert  4617: echo "${ECHO_T}$SEDPROG" >&6
1.1       millert  4618: else
1.16    ! millert  4619:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  4620: echo "${ECHO_T}no" >&6
1.1       millert  4621: fi
                   4622:
                   4623: # Extract the first word of "nroff", so it can be a program name with args.
                   4624: set dummy nroff; ac_word=$2
1.16    ! millert  4625: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  4626: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   4627: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   4628:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4629: else
                   4630:   if test -n "$NROFFPROG"; then
                   4631:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   4632: else
1.16    ! millert  4633: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4634: for as_dir in $PATH
        !          4635: do
        !          4636:   IFS=$as_save_IFS
        !          4637:   test -z "$as_dir" && as_dir=.
        !          4638:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          4639:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          4640:     ac_cv_prog_NROFFPROG="nroff"
        !          4641:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4642:     break 2
        !          4643:   fi
        !          4644: done
1.9       millert  4645: done
                   4646:
1.1       millert  4647: fi
                   4648: fi
1.9       millert  4649: NROFFPROG=$ac_cv_prog_NROFFPROG
1.1       millert  4650: if test -n "$NROFFPROG"; then
1.16    ! millert  4651:   echo "$as_me:$LINENO: result: $NROFFPROG" >&5
1.9       millert  4652: echo "${ECHO_T}$NROFFPROG" >&6
1.1       millert  4653: else
1.16    ! millert  4654:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  4655: echo "${ECHO_T}no" >&6
1.1       millert  4656: fi
                   4657:
                   4658: if test -z "$NROFFPROG"; then
                   4659:     MANTYPE="cat"
1.6       millert  4660:     mansrcdir='$(srcdir)'
1.1       millert  4661: fi
                   4662:
                   4663: ac_aux_dir=
1.9       millert  4664: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1.1       millert  4665:   if test -f $ac_dir/install-sh; then
                   4666:     ac_aux_dir=$ac_dir
                   4667:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   4668:     break
                   4669:   elif test -f $ac_dir/install.sh; then
                   4670:     ac_aux_dir=$ac_dir
                   4671:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   4672:     break
1.9       millert  4673:   elif test -f $ac_dir/shtool; then
                   4674:     ac_aux_dir=$ac_dir
                   4675:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   4676:     break
1.1       millert  4677:   fi
                   4678: done
                   4679: if test -z "$ac_aux_dir"; then
1.16    ! millert  4680:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1.9       millert  4681: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
                   4682:    { (exit 1); exit 1; }; }
                   4683: fi
                   4684: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
                   4685: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
                   4686: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1       millert  4687:
                   4688: # Make sure we can run config.sub.
1.9       millert  4689: $ac_config_sub sun4 >/dev/null 2>&1 ||
1.16    ! millert  4690:   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1.9       millert  4691: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
                   4692:    { (exit 1); exit 1; }; }
                   4693:
1.16    ! millert  4694: echo "$as_me:$LINENO: checking build system type" >&5
1.9       millert  4695: echo $ECHO_N "checking build system type... $ECHO_C" >&6
                   4696: if test "${ac_cv_build+set}" = set; then
                   4697:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4698: else
                   4699:   ac_cv_build_alias=$build_alias
                   4700: test -z "$ac_cv_build_alias" &&
                   4701:   ac_cv_build_alias=`$ac_config_guess`
                   4702: test -z "$ac_cv_build_alias" &&
1.16    ! millert  4703:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.9       millert  4704: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   4705:    { (exit 1); exit 1; }; }
                   4706: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1.16    ! millert  4707:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
        !          4708: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1.9       millert  4709:    { (exit 1); exit 1; }; }
                   4710:
                   4711: fi
1.16    ! millert  4712: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.9       millert  4713: echo "${ECHO_T}$ac_cv_build" >&6
                   4714: build=$ac_cv_build
                   4715: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4716: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4717: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   4718:
1.16    ! millert  4719:
        !          4720: echo "$as_me:$LINENO: checking host system type" >&5
1.9       millert  4721: echo $ECHO_N "checking host system type... $ECHO_C" >&6
                   4722: if test "${ac_cv_host+set}" = set; then
                   4723:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4724: else
                   4725:   ac_cv_host_alias=$host_alias
                   4726: test -z "$ac_cv_host_alias" &&
                   4727:   ac_cv_host_alias=$ac_cv_build_alias
                   4728: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1.16    ! millert  4729:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1.9       millert  4730: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
                   4731:    { (exit 1); exit 1; }; }
                   4732:
                   4733: fi
1.16    ! millert  4734: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.9       millert  4735: echo "${ECHO_T}$ac_cv_host" >&6
                   4736: host=$ac_cv_host
                   4737: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4738: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4739: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1       millert  4740:
1.16    ! millert  4741:
1.1       millert  4742: if test -n "$sudo_cv_prev_host"; then
                   4743:     if test "$sudo_cv_prev_host" != "$host"; then
                   4744:        echo ""
                   4745:        echo "Fatal Error: config.cache exists from another platform!"
                   4746:        echo "Please remove it and re-run configure."
                   4747:        echo ""
                   4748:        exit 1
                   4749:     else
1.16    ! millert  4750:        echo "$as_me:$LINENO: checking previous host type" >&5
1.9       millert  4751: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
                   4752:        if test "${sudo_cv_prev_host+set}" = set; then
                   4753:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4754: else
                   4755:   sudo_cv_prev_host="$host"
                   4756: fi
                   4757:
                   4758:        echo $sudo_cv_prev_host
                   4759:     fi
                   4760: else
                   4761:     # this will produce no output since there is no cached value
1.9       millert  4762:     if test "${sudo_cv_prev_host+set}" = set; then
                   4763:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4764: else
                   4765:   sudo_cv_prev_host="$host"
                   4766: fi
                   4767:
                   4768: fi
                   4769:
                   4770: if test -n "$host_os"; then
                   4771:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   4772:     OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
                   4773: else
                   4774:     OS="unknown"
                   4775:     OSREV=0
                   4776: fi
                   4777:
                   4778: case "$host" in
                   4779:     *-*-sunos4*)
                   4780:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   4781:                BROKEN_GETCWD=1
                   4782:
                   4783:                # system headers lack prototypes but gcc helps...
                   4784:                if test -n "$GCC"; then
                   4785:                    CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
                   4786:                fi
                   4787:
                   4788:                # check for password adjunct functions (shadow passwords)
                   4789:                if test "$CHECKSHADOW" = "true"; then
                   4790:
1.16    ! millert  4791:
1.9       millert  4792: for ac_func in getpwanam issecure
1.1       millert  4793: do
1.9       millert  4794: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  4795: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  4796: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4797: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4798:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4799: else
1.9       millert  4800:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4801: #line $LINENO "configure"
        !          4802: /* confdefs.h.  */
        !          4803: _ACEOF
        !          4804: cat confdefs.h >>conftest.$ac_ext
        !          4805: cat >>conftest.$ac_ext <<_ACEOF
        !          4806: /* end confdefs.h.  */
1.1       millert  4807: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  4808:     which can conflict with char $ac_func (); below.
        !          4809:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          4810:     <limits.h> exists even on freestanding compilers.  */
        !          4811: #ifdef __STDC__
        !          4812: # include <limits.h>
        !          4813: #else
        !          4814: # include <assert.h>
        !          4815: #endif
1.1       millert  4816: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4817: #ifdef __cplusplus
                   4818: extern "C"
1.16    ! millert  4819: {
1.9       millert  4820: #endif
1.1       millert  4821: /* We use char because int might match the return type of a gcc2
1.9       millert  4822:    builtin and then its argument prototype would still apply.  */
                   4823: char $ac_func ();
1.1       millert  4824: /* The GNU C library defines this for functions which it implements
                   4825:     to always fail with ENOSYS.  Some functions are actually named
                   4826:     something starting with __ and the normal name is an alias.  */
                   4827: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4828: choke me
                   4829: #else
1.16    ! millert  4830: char (*f) () = $ac_func;
        !          4831: #endif
        !          4832: #ifdef __cplusplus
        !          4833: }
1.1       millert  4834: #endif
                   4835:
1.16    ! millert  4836: int
        !          4837: main ()
        !          4838: {
        !          4839: return f != $ac_func;
1.9       millert  4840:   ;
                   4841:   return 0;
                   4842: }
                   4843: _ACEOF
                   4844: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  4845: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  4846:   (eval $ac_link) 2>&5
                   4847:   ac_status=$?
1.16    ! millert  4848:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4849:   (exit $ac_status); } &&
                   4850:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  4851:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4852:   (eval $ac_try) 2>&5
                   4853:   ac_status=$?
1.16    ! millert  4854:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4855:   (exit $ac_status); }; }; then
                   4856:   eval "$as_ac_var=yes"
                   4857: else
                   4858:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4859: sed 's/^/| /' conftest.$ac_ext >&5
        !          4860:
1.9       millert  4861: eval "$as_ac_var=no"
                   4862: fi
                   4863: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4864: fi
1.16    ! millert  4865: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  4866: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4867: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  4868:   cat >>confdefs.h <<_ACEOF
1.9       millert  4869: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  4870: _ACEOF
1.1       millert  4871:
                   4872: else
1.9       millert  4873:   break
1.1       millert  4874: fi
                   4875: done
                   4876:
1.16    ! millert  4877:
        !          4878:
        !          4879:
        !          4880:
1.1       millert  4881:                    CHECKSHADOW="false"
                   4882:                fi
                   4883:                ;;
                   4884:     *-*-solaris2*)
                   4885:                # To get the crypt(3) prototype (so we pass -Wall)
                   4886:                CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
                   4887:                # AFS support needs -lucb
                   4888:                if test "$with_AFS" = "yes"; then
                   4889:                    AFS_LIBS="-lc -lucb"
                   4890:                fi
1.9       millert  4891:                test -n "$mansectsu" || mansectsu=1m
                   4892:                test -n "$mansectform" || mansectform=4
1.1       millert  4893:                ;;
                   4894:     *-*-aix*)
                   4895:                # To get all prototypes (so we pass -Wall)
                   4896:                CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.9       millert  4897:                cat >>confdefs.h <<\EOF
1.1       millert  4898: #define _ALL_SOURCE 1
                   4899: EOF
                   4900:
                   4901:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   4902:                ;;
                   4903:     *-*-hiuxmpp*)
                   4904:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  4905:                    echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9       millert  4906: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   4907: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   4908:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4909: else
1.9       millert  4910:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4911: LIBS="-lsec  $LIBS"
1.9       millert  4912: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4913: #line $LINENO "configure"
        !          4914: /* confdefs.h.  */
        !          4915: _ACEOF
        !          4916: cat confdefs.h >>conftest.$ac_ext
        !          4917: cat >>conftest.$ac_ext <<_ACEOF
        !          4918: /* end confdefs.h.  */
1.9       millert  4919:
                   4920: /* Override any gcc2 internal prototype to avoid an error.  */
                   4921: #ifdef __cplusplus
                   4922: extern "C"
                   4923: #endif
1.1       millert  4924: /* We use char because int might match the return type of a gcc2
1.9       millert  4925:    builtin and then its argument prototype would still apply.  */
                   4926: char getprpwnam ();
                   4927: int
                   4928: main ()
                   4929: {
                   4930: getprpwnam ();
                   4931:   ;
                   4932:   return 0;
                   4933: }
                   4934: _ACEOF
                   4935: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  4936: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  4937:   (eval $ac_link) 2>&5
                   4938:   ac_status=$?
1.16    ! millert  4939:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4940:   (exit $ac_status); } &&
                   4941:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  4942:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4943:   (eval $ac_try) 2>&5
                   4944:   ac_status=$?
1.16    ! millert  4945:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4946:   (exit $ac_status); }; }; then
                   4947:   ac_cv_lib_sec_getprpwnam=yes
                   4948: else
                   4949:   echo "$as_me: failed program was:" >&5
1.16    ! millert  4950: sed 's/^/| /' conftest.$ac_ext >&5
        !          4951:
1.9       millert  4952: ac_cv_lib_sec_getprpwnam=no
                   4953: fi
                   4954: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4955: LIBS=$ac_check_lib_save_LIBS
                   4956: fi
1.16    ! millert  4957: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9       millert  4958: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   4959: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16    ! millert  4960:   cat >>confdefs.h <<\_ACEOF
1.1       millert  4961: #define HAVE_GETPRPWNAM 1
1.16    ! millert  4962: _ACEOF
1.1       millert  4963:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   4964: else
1.16    ! millert  4965:   echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9       millert  4966: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   4967: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   4968:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4969: else
1.9       millert  4970:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4971: LIBS="-lsecurity  $LIBS"
1.9       millert  4972: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  4973: #line $LINENO "configure"
        !          4974: /* confdefs.h.  */
        !          4975: _ACEOF
        !          4976: cat confdefs.h >>conftest.$ac_ext
        !          4977: cat >>conftest.$ac_ext <<_ACEOF
        !          4978: /* end confdefs.h.  */
1.9       millert  4979:
1.1       millert  4980: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4981: #ifdef __cplusplus
                   4982: extern "C"
                   4983: #endif
1.1       millert  4984: /* We use char because int might match the return type of a gcc2
1.9       millert  4985:    builtin and then its argument prototype would still apply.  */
                   4986: char getprpwnam ();
                   4987: int
                   4988: main ()
                   4989: {
                   4990: getprpwnam ();
                   4991:   ;
                   4992:   return 0;
                   4993: }
                   4994: _ACEOF
                   4995: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  4996: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  4997:   (eval $ac_link) 2>&5
                   4998:   ac_status=$?
1.16    ! millert  4999:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5000:   (exit $ac_status); } &&
                   5001:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5002:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5003:   (eval $ac_try) 2>&5
                   5004:   ac_status=$?
1.16    ! millert  5005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5006:   (exit $ac_status); }; }; then
                   5007:   ac_cv_lib_security_getprpwnam=yes
                   5008: else
                   5009:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5010: sed 's/^/| /' conftest.$ac_ext >&5
        !          5011:
1.9       millert  5012: ac_cv_lib_security_getprpwnam=no
                   5013: fi
                   5014: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5015: LIBS=$ac_check_lib_save_LIBS
                   5016: fi
1.16    ! millert  5017: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9       millert  5018: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   5019: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16    ! millert  5020:   cat >>confdefs.h <<\_ACEOF
1.1       millert  5021: #define HAVE_GETPRPWNAM 1
1.16    ! millert  5022: _ACEOF
1.1       millert  5023:  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
                   5024: fi
                   5025:
                   5026: fi
                   5027:
                   5028:                    CHECKSHADOW="false"
                   5029:                fi
1.9       millert  5030:                test -n "$mansectsu" || mansectsu=1m
                   5031:                test -n "$mansectform" || mansectform=4
1.1       millert  5032:                ;;
                   5033:     *-*-hpux1[0-9]*)
                   5034:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  5035:                    echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9       millert  5036: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   5037: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   5038:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5039: else
1.9       millert  5040:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5041: LIBS="-lsec  $LIBS"
1.9       millert  5042: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5043: #line $LINENO "configure"
        !          5044: /* confdefs.h.  */
        !          5045: _ACEOF
        !          5046: cat confdefs.h >>conftest.$ac_ext
        !          5047: cat >>conftest.$ac_ext <<_ACEOF
        !          5048: /* end confdefs.h.  */
1.9       millert  5049:
1.1       millert  5050: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5051: #ifdef __cplusplus
                   5052: extern "C"
                   5053: #endif
1.1       millert  5054: /* We use char because int might match the return type of a gcc2
1.9       millert  5055:    builtin and then its argument prototype would still apply.  */
                   5056: char getprpwnam ();
                   5057: int
                   5058: main ()
                   5059: {
                   5060: getprpwnam ();
                   5061:   ;
                   5062:   return 0;
                   5063: }
                   5064: _ACEOF
                   5065: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5066: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5067:   (eval $ac_link) 2>&5
                   5068:   ac_status=$?
1.16    ! millert  5069:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5070:   (exit $ac_status); } &&
                   5071:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5072:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5073:   (eval $ac_try) 2>&5
                   5074:   ac_status=$?
1.16    ! millert  5075:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5076:   (exit $ac_status); }; }; then
                   5077:   ac_cv_lib_sec_getprpwnam=yes
                   5078: else
                   5079:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5080: sed 's/^/| /' conftest.$ac_ext >&5
        !          5081:
1.9       millert  5082: ac_cv_lib_sec_getprpwnam=no
                   5083: fi
                   5084: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5085: LIBS=$ac_check_lib_save_LIBS
                   5086: fi
1.16    ! millert  5087: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9       millert  5088: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   5089: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16    ! millert  5090:   cat >>confdefs.h <<\_ACEOF
1.1       millert  5091: #define HAVE_GETPRPWNAM 1
1.16    ! millert  5092: _ACEOF
        !          5093:  echo "$as_me:$LINENO: checking for iscomsec in -lsec" >&5
1.9       millert  5094: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
                   5095: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
                   5096:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5097: else
1.9       millert  5098:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5099: LIBS="-lsec  $LIBS"
1.9       millert  5100: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5101: #line $LINENO "configure"
        !          5102: /* confdefs.h.  */
        !          5103: _ACEOF
        !          5104: cat confdefs.h >>conftest.$ac_ext
        !          5105: cat >>conftest.$ac_ext <<_ACEOF
        !          5106: /* end confdefs.h.  */
1.9       millert  5107:
1.1       millert  5108: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5109: #ifdef __cplusplus
                   5110: extern "C"
                   5111: #endif
1.1       millert  5112: /* We use char because int might match the return type of a gcc2
1.9       millert  5113:    builtin and then its argument prototype would still apply.  */
                   5114: char iscomsec ();
                   5115: int
                   5116: main ()
                   5117: {
                   5118: iscomsec ();
                   5119:   ;
                   5120:   return 0;
                   5121: }
                   5122: _ACEOF
                   5123: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5124: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5125:   (eval $ac_link) 2>&5
                   5126:   ac_status=$?
1.16    ! millert  5127:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5128:   (exit $ac_status); } &&
                   5129:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5130:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5131:   (eval $ac_try) 2>&5
                   5132:   ac_status=$?
1.16    ! millert  5133:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5134:   (exit $ac_status); }; }; then
                   5135:   ac_cv_lib_sec_iscomsec=yes
                   5136: else
                   5137:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5138: sed 's/^/| /' conftest.$ac_ext >&5
        !          5139:
1.9       millert  5140: ac_cv_lib_sec_iscomsec=no
                   5141: fi
                   5142: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5143: LIBS=$ac_check_lib_save_LIBS
                   5144: fi
1.16    ! millert  5145: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_iscomsec" >&5
1.9       millert  5146: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
                   5147: if test $ac_cv_lib_sec_iscomsec = yes; then
1.1       millert  5148:
1.16    ! millert  5149: cat >>confdefs.h <<\_ACEOF
1.1       millert  5150: #define HAVE_ISCOMSEC 1
1.16    ! millert  5151: _ACEOF
1.1       millert  5152:
                   5153: fi
                   5154:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   5155: fi
                   5156:
                   5157:                    CHECKSHADOW="false"
                   5158:                fi
                   5159:
                   5160:                # AFS support needs -lBSD
                   5161:                if test "$with_AFS" = "yes"; then
                   5162:                    AFS_LIBS="-lc -lBSD"
                   5163:                fi
1.9       millert  5164:                test -n "$mansectsu" || mansectsu=1m
                   5165:                test -n "$mansectform" || mansectform=4
1.1       millert  5166:                ;;
                   5167:     *-*-hpux9*)
1.4       millert  5168:
1.16    ! millert  5169: cat >>confdefs.h <<\_ACEOF
1.1       millert  5170: #define BROKEN_SYSLOG 1
1.16    ! millert  5171: _ACEOF
        !          5172:
1.1       millert  5173:
1.9       millert  5174:                if test "$CHECKSHADOW" = "true"; then
1.1       millert  5175:
1.9       millert  5176: for ac_func in getspwuid
1.1       millert  5177: do
1.9       millert  5178: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  5179: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  5180: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5181: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5182:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5183: else
1.9       millert  5184:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5185: #line $LINENO "configure"
        !          5186: /* confdefs.h.  */
        !          5187: _ACEOF
        !          5188: cat confdefs.h >>conftest.$ac_ext
        !          5189: cat >>conftest.$ac_ext <<_ACEOF
        !          5190: /* end confdefs.h.  */
1.1       millert  5191: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5192:     which can conflict with char $ac_func (); below.
        !          5193:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5194:     <limits.h> exists even on freestanding compilers.  */
        !          5195: #ifdef __STDC__
        !          5196: # include <limits.h>
        !          5197: #else
        !          5198: # include <assert.h>
        !          5199: #endif
1.1       millert  5200: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5201: #ifdef __cplusplus
                   5202: extern "C"
1.16    ! millert  5203: {
1.9       millert  5204: #endif
1.1       millert  5205: /* We use char because int might match the return type of a gcc2
1.9       millert  5206:    builtin and then its argument prototype would still apply.  */
                   5207: char $ac_func ();
1.1       millert  5208: /* The GNU C library defines this for functions which it implements
                   5209:     to always fail with ENOSYS.  Some functions are actually named
                   5210:     something starting with __ and the normal name is an alias.  */
                   5211: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5212: choke me
                   5213: #else
1.16    ! millert  5214: char (*f) () = $ac_func;
        !          5215: #endif
        !          5216: #ifdef __cplusplus
        !          5217: }
1.1       millert  5218: #endif
                   5219:
1.16    ! millert  5220: int
        !          5221: main ()
        !          5222: {
        !          5223: return f != $ac_func;
1.9       millert  5224:   ;
                   5225:   return 0;
                   5226: }
                   5227: _ACEOF
                   5228: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5229: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5230:   (eval $ac_link) 2>&5
                   5231:   ac_status=$?
1.16    ! millert  5232:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5233:   (exit $ac_status); } &&
                   5234:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5235:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5236:   (eval $ac_try) 2>&5
                   5237:   ac_status=$?
1.16    ! millert  5238:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5239:   (exit $ac_status); }; }; then
                   5240:   eval "$as_ac_var=yes"
                   5241: else
                   5242:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5243: sed 's/^/| /' conftest.$ac_ext >&5
        !          5244:
1.9       millert  5245: eval "$as_ac_var=no"
                   5246: fi
                   5247: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5248: fi
1.16    ! millert  5249: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  5250: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5251: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  5252:   cat >>confdefs.h <<_ACEOF
1.9       millert  5253: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  5254: _ACEOF
1.1       millert  5255:
                   5256: fi
                   5257: done
                   5258:
1.16    ! millert  5259:
        !          5260:
1.1       millert  5261:                    CHECKSHADOW="false"
                   5262:                fi
                   5263:
                   5264:                # DCE support (requires ANSI C compiler)
                   5265:                if test "$with_DCE" = "yes"; then
                   5266:                    # order of libs in 9.X is important. -lc_r must be last
                   5267:                    SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   5268:                    LIBS="${LIBS} -ldce -lM -lc_r"
1.4       millert  5269:                    CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1       millert  5270:                fi
                   5271:
                   5272:                # AFS support needs -lBSD
                   5273:                if test "$with_AFS" = "yes"; then
                   5274:                    AFS_LIBS="-lc -lBSD"
                   5275:                fi
1.9       millert  5276:                test -n "$mansectsu" || mansectsu=1m
                   5277:                test -n "$mansectform" || mansectform=4
1.1       millert  5278:                ;;
                   5279:     *-*-hpux*)
1.16    ! millert  5280:                cat >>confdefs.h <<\_ACEOF
1.1       millert  5281: #define BROKEN_SYSLOG 1
1.16    ! millert  5282: _ACEOF
        !          5283:
1.1       millert  5284:
                   5285:                # Not sure if setuid binaries are safe in < 9.x
                   5286:                if test -n "$GCC"; then
                   5287:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   5288:                else
                   5289:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   5290:                fi
                   5291:
                   5292:                # AFS support needs -lBSD
                   5293:                if test "$with_AFS" = "yes"; then
                   5294:                    AFS_LIBS="-lc -lBSD"
                   5295:                fi
1.9       millert  5296:                test -n "$mansectsu" || mansectsu=1m
                   5297:                test -n "$mansectform" || mansectform=4
1.1       millert  5298:                ;;
                   5299:     *-dec-osf*)
                   5300:                # ignore envariables wrt dynamic lib path
                   5301:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
                   5302:
1.16    ! millert  5303:                echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
1.9       millert  5304: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1       millert  5305:                # Check whether --enable-sia or --disable-sia was given.
                   5306: if test "${enable_sia+set}" = set; then
                   5307:   enableval="$enable_sia"
                   5308:    case "$enableval" in
1.16    ! millert  5309:                    yes)        echo "$as_me:$LINENO: result: no" >&5
1.9       millert  5310: echo "${ECHO_T}no" >&6
1.1       millert  5311:                                ;;
1.16    ! millert  5312:                    no)         echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  5313: echo "${ECHO_T}yes" >&6
1.1       millert  5314:                                CHECKSIA=false
                   5315:                                ;;
1.16    ! millert  5316:                    *)          echo "$as_me:$LINENO: result: no" >&5
1.9       millert  5317: echo "${ECHO_T}no" >&6
1.1       millert  5318:                                echo "Ignoring unknown argument to --enable-sia: $enableval"
                   5319:                                ;;
                   5320:                  esac
1.9       millert  5321:
1.1       millert  5322: else
1.16    ! millert  5323:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  5324: echo "${ECHO_T}no" >&6
                   5325: fi;
1.1       millert  5326:
                   5327:                # use SIA by default, if we have it, else SecureWare
                   5328:                # unless overridden on the command line
                   5329:                if test "$CHECKSIA" = "true"; then
1.16    ! millert  5330:                    echo "$as_me:$LINENO: checking for sia_ses_init" >&5
1.9       millert  5331: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
                   5332: if test "${ac_cv_func_sia_ses_init+set}" = set; then
                   5333:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5334: else
1.9       millert  5335:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5336: #line $LINENO "configure"
        !          5337: /* confdefs.h.  */
        !          5338: _ACEOF
        !          5339: cat confdefs.h >>conftest.$ac_ext
        !          5340: cat >>conftest.$ac_ext <<_ACEOF
        !          5341: /* end confdefs.h.  */
1.1       millert  5342: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5343:     which can conflict with char sia_ses_init (); below.
        !          5344:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5345:     <limits.h> exists even on freestanding compilers.  */
        !          5346: #ifdef __STDC__
        !          5347: # include <limits.h>
        !          5348: #else
        !          5349: # include <assert.h>
        !          5350: #endif
1.1       millert  5351: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5352: #ifdef __cplusplus
                   5353: extern "C"
1.16    ! millert  5354: {
1.9       millert  5355: #endif
1.1       millert  5356: /* We use char because int might match the return type of a gcc2
1.9       millert  5357:    builtin and then its argument prototype would still apply.  */
                   5358: char sia_ses_init ();
1.1       millert  5359: /* The GNU C library defines this for functions which it implements
                   5360:     to always fail with ENOSYS.  Some functions are actually named
                   5361:     something starting with __ and the normal name is an alias.  */
                   5362: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
                   5363: choke me
                   5364: #else
1.16    ! millert  5365: char (*f) () = sia_ses_init;
        !          5366: #endif
        !          5367: #ifdef __cplusplus
        !          5368: }
1.1       millert  5369: #endif
                   5370:
1.16    ! millert  5371: int
        !          5372: main ()
        !          5373: {
        !          5374: return f != sia_ses_init;
1.9       millert  5375:   ;
                   5376:   return 0;
                   5377: }
                   5378: _ACEOF
                   5379: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5380: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5381:   (eval $ac_link) 2>&5
                   5382:   ac_status=$?
1.16    ! millert  5383:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5384:   (exit $ac_status); } &&
                   5385:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5386:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5387:   (eval $ac_try) 2>&5
                   5388:   ac_status=$?
1.16    ! millert  5389:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5390:   (exit $ac_status); }; }; then
                   5391:   ac_cv_func_sia_ses_init=yes
                   5392: else
                   5393:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5394: sed 's/^/| /' conftest.$ac_ext >&5
        !          5395:
1.9       millert  5396: ac_cv_func_sia_ses_init=no
                   5397: fi
                   5398: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5399: fi
1.16    ! millert  5400: echo "$as_me:$LINENO: result: $ac_cv_func_sia_ses_init" >&5
1.9       millert  5401: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
                   5402: if test $ac_cv_func_sia_ses_init = yes; then
1.1       millert  5403:
1.16    ! millert  5404: cat >>confdefs.h <<\_ACEOF
1.1       millert  5405: #define HAVE_SIA 1
1.16    ! millert  5406: _ACEOF
1.9       millert  5407:
1.1       millert  5408:                    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
1.16    ! millert  5409:                        { { echo "$as_me:$LINENO: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&5
1.9       millert  5410: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&2;}
                   5411:    { (exit 1); exit 1; }; }
1.1       millert  5412:                    fi; CHECKSHADOW=false
                   5413: fi
                   5414:
                   5415:                fi
                   5416:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  5417:                    echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9       millert  5418: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   5419: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   5420:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5421: else
1.9       millert  5422:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5423: LIBS="-lsecurity  $LIBS"
1.9       millert  5424: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5425: #line $LINENO "configure"
        !          5426: /* confdefs.h.  */
        !          5427: _ACEOF
        !          5428: cat confdefs.h >>conftest.$ac_ext
        !          5429: cat >>conftest.$ac_ext <<_ACEOF
        !          5430: /* end confdefs.h.  */
1.9       millert  5431:
1.1       millert  5432: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5433: #ifdef __cplusplus
                   5434: extern "C"
                   5435: #endif
1.1       millert  5436: /* We use char because int might match the return type of a gcc2
1.9       millert  5437:    builtin and then its argument prototype would still apply.  */
                   5438: char getprpwnam ();
                   5439: int
                   5440: main ()
                   5441: {
                   5442: getprpwnam ();
                   5443:   ;
                   5444:   return 0;
                   5445: }
                   5446: _ACEOF
                   5447: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5448: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5449:   (eval $ac_link) 2>&5
                   5450:   ac_status=$?
1.16    ! millert  5451:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5452:   (exit $ac_status); } &&
                   5453:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5454:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5455:   (eval $ac_try) 2>&5
                   5456:   ac_status=$?
1.16    ! millert  5457:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5458:   (exit $ac_status); }; }; then
                   5459:   ac_cv_lib_security_getprpwnam=yes
                   5460: else
                   5461:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5462: sed 's/^/| /' conftest.$ac_ext >&5
        !          5463:
1.9       millert  5464: ac_cv_lib_security_getprpwnam=no
                   5465: fi
                   5466: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5467: LIBS=$ac_check_lib_save_LIBS
                   5468: fi
1.16    ! millert  5469: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9       millert  5470: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   5471: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1       millert  5472:   SECUREWARE=1
                   5473: fi
                   5474:
                   5475:                    CHECKSHADOW="false"
                   5476:                fi
                   5477:
                   5478:                if test -n "$SECUREWARE"; then
1.9       millert  5479:
1.16    ! millert  5480: cat >>confdefs.h <<\_ACEOF
1.1       millert  5481: #define HAVE_GETPRPWNAM 1
1.16    ! millert  5482: _ACEOF
1.1       millert  5483:
                   5484:                    # -ldb includes bogus versions of snprintf/vsnprintf
1.9       millert  5485:
                   5486: for ac_func in snprintf
                   5487: do
                   5488: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  5489: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  5490: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5491: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5492:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5493: else
1.9       millert  5494:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5495: #line $LINENO "configure"
        !          5496: /* confdefs.h.  */
        !          5497: _ACEOF
        !          5498: cat confdefs.h >>conftest.$ac_ext
        !          5499: cat >>conftest.$ac_ext <<_ACEOF
        !          5500: /* end confdefs.h.  */
1.1       millert  5501: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5502:     which can conflict with char $ac_func (); below.
        !          5503:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5504:     <limits.h> exists even on freestanding compilers.  */
        !          5505: #ifdef __STDC__
        !          5506: # include <limits.h>
        !          5507: #else
        !          5508: # include <assert.h>
        !          5509: #endif
1.1       millert  5510: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5511: #ifdef __cplusplus
                   5512: extern "C"
1.16    ! millert  5513: {
1.9       millert  5514: #endif
1.1       millert  5515: /* We use char because int might match the return type of a gcc2
1.9       millert  5516:    builtin and then its argument prototype would still apply.  */
                   5517: char $ac_func ();
1.1       millert  5518: /* The GNU C library defines this for functions which it implements
                   5519:     to always fail with ENOSYS.  Some functions are actually named
                   5520:     something starting with __ and the normal name is an alias.  */
1.9       millert  5521: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  5522: choke me
                   5523: #else
1.16    ! millert  5524: char (*f) () = $ac_func;
        !          5525: #endif
        !          5526: #ifdef __cplusplus
        !          5527: }
1.1       millert  5528: #endif
                   5529:
1.16    ! millert  5530: int
        !          5531: main ()
        !          5532: {
        !          5533: return f != $ac_func;
1.9       millert  5534:   ;
                   5535:   return 0;
                   5536: }
                   5537: _ACEOF
                   5538: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5539: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5540:   (eval $ac_link) 2>&5
                   5541:   ac_status=$?
1.16    ! millert  5542:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5543:   (exit $ac_status); } &&
                   5544:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5545:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5546:   (eval $ac_try) 2>&5
                   5547:   ac_status=$?
1.16    ! millert  5548:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5549:   (exit $ac_status); }; }; then
                   5550:   eval "$as_ac_var=yes"
                   5551: else
                   5552:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5553: sed 's/^/| /' conftest.$ac_ext >&5
        !          5554:
1.9       millert  5555: eval "$as_ac_var=no"
                   5556: fi
                   5557: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5558: fi
1.16    ! millert  5559: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  5560: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5561: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  5562:   cat >>confdefs.h <<_ACEOF
1.9       millert  5563: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  5564: _ACEOF
1.1       millert  5565:
                   5566: else
1.9       millert  5567:   NEED_SNPRINTF=1
1.1       millert  5568: fi
1.9       millert  5569: done
1.1       millert  5570:
1.16    ! millert  5571:
1.9       millert  5572: for ac_func in vsnprintf
                   5573: do
                   5574: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  5575: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  5576: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5577: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5578:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5579: else
1.9       millert  5580:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5581: #line $LINENO "configure"
        !          5582: /* confdefs.h.  */
        !          5583: _ACEOF
        !          5584: cat confdefs.h >>conftest.$ac_ext
        !          5585: cat >>conftest.$ac_ext <<_ACEOF
        !          5586: /* end confdefs.h.  */
1.1       millert  5587: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5588:     which can conflict with char $ac_func (); below.
        !          5589:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5590:     <limits.h> exists even on freestanding compilers.  */
        !          5591: #ifdef __STDC__
        !          5592: # include <limits.h>
        !          5593: #else
        !          5594: # include <assert.h>
        !          5595: #endif
1.1       millert  5596: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5597: #ifdef __cplusplus
                   5598: extern "C"
1.16    ! millert  5599: {
1.9       millert  5600: #endif
1.1       millert  5601: /* We use char because int might match the return type of a gcc2
1.9       millert  5602:    builtin and then its argument prototype would still apply.  */
                   5603: char $ac_func ();
1.1       millert  5604: /* The GNU C library defines this for functions which it implements
                   5605:     to always fail with ENOSYS.  Some functions are actually named
                   5606:     something starting with __ and the normal name is an alias.  */
1.9       millert  5607: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  5608: choke me
                   5609: #else
1.16    ! millert  5610: char (*f) () = $ac_func;
        !          5611: #endif
        !          5612: #ifdef __cplusplus
        !          5613: }
1.1       millert  5614: #endif
                   5615:
1.16    ! millert  5616: int
        !          5617: main ()
        !          5618: {
        !          5619: return f != $ac_func;
1.9       millert  5620:   ;
                   5621:   return 0;
                   5622: }
                   5623: _ACEOF
                   5624: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5625: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5626:   (eval $ac_link) 2>&5
                   5627:   ac_status=$?
1.16    ! millert  5628:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5629:   (exit $ac_status); } &&
                   5630:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5631:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5632:   (eval $ac_try) 2>&5
                   5633:   ac_status=$?
1.16    ! millert  5634:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5635:   (exit $ac_status); }; }; then
                   5636:   eval "$as_ac_var=yes"
                   5637: else
                   5638:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5639: sed 's/^/| /' conftest.$ac_ext >&5
        !          5640:
1.9       millert  5641: eval "$as_ac_var=no"
                   5642: fi
                   5643: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5644: fi
1.16    ! millert  5645: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  5646: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5647: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  5648:   cat >>confdefs.h <<_ACEOF
1.9       millert  5649: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  5650: _ACEOF
1.1       millert  5651:
                   5652: else
1.9       millert  5653:   NEED_SNPRINTF=1
1.1       millert  5654: fi
1.9       millert  5655: done
1.1       millert  5656:
                   5657:                    # 4.x and higher need -ldb too...
1.16    ! millert  5658:                    echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
1.9       millert  5659: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
                   5660: if test "${ac_cv_lib_db_dbopen+set}" = set; then
                   5661:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5662: else
1.9       millert  5663:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5664: LIBS="-ldb  $LIBS"
1.9       millert  5665: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5666: #line $LINENO "configure"
        !          5667: /* confdefs.h.  */
        !          5668: _ACEOF
        !          5669: cat confdefs.h >>conftest.$ac_ext
        !          5670: cat >>conftest.$ac_ext <<_ACEOF
        !          5671: /* end confdefs.h.  */
1.9       millert  5672:
1.1       millert  5673: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5674: #ifdef __cplusplus
                   5675: extern "C"
                   5676: #endif
1.1       millert  5677: /* We use char because int might match the return type of a gcc2
1.9       millert  5678:    builtin and then its argument prototype would still apply.  */
                   5679: char dbopen ();
                   5680: int
                   5681: main ()
                   5682: {
                   5683: dbopen ();
                   5684:   ;
                   5685:   return 0;
                   5686: }
                   5687: _ACEOF
                   5688: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5689: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5690:   (eval $ac_link) 2>&5
                   5691:   ac_status=$?
1.16    ! millert  5692:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5693:   (exit $ac_status); } &&
                   5694:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5695:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5696:   (eval $ac_try) 2>&5
                   5697:   ac_status=$?
1.16    ! millert  5698:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5699:   (exit $ac_status); }; }; then
                   5700:   ac_cv_lib_db_dbopen=yes
                   5701: else
                   5702:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5703: sed 's/^/| /' conftest.$ac_ext >&5
        !          5704:
1.9       millert  5705: ac_cv_lib_db_dbopen=no
                   5706: fi
                   5707: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5708: LIBS=$ac_check_lib_save_LIBS
                   5709: fi
1.16    ! millert  5710: echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
1.9       millert  5711: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
                   5712: if test $ac_cv_lib_db_dbopen = yes; then
                   5713:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1       millert  5714: else
                   5715:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   5716: fi
                   5717:
1.16    ! millert  5718:
1.9       millert  5719: for ac_func in dispcrypt
1.1       millert  5720: do
1.9       millert  5721: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  5722: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  5723: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5724: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5725:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5726: else
1.9       millert  5727:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5728: #line $LINENO "configure"
        !          5729: /* confdefs.h.  */
        !          5730: _ACEOF
        !          5731: cat confdefs.h >>conftest.$ac_ext
        !          5732: cat >>conftest.$ac_ext <<_ACEOF
        !          5733: /* end confdefs.h.  */
1.1       millert  5734: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5735:     which can conflict with char $ac_func (); below.
        !          5736:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5737:     <limits.h> exists even on freestanding compilers.  */
        !          5738: #ifdef __STDC__
        !          5739: # include <limits.h>
        !          5740: #else
        !          5741: # include <assert.h>
        !          5742: #endif
1.1       millert  5743: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5744: #ifdef __cplusplus
                   5745: extern "C"
1.16    ! millert  5746: {
1.9       millert  5747: #endif
1.1       millert  5748: /* We use char because int might match the return type of a gcc2
1.9       millert  5749:    builtin and then its argument prototype would still apply.  */
                   5750: char $ac_func ();
1.1       millert  5751: /* The GNU C library defines this for functions which it implements
                   5752:     to always fail with ENOSYS.  Some functions are actually named
                   5753:     something starting with __ and the normal name is an alias.  */
                   5754: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5755: choke me
                   5756: #else
1.16    ! millert  5757: char (*f) () = $ac_func;
        !          5758: #endif
        !          5759: #ifdef __cplusplus
        !          5760: }
1.1       millert  5761: #endif
                   5762:
1.16    ! millert  5763: int
        !          5764: main ()
        !          5765: {
        !          5766: return f != $ac_func;
1.9       millert  5767:   ;
                   5768:   return 0;
                   5769: }
                   5770: _ACEOF
                   5771: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5772: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5773:   (eval $ac_link) 2>&5
                   5774:   ac_status=$?
1.16    ! millert  5775:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5776:   (exit $ac_status); } &&
                   5777:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5778:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5779:   (eval $ac_try) 2>&5
                   5780:   ac_status=$?
1.16    ! millert  5781:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5782:   (exit $ac_status); }; }; then
                   5783:   eval "$as_ac_var=yes"
                   5784: else
                   5785:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5786: sed 's/^/| /' conftest.$ac_ext >&5
        !          5787:
1.9       millert  5788: eval "$as_ac_var=no"
                   5789: fi
                   5790: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5791: fi
1.16    ! millert  5792: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  5793: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5794: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  5795:   cat >>confdefs.h <<_ACEOF
1.9       millert  5796: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  5797: _ACEOF
1.1       millert  5798:
                   5799: fi
                   5800: done
                   5801:
1.16    ! millert  5802:                    echo "$as_me:$LINENO: checking for broken /usr/include/prot.h" >&5
1.9       millert  5803: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
                   5804:                    cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5805: #line $LINENO "configure"
        !          5806: /* confdefs.h.  */
        !          5807: _ACEOF
        !          5808: cat confdefs.h >>conftest.$ac_ext
        !          5809: cat >>conftest.$ac_ext <<_ACEOF
        !          5810: /* end confdefs.h.  */
1.1       millert  5811:
                   5812: #include <sys/types.h>
                   5813: #include <sys/security.h>
                   5814: #include <prot.h>
1.9       millert  5815:
                   5816: int
                   5817: main ()
                   5818: {
1.1       millert  5819: exit(0);
1.9       millert  5820:   ;
                   5821:   return 0;
                   5822: }
                   5823: _ACEOF
                   5824: rm -f conftest.$ac_objext
1.16    ! millert  5825: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  5826:   (eval $ac_compile) 2>&5
                   5827:   ac_status=$?
1.16    ! millert  5828:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5829:   (exit $ac_status); } &&
                   5830:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  5831:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5832:   (eval $ac_try) 2>&5
                   5833:   ac_status=$?
1.16    ! millert  5834:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5835:   (exit $ac_status); }; }; then
1.16    ! millert  5836:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  5837: echo "${ECHO_T}no" >&6
                   5838: else
                   5839:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5840: sed 's/^/| /' conftest.$ac_ext >&5
        !          5841:
        !          5842: echo "$as_me:$LINENO: result: yes, fixing locally" >&5
1.9       millert  5843: echo "${ECHO_T}yes, fixing locally" >&6
1.1       millert  5844:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.9       millert  5845:
1.1       millert  5846: fi
1.9       millert  5847: rm -f conftest.$ac_objext conftest.$ac_ext
                   5848:                elif test "$CHECKSIA" = "true"; then
1.1       millert  5849:                    with_passwd=no
                   5850:                    AUTH_OBJS="sia.o"
                   5851:                fi
1.9       millert  5852:                test -n "$mansectsu" || mansectsu=8
                   5853:                test -n "$mansectform" || mansectform=4
1.1       millert  5854:                ;;
                   5855:     *-*-irix*)
                   5856:                CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
                   5857:                if test -z "$NROFFPROG"; then
1.16    ! millert  5858:                    MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
1.1       millert  5859:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   5860:                        if test -d /usr/share/catman/local; then
                   5861:                            mandir="/usr/share/catman/local"
                   5862:                        else
                   5863:                            mandir="/usr/catman/local"
                   5864:                        fi
                   5865:                    fi
                   5866:                else
                   5867:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   5868:                        if test -d "/usr/share/man/local"; then
                   5869:                            mandir="/usr/share/man/local"
                   5870:                        else
                   5871:                            mandir="/usr/man/local"
                   5872:                        fi
                   5873:                    fi
                   5874:                fi
                   5875:                # IRIX <= 4 needs -lsun
                   5876:                if test "$OSREV" -le 4; then
1.16    ! millert  5877:                    echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
1.9       millert  5878: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
                   5879: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   5880:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5881: else
1.9       millert  5882:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5883: LIBS="-lsun  $LIBS"
1.9       millert  5884: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5885: #line $LINENO "configure"
        !          5886: /* confdefs.h.  */
        !          5887: _ACEOF
        !          5888: cat confdefs.h >>conftest.$ac_ext
        !          5889: cat >>conftest.$ac_ext <<_ACEOF
        !          5890: /* end confdefs.h.  */
1.9       millert  5891:
1.1       millert  5892: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5893: #ifdef __cplusplus
                   5894: extern "C"
                   5895: #endif
1.1       millert  5896: /* We use char because int might match the return type of a gcc2
1.9       millert  5897:    builtin and then its argument prototype would still apply.  */
                   5898: char getpwnam ();
                   5899: int
                   5900: main ()
                   5901: {
                   5902: getpwnam ();
                   5903:   ;
                   5904:   return 0;
                   5905: }
                   5906: _ACEOF
                   5907: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5908: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5909:   (eval $ac_link) 2>&5
                   5910:   ac_status=$?
1.16    ! millert  5911:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5912:   (exit $ac_status); } &&
                   5913:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  5914:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  5915:   (eval $ac_try) 2>&5
                   5916:   ac_status=$?
1.16    ! millert  5917:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  5918:   (exit $ac_status); }; }; then
                   5919:   ac_cv_lib_sun_getpwnam=yes
                   5920: else
                   5921:   echo "$as_me: failed program was:" >&5
1.16    ! millert  5922: sed 's/^/| /' conftest.$ac_ext >&5
        !          5923:
1.9       millert  5924: ac_cv_lib_sun_getpwnam=no
                   5925: fi
                   5926: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5927: LIBS=$ac_check_lib_save_LIBS
                   5928: fi
1.16    ! millert  5929: echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
1.9       millert  5930: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
                   5931: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1       millert  5932:   LIBS="${LIBS} -lsun"
                   5933: fi
                   5934:
                   5935:                fi
1.9       millert  5936:                test -n "$mansectsu" || mansectsu=1m
                   5937:                test -n "$mansectform" || mansectform=4
1.1       millert  5938:                ;;
                   5939:     *-*-linux*)
                   5940:                # Some Linux versions need to link with -lshadow
                   5941:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5942:
                   5943: for ac_func in getspnam
                   5944: do
                   5945: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  5946: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  5947: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5948: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5949:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5950: else
1.9       millert  5951:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  5952: #line $LINENO "configure"
        !          5953: /* confdefs.h.  */
        !          5954: _ACEOF
        !          5955: cat confdefs.h >>conftest.$ac_ext
        !          5956: cat >>conftest.$ac_ext <<_ACEOF
        !          5957: /* end confdefs.h.  */
1.1       millert  5958: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  5959:     which can conflict with char $ac_func (); below.
        !          5960:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          5961:     <limits.h> exists even on freestanding compilers.  */
        !          5962: #ifdef __STDC__
        !          5963: # include <limits.h>
        !          5964: #else
        !          5965: # include <assert.h>
        !          5966: #endif
1.1       millert  5967: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5968: #ifdef __cplusplus
                   5969: extern "C"
1.16    ! millert  5970: {
1.9       millert  5971: #endif
1.1       millert  5972: /* We use char because int might match the return type of a gcc2
1.9       millert  5973:    builtin and then its argument prototype would still apply.  */
                   5974: char $ac_func ();
1.1       millert  5975: /* The GNU C library defines this for functions which it implements
                   5976:     to always fail with ENOSYS.  Some functions are actually named
                   5977:     something starting with __ and the normal name is an alias.  */
1.9       millert  5978: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  5979: choke me
                   5980: #else
1.16    ! millert  5981: char (*f) () = $ac_func;
        !          5982: #endif
        !          5983: #ifdef __cplusplus
        !          5984: }
1.1       millert  5985: #endif
                   5986:
1.16    ! millert  5987: int
        !          5988: main ()
        !          5989: {
        !          5990: return f != $ac_func;
1.9       millert  5991:   ;
                   5992:   return 0;
                   5993: }
                   5994: _ACEOF
                   5995: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  5996: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  5997:   (eval $ac_link) 2>&5
                   5998:   ac_status=$?
1.16    ! millert  5999:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6000:   (exit $ac_status); } &&
                   6001:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6002:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6003:   (eval $ac_try) 2>&5
                   6004:   ac_status=$?
1.16    ! millert  6005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6006:   (exit $ac_status); }; }; then
                   6007:   eval "$as_ac_var=yes"
                   6008: else
                   6009:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6010: sed 's/^/| /' conftest.$ac_ext >&5
        !          6011:
1.9       millert  6012: eval "$as_ac_var=no"
                   6013: fi
                   6014: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6015: fi
1.16    ! millert  6016: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  6017: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   6018: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  6019:   cat >>confdefs.h <<_ACEOF
1.9       millert  6020: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  6021: _ACEOF
1.1       millert  6022:
                   6023: else
1.16    ! millert  6024:   echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
1.9       millert  6025: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
                   6026: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
                   6027:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6028: else
1.9       millert  6029:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6030: LIBS="-lshadow  $LIBS"
1.9       millert  6031: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6032: #line $LINENO "configure"
        !          6033: /* confdefs.h.  */
        !          6034: _ACEOF
        !          6035: cat confdefs.h >>conftest.$ac_ext
        !          6036: cat >>conftest.$ac_ext <<_ACEOF
        !          6037: /* end confdefs.h.  */
1.9       millert  6038:
1.1       millert  6039: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6040: #ifdef __cplusplus
                   6041: extern "C"
                   6042: #endif
1.1       millert  6043: /* We use char because int might match the return type of a gcc2
1.9       millert  6044:    builtin and then its argument prototype would still apply.  */
                   6045: char getspnam ();
                   6046: int
                   6047: main ()
                   6048: {
                   6049: getspnam ();
                   6050:   ;
                   6051:   return 0;
                   6052: }
                   6053: _ACEOF
                   6054: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6055: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6056:   (eval $ac_link) 2>&5
                   6057:   ac_status=$?
1.16    ! millert  6058:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6059:   (exit $ac_status); } &&
                   6060:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6061:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6062:   (eval $ac_try) 2>&5
                   6063:   ac_status=$?
1.16    ! millert  6064:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6065:   (exit $ac_status); }; }; then
                   6066:   ac_cv_lib_shadow_getspnam=yes
                   6067: else
                   6068:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6069: sed 's/^/| /' conftest.$ac_ext >&5
        !          6070:
1.9       millert  6071: ac_cv_lib_shadow_getspnam=no
                   6072: fi
                   6073: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6074: LIBS=$ac_check_lib_save_LIBS
                   6075: fi
1.16    ! millert  6076: echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
1.9       millert  6077: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
                   6078: if test $ac_cv_lib_shadow_getspnam = yes; then
1.16    ! millert  6079:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6080: #define HAVE_GETSPNAM 1
1.16    ! millert  6081: _ACEOF
1.1       millert  6082:  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
                   6083: fi
                   6084:
                   6085: fi
1.9       millert  6086: done
1.1       millert  6087:
                   6088:                    CHECKSHADOW="false"
                   6089:                fi
                   6090:                ;;
                   6091:     *-convex-bsd*)
1.9       millert  6092:                cat >>confdefs.h <<\EOF
1.1       millert  6093: #define _CONVEX_SOURCE 1
                   6094: EOF
                   6095:
                   6096:                if test -z "$GCC"; then
                   6097:                    CFLAGS="${CFLAGS} -D__STDC__"
                   6098:                fi
                   6099:
                   6100:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6101:                    echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9       millert  6102: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   6103: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   6104:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6105: else
1.9       millert  6106:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6107: LIBS="-lsec  $LIBS"
1.9       millert  6108: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6109: #line $LINENO "configure"
        !          6110: /* confdefs.h.  */
        !          6111: _ACEOF
        !          6112: cat confdefs.h >>conftest.$ac_ext
        !          6113: cat >>conftest.$ac_ext <<_ACEOF
        !          6114: /* end confdefs.h.  */
1.9       millert  6115:
1.1       millert  6116: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6117: #ifdef __cplusplus
                   6118: extern "C"
                   6119: #endif
1.1       millert  6120: /* We use char because int might match the return type of a gcc2
1.9       millert  6121:    builtin and then its argument prototype would still apply.  */
                   6122: char getprpwnam ();
                   6123: int
                   6124: main ()
                   6125: {
                   6126: getprpwnam ();
                   6127:   ;
                   6128:   return 0;
                   6129: }
                   6130: _ACEOF
                   6131: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6132: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6133:   (eval $ac_link) 2>&5
                   6134:   ac_status=$?
1.16    ! millert  6135:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6136:   (exit $ac_status); } &&
                   6137:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6138:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6139:   (eval $ac_try) 2>&5
                   6140:   ac_status=$?
1.16    ! millert  6141:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6142:   (exit $ac_status); }; }; then
                   6143:   ac_cv_lib_sec_getprpwnam=yes
                   6144: else
                   6145:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6146: sed 's/^/| /' conftest.$ac_ext >&5
        !          6147:
1.9       millert  6148: ac_cv_lib_sec_getprpwnam=no
                   6149: fi
                   6150: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6151: LIBS=$ac_check_lib_save_LIBS
                   6152: fi
1.16    ! millert  6153: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9       millert  6154: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   6155: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16    ! millert  6156:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6157: #define HAVE_GETPRPWNAM 1
1.16    ! millert  6158: _ACEOF
1.1       millert  6159:  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
                   6160: fi
                   6161:
                   6162:                    CHECKSHADOW="false"
                   6163:                fi
                   6164:                ;;
                   6165:     *-*-ultrix*)
                   6166:                OS="ultrix"
                   6167:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6168:                    echo "$as_me:$LINENO: checking for getauthuid in -lauth" >&5
1.9       millert  6169: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
                   6170: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
                   6171:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6172: else
1.9       millert  6173:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6174: LIBS="-lauth  $LIBS"
1.9       millert  6175: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6176: #line $LINENO "configure"
        !          6177: /* confdefs.h.  */
        !          6178: _ACEOF
        !          6179: cat confdefs.h >>conftest.$ac_ext
        !          6180: cat >>conftest.$ac_ext <<_ACEOF
        !          6181: /* end confdefs.h.  */
1.9       millert  6182:
1.1       millert  6183: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6184: #ifdef __cplusplus
                   6185: extern "C"
                   6186: #endif
1.1       millert  6187: /* We use char because int might match the return type of a gcc2
1.9       millert  6188:    builtin and then its argument prototype would still apply.  */
                   6189: char getauthuid ();
                   6190: int
                   6191: main ()
                   6192: {
                   6193: getauthuid ();
                   6194:   ;
                   6195:   return 0;
                   6196: }
                   6197: _ACEOF
                   6198: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6199: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6200:   (eval $ac_link) 2>&5
                   6201:   ac_status=$?
1.16    ! millert  6202:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6203:   (exit $ac_status); } &&
                   6204:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6205:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6206:   (eval $ac_try) 2>&5
                   6207:   ac_status=$?
1.16    ! millert  6208:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6209:   (exit $ac_status); }; }; then
                   6210:   ac_cv_lib_auth_getauthuid=yes
                   6211: else
                   6212:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6213: sed 's/^/| /' conftest.$ac_ext >&5
        !          6214:
1.9       millert  6215: ac_cv_lib_auth_getauthuid=no
                   6216: fi
                   6217: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6218: LIBS=$ac_check_lib_save_LIBS
                   6219: fi
1.16    ! millert  6220: echo "$as_me:$LINENO: result: $ac_cv_lib_auth_getauthuid" >&5
1.9       millert  6221: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
                   6222: if test $ac_cv_lib_auth_getauthuid = yes; then
1.1       millert  6223:
1.16    ! millert  6224: cat >>confdefs.h <<\_ACEOF
1.1       millert  6225: #define HAVE_GETAUTHUID 1
1.16    ! millert  6226: _ACEOF
1.1       millert  6227:  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
                   6228: fi
                   6229:
                   6230:                    CHECKSHADOW="false"
                   6231:                fi
                   6232:                ;;
                   6233:     *-*-riscos*)
                   6234:                LIBS="${LIBS} -lsun -lbsd"
                   6235:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   6236:                OSDEFS="${OSDEFS} -D_MIPS"
1.9       millert  6237:                test -n "$mansectsu" || mansectsu=1m
                   6238:                test -n "$mansectform" || mansectform=4
1.1       millert  6239:                ;;
                   6240:     *-*-isc*)
                   6241:                OSDEFS="${OSDEFS} -D_ISC"
                   6242:                LIB_CRYPT=1
                   6243:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   6244:                LIBS="${LIBS} -lcrypt"
                   6245:
                   6246:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6247:                    echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9       millert  6248: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
                   6249: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
                   6250:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6251: else
1.9       millert  6252:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6253: LIBS="-lsec  $LIBS"
1.9       millert  6254: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6255: #line $LINENO "configure"
        !          6256: /* confdefs.h.  */
        !          6257: _ACEOF
        !          6258: cat confdefs.h >>conftest.$ac_ext
        !          6259: cat >>conftest.$ac_ext <<_ACEOF
        !          6260: /* end confdefs.h.  */
1.9       millert  6261:
1.1       millert  6262: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6263: #ifdef __cplusplus
                   6264: extern "C"
                   6265: #endif
1.1       millert  6266: /* We use char because int might match the return type of a gcc2
1.9       millert  6267:    builtin and then its argument prototype would still apply.  */
                   6268: char getspnam ();
                   6269: int
                   6270: main ()
                   6271: {
                   6272: getspnam ();
                   6273:   ;
                   6274:   return 0;
                   6275: }
                   6276: _ACEOF
                   6277: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6278: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6279:   (eval $ac_link) 2>&5
                   6280:   ac_status=$?
1.16    ! millert  6281:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6282:   (exit $ac_status); } &&
                   6283:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6284:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6285:   (eval $ac_try) 2>&5
                   6286:   ac_status=$?
1.16    ! millert  6287:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6288:   (exit $ac_status); }; }; then
                   6289:   ac_cv_lib_sec_getspnam=yes
                   6290: else
                   6291:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6292: sed 's/^/| /' conftest.$ac_ext >&5
        !          6293:
1.9       millert  6294: ac_cv_lib_sec_getspnam=no
                   6295: fi
                   6296: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6297: LIBS=$ac_check_lib_save_LIBS
                   6298: fi
1.16    ! millert  6299: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9       millert  6300: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
                   6301: if test $ac_cv_lib_sec_getspnam = yes; then
1.16    ! millert  6302:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6303: #define HAVE_GETSPNAM 1
1.16    ! millert  6304: _ACEOF
1.1       millert  6305:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   6306: fi
                   6307:
                   6308:                    CHECKSHADOW="false"
                   6309:                fi
1.9       millert  6310:                test -n "$mansectsu" || mansectsu=1m
                   6311:                test -n "$mansectform" || mansectform=4
1.1       millert  6312:                ;;
1.9       millert  6313:     *-*-sco*|*-sco-*)
1.1       millert  6314:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6315:                    echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9       millert  6316: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
                   6317: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
                   6318:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6319: else
1.9       millert  6320:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6321: LIBS="-lprot -lx $LIBS"
1.9       millert  6322: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6323: #line $LINENO "configure"
        !          6324: /* confdefs.h.  */
        !          6325: _ACEOF
        !          6326: cat confdefs.h >>conftest.$ac_ext
        !          6327: cat >>conftest.$ac_ext <<_ACEOF
        !          6328: /* end confdefs.h.  */
1.9       millert  6329:
1.1       millert  6330: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6331: #ifdef __cplusplus
                   6332: extern "C"
                   6333: #endif
1.1       millert  6334: /* We use char because int might match the return type of a gcc2
1.9       millert  6335:    builtin and then its argument prototype would still apply.  */
                   6336: char getprpwnam ();
                   6337: int
                   6338: main ()
                   6339: {
                   6340: getprpwnam ();
                   6341:   ;
                   6342:   return 0;
                   6343: }
                   6344: _ACEOF
                   6345: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6346: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6347:   (eval $ac_link) 2>&5
                   6348:   ac_status=$?
1.16    ! millert  6349:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6350:   (exit $ac_status); } &&
                   6351:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6352:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6353:   (eval $ac_try) 2>&5
                   6354:   ac_status=$?
1.16    ! millert  6355:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6356:   (exit $ac_status); }; }; then
                   6357:   ac_cv_lib_prot_getprpwnam_lx=yes
                   6358: else
                   6359:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6360: sed 's/^/| /' conftest.$ac_ext >&5
        !          6361:
1.9       millert  6362: ac_cv_lib_prot_getprpwnam_lx=no
                   6363: fi
                   6364: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6365: LIBS=$ac_check_lib_save_LIBS
                   6366: fi
1.16    ! millert  6367: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
1.9       millert  6368: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
                   6369: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
1.16    ! millert  6370:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6371: #define HAVE_GETPRPWNAM 1
1.16    ! millert  6372: _ACEOF
1.1       millert  6373:  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
                   6374: fi
                   6375:
1.16    ! millert  6376:                    echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9       millert  6377: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
                   6378: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
                   6379:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6380: else
1.9       millert  6381:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6382: LIBS="-lgen  $LIBS"
1.9       millert  6383: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6384: #line $LINENO "configure"
        !          6385: /* confdefs.h.  */
        !          6386: _ACEOF
        !          6387: cat confdefs.h >>conftest.$ac_ext
        !          6388: cat >>conftest.$ac_ext <<_ACEOF
        !          6389: /* end confdefs.h.  */
1.9       millert  6390:
1.1       millert  6391: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6392: #ifdef __cplusplus
                   6393: extern "C"
                   6394: #endif
1.1       millert  6395: /* We use char because int might match the return type of a gcc2
1.9       millert  6396:    builtin and then its argument prototype would still apply.  */
                   6397: char getspnam ();
                   6398: int
                   6399: main ()
                   6400: {
                   6401: getspnam ();
                   6402:   ;
                   6403:   return 0;
                   6404: }
                   6405: _ACEOF
                   6406: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6407: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6408:   (eval $ac_link) 2>&5
                   6409:   ac_status=$?
1.16    ! millert  6410:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6411:   (exit $ac_status); } &&
                   6412:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6413:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6414:   (eval $ac_try) 2>&5
                   6415:   ac_status=$?
1.16    ! millert  6416:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6417:   (exit $ac_status); }; }; then
                   6418:   ac_cv_lib_gen_getspnam=yes
                   6419: else
                   6420:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6421: sed 's/^/| /' conftest.$ac_ext >&5
        !          6422:
1.9       millert  6423: ac_cv_lib_gen_getspnam=no
                   6424: fi
                   6425: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6426: LIBS=$ac_check_lib_save_LIBS
                   6427: fi
1.16    ! millert  6428: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9       millert  6429: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
                   6430: if test $ac_cv_lib_gen_getspnam = yes; then
1.16    ! millert  6431:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6432: #define HAVE_GETSPNAM 1
1.16    ! millert  6433: _ACEOF
1.1       millert  6434:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   6435: fi
                   6436:
                   6437:                    CHECKSHADOW="false"
                   6438:                fi
1.9       millert  6439:                test -n "$mansectsu" || mansectsu=1m
                   6440:                test -n "$mansectform" || mansectform=4
1.1       millert  6441:                ;;
1.10      millert  6442:     m88k-motorola-sysv*)
                   6443:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   6444:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   6445:                test -n "$mansectsu" || mansectsu=1m
                   6446:                test -n "$mansectform" || mansectform=4
                   6447:                ;;
1.1       millert  6448:     *-sequent-sysv*)
                   6449:                if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6450:                    echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9       millert  6451: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
                   6452: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
                   6453:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6454: else
1.9       millert  6455:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6456: LIBS="-lsec  $LIBS"
1.9       millert  6457: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6458: #line $LINENO "configure"
        !          6459: /* confdefs.h.  */
        !          6460: _ACEOF
        !          6461: cat confdefs.h >>conftest.$ac_ext
        !          6462: cat >>conftest.$ac_ext <<_ACEOF
        !          6463: /* end confdefs.h.  */
1.9       millert  6464:
1.1       millert  6465: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6466: #ifdef __cplusplus
                   6467: extern "C"
                   6468: #endif
1.1       millert  6469: /* We use char because int might match the return type of a gcc2
1.9       millert  6470:    builtin and then its argument prototype would still apply.  */
                   6471: char getspnam ();
                   6472: int
                   6473: main ()
                   6474: {
                   6475: getspnam ();
                   6476:   ;
                   6477:   return 0;
                   6478: }
                   6479: _ACEOF
                   6480: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6482:   (eval $ac_link) 2>&5
                   6483:   ac_status=$?
1.16    ! millert  6484:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6485:   (exit $ac_status); } &&
                   6486:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6487:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6488:   (eval $ac_try) 2>&5
                   6489:   ac_status=$?
1.16    ! millert  6490:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6491:   (exit $ac_status); }; }; then
                   6492:   ac_cv_lib_sec_getspnam=yes
                   6493: else
                   6494:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6495: sed 's/^/| /' conftest.$ac_ext >&5
        !          6496:
1.9       millert  6497: ac_cv_lib_sec_getspnam=no
                   6498: fi
                   6499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6500: LIBS=$ac_check_lib_save_LIBS
                   6501: fi
1.16    ! millert  6502: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9       millert  6503: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
                   6504: if test $ac_cv_lib_sec_getspnam = yes; then
1.16    ! millert  6505:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6506: #define HAVE_GETSPNAM 1
1.16    ! millert  6507: _ACEOF
1.1       millert  6508:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   6509: fi
                   6510:
                   6511:                    CHECKSHADOW="false"
                   6512:                fi
1.9       millert  6513:                test -n "$mansectsu" || mansectsu=1m
                   6514:                test -n "$mansectform" || mansectform=4
                   6515:                ;;
                   6516:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.16    ! millert  6517:                echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
1.9       millert  6518: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
                   6519: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   6520:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6521: else
                   6522:   ac_check_lib_save_LIBS=$LIBS
                   6523: LIBS="-lc89  $LIBS"
                   6524: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6525: #line $LINENO "configure"
        !          6526: /* confdefs.h.  */
        !          6527: _ACEOF
        !          6528: cat confdefs.h >>conftest.$ac_ext
        !          6529: cat >>conftest.$ac_ext <<_ACEOF
        !          6530: /* end confdefs.h.  */
1.9       millert  6531:
                   6532: /* Override any gcc2 internal prototype to avoid an error.  */
                   6533: #ifdef __cplusplus
                   6534: extern "C"
                   6535: #endif
                   6536: /* We use char because int might match the return type of a gcc2
                   6537:    builtin and then its argument prototype would still apply.  */
                   6538: char strcasecmp ();
                   6539: int
                   6540: main ()
                   6541: {
                   6542: strcasecmp ();
                   6543:   ;
                   6544:   return 0;
                   6545: }
                   6546: _ACEOF
                   6547: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6548: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6549:   (eval $ac_link) 2>&5
                   6550:   ac_status=$?
1.16    ! millert  6551:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6552:   (exit $ac_status); } &&
                   6553:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6554:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6555:   (eval $ac_try) 2>&5
                   6556:   ac_status=$?
1.16    ! millert  6557:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6558:   (exit $ac_status); }; }; then
                   6559:   ac_cv_lib_c89_strcasecmp=yes
                   6560: else
                   6561:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6562: sed 's/^/| /' conftest.$ac_ext >&5
        !          6563:
1.9       millert  6564: ac_cv_lib_c89_strcasecmp=no
                   6565: fi
                   6566: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6567: LIBS=$ac_check_lib_save_LIBS
                   6568: fi
1.16    ! millert  6569: echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
1.9       millert  6570: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
                   6571: if test $ac_cv_lib_c89_strcasecmp = yes; then
1.16    ! millert  6572:   cat >>confdefs.h <<\_ACEOF
1.9       millert  6573: #define HAVE_STRCASECMP 1
1.16    ! millert  6574: _ACEOF
1.9       millert  6575:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   6576: fi
                   6577:
                   6578:                test -n "$mansectsu" || mansectsu=1m
                   6579:                test -n "$mansectform" || mansectform=4
1.1       millert  6580:                ;;
1.9       millert  6581:     *-ccur-sysv4*|*-ccur-sysvr4*)
1.1       millert  6582:                LIBS="${LIBS} -lgen"
                   6583:                SUDO_LIBS="${SUDO_LIBS} -lgen"
1.9       millert  6584:                test -n "$mansectsu" || mansectsu=1m
                   6585:                test -n "$mansectform" || mansectform=4
1.1       millert  6586:                ;;
                   6587:     *-*-bsdi*)
1.16    ! millert  6588:                SKIP_SETREUID=yes
1.6       millert  6589:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   6590:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   6591:                    case "$OSREV" in
                   6592:                        2|3)    echo 'using shlicc as CC'
                   6593:                                ac_cv_prog_CC=shlicc
                   6594:                                CC="$ac_cv_prog_CC"
                   6595:                                ;;
                   6596:                    esac
                   6597:                fi
                   6598:                ;;
                   6599:     *-*-freebsd*)
1.13      millert  6600:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   6601:                # backported to 2.0.5.  We just take 2.1 and above...
                   6602:                case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
                   6603:                0.*|1.*|2.0*)
1.16    ! millert  6604:                    SKIP_SETREUID=yes
1.13      millert  6605:                    ;;
                   6606:                esac
1.7       millert  6607:                if test "$with_logincap" = "yes"; then
                   6608:                    SUDO_LIBS="${SUDO_LIBS} -lutil"
                   6609:                fi
1.6       millert  6610:                if test "$with_skey" = "yes"; then
                   6611:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   6612:                fi
                   6613:                if test "$CHECKSHADOW" = "true"; then
                   6614:                    CHECKSHADOW="false"
1.1       millert  6615:                fi
                   6616:                ;;
1.9       millert  6617:     *-*-*openbsd*)
1.16    ! millert  6618:                SKIP_SETREUID=yes
1.9       millert  6619:                if test "$CHECKSHADOW" = "true"; then
                   6620:                    CHECKSHADOW="false"
                   6621:                fi
                   6622:                ;;
                   6623:     *-*-*netbsd*)
1.13      millert  6624:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   6625:                case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
                   6626:                0.9*|1.012*|1.3|1.3.1)
1.16    ! millert  6627:                    SKIP_SETREUID=yes
1.13      millert  6628:                    ;;
                   6629:                esac
1.9       millert  6630:                if test "$CHECKSHADOW" = "true"; then
                   6631:                    CHECKSHADOW="false"
                   6632:                fi
                   6633:                ;;
1.1       millert  6634:     *-*-*bsd*)
                   6635:                if test "$CHECKSHADOW" = "true"; then
                   6636:                    CHECKSHADOW="false"
                   6637:                fi
                   6638:                ;;
1.9       millert  6639:     *-*-nextstep*)
                   6640:                # lockf() on is broken on the NeXT -- use flock instead
                   6641:                ac_cv_func_lockf=no
                   6642:                ac_cv_func_flock=yes
                   6643:                ;;
1.6       millert  6644:     *-*-sysv*)
1.9       millert  6645:                test -n "$mansectsu" || mansectsu=1m
                   6646:                test -n "$mansectform" || mansectform=4
1.6       millert  6647:                ;;
1.1       millert  6648: esac
                   6649:
1.6       millert  6650: test -n "$mansectsu" || mansectsu=8
                   6651: test -n "$mansectform" || mansectform=5
                   6652:
1.1       millert  6653: if test "$CHECKSHADOW" = "true"; then
1.9       millert  6654:
                   6655: for ac_func in getspnam
                   6656: do
                   6657: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  6658: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  6659: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   6660: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   6661:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6662: else
1.9       millert  6663:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6664: #line $LINENO "configure"
        !          6665: /* confdefs.h.  */
        !          6666: _ACEOF
        !          6667: cat confdefs.h >>conftest.$ac_ext
        !          6668: cat >>conftest.$ac_ext <<_ACEOF
        !          6669: /* end confdefs.h.  */
1.1       millert  6670: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  6671:     which can conflict with char $ac_func (); below.
        !          6672:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          6673:     <limits.h> exists even on freestanding compilers.  */
        !          6674: #ifdef __STDC__
        !          6675: # include <limits.h>
        !          6676: #else
        !          6677: # include <assert.h>
        !          6678: #endif
1.1       millert  6679: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6680: #ifdef __cplusplus
                   6681: extern "C"
1.16    ! millert  6682: {
1.9       millert  6683: #endif
1.1       millert  6684: /* We use char because int might match the return type of a gcc2
1.9       millert  6685:    builtin and then its argument prototype would still apply.  */
                   6686: char $ac_func ();
1.1       millert  6687: /* The GNU C library defines this for functions which it implements
                   6688:     to always fail with ENOSYS.  Some functions are actually named
                   6689:     something starting with __ and the normal name is an alias.  */
1.9       millert  6690: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  6691: choke me
                   6692: #else
1.16    ! millert  6693: char (*f) () = $ac_func;
        !          6694: #endif
        !          6695: #ifdef __cplusplus
        !          6696: }
1.1       millert  6697: #endif
                   6698:
1.16    ! millert  6699: int
        !          6700: main ()
        !          6701: {
        !          6702: return f != $ac_func;
1.9       millert  6703:   ;
                   6704:   return 0;
                   6705: }
                   6706: _ACEOF
                   6707: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6708: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6709:   (eval $ac_link) 2>&5
                   6710:   ac_status=$?
1.16    ! millert  6711:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6712:   (exit $ac_status); } &&
                   6713:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6714:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6715:   (eval $ac_try) 2>&5
                   6716:   ac_status=$?
1.16    ! millert  6717:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6718:   (exit $ac_status); }; }; then
                   6719:   eval "$as_ac_var=yes"
                   6720: else
                   6721:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6722: sed 's/^/| /' conftest.$ac_ext >&5
        !          6723:
1.9       millert  6724: eval "$as_ac_var=no"
                   6725: fi
                   6726: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6727: fi
1.16    ! millert  6728: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  6729: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   6730: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  6731:   cat >>confdefs.h <<_ACEOF
1.9       millert  6732: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  6733: _ACEOF
1.9       millert  6734:  CHECKSHADOW="false"
1.1       millert  6735: else
1.16    ! millert  6736:   echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9       millert  6737: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
                   6738: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
                   6739:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6740: else
                   6741:   ac_check_lib_save_LIBS=$LIBS
                   6742: LIBS="-lgen  $LIBS"
                   6743: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6744: #line $LINENO "configure"
        !          6745: /* confdefs.h.  */
        !          6746: _ACEOF
        !          6747: cat confdefs.h >>conftest.$ac_ext
        !          6748: cat >>conftest.$ac_ext <<_ACEOF
        !          6749: /* end confdefs.h.  */
1.9       millert  6750:
                   6751: /* Override any gcc2 internal prototype to avoid an error.  */
                   6752: #ifdef __cplusplus
                   6753: extern "C"
                   6754: #endif
                   6755: /* We use char because int might match the return type of a gcc2
                   6756:    builtin and then its argument prototype would still apply.  */
                   6757: char getspnam ();
                   6758: int
                   6759: main ()
                   6760: {
                   6761: getspnam ();
                   6762:   ;
                   6763:   return 0;
                   6764: }
                   6765: _ACEOF
                   6766: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6767: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6768:   (eval $ac_link) 2>&5
                   6769:   ac_status=$?
1.16    ! millert  6770:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6771:   (exit $ac_status); } &&
                   6772:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6773:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6774:   (eval $ac_try) 2>&5
                   6775:   ac_status=$?
1.16    ! millert  6776:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6777:   (exit $ac_status); }; }; then
                   6778:   ac_cv_lib_gen_getspnam=yes
                   6779: else
                   6780:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6781: sed 's/^/| /' conftest.$ac_ext >&5
        !          6782:
1.9       millert  6783: ac_cv_lib_gen_getspnam=no
                   6784: fi
                   6785: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6786: LIBS=$ac_check_lib_save_LIBS
                   6787: fi
1.16    ! millert  6788: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9       millert  6789: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
                   6790: if test $ac_cv_lib_gen_getspnam = yes; then
1.1       millert  6791:
1.16    ! millert  6792: cat >>confdefs.h <<\_ACEOF
1.1       millert  6793: #define HAVE_GETSPNAM 1
1.16    ! millert  6794: _ACEOF
1.9       millert  6795:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   6796: fi
                   6797:
1.1       millert  6798: fi
1.9       millert  6799: done
1.1       millert  6800:
                   6801: fi
                   6802: if test "$CHECKSHADOW" = "true"; then
1.16    ! millert  6803:     echo "$as_me:$LINENO: checking for getprpwnam" >&5
1.9       millert  6804: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
                   6805: if test "${ac_cv_func_getprpwnam+set}" = set; then
                   6806:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6807: else
1.9       millert  6808:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6809: #line $LINENO "configure"
        !          6810: /* confdefs.h.  */
        !          6811: _ACEOF
        !          6812: cat confdefs.h >>conftest.$ac_ext
        !          6813: cat >>conftest.$ac_ext <<_ACEOF
        !          6814: /* end confdefs.h.  */
1.1       millert  6815: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  6816:     which can conflict with char getprpwnam (); below.
        !          6817:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          6818:     <limits.h> exists even on freestanding compilers.  */
        !          6819: #ifdef __STDC__
        !          6820: # include <limits.h>
        !          6821: #else
        !          6822: # include <assert.h>
        !          6823: #endif
1.1       millert  6824: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6825: #ifdef __cplusplus
                   6826: extern "C"
1.16    ! millert  6827: {
1.9       millert  6828: #endif
1.1       millert  6829: /* We use char because int might match the return type of a gcc2
1.9       millert  6830:    builtin and then its argument prototype would still apply.  */
                   6831: char getprpwnam ();
1.1       millert  6832: /* The GNU C library defines this for functions which it implements
                   6833:     to always fail with ENOSYS.  Some functions are actually named
                   6834:     something starting with __ and the normal name is an alias.  */
                   6835: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
                   6836: choke me
                   6837: #else
1.16    ! millert  6838: char (*f) () = getprpwnam;
        !          6839: #endif
        !          6840: #ifdef __cplusplus
        !          6841: }
1.1       millert  6842: #endif
                   6843:
1.16    ! millert  6844: int
        !          6845: main ()
        !          6846: {
        !          6847: return f != getprpwnam;
1.9       millert  6848:   ;
                   6849:   return 0;
                   6850: }
                   6851: _ACEOF
                   6852: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6853: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6854:   (eval $ac_link) 2>&5
                   6855:   ac_status=$?
1.16    ! millert  6856:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6857:   (exit $ac_status); } &&
                   6858:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6859:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6860:   (eval $ac_try) 2>&5
                   6861:   ac_status=$?
1.16    ! millert  6862:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6863:   (exit $ac_status); }; }; then
                   6864:   ac_cv_func_getprpwnam=yes
                   6865: else
                   6866:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6867: sed 's/^/| /' conftest.$ac_ext >&5
        !          6868:
1.9       millert  6869: ac_cv_func_getprpwnam=no
                   6870: fi
                   6871: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6872: fi
1.16    ! millert  6873: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
1.9       millert  6874: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
                   6875: if test $ac_cv_func_getprpwnam = yes; then
1.16    ! millert  6876:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6877: #define HAVE_GETPRPWNAM 1
1.16    ! millert  6878: _ACEOF
        !          6879:  CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9       millert  6880: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   6881: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   6882:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6883: else
1.9       millert  6884:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6885: LIBS="-lsec  $LIBS"
1.9       millert  6886: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6887: #line $LINENO "configure"
        !          6888: /* confdefs.h.  */
        !          6889: _ACEOF
        !          6890: cat confdefs.h >>conftest.$ac_ext
        !          6891: cat >>conftest.$ac_ext <<_ACEOF
        !          6892: /* end confdefs.h.  */
1.9       millert  6893:
1.1       millert  6894: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6895: #ifdef __cplusplus
                   6896: extern "C"
                   6897: #endif
1.1       millert  6898: /* We use char because int might match the return type of a gcc2
1.9       millert  6899:    builtin and then its argument prototype would still apply.  */
                   6900: char getprpwnam ();
                   6901: int
                   6902: main ()
                   6903: {
                   6904: getprpwnam ();
                   6905:   ;
                   6906:   return 0;
                   6907: }
                   6908: _ACEOF
                   6909: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6910: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6911:   (eval $ac_link) 2>&5
                   6912:   ac_status=$?
1.16    ! millert  6913:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6914:   (exit $ac_status); } &&
                   6915:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6916:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6917:   (eval $ac_try) 2>&5
                   6918:   ac_status=$?
1.16    ! millert  6919:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6920:   (exit $ac_status); }; }; then
                   6921:   ac_cv_lib_sec_getprpwnam=yes
                   6922: else
                   6923:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6924: sed 's/^/| /' conftest.$ac_ext >&5
        !          6925:
1.9       millert  6926: ac_cv_lib_sec_getprpwnam=no
                   6927: fi
                   6928: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6929: LIBS=$ac_check_lib_save_LIBS
                   6930: fi
1.16    ! millert  6931: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9       millert  6932: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   6933: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16    ! millert  6934:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6935: #define HAVE_GETPRPWNAM 1
1.16    ! millert  6936: _ACEOF
1.1       millert  6937:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   6938: else
1.16    ! millert  6939:   echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9       millert  6940: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   6941: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   6942:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6943: else
1.9       millert  6944:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6945: LIBS="-lsecurity  $LIBS"
1.9       millert  6946: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  6947: #line $LINENO "configure"
        !          6948: /* confdefs.h.  */
        !          6949: _ACEOF
        !          6950: cat confdefs.h >>conftest.$ac_ext
        !          6951: cat >>conftest.$ac_ext <<_ACEOF
        !          6952: /* end confdefs.h.  */
1.9       millert  6953:
1.1       millert  6954: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6955: #ifdef __cplusplus
                   6956: extern "C"
                   6957: #endif
1.1       millert  6958: /* We use char because int might match the return type of a gcc2
1.9       millert  6959:    builtin and then its argument prototype would still apply.  */
                   6960: char getprpwnam ();
                   6961: int
                   6962: main ()
                   6963: {
                   6964: getprpwnam ();
                   6965:   ;
                   6966:   return 0;
                   6967: }
                   6968: _ACEOF
                   6969: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  6970: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  6971:   (eval $ac_link) 2>&5
                   6972:   ac_status=$?
1.16    ! millert  6973:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6974:   (exit $ac_status); } &&
                   6975:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  6976:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  6977:   (eval $ac_try) 2>&5
                   6978:   ac_status=$?
1.16    ! millert  6979:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  6980:   (exit $ac_status); }; }; then
                   6981:   ac_cv_lib_security_getprpwnam=yes
                   6982: else
                   6983:   echo "$as_me: failed program was:" >&5
1.16    ! millert  6984: sed 's/^/| /' conftest.$ac_ext >&5
        !          6985:
1.9       millert  6986: ac_cv_lib_security_getprpwnam=no
                   6987: fi
                   6988: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6989: LIBS=$ac_check_lib_save_LIBS
                   6990: fi
1.16    ! millert  6991: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9       millert  6992: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   6993: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16    ! millert  6994:   cat >>confdefs.h <<\_ACEOF
1.1       millert  6995: #define HAVE_GETPRPWNAM 1
1.16    ! millert  6996: _ACEOF
1.1       millert  6997:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
                   6998: else
1.16    ! millert  6999:   echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9       millert  7000: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
                   7001: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
                   7002:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7003: else
1.9       millert  7004:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  7005: LIBS="-lprot  $LIBS"
1.9       millert  7006: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7007: #line $LINENO "configure"
        !          7008: /* confdefs.h.  */
        !          7009: _ACEOF
        !          7010: cat confdefs.h >>conftest.$ac_ext
        !          7011: cat >>conftest.$ac_ext <<_ACEOF
        !          7012: /* end confdefs.h.  */
1.9       millert  7013:
1.1       millert  7014: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7015: #ifdef __cplusplus
                   7016: extern "C"
                   7017: #endif
1.1       millert  7018: /* We use char because int might match the return type of a gcc2
1.9       millert  7019:    builtin and then its argument prototype would still apply.  */
                   7020: char getprpwnam ();
                   7021: int
                   7022: main ()
                   7023: {
                   7024: getprpwnam ();
                   7025:   ;
                   7026:   return 0;
                   7027: }
                   7028: _ACEOF
                   7029: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  7030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  7031:   (eval $ac_link) 2>&5
                   7032:   ac_status=$?
1.16    ! millert  7033:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7034:   (exit $ac_status); } &&
                   7035:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  7036:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7037:   (eval $ac_try) 2>&5
                   7038:   ac_status=$?
1.16    ! millert  7039:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7040:   (exit $ac_status); }; }; then
                   7041:   ac_cv_lib_prot_getprpwnam=yes
                   7042: else
                   7043:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7044: sed 's/^/| /' conftest.$ac_ext >&5
        !          7045:
1.9       millert  7046: ac_cv_lib_prot_getprpwnam=no
                   7047: fi
                   7048: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   7049: LIBS=$ac_check_lib_save_LIBS
                   7050: fi
1.16    ! millert  7051: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9       millert  7052: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
                   7053: if test $ac_cv_lib_prot_getprpwnam = yes; then
1.16    ! millert  7054:   cat >>confdefs.h <<\_ACEOF
1.1       millert  7055: #define HAVE_GETPRPWNAM 1
1.16    ! millert  7056: _ACEOF
1.1       millert  7057:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   7058: fi
                   7059:
                   7060: fi
                   7061:
                   7062: fi
                   7063:
                   7064: fi
                   7065:
                   7066: fi
                   7067:
1.16    ! millert  7068:
        !          7069: echo "$as_me:$LINENO: checking for egrep" >&5
        !          7070: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
        !          7071: if test "${ac_cv_prog_egrep+set}" = set; then
        !          7072:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          7073: else
        !          7074:   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
        !          7075:     then ac_cv_prog_egrep='grep -E'
        !          7076:     else ac_cv_prog_egrep='egrep'
        !          7077:     fi
        !          7078: fi
        !          7079: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
        !          7080: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
        !          7081:  EGREP=$ac_cv_prog_egrep
        !          7082:
        !          7083:
1.9       millert  7084: if test $ac_cv_c_compiler_gnu = yes; then
1.16    ! millert  7085:     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
1.9       millert  7086: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
                   7087: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   7088:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7089: else
                   7090:     ac_pattern="Autoconf.*'x'"
1.9       millert  7091:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7092: #line $LINENO "configure"
        !          7093: /* confdefs.h.  */
        !          7094: _ACEOF
        !          7095: cat confdefs.h >>conftest.$ac_ext
        !          7096: cat >>conftest.$ac_ext <<_ACEOF
        !          7097: /* end confdefs.h.  */
1.1       millert  7098: #include <sgtty.h>
                   7099: Autoconf TIOCGETP
1.9       millert  7100: _ACEOF
1.1       millert  7101: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  7102:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1       millert  7103:   ac_cv_prog_gcc_traditional=yes
                   7104: else
                   7105:   ac_cv_prog_gcc_traditional=no
                   7106: fi
                   7107: rm -f conftest*
                   7108:
1.16    ! millert  7109:
1.1       millert  7110:   if test $ac_cv_prog_gcc_traditional = no; then
1.9       millert  7111:     cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7112: #line $LINENO "configure"
        !          7113: /* confdefs.h.  */
        !          7114: _ACEOF
        !          7115: cat confdefs.h >>conftest.$ac_ext
        !          7116: cat >>conftest.$ac_ext <<_ACEOF
        !          7117: /* end confdefs.h.  */
1.1       millert  7118: #include <termio.h>
                   7119: Autoconf TCGETA
1.9       millert  7120: _ACEOF
1.1       millert  7121: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  7122:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1       millert  7123:   ac_cv_prog_gcc_traditional=yes
                   7124: fi
                   7125: rm -f conftest*
                   7126:
                   7127:   fi
                   7128: fi
1.16    ! millert  7129: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
1.9       millert  7130: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1       millert  7131:   if test $ac_cv_prog_gcc_traditional = yes; then
                   7132:     CC="$CC -traditional"
                   7133:   fi
                   7134: fi
                   7135:
1.16    ! millert  7136: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1.9       millert  7137: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
                   7138: if test "${ac_cv_c_const+set}" = set; then
                   7139:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7140: else
                   7141:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7142: #line $LINENO "configure"
        !          7143: /* confdefs.h.  */
        !          7144: _ACEOF
        !          7145: cat confdefs.h >>conftest.$ac_ext
        !          7146: cat >>conftest.$ac_ext <<_ACEOF
        !          7147: /* end confdefs.h.  */
1.9       millert  7148:
                   7149: int
                   7150: main ()
                   7151: {
                   7152: /* FIXME: Include the comments suggested by Paul. */
                   7153: #ifndef __cplusplus
                   7154:   /* Ultrix mips cc rejects this.  */
                   7155:   typedef int charset[2];
                   7156:   const charset x;
                   7157:   /* SunOS 4.1.1 cc rejects this.  */
                   7158:   char const *const *ccp;
                   7159:   char **p;
                   7160:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   7161:   struct point {int x, y;};
                   7162:   static struct point const zero = {0,0};
                   7163:   /* AIX XL C 1.02.0.0 rejects this.
                   7164:      It does not let you subtract one const X* pointer from another in
                   7165:      an arm of an if-expression whose if-part is not a constant
                   7166:      expression */
                   7167:   const char *g = "string";
                   7168:   ccp = &g + (g ? g-g : 0);
                   7169:   /* HPUX 7.0 cc rejects these. */
                   7170:   ++ccp;
                   7171:   p = (char**) ccp;
                   7172:   ccp = (char const *const *) p;
                   7173:   { /* SCO 3.2v4 cc rejects this.  */
                   7174:     char *t;
                   7175:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   7176:
                   7177:     *t++ = 0;
                   7178:   }
                   7179:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   7180:     int x[] = {25, 17};
                   7181:     const int *foo = &x[0];
                   7182:     ++foo;
                   7183:   }
                   7184:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   7185:     typedef const int *iptr;
                   7186:     iptr p = 0;
                   7187:     ++p;
                   7188:   }
                   7189:   { /* AIX XL C 1.02.0.0 rejects this saying
                   7190:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   7191:     struct s { int j; const int *ap[3]; };
                   7192:     struct s *b; b->j = 5;
                   7193:   }
                   7194:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   7195:     const int foo = 10;
                   7196:   }
                   7197: #endif
                   7198:
                   7199:   ;
                   7200:   return 0;
1.1       millert  7201: }
1.9       millert  7202: _ACEOF
                   7203: rm -f conftest.$ac_objext
1.16    ! millert  7204: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  7205:   (eval $ac_compile) 2>&5
                   7206:   ac_status=$?
1.16    ! millert  7207:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7208:   (exit $ac_status); } &&
                   7209:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  7210:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7211:   (eval $ac_try) 2>&5
                   7212:   ac_status=$?
1.16    ! millert  7213:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7214:   (exit $ac_status); }; }; then
1.1       millert  7215:   ac_cv_c_const=yes
                   7216: else
1.9       millert  7217:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7218: sed 's/^/| /' conftest.$ac_ext >&5
        !          7219:
1.9       millert  7220: ac_cv_c_const=no
                   7221: fi
                   7222: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  7223: fi
1.16    ! millert  7224: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
1.9       millert  7225: echo "${ECHO_T}$ac_cv_c_const" >&6
                   7226: if test $ac_cv_c_const = no; then
                   7227:
1.16    ! millert  7228: cat >>confdefs.h <<\_ACEOF
1.9       millert  7229: #define const
1.16    ! millert  7230: _ACEOF
1.9       millert  7231:
1.1       millert  7232: fi
                   7233:
1.16    ! millert  7234: echo "$as_me:$LINENO: checking for working volatile" >&5
1.9       millert  7235: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
                   7236: if test "${ac_cv_c_volatile+set}" = set; then
                   7237:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7238: else
                   7239:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7240: #line $LINENO "configure"
        !          7241: /* confdefs.h.  */
        !          7242: _ACEOF
        !          7243: cat confdefs.h >>conftest.$ac_ext
        !          7244: cat >>conftest.$ac_ext <<_ACEOF
        !          7245: /* end confdefs.h.  */
1.9       millert  7246:
                   7247: int
                   7248: main ()
                   7249: {
                   7250:
                   7251: volatile int x;
                   7252: int * volatile y;
                   7253:   ;
                   7254:   return 0;
                   7255: }
                   7256: _ACEOF
                   7257: rm -f conftest.$ac_objext
1.16    ! millert  7258: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  7259:   (eval $ac_compile) 2>&5
                   7260:   ac_status=$?
1.16    ! millert  7261:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7262:   (exit $ac_status); } &&
                   7263:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  7264:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7265:   (eval $ac_try) 2>&5
                   7266:   ac_status=$?
1.16    ! millert  7267:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7268:   (exit $ac_status); }; }; then
                   7269:   ac_cv_c_volatile=yes
                   7270: else
                   7271:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7272: sed 's/^/| /' conftest.$ac_ext >&5
        !          7273:
1.9       millert  7274: ac_cv_c_volatile=no
                   7275: fi
                   7276: rm -f conftest.$ac_objext conftest.$ac_ext
                   7277: fi
1.16    ! millert  7278: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
1.9       millert  7279: echo "${ECHO_T}$ac_cv_c_volatile" >&6
                   7280: if test $ac_cv_c_volatile = no; then
                   7281:
1.16    ! millert  7282: cat >>confdefs.h <<\_ACEOF
1.9       millert  7283: #define volatile
1.16    ! millert  7284: _ACEOF
1.1       millert  7285:
                   7286: fi
                   7287:
                   7288: for ac_prog in 'bison -y' byacc
                   7289: do
1.9       millert  7290:   # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1       millert  7291: set dummy $ac_prog; ac_word=$2
1.16    ! millert  7292: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  7293: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   7294: if test "${ac_cv_prog_YACC+set}" = set; then
                   7295:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7296: else
                   7297:   if test -n "$YACC"; then
                   7298:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   7299: else
1.16    ! millert  7300: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          7301: for as_dir in $PATH
        !          7302: do
        !          7303:   IFS=$as_save_IFS
        !          7304:   test -z "$as_dir" && as_dir=.
        !          7305:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          7306:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          7307:     ac_cv_prog_YACC="$ac_prog"
        !          7308:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          7309:     break 2
        !          7310:   fi
        !          7311: done
1.9       millert  7312: done
                   7313:
1.1       millert  7314: fi
                   7315: fi
1.9       millert  7316: YACC=$ac_cv_prog_YACC
1.1       millert  7317: if test -n "$YACC"; then
1.16    ! millert  7318:   echo "$as_me:$LINENO: result: $YACC" >&5
1.9       millert  7319: echo "${ECHO_T}$YACC" >&6
1.1       millert  7320: else
1.16    ! millert  7321:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  7322: echo "${ECHO_T}no" >&6
1.1       millert  7323: fi
                   7324:
1.9       millert  7325:   test -n "$YACC" && break
1.1       millert  7326: done
                   7327: test -n "$YACC" || YACC="yacc"
                   7328:
1.16    ! millert  7329: echo "$as_me:$LINENO: checking for mv" >&5
1.9       millert  7330: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1       millert  7331: if test -f "/usr/bin/mv"; then
1.16    ! millert  7332:     echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
1.9       millert  7333: echo "${ECHO_T}/usr/bin/mv" >&6
                   7334:     cat >>confdefs.h <<\EOF
1.1       millert  7335: #define _PATH_MV "/usr/bin/mv"
                   7336: EOF
                   7337:
                   7338: elif test -f "/bin/mv"; then
1.16    ! millert  7339:     echo "$as_me:$LINENO: result: /bin/mv" >&5
1.9       millert  7340: echo "${ECHO_T}/bin/mv" >&6
                   7341:     cat >>confdefs.h <<\EOF
1.1       millert  7342: #define _PATH_MV "/bin/mv"
                   7343: EOF
                   7344:
                   7345: elif test -f "/usr/ucb/mv"; then
1.16    ! millert  7346:     echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
1.9       millert  7347: echo "${ECHO_T}/usr/ucb/mv" >&6
                   7348:     cat >>confdefs.h <<\EOF
1.1       millert  7349: #define _PATH_MV "/usr/ucb/mv"
                   7350: EOF
                   7351:
                   7352: elif test -f "/usr/sbin/mv"; then
1.16    ! millert  7353:     echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
1.9       millert  7354: echo "${ECHO_T}/usr/sbin/mv" >&6
                   7355:     cat >>confdefs.h <<\EOF
1.1       millert  7356: #define _PATH_MV "/usr/sbin/mv"
                   7357: EOF
                   7358:
                   7359: else
1.16    ! millert  7360:     echo "$as_me:$LINENO: result: not found" >&5
1.9       millert  7361: echo "${ECHO_T}not found" >&6
1.1       millert  7362: fi
                   7363:
1.16    ! millert  7364: echo "$as_me:$LINENO: checking for bourne shell" >&5
1.9       millert  7365: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1       millert  7366: if test -f "/bin/sh"; then
1.16    ! millert  7367:     echo "$as_me:$LINENO: result: /bin/sh" >&5
1.9       millert  7368: echo "${ECHO_T}/bin/sh" >&6
                   7369:     cat >>confdefs.h <<\EOF
1.1       millert  7370: #define _PATH_BSHELL "/bin/sh"
                   7371: EOF
                   7372:
                   7373: elif test -f "/usr/bin/sh"; then
1.16    ! millert  7374:     echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
1.9       millert  7375: echo "${ECHO_T}/usr/bin/sh" >&6
                   7376:     cat >>confdefs.h <<\EOF
1.1       millert  7377: #define _PATH_BSHELL "/usr/bin/sh"
                   7378: EOF
                   7379:
                   7380: elif test -f "/sbin/sh"; then
1.16    ! millert  7381:     echo "$as_me:$LINENO: result: /sbin/sh" >&5
1.9       millert  7382: echo "${ECHO_T}/sbin/sh" >&6
                   7383:     cat >>confdefs.h <<\EOF
1.1       millert  7384: #define _PATH_BSHELL "/sbin/sh"
                   7385: EOF
                   7386:
                   7387: elif test -f "/usr/sbin/sh"; then
1.16    ! millert  7388:     echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
1.9       millert  7389: echo "${ECHO_T}/usr/sbin/sh" >&6
                   7390:     cat >>confdefs.h <<\EOF
1.1       millert  7391: #define _PATH_BSHELL "/usr/sbin/sh"
                   7392: EOF
                   7393:
                   7394: elif test -f "/bin/ksh"; then
1.16    ! millert  7395:     echo "$as_me:$LINENO: result: /bin/ksh" >&5
1.9       millert  7396: echo "${ECHO_T}/bin/ksh" >&6
                   7397:     cat >>confdefs.h <<\EOF
1.1       millert  7398: #define _PATH_BSHELL "/bin/ksh"
                   7399: EOF
                   7400:
                   7401: elif test -f "/usr/bin/ksh"; then
1.16    ! millert  7402:     echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
1.9       millert  7403: echo "${ECHO_T}/usr/bin/ksh" >&6
                   7404:     cat >>confdefs.h <<\EOF
1.1       millert  7405: #define _PATH_BSHELL "/usr/bin/ksh"
                   7406: EOF
                   7407:
                   7408: elif test -f "/bin/bash"; then
1.16    ! millert  7409:     echo "$as_me:$LINENO: result: /bin/bash" >&5
1.9       millert  7410: echo "${ECHO_T}/bin/bash" >&6
                   7411:     cat >>confdefs.h <<\EOF
1.1       millert  7412: #define _PATH_BSHELL "/bin/bash"
                   7413: EOF
                   7414:
                   7415: elif test -f "/usr/bin/bash"; then
1.16    ! millert  7416:     echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
1.9       millert  7417: echo "${ECHO_T}/usr/bin/bash" >&6
                   7418:     cat >>confdefs.h <<\EOF
1.1       millert  7419: #define _PATH_BSHELL "/usr/bin/bash"
                   7420: EOF
                   7421:
                   7422: else
1.16    ! millert  7423:     echo "$as_me:$LINENO: result: not found" >&5
1.9       millert  7424: echo "${ECHO_T}not found" >&6
                   7425: fi
                   7426:
                   7427: if test -z "$with_sendmail"; then
1.16    ! millert  7428:     echo "$as_me:$LINENO: checking for sendmail" >&5
1.9       millert  7429: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
                   7430: if test -f "/usr/sbin/sendmail"; then
1.16    ! millert  7431:     echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
1.9       millert  7432: echo "${ECHO_T}/usr/sbin/sendmail" >&6
                   7433:     cat >>confdefs.h <<\EOF
                   7434: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   7435: EOF
                   7436:
                   7437: elif test -f "/usr/lib/sendmail"; then
1.16    ! millert  7438:     echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
1.9       millert  7439: echo "${ECHO_T}/usr/lib/sendmail" >&6
                   7440:     cat >>confdefs.h <<\EOF
                   7441: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   7442: EOF
                   7443:
                   7444: elif test -f "/usr/etc/sendmail"; then
1.16    ! millert  7445:     echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
1.9       millert  7446: echo "${ECHO_T}/usr/etc/sendmail" >&6
                   7447:     cat >>confdefs.h <<\EOF
                   7448: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   7449: EOF
                   7450:
                   7451: elif test -f "/usr/ucblib/sendmail"; then
1.16    ! millert  7452:     echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
1.9       millert  7453: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
                   7454:     cat >>confdefs.h <<\EOF
                   7455: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   7456: EOF
                   7457:
                   7458: elif test -f "/usr/local/lib/sendmail"; then
1.16    ! millert  7459:     echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
1.9       millert  7460: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
                   7461:     cat >>confdefs.h <<\EOF
                   7462: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   7463: EOF
                   7464:
                   7465: elif test -f "/usr/local/bin/sendmail"; then
1.16    ! millert  7466:     echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
1.9       millert  7467: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
                   7468:     cat >>confdefs.h <<\EOF
                   7469: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   7470: EOF
                   7471:
                   7472: else
1.16    ! millert  7473:     echo "$as_me:$LINENO: result: not found" >&5
1.9       millert  7474: echo "${ECHO_T}not found" >&6
1.1       millert  7475: fi
                   7476:
1.9       millert  7477: fi
                   7478: if test -z "$with_editor"; then
1.16    ! millert  7479:     echo "$as_me:$LINENO: checking for vi" >&5
1.9       millert  7480: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1       millert  7481: if test -f "/usr/bin/vi"; then
1.16    ! millert  7482:     echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
1.9       millert  7483: echo "${ECHO_T}/usr/bin/vi" >&6
                   7484:     cat >>confdefs.h <<\EOF
1.1       millert  7485: #define _PATH_VI "/usr/bin/vi"
                   7486: EOF
                   7487:
                   7488: elif test -f "/usr/ucb/vi"; then
1.16    ! millert  7489:     echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
1.9       millert  7490: echo "${ECHO_T}/usr/ucb/vi" >&6
                   7491:     cat >>confdefs.h <<\EOF
1.1       millert  7492: #define _PATH_VI "/usr/ucb/vi"
                   7493: EOF
                   7494:
                   7495: elif test -f "/usr/bsd/vi"; then
1.16    ! millert  7496:     echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
1.9       millert  7497: echo "${ECHO_T}/usr/bsd/vi" >&6
                   7498:     cat >>confdefs.h <<\EOF
1.1       millert  7499: #define _PATH_VI "/usr/bsd/vi"
                   7500: EOF
                   7501:
                   7502: elif test -f "/bin/vi"; then
1.16    ! millert  7503:     echo "$as_me:$LINENO: result: /bin/vi" >&5
1.9       millert  7504: echo "${ECHO_T}/bin/vi" >&6
                   7505:     cat >>confdefs.h <<\EOF
1.1       millert  7506: #define _PATH_VI "/bin/vi"
                   7507: EOF
                   7508:
                   7509: elif test -f "/usr/local/bin/vi"; then
1.16    ! millert  7510:     echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
1.9       millert  7511: echo "${ECHO_T}/usr/local/bin/vi" >&6
                   7512:     cat >>confdefs.h <<\EOF
1.1       millert  7513: #define _PATH_VI "/usr/local/bin/vi"
                   7514: EOF
                   7515:
                   7516: else
1.16    ! millert  7517:     echo "$as_me:$LINENO: result: not found" >&5
1.9       millert  7518: echo "${ECHO_T}not found" >&6
1.1       millert  7519: fi
                   7520:
1.9       millert  7521: fi
1.16    ! millert  7522: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.9       millert  7523: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
                   7524: if test "${ac_cv_header_stdc+set}" = set; then
                   7525:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7526: else
1.9       millert  7527:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7528: #line $LINENO "configure"
        !          7529: /* confdefs.h.  */
        !          7530: _ACEOF
        !          7531: cat confdefs.h >>conftest.$ac_ext
        !          7532: cat >>conftest.$ac_ext <<_ACEOF
        !          7533: /* end confdefs.h.  */
1.1       millert  7534: #include <stdlib.h>
                   7535: #include <stdarg.h>
                   7536: #include <string.h>
                   7537: #include <float.h>
1.9       millert  7538:
1.16    ! millert  7539: int
        !          7540: main ()
        !          7541: {
        !          7542:
        !          7543:   ;
        !          7544:   return 0;
        !          7545: }
1.9       millert  7546: _ACEOF
1.16    ! millert  7547: rm -f conftest.$ac_objext
        !          7548: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          7549:   (eval $ac_compile) 2>&5
        !          7550:   ac_status=$?
        !          7551:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7552:   (exit $ac_status); } &&
        !          7553:          { ac_try='test -s conftest.$ac_objext'
        !          7554:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          7555:   (eval $ac_try) 2>&5
1.9       millert  7556:   ac_status=$?
1.16    ! millert  7557:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7558:   (exit $ac_status); }; }; then
1.1       millert  7559:   ac_cv_header_stdc=yes
                   7560: else
1.9       millert  7561:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7562: sed 's/^/| /' conftest.$ac_ext >&5
        !          7563:
        !          7564: ac_cv_header_stdc=no
1.1       millert  7565: fi
1.16    ! millert  7566: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  7567:
                   7568: if test $ac_cv_header_stdc = yes; then
                   7569:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.9       millert  7570:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7571: #line $LINENO "configure"
        !          7572: /* confdefs.h.  */
        !          7573: _ACEOF
        !          7574: cat confdefs.h >>conftest.$ac_ext
        !          7575: cat >>conftest.$ac_ext <<_ACEOF
        !          7576: /* end confdefs.h.  */
1.1       millert  7577: #include <string.h>
1.9       millert  7578:
                   7579: _ACEOF
1.1       millert  7580: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  7581:   $EGREP "memchr" >/dev/null 2>&1; then
1.1       millert  7582:   :
                   7583: else
                   7584:   ac_cv_header_stdc=no
                   7585: fi
                   7586: rm -f conftest*
                   7587:
                   7588: fi
                   7589:
                   7590: if test $ac_cv_header_stdc = yes; then
                   7591:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.9       millert  7592:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7593: #line $LINENO "configure"
        !          7594: /* confdefs.h.  */
        !          7595: _ACEOF
        !          7596: cat confdefs.h >>conftest.$ac_ext
        !          7597: cat >>conftest.$ac_ext <<_ACEOF
        !          7598: /* end confdefs.h.  */
1.1       millert  7599: #include <stdlib.h>
1.9       millert  7600:
                   7601: _ACEOF
1.1       millert  7602: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  7603:   $EGREP "free" >/dev/null 2>&1; then
1.1       millert  7604:   :
                   7605: else
                   7606:   ac_cv_header_stdc=no
                   7607: fi
                   7608: rm -f conftest*
                   7609:
                   7610: fi
                   7611:
                   7612: if test $ac_cv_header_stdc = yes; then
                   7613:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.9       millert  7614:   if test "$cross_compiling" = yes; then
1.1       millert  7615:   :
                   7616: else
1.9       millert  7617:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7618: #line $LINENO "configure"
        !          7619: /* confdefs.h.  */
        !          7620: _ACEOF
        !          7621: cat confdefs.h >>conftest.$ac_ext
        !          7622: cat >>conftest.$ac_ext <<_ACEOF
        !          7623: /* end confdefs.h.  */
1.1       millert  7624: #include <ctype.h>
1.9       millert  7625: #if ((' ' & 0x0FF) == 0x020)
                   7626: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7627: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7628: #else
1.16    ! millert  7629: # define ISLOWER(c) \
        !          7630:                    (('a' <= (c) && (c) <= 'i') \
1.9       millert  7631:                      || ('j' <= (c) && (c) <= 'r') \
                   7632:                      || ('s' <= (c) && (c) <= 'z'))
                   7633: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7634: #endif
                   7635:
1.1       millert  7636: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.9       millert  7637: int
                   7638: main ()
                   7639: {
                   7640:   int i;
                   7641:   for (i = 0; i < 256; i++)
                   7642:     if (XOR (islower (i), ISLOWER (i))
                   7643:         || toupper (i) != TOUPPER (i))
                   7644:       exit(2);
                   7645:   exit (0);
                   7646: }
                   7647: _ACEOF
                   7648: rm -f conftest$ac_exeext
1.16    ! millert  7649: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  7650:   (eval $ac_link) 2>&5
                   7651:   ac_status=$?
1.16    ! millert  7652:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7653:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  7654:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7655:   (eval $ac_try) 2>&5
                   7656:   ac_status=$?
1.16    ! millert  7657:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7658:   (exit $ac_status); }; }; then
1.1       millert  7659:   :
                   7660: else
1.9       millert  7661:   echo "$as_me: program exited with status $ac_status" >&5
                   7662: echo "$as_me: failed program was:" >&5
1.16    ! millert  7663: sed 's/^/| /' conftest.$ac_ext >&5
        !          7664:
        !          7665: ( exit $ac_status )
1.9       millert  7666: ac_cv_header_stdc=no
1.1       millert  7667: fi
1.16    ! millert  7668: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  7669: fi
                   7670: fi
                   7671: fi
1.16    ! millert  7672: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.9       millert  7673: echo "${ECHO_T}$ac_cv_header_stdc" >&6
                   7674: if test $ac_cv_header_stdc = yes; then
1.1       millert  7675:
1.16    ! millert  7676: cat >>confdefs.h <<\_ACEOF
1.1       millert  7677: #define STDC_HEADERS 1
1.16    ! millert  7678: _ACEOF
1.1       millert  7679:
                   7680: fi
                   7681:
1.16    ! millert  7682:
        !          7683:
        !          7684:
        !          7685:
        !          7686:
1.1       millert  7687: ac_header_dirent=no
1.9       millert  7688: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   7689:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.16    ! millert  7690: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
1.9       millert  7691: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
                   7692: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   7693:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7694: else
1.9       millert  7695:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7696: #line $LINENO "configure"
        !          7697: /* confdefs.h.  */
        !          7698: _ACEOF
        !          7699: cat confdefs.h >>conftest.$ac_ext
        !          7700: cat >>conftest.$ac_ext <<_ACEOF
        !          7701: /* end confdefs.h.  */
1.1       millert  7702: #include <sys/types.h>
                   7703: #include <$ac_hdr>
1.9       millert  7704:
                   7705: int
                   7706: main ()
                   7707: {
                   7708: if ((DIR *) 0)
                   7709: return 0;
                   7710:   ;
                   7711:   return 0;
                   7712: }
                   7713: _ACEOF
                   7714: rm -f conftest.$ac_objext
1.16    ! millert  7715: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  7716:   (eval $ac_compile) 2>&5
                   7717:   ac_status=$?
1.16    ! millert  7718:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7719:   (exit $ac_status); } &&
                   7720:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  7721:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7722:   (eval $ac_try) 2>&5
                   7723:   ac_status=$?
1.16    ! millert  7724:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7725:   (exit $ac_status); }; }; then
                   7726:   eval "$as_ac_Header=yes"
                   7727: else
                   7728:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7729: sed 's/^/| /' conftest.$ac_ext >&5
        !          7730:
1.9       millert  7731: eval "$as_ac_Header=no"
                   7732: fi
                   7733: rm -f conftest.$ac_objext conftest.$ac_ext
                   7734: fi
1.16    ! millert  7735: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  7736: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   7737: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16    ! millert  7738:   cat >>confdefs.h <<_ACEOF
1.9       millert  7739: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.16    ! millert  7740: _ACEOF
1.9       millert  7741:
                   7742: ac_header_dirent=$ac_hdr; break
1.1       millert  7743: fi
1.9       millert  7744:
1.1       millert  7745: done
                   7746: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   7747: if test $ac_header_dirent = dirent.h; then
1.16    ! millert  7748:   echo "$as_me:$LINENO: checking for library containing opendir" >&5
        !          7749: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
        !          7750: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  7751:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7752: else
1.16    ! millert  7753:   ac_func_search_save_LIBS=$LIBS
        !          7754: ac_cv_search_opendir=no
1.9       millert  7755: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7756: #line $LINENO "configure"
        !          7757: /* confdefs.h.  */
        !          7758: _ACEOF
        !          7759: cat confdefs.h >>conftest.$ac_ext
        !          7760: cat >>conftest.$ac_ext <<_ACEOF
        !          7761: /* end confdefs.h.  */
        !          7762:
        !          7763: /* Override any gcc2 internal prototype to avoid an error.  */
        !          7764: #ifdef __cplusplus
        !          7765: extern "C"
        !          7766: #endif
        !          7767: /* We use char because int might match the return type of a gcc2
        !          7768:    builtin and then its argument prototype would still apply.  */
        !          7769: char opendir ();
        !          7770: int
        !          7771: main ()
        !          7772: {
        !          7773: opendir ();
        !          7774:   ;
        !          7775:   return 0;
        !          7776: }
        !          7777: _ACEOF
        !          7778: rm -f conftest.$ac_objext conftest$ac_exeext
        !          7779: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          7780:   (eval $ac_link) 2>&5
        !          7781:   ac_status=$?
        !          7782:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7783:   (exit $ac_status); } &&
        !          7784:          { ac_try='test -s conftest$ac_exeext'
        !          7785:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          7786:   (eval $ac_try) 2>&5
        !          7787:   ac_status=$?
        !          7788:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7789:   (exit $ac_status); }; }; then
        !          7790:   ac_cv_search_opendir="none required"
        !          7791: else
        !          7792:   echo "$as_me: failed program was:" >&5
        !          7793: sed 's/^/| /' conftest.$ac_ext >&5
        !          7794:
        !          7795: fi
        !          7796: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        !          7797: if test "$ac_cv_search_opendir" = no; then
        !          7798:   for ac_lib in dir; do
        !          7799:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
        !          7800:     cat >conftest.$ac_ext <<_ACEOF
        !          7801: #line $LINENO "configure"
        !          7802: /* confdefs.h.  */
        !          7803: _ACEOF
        !          7804: cat confdefs.h >>conftest.$ac_ext
        !          7805: cat >>conftest.$ac_ext <<_ACEOF
        !          7806: /* end confdefs.h.  */
1.9       millert  7807:
1.1       millert  7808: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7809: #ifdef __cplusplus
                   7810: extern "C"
                   7811: #endif
1.1       millert  7812: /* We use char because int might match the return type of a gcc2
1.9       millert  7813:    builtin and then its argument prototype would still apply.  */
                   7814: char opendir ();
                   7815: int
                   7816: main ()
                   7817: {
                   7818: opendir ();
                   7819:   ;
                   7820:   return 0;
                   7821: }
                   7822: _ACEOF
                   7823: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  7824: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  7825:   (eval $ac_link) 2>&5
                   7826:   ac_status=$?
1.16    ! millert  7827:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7828:   (exit $ac_status); } &&
                   7829:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  7830:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7831:   (eval $ac_try) 2>&5
                   7832:   ac_status=$?
1.16    ! millert  7833:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7834:   (exit $ac_status); }; }; then
1.16    ! millert  7835:   ac_cv_search_opendir="-l$ac_lib"
        !          7836: break
1.9       millert  7837: else
                   7838:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7839: sed 's/^/| /' conftest.$ac_ext >&5
        !          7840:
1.9       millert  7841: fi
                   7842: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16    ! millert  7843:   done
        !          7844: fi
        !          7845: LIBS=$ac_func_search_save_LIBS
1.9       millert  7846: fi
1.16    ! millert  7847: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
        !          7848: echo "${ECHO_T}$ac_cv_search_opendir" >&6
        !          7849: if test "$ac_cv_search_opendir" != no; then
        !          7850:   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
        !          7851:
1.1       millert  7852: fi
                   7853:
                   7854: else
1.16    ! millert  7855:   echo "$as_me:$LINENO: checking for library containing opendir" >&5
        !          7856: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
        !          7857: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  7858:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7859: else
1.16    ! millert  7860:   ac_func_search_save_LIBS=$LIBS
        !          7861: ac_cv_search_opendir=no
1.9       millert  7862: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  7863: #line $LINENO "configure"
        !          7864: /* confdefs.h.  */
        !          7865: _ACEOF
        !          7866: cat confdefs.h >>conftest.$ac_ext
        !          7867: cat >>conftest.$ac_ext <<_ACEOF
        !          7868: /* end confdefs.h.  */
        !          7869:
        !          7870: /* Override any gcc2 internal prototype to avoid an error.  */
        !          7871: #ifdef __cplusplus
        !          7872: extern "C"
        !          7873: #endif
        !          7874: /* We use char because int might match the return type of a gcc2
        !          7875:    builtin and then its argument prototype would still apply.  */
        !          7876: char opendir ();
        !          7877: int
        !          7878: main ()
        !          7879: {
        !          7880: opendir ();
        !          7881:   ;
        !          7882:   return 0;
        !          7883: }
        !          7884: _ACEOF
        !          7885: rm -f conftest.$ac_objext conftest$ac_exeext
        !          7886: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          7887:   (eval $ac_link) 2>&5
        !          7888:   ac_status=$?
        !          7889:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7890:   (exit $ac_status); } &&
        !          7891:          { ac_try='test -s conftest$ac_exeext'
        !          7892:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          7893:   (eval $ac_try) 2>&5
        !          7894:   ac_status=$?
        !          7895:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7896:   (exit $ac_status); }; }; then
        !          7897:   ac_cv_search_opendir="none required"
        !          7898: else
        !          7899:   echo "$as_me: failed program was:" >&5
        !          7900: sed 's/^/| /' conftest.$ac_ext >&5
        !          7901:
        !          7902: fi
        !          7903: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        !          7904: if test "$ac_cv_search_opendir" = no; then
        !          7905:   for ac_lib in x; do
        !          7906:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
        !          7907:     cat >conftest.$ac_ext <<_ACEOF
        !          7908: #line $LINENO "configure"
        !          7909: /* confdefs.h.  */
        !          7910: _ACEOF
        !          7911: cat confdefs.h >>conftest.$ac_ext
        !          7912: cat >>conftest.$ac_ext <<_ACEOF
        !          7913: /* end confdefs.h.  */
1.9       millert  7914:
1.1       millert  7915: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7916: #ifdef __cplusplus
                   7917: extern "C"
                   7918: #endif
1.1       millert  7919: /* We use char because int might match the return type of a gcc2
1.9       millert  7920:    builtin and then its argument prototype would still apply.  */
                   7921: char opendir ();
                   7922: int
                   7923: main ()
                   7924: {
                   7925: opendir ();
                   7926:   ;
                   7927:   return 0;
                   7928: }
                   7929: _ACEOF
                   7930: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  7931: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  7932:   (eval $ac_link) 2>&5
                   7933:   ac_status=$?
1.16    ! millert  7934:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7935:   (exit $ac_status); } &&
                   7936:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  7937:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  7938:   (eval $ac_try) 2>&5
                   7939:   ac_status=$?
1.16    ! millert  7940:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  7941:   (exit $ac_status); }; }; then
1.16    ! millert  7942:   ac_cv_search_opendir="-l$ac_lib"
        !          7943: break
1.9       millert  7944: else
                   7945:   echo "$as_me: failed program was:" >&5
1.16    ! millert  7946: sed 's/^/| /' conftest.$ac_ext >&5
        !          7947:
1.9       millert  7948: fi
                   7949: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16    ! millert  7950:   done
        !          7951: fi
        !          7952: LIBS=$ac_func_search_save_LIBS
        !          7953: fi
        !          7954: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
        !          7955: echo "${ECHO_T}$ac_cv_search_opendir" >&6
        !          7956: if test "$ac_cv_search_opendir" != no; then
        !          7957:   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
        !          7958:
        !          7959: fi
        !          7960:
        !          7961: fi
        !          7962:
        !          7963: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
        !          7964:
        !          7965:
        !          7966:
        !          7967:
        !          7968:
        !          7969:
        !          7970:
        !          7971:
        !          7972:
        !          7973: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
        !          7974:                   inttypes.h stdint.h unistd.h
        !          7975: do
        !          7976: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          7977: echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          7978: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
        !          7979: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          7980:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          7981: else
        !          7982:   cat >conftest.$ac_ext <<_ACEOF
        !          7983: #line $LINENO "configure"
        !          7984: /* confdefs.h.  */
        !          7985: _ACEOF
        !          7986: cat confdefs.h >>conftest.$ac_ext
        !          7987: cat >>conftest.$ac_ext <<_ACEOF
        !          7988: /* end confdefs.h.  */
        !          7989: $ac_includes_default
        !          7990:
        !          7991: #include <$ac_header>
        !          7992: _ACEOF
        !          7993: rm -f conftest.$ac_objext
        !          7994: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          7995:   (eval $ac_compile) 2>&5
        !          7996:   ac_status=$?
        !          7997:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7998:   (exit $ac_status); } &&
        !          7999:          { ac_try='test -s conftest.$ac_objext'
        !          8000:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          8001:   (eval $ac_try) 2>&5
        !          8002:   ac_status=$?
        !          8003:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8004:   (exit $ac_status); }; }; then
        !          8005:   eval "$as_ac_Header=yes"
        !          8006: else
        !          8007:   echo "$as_me: failed program was:" >&5
        !          8008: sed 's/^/| /' conftest.$ac_ext >&5
        !          8009:
        !          8010: eval "$as_ac_Header=no"
1.9       millert  8011: fi
1.16    ! millert  8012: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  8013: fi
1.16    ! millert  8014: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
        !          8015: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
        !          8016: if test `eval echo '${'$as_ac_Header'}'` = yes; then
        !          8017:   cat >>confdefs.h <<_ACEOF
        !          8018: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          8019: _ACEOF
1.1       millert  8020:
                   8021: fi
                   8022:
1.16    ! millert  8023: done
        !          8024:
        !          8025:
        !          8026:
        !          8027:
        !          8028:
        !          8029:
        !          8030:
        !          8031:
        !          8032:
1.9       millert  8033: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1       millert  8034: do
1.9       millert  8035: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16    ! millert  8036: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8037:   echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9       millert  8038: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   8039: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   8040:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16    ! millert  8041: fi
        !          8042: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
        !          8043: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
        !          8044: else
        !          8045:   # Is the header compilable?
        !          8046: echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          8047: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
        !          8048: cat >conftest.$ac_ext <<_ACEOF
        !          8049: #line $LINENO "configure"
        !          8050: /* confdefs.h.  */
        !          8051: _ACEOF
        !          8052: cat confdefs.h >>conftest.$ac_ext
        !          8053: cat >>conftest.$ac_ext <<_ACEOF
        !          8054: /* end confdefs.h.  */
        !          8055: $ac_includes_default
        !          8056: #include <$ac_header>
        !          8057: _ACEOF
        !          8058: rm -f conftest.$ac_objext
        !          8059: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          8060:   (eval $ac_compile) 2>&5
        !          8061:   ac_status=$?
        !          8062:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8063:   (exit $ac_status); } &&
        !          8064:          { ac_try='test -s conftest.$ac_objext'
        !          8065:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          8066:   (eval $ac_try) 2>&5
        !          8067:   ac_status=$?
        !          8068:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8069:   (exit $ac_status); }; }; then
        !          8070:   ac_header_compiler=yes
1.9       millert  8071: else
1.16    ! millert  8072:   echo "$as_me: failed program was:" >&5
        !          8073: sed 's/^/| /' conftest.$ac_ext >&5
        !          8074:
        !          8075: ac_header_compiler=no
        !          8076: fi
        !          8077: rm -f conftest.$ac_objext conftest.$ac_ext
        !          8078: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          8079: echo "${ECHO_T}$ac_header_compiler" >&6
        !          8080:
        !          8081: # Is the header present?
        !          8082: echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          8083: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
        !          8084: cat >conftest.$ac_ext <<_ACEOF
        !          8085: #line $LINENO "configure"
        !          8086: /* confdefs.h.  */
        !          8087: _ACEOF
        !          8088: cat confdefs.h >>conftest.$ac_ext
        !          8089: cat >>conftest.$ac_ext <<_ACEOF
        !          8090: /* end confdefs.h.  */
1.9       millert  8091: #include <$ac_header>
                   8092: _ACEOF
1.16    ! millert  8093: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  8094:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   8095:   ac_status=$?
1.16    ! millert  8096:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  8097:   rm -f conftest.er1
                   8098:   cat conftest.err >&5
1.16    ! millert  8099:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8100:   (exit $ac_status); } >/dev/null; then
                   8101:   if test -s conftest.err; then
                   8102:     ac_cpp_err=$ac_c_preproc_warn_flag
                   8103:   else
                   8104:     ac_cpp_err=
                   8105:   fi
1.1       millert  8106: else
1.9       millert  8107:   ac_cpp_err=yes
                   8108: fi
                   8109: if test -z "$ac_cpp_err"; then
1.16    ! millert  8110:   ac_header_preproc=yes
1.1       millert  8111: else
1.9       millert  8112:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8113: sed 's/^/| /' conftest.$ac_ext >&5
        !          8114:
        !          8115:   ac_header_preproc=no
1.1       millert  8116: fi
1.9       millert  8117: rm -f conftest.err conftest.$ac_ext
1.16    ! millert  8118: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          8119: echo "${ECHO_T}$ac_header_preproc" >&6
        !          8120:
        !          8121: # So?  What about this header?
        !          8122: case $ac_header_compiler:$ac_header_preproc in
        !          8123:   yes:no )
        !          8124:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          8125: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          8126:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8127: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8128:     (
        !          8129:       cat <<\_ASBOX
        !          8130: ## ------------------------------------ ##
        !          8131: ## Report this to bug-autoconf@gnu.org. ##
        !          8132: ## ------------------------------------ ##
        !          8133: _ASBOX
        !          8134:     ) |
        !          8135:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8136:     ;;
        !          8137:   no:yes )
        !          8138:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          8139: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          8140:     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
        !          8141: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
        !          8142:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8143: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8144:     (
        !          8145:       cat <<\_ASBOX
        !          8146: ## ------------------------------------ ##
        !          8147: ## Report this to bug-autoconf@gnu.org. ##
        !          8148: ## ------------------------------------ ##
        !          8149: _ASBOX
        !          8150:     ) |
        !          8151:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8152:     ;;
        !          8153: esac
        !          8154: echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          8155: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
        !          8156: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8157:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          8158: else
        !          8159:   eval "$as_ac_Header=$ac_header_preproc"
1.1       millert  8160: fi
1.16    ! millert  8161: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  8162: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16    ! millert  8163:
        !          8164: fi
1.9       millert  8165: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16    ! millert  8166:   cat >>confdefs.h <<_ACEOF
1.9       millert  8167: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16    ! millert  8168: _ACEOF
1.9       millert  8169:
1.1       millert  8170: fi
1.16    ! millert  8171:
1.1       millert  8172: done
                   8173:
                   8174: if test "$OS" != "ultrix"; then
1.16    ! millert  8175:     echo "$as_me:$LINENO: checking POSIX termios" >&5
1.9       millert  8176: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
                   8177: if test "${ac_cv_sys_posix_termios+set}" = set; then
                   8178:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8179: else
1.9       millert  8180:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8181: #line $LINENO "configure"
        !          8182: /* confdefs.h.  */
        !          8183: _ACEOF
        !          8184: cat confdefs.h >>conftest.$ac_ext
        !          8185: cat >>conftest.$ac_ext <<_ACEOF
        !          8186: /* end confdefs.h.  */
1.9       millert  8187: #include <sys/types.h>
                   8188: #include <unistd.h>
                   8189: #include <termios.h>
1.16    ! millert  8190:
1.9       millert  8191: int
                   8192: main ()
                   8193: {
                   8194: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   8195:    tcgetattr(0, 0);
                   8196:   ;
                   8197:   return 0;
                   8198: }
                   8199: _ACEOF
                   8200: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  8201: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  8202:   (eval $ac_link) 2>&5
                   8203:   ac_status=$?
1.16    ! millert  8204:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8205:   (exit $ac_status); } &&
                   8206:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  8207:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  8208:   (eval $ac_try) 2>&5
                   8209:   ac_status=$?
1.16    ! millert  8210:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8211:   (exit $ac_status); }; }; then
                   8212:   ac_cv_sys_posix_termios=yes
                   8213: else
                   8214:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8215: sed 's/^/| /' conftest.$ac_ext >&5
        !          8216:
1.9       millert  8217: ac_cv_sys_posix_termios=no
                   8218: fi
                   8219: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8220: fi
1.16    ! millert  8221: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
1.9       millert  8222: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
                   8223:
                   8224:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   8225:
1.16    ! millert  8226: cat >>confdefs.h <<\_ACEOF
1.9       millert  8227: #define HAVE_TERMIOS_H 1
1.16    ! millert  8228: _ACEOF
1.9       millert  8229:
                   8230:     else
                   8231:
                   8232: for ac_header in termio.h
                   8233: do
                   8234: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16    ! millert  8235: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8236:   echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9       millert  8237: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   8238: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   8239:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16    ! millert  8240: fi
        !          8241: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
        !          8242: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
        !          8243: else
        !          8244:   # Is the header compilable?
        !          8245: echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          8246: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
        !          8247: cat >conftest.$ac_ext <<_ACEOF
        !          8248: #line $LINENO "configure"
        !          8249: /* confdefs.h.  */
        !          8250: _ACEOF
        !          8251: cat confdefs.h >>conftest.$ac_ext
        !          8252: cat >>conftest.$ac_ext <<_ACEOF
        !          8253: /* end confdefs.h.  */
        !          8254: $ac_includes_default
        !          8255: #include <$ac_header>
        !          8256: _ACEOF
        !          8257: rm -f conftest.$ac_objext
        !          8258: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          8259:   (eval $ac_compile) 2>&5
        !          8260:   ac_status=$?
        !          8261:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8262:   (exit $ac_status); } &&
        !          8263:          { ac_try='test -s conftest.$ac_objext'
        !          8264:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          8265:   (eval $ac_try) 2>&5
        !          8266:   ac_status=$?
        !          8267:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8268:   (exit $ac_status); }; }; then
        !          8269:   ac_header_compiler=yes
        !          8270: else
        !          8271:   echo "$as_me: failed program was:" >&5
        !          8272: sed 's/^/| /' conftest.$ac_ext >&5
        !          8273:
        !          8274: ac_header_compiler=no
        !          8275: fi
        !          8276: rm -f conftest.$ac_objext conftest.$ac_ext
        !          8277: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          8278: echo "${ECHO_T}$ac_header_compiler" >&6
        !          8279:
        !          8280: # Is the header present?
        !          8281: echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          8282: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
        !          8283: cat >conftest.$ac_ext <<_ACEOF
        !          8284: #line $LINENO "configure"
        !          8285: /* confdefs.h.  */
        !          8286: _ACEOF
        !          8287: cat confdefs.h >>conftest.$ac_ext
        !          8288: cat >>conftest.$ac_ext <<_ACEOF
        !          8289: /* end confdefs.h.  */
1.9       millert  8290: #include <$ac_header>
                   8291: _ACEOF
1.16    ! millert  8292: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  8293:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   8294:   ac_status=$?
1.16    ! millert  8295:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  8296:   rm -f conftest.er1
                   8297:   cat conftest.err >&5
1.16    ! millert  8298:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8299:   (exit $ac_status); } >/dev/null; then
                   8300:   if test -s conftest.err; then
                   8301:     ac_cpp_err=$ac_c_preproc_warn_flag
                   8302:   else
                   8303:     ac_cpp_err=
                   8304:   fi
                   8305: else
                   8306:   ac_cpp_err=yes
                   8307: fi
                   8308: if test -z "$ac_cpp_err"; then
1.16    ! millert  8309:   ac_header_preproc=yes
1.1       millert  8310: else
1.9       millert  8311:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8312: sed 's/^/| /' conftest.$ac_ext >&5
        !          8313:
        !          8314:   ac_header_preproc=no
1.1       millert  8315: fi
1.9       millert  8316: rm -f conftest.err conftest.$ac_ext
1.16    ! millert  8317: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          8318: echo "${ECHO_T}$ac_header_preproc" >&6
        !          8319:
        !          8320: # So?  What about this header?
        !          8321: case $ac_header_compiler:$ac_header_preproc in
        !          8322:   yes:no )
        !          8323:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          8324: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          8325:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8326: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8327:     (
        !          8328:       cat <<\_ASBOX
        !          8329: ## ------------------------------------ ##
        !          8330: ## Report this to bug-autoconf@gnu.org. ##
        !          8331: ## ------------------------------------ ##
        !          8332: _ASBOX
        !          8333:     ) |
        !          8334:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8335:     ;;
        !          8336:   no:yes )
        !          8337:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          8338: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          8339:     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
        !          8340: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
        !          8341:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8342: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8343:     (
        !          8344:       cat <<\_ASBOX
        !          8345: ## ------------------------------------ ##
        !          8346: ## Report this to bug-autoconf@gnu.org. ##
        !          8347: ## ------------------------------------ ##
        !          8348: _ASBOX
        !          8349:     ) |
        !          8350:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8351:     ;;
        !          8352: esac
        !          8353: echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          8354: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
        !          8355: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8356:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          8357: else
        !          8358:   eval "$as_ac_Header=$ac_header_preproc"
1.1       millert  8359: fi
1.16    ! millert  8360: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  8361: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16    ! millert  8362:
        !          8363: fi
1.9       millert  8364: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16    ! millert  8365:   cat >>confdefs.h <<_ACEOF
1.9       millert  8366: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16    ! millert  8367: _ACEOF
1.9       millert  8368:
1.1       millert  8369: fi
1.16    ! millert  8370:
1.1       millert  8371: done
                   8372:
1.9       millert  8373:     fi
                   8374: fi
                   8375: if test "$with_logincap" = "yes"; then
                   8376:
                   8377: for ac_header in login_cap.h
1.1       millert  8378: do
1.9       millert  8379: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16    ! millert  8380: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8381:   echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9       millert  8382: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   8383: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   8384:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16    ! millert  8385: fi
        !          8386: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
        !          8387: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
        !          8388: else
        !          8389:   # Is the header compilable?
        !          8390: echo "$as_me:$LINENO: checking $ac_header usability" >&5
        !          8391: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
        !          8392: cat >conftest.$ac_ext <<_ACEOF
        !          8393: #line $LINENO "configure"
        !          8394: /* confdefs.h.  */
        !          8395: _ACEOF
        !          8396: cat confdefs.h >>conftest.$ac_ext
        !          8397: cat >>conftest.$ac_ext <<_ACEOF
        !          8398: /* end confdefs.h.  */
        !          8399: $ac_includes_default
        !          8400: #include <$ac_header>
        !          8401: _ACEOF
        !          8402: rm -f conftest.$ac_objext
        !          8403: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          8404:   (eval $ac_compile) 2>&5
        !          8405:   ac_status=$?
        !          8406:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8407:   (exit $ac_status); } &&
        !          8408:          { ac_try='test -s conftest.$ac_objext'
        !          8409:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          8410:   (eval $ac_try) 2>&5
        !          8411:   ac_status=$?
        !          8412:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8413:   (exit $ac_status); }; }; then
        !          8414:   ac_header_compiler=yes
1.9       millert  8415: else
1.16    ! millert  8416:   echo "$as_me: failed program was:" >&5
        !          8417: sed 's/^/| /' conftest.$ac_ext >&5
        !          8418:
        !          8419: ac_header_compiler=no
        !          8420: fi
        !          8421: rm -f conftest.$ac_objext conftest.$ac_ext
        !          8422: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          8423: echo "${ECHO_T}$ac_header_compiler" >&6
        !          8424:
        !          8425: # Is the header present?
        !          8426: echo "$as_me:$LINENO: checking $ac_header presence" >&5
        !          8427: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
        !          8428: cat >conftest.$ac_ext <<_ACEOF
        !          8429: #line $LINENO "configure"
        !          8430: /* confdefs.h.  */
        !          8431: _ACEOF
        !          8432: cat confdefs.h >>conftest.$ac_ext
        !          8433: cat >>conftest.$ac_ext <<_ACEOF
        !          8434: /* end confdefs.h.  */
1.9       millert  8435: #include <$ac_header>
                   8436: _ACEOF
1.16    ! millert  8437: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  8438:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   8439:   ac_status=$?
1.16    ! millert  8440:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  8441:   rm -f conftest.er1
                   8442:   cat conftest.err >&5
1.16    ! millert  8443:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8444:   (exit $ac_status); } >/dev/null; then
                   8445:   if test -s conftest.err; then
                   8446:     ac_cpp_err=$ac_c_preproc_warn_flag
                   8447:   else
                   8448:     ac_cpp_err=
                   8449:   fi
1.1       millert  8450: else
1.9       millert  8451:   ac_cpp_err=yes
                   8452: fi
                   8453: if test -z "$ac_cpp_err"; then
1.16    ! millert  8454:   ac_header_preproc=yes
1.1       millert  8455: else
1.9       millert  8456:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8457: sed 's/^/| /' conftest.$ac_ext >&5
        !          8458:
        !          8459:   ac_header_preproc=no
1.1       millert  8460: fi
1.9       millert  8461: rm -f conftest.err conftest.$ac_ext
1.16    ! millert  8462: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          8463: echo "${ECHO_T}$ac_header_preproc" >&6
        !          8464:
        !          8465: # So?  What about this header?
        !          8466: case $ac_header_compiler:$ac_header_preproc in
        !          8467:   yes:no )
        !          8468:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
        !          8469: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          8470:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8471: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8472:     (
        !          8473:       cat <<\_ASBOX
        !          8474: ## ------------------------------------ ##
        !          8475: ## Report this to bug-autoconf@gnu.org. ##
        !          8476: ## ------------------------------------ ##
        !          8477: _ASBOX
        !          8478:     ) |
        !          8479:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8480:     ;;
        !          8481:   no:yes )
        !          8482:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
        !          8483: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
        !          8484:     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
        !          8485: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
        !          8486:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
        !          8487: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
        !          8488:     (
        !          8489:       cat <<\_ASBOX
        !          8490: ## ------------------------------------ ##
        !          8491: ## Report this to bug-autoconf@gnu.org. ##
        !          8492: ## ------------------------------------ ##
        !          8493: _ASBOX
        !          8494:     ) |
        !          8495:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8496:     ;;
        !          8497: esac
        !          8498: echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          8499: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
        !          8500: if eval "test \"\${$as_ac_Header+set}\" = set"; then
        !          8501:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          8502: else
        !          8503:   eval "$as_ac_Header=$ac_header_preproc"
1.1       millert  8504: fi
1.16    ! millert  8505: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  8506: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16    ! millert  8507:
        !          8508: fi
1.9       millert  8509: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16    ! millert  8510:   cat >>confdefs.h <<_ACEOF
1.9       millert  8511: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16    ! millert  8512: _ACEOF
1.9       millert  8513:
                   8514: fi
1.16    ! millert  8515:
1.9       millert  8516: done
                   8517:
                   8518: fi
                   8519: if test "$with_bsdauth" = "yes"; then
1.16    ! millert  8520:     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
        !          8521:   echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
1.9       millert  8522: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
                   8523: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   8524:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16    ! millert  8525: fi
        !          8526: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
        !          8527: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
        !          8528: else
        !          8529:   # Is the header compilable?
        !          8530: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
        !          8531: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
        !          8532: cat >conftest.$ac_ext <<_ACEOF
        !          8533: #line $LINENO "configure"
        !          8534: /* confdefs.h.  */
        !          8535: _ACEOF
        !          8536: cat confdefs.h >>conftest.$ac_ext
        !          8537: cat >>conftest.$ac_ext <<_ACEOF
        !          8538: /* end confdefs.h.  */
        !          8539: $ac_includes_default
        !          8540: #include <bsd_auth.h>
        !          8541: _ACEOF
        !          8542: rm -f conftest.$ac_objext
        !          8543: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
        !          8544:   (eval $ac_compile) 2>&5
        !          8545:   ac_status=$?
        !          8546:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8547:   (exit $ac_status); } &&
        !          8548:          { ac_try='test -s conftest.$ac_objext'
        !          8549:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          8550:   (eval $ac_try) 2>&5
        !          8551:   ac_status=$?
        !          8552:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8553:   (exit $ac_status); }; }; then
        !          8554:   ac_header_compiler=yes
1.1       millert  8555: else
1.16    ! millert  8556:   echo "$as_me: failed program was:" >&5
        !          8557: sed 's/^/| /' conftest.$ac_ext >&5
        !          8558:
        !          8559: ac_header_compiler=no
        !          8560: fi
        !          8561: rm -f conftest.$ac_objext conftest.$ac_ext
        !          8562: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          8563: echo "${ECHO_T}$ac_header_compiler" >&6
        !          8564:
        !          8565: # Is the header present?
        !          8566: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
        !          8567: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
        !          8568: cat >conftest.$ac_ext <<_ACEOF
        !          8569: #line $LINENO "configure"
        !          8570: /* confdefs.h.  */
        !          8571: _ACEOF
        !          8572: cat confdefs.h >>conftest.$ac_ext
        !          8573: cat >>conftest.$ac_ext <<_ACEOF
        !          8574: /* end confdefs.h.  */
1.9       millert  8575: #include <bsd_auth.h>
                   8576: _ACEOF
1.16    ! millert  8577: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  8578:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   8579:   ac_status=$?
1.16    ! millert  8580:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  8581:   rm -f conftest.er1
                   8582:   cat conftest.err >&5
1.16    ! millert  8583:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8584:   (exit $ac_status); } >/dev/null; then
                   8585:   if test -s conftest.err; then
                   8586:     ac_cpp_err=$ac_c_preproc_warn_flag
                   8587:   else
                   8588:     ac_cpp_err=
                   8589:   fi
                   8590: else
                   8591:   ac_cpp_err=yes
                   8592: fi
                   8593: if test -z "$ac_cpp_err"; then
1.16    ! millert  8594:   ac_header_preproc=yes
1.1       millert  8595: else
1.9       millert  8596:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8597: sed 's/^/| /' conftest.$ac_ext >&5
        !          8598:
        !          8599:   ac_header_preproc=no
1.1       millert  8600: fi
1.9       millert  8601: rm -f conftest.err conftest.$ac_ext
1.16    ! millert  8602: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          8603: echo "${ECHO_T}$ac_header_preproc" >&6
        !          8604:
        !          8605: # So?  What about this header?
        !          8606: case $ac_header_compiler:$ac_header_preproc in
        !          8607:   yes:no )
        !          8608:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
        !          8609: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          8610:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
        !          8611: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
        !          8612:     (
        !          8613:       cat <<\_ASBOX
        !          8614: ## ------------------------------------ ##
        !          8615: ## Report this to bug-autoconf@gnu.org. ##
        !          8616: ## ------------------------------------ ##
        !          8617: _ASBOX
        !          8618:     ) |
        !          8619:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8620:     ;;
        !          8621:   no:yes )
        !          8622:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
        !          8623: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
        !          8624:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
        !          8625: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
        !          8626:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
        !          8627: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
        !          8628:     (
        !          8629:       cat <<\_ASBOX
        !          8630: ## ------------------------------------ ##
        !          8631: ## Report this to bug-autoconf@gnu.org. ##
        !          8632: ## ------------------------------------ ##
        !          8633: _ASBOX
        !          8634:     ) |
        !          8635:       sed "s/^/$as_me: WARNING:     /" >&2
        !          8636:     ;;
        !          8637: esac
        !          8638: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
        !          8639: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
        !          8640: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
        !          8641:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          8642: else
        !          8643:   ac_cv_header_bsd_auth_h=$ac_header_preproc
1.1       millert  8644: fi
1.16    ! millert  8645: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
1.9       millert  8646: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.16    ! millert  8647:
        !          8648: fi
1.9       millert  8649: if test $ac_cv_header_bsd_auth_h = yes; then
1.1       millert  8650:
1.16    ! millert  8651: cat >>confdefs.h <<\_ACEOF
1.9       millert  8652: #define HAVE_BSD_AUTH_H 1
1.16    ! millert  8653: _ACEOF
1.9       millert  8654:  with_passwd=no; AUTH_OBJS=bsdauth.o
1.16    ! millert  8655: else
        !          8656:   -
1.9       millert  8657: fi
                   8658:
1.1       millert  8659:
                   8660: fi
1.16    ! millert  8661: echo "$as_me:$LINENO: checking for mode_t" >&5
1.9       millert  8662: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
                   8663: if test "${ac_cv_type_mode_t+set}" = set; then
                   8664:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  8665: else
1.9       millert  8666:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8667: #line $LINENO "configure"
        !          8668: /* confdefs.h.  */
        !          8669: _ACEOF
        !          8670: cat confdefs.h >>conftest.$ac_ext
        !          8671: cat >>conftest.$ac_ext <<_ACEOF
        !          8672: /* end confdefs.h.  */
1.9       millert  8673: $ac_includes_default
                   8674: int
                   8675: main ()
                   8676: {
                   8677: if ((mode_t *) 0)
                   8678:   return 0;
                   8679: if (sizeof (mode_t))
                   8680:   return 0;
                   8681:   ;
                   8682:   return 0;
                   8683: }
                   8684: _ACEOF
                   8685: rm -f conftest.$ac_objext
1.16    ! millert  8686: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  8687:   (eval $ac_compile) 2>&5
                   8688:   ac_status=$?
1.16    ! millert  8689:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8690:   (exit $ac_status); } &&
                   8691:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  8692:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  8693:   (eval $ac_try) 2>&5
                   8694:   ac_status=$?
1.16    ! millert  8695:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8696:   (exit $ac_status); }; }; then
                   8697:   ac_cv_type_mode_t=yes
                   8698: else
                   8699:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8700: sed 's/^/| /' conftest.$ac_ext >&5
        !          8701:
1.9       millert  8702: ac_cv_type_mode_t=no
                   8703: fi
                   8704: rm -f conftest.$ac_objext conftest.$ac_ext
                   8705: fi
1.16    ! millert  8706: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
1.9       millert  8707: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
                   8708: if test $ac_cv_type_mode_t = yes; then
                   8709:   :
1.7       millert  8710: else
1.9       millert  8711:
1.16    ! millert  8712: cat >>confdefs.h <<_ACEOF
1.9       millert  8713: #define mode_t int
1.16    ! millert  8714: _ACEOF
1.9       millert  8715:
1.7       millert  8716: fi
                   8717:
1.16    ! millert  8718: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
1.9       millert  8719: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
                   8720: if test "${ac_cv_type_uid_t+set}" = set; then
                   8721:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  8722: else
1.9       millert  8723:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8724: #line $LINENO "configure"
        !          8725: /* confdefs.h.  */
        !          8726: _ACEOF
        !          8727: cat confdefs.h >>conftest.$ac_ext
        !          8728: cat >>conftest.$ac_ext <<_ACEOF
        !          8729: /* end confdefs.h.  */
1.9       millert  8730: #include <sys/types.h>
                   8731:
                   8732: _ACEOF
                   8733: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  8734:   $EGREP "uid_t" >/dev/null 2>&1; then
1.9       millert  8735:   ac_cv_type_uid_t=yes
1.7       millert  8736: else
1.9       millert  8737:   ac_cv_type_uid_t=no
1.7       millert  8738: fi
                   8739: rm -f conftest*
1.9       millert  8740:
1.7       millert  8741: fi
1.16    ! millert  8742: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
1.9       millert  8743: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
                   8744: if test $ac_cv_type_uid_t = no; then
                   8745:
1.16    ! millert  8746: cat >>confdefs.h <<\_ACEOF
1.9       millert  8747: #define uid_t int
1.16    ! millert  8748: _ACEOF
        !          8749:
1.9       millert  8750:
1.16    ! millert  8751: cat >>confdefs.h <<\_ACEOF
1.9       millert  8752: #define gid_t int
1.16    ! millert  8753: _ACEOF
1.9       millert  8754:
                   8755: fi
                   8756:
1.16    ! millert  8757: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
1.9       millert  8758: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
                   8759: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   8760:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8761: else
                   8762:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8763: #line $LINENO "configure"
        !          8764: /* confdefs.h.  */
        !          8765: _ACEOF
        !          8766: cat confdefs.h >>conftest.$ac_ext
        !          8767: cat >>conftest.$ac_ext <<_ACEOF
        !          8768: /* end confdefs.h.  */
1.9       millert  8769: #include <sys/types.h>
                   8770: #include <signal.h>
                   8771:
                   8772: int
                   8773: main ()
                   8774: {
                   8775: if ((sig_atomic_t *) 0)
                   8776:   return 0;
                   8777: if (sizeof (sig_atomic_t))
                   8778:   return 0;
                   8779:   ;
                   8780:   return 0;
                   8781: }
                   8782: _ACEOF
                   8783: rm -f conftest.$ac_objext
1.16    ! millert  8784: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  8785:   (eval $ac_compile) 2>&5
                   8786:   ac_status=$?
1.16    ! millert  8787:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8788:   (exit $ac_status); } &&
                   8789:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  8790:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  8791:   (eval $ac_try) 2>&5
                   8792:   ac_status=$?
1.16    ! millert  8793:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8794:   (exit $ac_status); }; }; then
                   8795:   ac_cv_type_sig_atomic_t=yes
1.7       millert  8796: else
1.9       millert  8797:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8798: sed 's/^/| /' conftest.$ac_ext >&5
        !          8799:
1.9       millert  8800: ac_cv_type_sig_atomic_t=no
1.7       millert  8801: fi
1.9       millert  8802: rm -f conftest.$ac_objext conftest.$ac_ext
1.7       millert  8803: fi
1.16    ! millert  8804: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
1.9       millert  8805: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
                   8806: if test $ac_cv_type_sig_atomic_t = yes; then
1.7       millert  8807:
1.16    ! millert  8808: cat >>confdefs.h <<_ACEOF
1.9       millert  8809: #define HAVE_SIG_ATOMIC_T 1
1.16    ! millert  8810: _ACEOF
        !          8811:
1.9       millert  8812:
1.1       millert  8813: else
                   8814:
1.16    ! millert  8815: cat >>confdefs.h <<\_ACEOF
1.9       millert  8816: #define sig_atomic_t int
1.16    ! millert  8817: _ACEOF
1.1       millert  8818:
                   8819: fi
                   8820:
1.16    ! millert  8821: echo "$as_me:$LINENO: checking for sigaction_t" >&5
1.9       millert  8822: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
                   8823: if test "${ac_cv_type_sigaction_t+set}" = set; then
                   8824:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8825: else
1.9       millert  8826:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8827: #line $LINENO "configure"
        !          8828: /* confdefs.h.  */
        !          8829: _ACEOF
        !          8830: cat confdefs.h >>conftest.$ac_ext
        !          8831: cat >>conftest.$ac_ext <<_ACEOF
        !          8832: /* end confdefs.h.  */
1.1       millert  8833: #include <sys/types.h>
1.9       millert  8834: #include <signal.h>
                   8835:
                   8836: int
                   8837: main ()
                   8838: {
                   8839: if ((sigaction_t *) 0)
                   8840:   return 0;
                   8841: if (sizeof (sigaction_t))
                   8842:   return 0;
                   8843:   ;
                   8844:   return 0;
                   8845: }
                   8846: _ACEOF
                   8847: rm -f conftest.$ac_objext
1.16    ! millert  8848: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  8849:   (eval $ac_compile) 2>&5
                   8850:   ac_status=$?
1.16    ! millert  8851:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8852:   (exit $ac_status); } &&
                   8853:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  8854:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  8855:   (eval $ac_try) 2>&5
                   8856:   ac_status=$?
1.16    ! millert  8857:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  8858:   (exit $ac_status); }; }; then
                   8859:   ac_cv_type_sigaction_t=yes
1.1       millert  8860: else
1.9       millert  8861:   echo "$as_me: failed program was:" >&5
1.16    ! millert  8862: sed 's/^/| /' conftest.$ac_ext >&5
        !          8863:
1.9       millert  8864: ac_cv_type_sigaction_t=no
1.1       millert  8865: fi
1.9       millert  8866: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  8867: fi
1.16    ! millert  8868: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
1.9       millert  8869: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
                   8870: if test $ac_cv_type_sigaction_t = yes; then
1.1       millert  8871:
1.16    ! millert  8872: cat >>confdefs.h <<_ACEOF
1.9       millert  8873: #define HAVE_SIGACTION_T 1
1.16    ! millert  8874: _ACEOF
        !          8875:
1.1       millert  8876:
1.16    ! millert  8877: cat >>confdefs.h <<\_ACEOF
1.9       millert  8878: #define HAVE_SIGACTION_T 1
1.16    ! millert  8879: _ACEOF
1.1       millert  8880:
                   8881: fi
                   8882:
1.16    ! millert  8883: echo "$as_me:$LINENO: checking for size_t" >&5
1.9       millert  8884: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
                   8885: if test "${sudo_cv_type_size_t+set}" = set; then
                   8886:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8887: else
1.9       millert  8888:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8889: #line $LINENO "configure"
        !          8890: /* confdefs.h.  */
        !          8891: _ACEOF
        !          8892: cat confdefs.h >>conftest.$ac_ext
        !          8893: cat >>conftest.$ac_ext <<_ACEOF
        !          8894: /* end confdefs.h.  */
1.1       millert  8895: #include <sys/types.h>
1.9       millert  8896: #include <stdio.h>
1.1       millert  8897: #if STDC_HEADERS
                   8898: #include <stdlib.h>
                   8899: #endif
                   8900: #if HAVE_UNISTD_H
                   8901: #include <unistd.h>
                   8902: #endif
1.9       millert  8903: _ACEOF
1.1       millert  8904: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  8905:   $EGREP "size_t" >/dev/null 2>&1; then
1.1       millert  8906:   sudo_cv_type_size_t=yes
                   8907: else
                   8908:   sudo_cv_type_size_t=no
                   8909: fi
                   8910: rm -f conftest*
                   8911:
                   8912: fi
1.16    ! millert  8913: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
1.9       millert  8914: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1       millert  8915: if test $sudo_cv_type_size_t = no; then
1.9       millert  8916:
1.16    ! millert  8917: cat >>confdefs.h <<\_ACEOF
1.1       millert  8918: #define size_t int
1.16    ! millert  8919: _ACEOF
1.1       millert  8920:
                   8921: fi
                   8922:
1.16    ! millert  8923: echo "$as_me:$LINENO: checking for ssize_t" >&5
1.9       millert  8924: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
                   8925: if test "${sudo_cv_type_ssize_t+set}" = set; then
                   8926:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8927: else
1.9       millert  8928:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8929: #line $LINENO "configure"
        !          8930: /* confdefs.h.  */
        !          8931: _ACEOF
        !          8932: cat confdefs.h >>conftest.$ac_ext
        !          8933: cat >>conftest.$ac_ext <<_ACEOF
        !          8934: /* end confdefs.h.  */
1.1       millert  8935: #include <sys/types.h>
1.9       millert  8936: #include <stdio.h>
1.1       millert  8937: #if STDC_HEADERS
                   8938: #include <stdlib.h>
                   8939: #endif
                   8940: #if HAVE_UNISTD_H
                   8941: #include <unistd.h>
                   8942: #endif
1.9       millert  8943: _ACEOF
1.1       millert  8944: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  8945:   $EGREP "ssize_t" >/dev/null 2>&1; then
1.1       millert  8946:   sudo_cv_type_ssize_t=yes
                   8947: else
                   8948:   sudo_cv_type_ssize_t=no
                   8949: fi
                   8950: rm -f conftest*
                   8951:
                   8952: fi
1.16    ! millert  8953: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
1.9       millert  8954: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1       millert  8955: if test $sudo_cv_type_ssize_t = no; then
1.9       millert  8956:
1.16    ! millert  8957: cat >>confdefs.h <<\_ACEOF
1.1       millert  8958: #define ssize_t int
1.16    ! millert  8959: _ACEOF
1.1       millert  8960:
                   8961: fi
                   8962:
1.16    ! millert  8963: echo "$as_me:$LINENO: checking for dev_t" >&5
1.9       millert  8964: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
                   8965: if test "${sudo_cv_type_dev_t+set}" = set; then
                   8966:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8967: else
1.9       millert  8968:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  8969: #line $LINENO "configure"
        !          8970: /* confdefs.h.  */
        !          8971: _ACEOF
        !          8972: cat confdefs.h >>conftest.$ac_ext
        !          8973: cat >>conftest.$ac_ext <<_ACEOF
        !          8974: /* end confdefs.h.  */
1.1       millert  8975: #include <sys/types.h>
1.9       millert  8976: #include <stdio.h>
1.1       millert  8977: #if STDC_HEADERS
                   8978: #include <stdlib.h>
                   8979: #endif
                   8980: #if HAVE_UNISTD_H
                   8981: #include <unistd.h>
                   8982: #endif
1.9       millert  8983: _ACEOF
1.1       millert  8984: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  8985:   $EGREP "dev_t" >/dev/null 2>&1; then
1.1       millert  8986:   sudo_cv_type_dev_t=yes
                   8987: else
                   8988:   sudo_cv_type_dev_t=no
                   8989: fi
                   8990: rm -f conftest*
                   8991:
                   8992: fi
1.16    ! millert  8993: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
1.9       millert  8994: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1       millert  8995: if test $sudo_cv_type_dev_t = no; then
1.9       millert  8996:
1.16    ! millert  8997: cat >>confdefs.h <<\_ACEOF
1.1       millert  8998: #define dev_t int
1.16    ! millert  8999: _ACEOF
1.1       millert  9000:
                   9001: fi
                   9002:
1.16    ! millert  9003: echo "$as_me:$LINENO: checking for ino_t" >&5
1.9       millert  9004: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
                   9005: if test "${sudo_cv_type_ino_t+set}" = set; then
                   9006:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9007: else
1.9       millert  9008:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9009: #line $LINENO "configure"
        !          9010: /* confdefs.h.  */
        !          9011: _ACEOF
        !          9012: cat confdefs.h >>conftest.$ac_ext
        !          9013: cat >>conftest.$ac_ext <<_ACEOF
        !          9014: /* end confdefs.h.  */
1.1       millert  9015: #include <sys/types.h>
1.9       millert  9016: #include <stdio.h>
1.1       millert  9017: #if STDC_HEADERS
                   9018: #include <stdlib.h>
                   9019: #endif
                   9020: #if HAVE_UNISTD_H
                   9021: #include <unistd.h>
                   9022: #endif
1.9       millert  9023: _ACEOF
1.1       millert  9024: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  9025:   $EGREP "ino_t" >/dev/null 2>&1; then
1.1       millert  9026:   sudo_cv_type_ino_t=yes
                   9027: else
                   9028:   sudo_cv_type_ino_t=no
                   9029: fi
                   9030: rm -f conftest*
                   9031:
                   9032: fi
1.16    ! millert  9033: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
1.9       millert  9034: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1       millert  9035: if test $sudo_cv_type_ino_t = no; then
1.9       millert  9036:
1.16    ! millert  9037: cat >>confdefs.h <<\_ACEOF
1.1       millert  9038: #define ino_t unsigned int
1.16    ! millert  9039: _ACEOF
1.1       millert  9040:
                   9041: fi
                   9042:
1.16    ! millert  9043: echo "$as_me:$LINENO: checking for full void implementation" >&5
1.9       millert  9044: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
                   9045: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9046: #line $LINENO "configure"
        !          9047: /* confdefs.h.  */
        !          9048: _ACEOF
        !          9049: cat confdefs.h >>conftest.$ac_ext
        !          9050: cat >>conftest.$ac_ext <<_ACEOF
        !          9051: /* end confdefs.h.  */
1.1       millert  9052:
1.9       millert  9053: int
                   9054: main ()
                   9055: {
1.1       millert  9056: void *foo;
                   9057: foo = (void *)0; (void *)"test";
1.9       millert  9058:   ;
                   9059:   return 0;
                   9060: }
                   9061: _ACEOF
                   9062: rm -f conftest.$ac_objext
1.16    ! millert  9063: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  9064:   (eval $ac_compile) 2>&5
                   9065:   ac_status=$?
1.16    ! millert  9066:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9067:   (exit $ac_status); } &&
                   9068:          { ac_try='test -s conftest.$ac_objext'
1.16    ! millert  9069:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9070:   (eval $ac_try) 2>&5
                   9071:   ac_status=$?
1.16    ! millert  9072:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9073:   (exit $ac_status); }; }; then
                   9074:
1.16    ! millert  9075: cat >>confdefs.h <<\_ACEOF
1.1       millert  9076: #define VOID void
1.16    ! millert  9077: _ACEOF
1.1       millert  9078:
1.16    ! millert  9079: echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  9080: echo "${ECHO_T}yes" >&6
1.1       millert  9081: else
1.9       millert  9082:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9083: sed 's/^/| /' conftest.$ac_ext >&5
        !          9084:
        !          9085: cat >>confdefs.h <<\_ACEOF
1.1       millert  9086: #define VOID char
1.16    ! millert  9087: _ACEOF
1.1       millert  9088:
1.16    ! millert  9089: echo "$as_me:$LINENO: result: no" >&5
1.9       millert  9090: echo "${ECHO_T}no" >&6
1.1       millert  9091: fi
1.9       millert  9092: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  9093:
1.16    ! millert  9094: echo "$as_me:$LINENO: checking max length of uid_t" >&5
1.9       millert  9095: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
                   9096: if test "${sudo_cv_uid_t_len+set}" = set; then
                   9097:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9098: else
                   9099:   rm -f conftestdata
                   9100: if test "$cross_compiling" = yes; then
1.16    ! millert  9101:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
        !          9102: See \`config.log' for more details." >&5
        !          9103: echo "$as_me: error: cannot run test program while cross compiling
        !          9104: See \`config.log' for more details." >&2;}
1.9       millert  9105:    { (exit 1); exit 1; }; }
1.1       millert  9106: else
1.9       millert  9107:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9108: #line $LINENO "configure"
        !          9109: /* confdefs.h.  */
        !          9110: _ACEOF
        !          9111: cat confdefs.h >>conftest.$ac_ext
        !          9112: cat >>conftest.$ac_ext <<_ACEOF
        !          9113: /* end confdefs.h.  */
1.1       millert  9114: #include <stdio.h>
                   9115: #include <pwd.h>
                   9116: #include <limits.h>
                   9117: #include <sys/types.h>
                   9118: #include <sys/param.h>
                   9119: main() {
                   9120:   FILE *f;
                   9121:   char b[1024];
                   9122:   uid_t u = (uid_t) -1;
                   9123:
                   9124:   if ((f = fopen("conftestdata", "w")) == NULL)
                   9125:     exit(1);
                   9126:
1.16    ! millert  9127:   (void) sprintf(b, "%lu", (unsigned long) u);
1.1       millert  9128:   (void) fprintf(f, "%d\n", strlen(b));
                   9129:   (void) fclose(f);
                   9130:   exit(0);
                   9131: }
1.9       millert  9132: _ACEOF
                   9133: rm -f conftest$ac_exeext
1.16    ! millert  9134: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9135:   (eval $ac_link) 2>&5
                   9136:   ac_status=$?
1.16    ! millert  9137:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9138:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  9139:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9140:   (eval $ac_try) 2>&5
                   9141:   ac_status=$?
1.16    ! millert  9142:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9143:   (exit $ac_status); }; }; then
1.1       millert  9144:   sudo_cv_uid_t_len=`cat conftestdata`
                   9145: else
1.9       millert  9146:   echo "$as_me: program exited with status $ac_status" >&5
                   9147: echo "$as_me: failed program was:" >&5
1.16    ! millert  9148: sed 's/^/| /' conftest.$ac_ext >&5
        !          9149:
        !          9150: ( exit $ac_status )
1.9       millert  9151: sudo_cv_uid_t_len=10
1.1       millert  9152: fi
1.16    ! millert  9153: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  9154: fi
                   9155:
                   9156: fi
                   9157:
                   9158: rm -f conftestdata
1.16    ! millert  9159: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
1.9       millert  9160: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
                   9161:
1.16    ! millert  9162: cat >>confdefs.h <<_ACEOF
1.1       millert  9163: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16    ! millert  9164: _ACEOF
        !          9165:
1.1       millert  9166:
1.16    ! millert  9167: echo "$as_me:$LINENO: checking for long long support" >&5
1.9       millert  9168: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
                   9169: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9170: #line $LINENO "configure"
        !          9171: /* confdefs.h.  */
        !          9172: _ACEOF
        !          9173: cat confdefs.h >>conftest.$ac_ext
        !          9174: cat >>conftest.$ac_ext <<_ACEOF
        !          9175: /* end confdefs.h.  */
1.1       millert  9176:
1.9       millert  9177: int
                   9178: main ()
                   9179: {
1.1       millert  9180: long long foo = 1000; foo /= 10;
1.9       millert  9181:   ;
                   9182:   return 0;
                   9183: }
                   9184: _ACEOF
                   9185: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9186: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9187:   (eval $ac_link) 2>&5
                   9188:   ac_status=$?
1.16    ! millert  9189:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9190:   (exit $ac_status); } &&
                   9191:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9192:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9193:   (eval $ac_try) 2>&5
                   9194:   ac_status=$?
1.16    ! millert  9195:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9196:   (exit $ac_status); }; }; then
                   9197:
1.16    ! millert  9198: cat >>confdefs.h <<\_ACEOF
1.1       millert  9199: #define HAVE_LONG_LONG 1
1.16    ! millert  9200: _ACEOF
1.1       millert  9201:
                   9202: if test "$cross_compiling" = yes; then
1.16    ! millert  9203:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
        !          9204: See \`config.log' for more details." >&5
        !          9205: echo "$as_me: error: cannot run test program while cross compiling
        !          9206: See \`config.log' for more details." >&2;}
1.9       millert  9207:    { (exit 1); exit 1; }; }
1.1       millert  9208: else
1.9       millert  9209:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9210: #line $LINENO "configure"
        !          9211: /* confdefs.h.  */
        !          9212: _ACEOF
        !          9213: cat confdefs.h >>conftest.$ac_ext
        !          9214: cat >>conftest.$ac_ext <<_ACEOF
        !          9215: /* end confdefs.h.  */
1.1       millert  9216: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9       millert  9217: _ACEOF
                   9218: rm -f conftest$ac_exeext
1.16    ! millert  9219: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9220:   (eval $ac_link) 2>&5
                   9221:   ac_status=$?
1.16    ! millert  9222:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9223:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  9224:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9225:   (eval $ac_try) 2>&5
                   9226:   ac_status=$?
1.16    ! millert  9227:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9228:   (exit $ac_status); }; }; then
                   9229:
1.16    ! millert  9230: cat >>confdefs.h <<\_ACEOF
1.1       millert  9231: #define LONG_IS_QUAD 1
1.16    ! millert  9232: _ACEOF
1.1       millert  9233:
                   9234: else
1.9       millert  9235:   echo "$as_me: program exited with status $ac_status" >&5
                   9236: echo "$as_me: failed program was:" >&5
1.16    ! millert  9237: sed 's/^/| /' conftest.$ac_ext >&5
        !          9238:
1.9       millert  9239: fi
1.16    ! millert  9240: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  9241: fi
1.16    ! millert  9242: echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  9243: echo "${ECHO_T}yes" >&6
                   9244: else
                   9245:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9246: sed 's/^/| /' conftest.$ac_ext >&5
        !          9247:
        !          9248: echo "$as_me:$LINENO: result: no" >&5
1.9       millert  9249: echo "${ECHO_T}no" >&6
                   9250: fi
                   9251: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16    ! millert  9252: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
1.9       millert  9253: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
                   9254: if test "${sudo_cv_sock_sa_len+set}" = set; then
                   9255:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9256: else
                   9257:   if test "$cross_compiling" = yes; then
                   9258:   sudo_cv_sock_sa_len=no
                   9259: else
1.9       millert  9260:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9261: #line $LINENO "configure"
        !          9262: /* confdefs.h.  */
        !          9263: _ACEOF
        !          9264: cat confdefs.h >>conftest.$ac_ext
        !          9265: cat >>conftest.$ac_ext <<_ACEOF
        !          9266: /* end confdefs.h.  */
1.1       millert  9267: #include <sys/types.h>
                   9268: #include <sys/socket.h>
                   9269: main() {
                   9270: struct sockaddr s;
                   9271: s.sa_len = 0;
                   9272: exit(0);
                   9273: }
1.9       millert  9274: _ACEOF
                   9275: rm -f conftest$ac_exeext
1.16    ! millert  9276: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9277:   (eval $ac_link) 2>&5
                   9278:   ac_status=$?
1.16    ! millert  9279:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9280:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  9281:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9282:   (eval $ac_try) 2>&5
                   9283:   ac_status=$?
1.16    ! millert  9284:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9285:   (exit $ac_status); }; }; then
1.1       millert  9286:   sudo_cv_sock_sa_len=yes
                   9287: else
1.9       millert  9288:   echo "$as_me: program exited with status $ac_status" >&5
                   9289: echo "$as_me: failed program was:" >&5
1.16    ! millert  9290: sed 's/^/| /' conftest.$ac_ext >&5
        !          9291:
        !          9292: ( exit $ac_status )
1.9       millert  9293: sudo_cv_sock_sa_len=no
1.1       millert  9294: fi
1.16    ! millert  9295: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  9296: fi
                   9297: rm -f core core.* *.core
                   9298: fi
1.16    ! millert  9299: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
1.9       millert  9300: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1       millert  9301: if test $sudo_cv_sock_sa_len = yes; then
1.9       millert  9302:
1.16    ! millert  9303: cat >>confdefs.h <<\_ACEOF
1.1       millert  9304: #define HAVE_SA_LEN 1
1.16    ! millert  9305: _ACEOF
1.1       millert  9306:
                   9307: fi
                   9308:
                   9309: case "$DEFS" in
                   9310:     *"RETSIGTYPE"*)    ;;
1.16    ! millert  9311:     *)                 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
1.9       millert  9312: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
                   9313: if test "${ac_cv_type_signal+set}" = set; then
                   9314:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9315: else
1.9       millert  9316:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9317: #line $LINENO "configure"
        !          9318: /* confdefs.h.  */
        !          9319: _ACEOF
        !          9320: cat confdefs.h >>conftest.$ac_ext
        !          9321: cat >>conftest.$ac_ext <<_ACEOF
        !          9322: /* end confdefs.h.  */
1.1       millert  9323: #include <sys/types.h>
                   9324: #include <signal.h>
                   9325: #ifdef signal
1.9       millert  9326: # undef signal
1.1       millert  9327: #endif
                   9328: #ifdef __cplusplus
                   9329: extern "C" void (*signal (int, void (*)(int)))(int);
                   9330: #else
                   9331: void (*signal ()) ();
                   9332: #endif
                   9333:
1.9       millert  9334: int
                   9335: main ()
                   9336: {
1.1       millert  9337: int i;
1.9       millert  9338:   ;
                   9339:   return 0;
                   9340: }
                   9341: _ACEOF
                   9342: rm -f conftest.$ac_objext
1.16    ! millert  9343: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  9344:   (eval $ac_compile) 2>&5
                   9345:   ac_status=$?
1.16    ! millert  9346:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          9347:   (exit $ac_status); } &&
        !          9348:          { ac_try='test -s conftest.$ac_objext'
        !          9349:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          9350:   (eval $ac_try) 2>&5
        !          9351:   ac_status=$?
        !          9352:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          9353:   (exit $ac_status); }; }; then
        !          9354:   ac_cv_type_signal=void
        !          9355: else
        !          9356:   echo "$as_me: failed program was:" >&5
        !          9357: sed 's/^/| /' conftest.$ac_ext >&5
        !          9358:
        !          9359: ac_cv_type_signal=int
        !          9360: fi
        !          9361: rm -f conftest.$ac_objext conftest.$ac_ext
        !          9362: fi
        !          9363: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
        !          9364: echo "${ECHO_T}$ac_cv_type_signal" >&6
        !          9365:
        !          9366: cat >>confdefs.h <<_ACEOF
        !          9367: #define RETSIGTYPE $ac_cv_type_signal
        !          9368: _ACEOF
        !          9369:
        !          9370: ;;
        !          9371: esac
        !          9372:
        !          9373:
        !          9374:
        !          9375:
        !          9376:
        !          9377:
        !          9378:
        !          9379:
        !          9380:
        !          9381:
        !          9382:
        !          9383: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
        !          9384:               strftime setrlimit initgroups fstat
        !          9385: do
        !          9386: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          9387: echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          9388: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
        !          9389: if eval "test \"\${$as_ac_var+set}\" = set"; then
        !          9390:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          9391: else
        !          9392:   cat >conftest.$ac_ext <<_ACEOF
        !          9393: #line $LINENO "configure"
        !          9394: /* confdefs.h.  */
        !          9395: _ACEOF
        !          9396: cat confdefs.h >>conftest.$ac_ext
        !          9397: cat >>conftest.$ac_ext <<_ACEOF
        !          9398: /* end confdefs.h.  */
        !          9399: /* System header to define __stub macros and hopefully few prototypes,
        !          9400:     which can conflict with char $ac_func (); below.
        !          9401:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9402:     <limits.h> exists even on freestanding compilers.  */
        !          9403: #ifdef __STDC__
        !          9404: # include <limits.h>
        !          9405: #else
        !          9406: # include <assert.h>
        !          9407: #endif
        !          9408: /* Override any gcc2 internal prototype to avoid an error.  */
        !          9409: #ifdef __cplusplus
        !          9410: extern "C"
        !          9411: {
        !          9412: #endif
        !          9413: /* We use char because int might match the return type of a gcc2
        !          9414:    builtin and then its argument prototype would still apply.  */
        !          9415: char $ac_func ();
        !          9416: /* The GNU C library defines this for functions which it implements
        !          9417:     to always fail with ENOSYS.  Some functions are actually named
        !          9418:     something starting with __ and the normal name is an alias.  */
        !          9419: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
        !          9420: choke me
        !          9421: #else
        !          9422: char (*f) () = $ac_func;
        !          9423: #endif
        !          9424: #ifdef __cplusplus
        !          9425: }
        !          9426: #endif
        !          9427:
        !          9428: int
        !          9429: main ()
        !          9430: {
        !          9431: return f != $ac_func;
        !          9432:   ;
        !          9433:   return 0;
        !          9434: }
        !          9435: _ACEOF
        !          9436: rm -f conftest.$ac_objext conftest$ac_exeext
        !          9437: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          9438:   (eval $ac_link) 2>&5
        !          9439:   ac_status=$?
        !          9440:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9441:   (exit $ac_status); } &&
1.16    ! millert  9442:          { ac_try='test -s conftest$ac_exeext'
        !          9443:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9444:   (eval $ac_try) 2>&5
                   9445:   ac_status=$?
1.16    ! millert  9446:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9447:   (exit $ac_status); }; }; then
1.16    ! millert  9448:   eval "$as_ac_var=yes"
1.1       millert  9449: else
1.9       millert  9450:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9451: sed 's/^/| /' conftest.$ac_ext >&5
        !          9452:
        !          9453: eval "$as_ac_var=no"
1.1       millert  9454: fi
1.16    ! millert  9455: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       millert  9456: fi
1.16    ! millert  9457: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
        !          9458: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
        !          9459: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          9460:   cat >>confdefs.h <<_ACEOF
        !          9461: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          9462: _ACEOF
1.1       millert  9463:
1.16    ! millert  9464: fi
        !          9465: done
1.1       millert  9466:
1.16    ! millert  9467: if test -z "$SKIP_SETRESUID"; then
1.9       millert  9468:
1.16    ! millert  9469: for ac_func in setresuid
1.1       millert  9470: do
1.9       millert  9471: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9472: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9473: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9474: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9475:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9476: else
1.9       millert  9477:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9478: #line $LINENO "configure"
        !          9479: /* confdefs.h.  */
        !          9480: _ACEOF
        !          9481: cat confdefs.h >>conftest.$ac_ext
        !          9482: cat >>conftest.$ac_ext <<_ACEOF
        !          9483: /* end confdefs.h.  */
1.1       millert  9484: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  9485:     which can conflict with char $ac_func (); below.
        !          9486:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9487:     <limits.h> exists even on freestanding compilers.  */
        !          9488: #ifdef __STDC__
        !          9489: # include <limits.h>
        !          9490: #else
        !          9491: # include <assert.h>
        !          9492: #endif
1.1       millert  9493: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9494: #ifdef __cplusplus
                   9495: extern "C"
1.16    ! millert  9496: {
1.9       millert  9497: #endif
1.1       millert  9498: /* We use char because int might match the return type of a gcc2
1.9       millert  9499:    builtin and then its argument prototype would still apply.  */
                   9500: char $ac_func ();
1.1       millert  9501: /* The GNU C library defines this for functions which it implements
                   9502:     to always fail with ENOSYS.  Some functions are actually named
                   9503:     something starting with __ and the normal name is an alias.  */
                   9504: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9505: choke me
                   9506: #else
1.16    ! millert  9507: char (*f) () = $ac_func;
        !          9508: #endif
        !          9509: #ifdef __cplusplus
        !          9510: }
1.1       millert  9511: #endif
                   9512:
1.16    ! millert  9513: int
        !          9514: main ()
        !          9515: {
        !          9516: return f != $ac_func;
1.9       millert  9517:   ;
                   9518:   return 0;
                   9519: }
                   9520: _ACEOF
                   9521: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9522: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9523:   (eval $ac_link) 2>&5
                   9524:   ac_status=$?
1.16    ! millert  9525:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9526:   (exit $ac_status); } &&
                   9527:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9528:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9529:   (eval $ac_try) 2>&5
                   9530:   ac_status=$?
1.16    ! millert  9531:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9532:   (exit $ac_status); }; }; then
                   9533:   eval "$as_ac_var=yes"
                   9534: else
                   9535:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9536: sed 's/^/| /' conftest.$ac_ext >&5
        !          9537:
1.9       millert  9538: eval "$as_ac_var=no"
                   9539: fi
                   9540: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9541: fi
1.16    ! millert  9542: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  9543: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9544: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9545:   cat >>confdefs.h <<_ACEOF
1.9       millert  9546: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9547: _ACEOF
        !          9548:  SKIP_SETREUID=yes
1.1       millert  9549: fi
                   9550: done
                   9551:
1.16    ! millert  9552: fi
        !          9553: if test -z "$SKIP_SETREUID"; then
1.9       millert  9554:
                   9555: for ac_func in setreuid
1.1       millert  9556: do
1.9       millert  9557: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9558: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9559: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9560: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9561:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9562: else
1.9       millert  9563:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9564: #line $LINENO "configure"
        !          9565: /* confdefs.h.  */
        !          9566: _ACEOF
        !          9567: cat confdefs.h >>conftest.$ac_ext
        !          9568: cat >>conftest.$ac_ext <<_ACEOF
        !          9569: /* end confdefs.h.  */
1.1       millert  9570: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  9571:     which can conflict with char $ac_func (); below.
        !          9572:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9573:     <limits.h> exists even on freestanding compilers.  */
        !          9574: #ifdef __STDC__
        !          9575: # include <limits.h>
        !          9576: #else
        !          9577: # include <assert.h>
        !          9578: #endif
1.1       millert  9579: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9580: #ifdef __cplusplus
                   9581: extern "C"
1.16    ! millert  9582: {
1.9       millert  9583: #endif
1.1       millert  9584: /* We use char because int might match the return type of a gcc2
1.9       millert  9585:    builtin and then its argument prototype would still apply.  */
                   9586: char $ac_func ();
1.1       millert  9587: /* The GNU C library defines this for functions which it implements
                   9588:     to always fail with ENOSYS.  Some functions are actually named
                   9589:     something starting with __ and the normal name is an alias.  */
                   9590: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9591: choke me
                   9592: #else
1.16    ! millert  9593: char (*f) () = $ac_func;
        !          9594: #endif
        !          9595: #ifdef __cplusplus
        !          9596: }
1.1       millert  9597: #endif
                   9598:
1.16    ! millert  9599: int
        !          9600: main ()
        !          9601: {
        !          9602: return f != $ac_func;
1.9       millert  9603:   ;
                   9604:   return 0;
                   9605: }
                   9606: _ACEOF
                   9607: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9608: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9609:   (eval $ac_link) 2>&5
                   9610:   ac_status=$?
1.16    ! millert  9611:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9612:   (exit $ac_status); } &&
                   9613:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9614:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9615:   (eval $ac_try) 2>&5
                   9616:   ac_status=$?
1.16    ! millert  9617:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9618:   (exit $ac_status); }; }; then
                   9619:   eval "$as_ac_var=yes"
                   9620: else
                   9621:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9622: sed 's/^/| /' conftest.$ac_ext >&5
        !          9623:
1.9       millert  9624: eval "$as_ac_var=no"
                   9625: fi
                   9626: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9627: fi
1.16    ! millert  9628: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  9629: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9630: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9631:   cat >>confdefs.h <<_ACEOF
1.9       millert  9632: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9633: _ACEOF
1.1       millert  9634:
                   9635: fi
                   9636: done
                   9637:
                   9638: fi
1.9       millert  9639: if test X"$with_interfaces" != X"no"; then
1.1       millert  9640:
1.9       millert  9641: for ac_func in getifaddrs
1.1       millert  9642: do
1.9       millert  9643: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9644: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9645: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9646: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9647:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9648: else
1.9       millert  9649:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9650: #line $LINENO "configure"
        !          9651: /* confdefs.h.  */
        !          9652: _ACEOF
        !          9653: cat confdefs.h >>conftest.$ac_ext
        !          9654: cat >>conftest.$ac_ext <<_ACEOF
        !          9655: /* end confdefs.h.  */
1.1       millert  9656: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  9657:     which can conflict with char $ac_func (); below.
        !          9658:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9659:     <limits.h> exists even on freestanding compilers.  */
        !          9660: #ifdef __STDC__
        !          9661: # include <limits.h>
        !          9662: #else
        !          9663: # include <assert.h>
        !          9664: #endif
1.1       millert  9665: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9666: #ifdef __cplusplus
                   9667: extern "C"
1.16    ! millert  9668: {
1.9       millert  9669: #endif
1.1       millert  9670: /* We use char because int might match the return type of a gcc2
1.9       millert  9671:    builtin and then its argument prototype would still apply.  */
                   9672: char $ac_func ();
1.1       millert  9673: /* The GNU C library defines this for functions which it implements
                   9674:     to always fail with ENOSYS.  Some functions are actually named
                   9675:     something starting with __ and the normal name is an alias.  */
                   9676: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9677: choke me
                   9678: #else
1.16    ! millert  9679: char (*f) () = $ac_func;
        !          9680: #endif
        !          9681: #ifdef __cplusplus
        !          9682: }
1.1       millert  9683: #endif
                   9684:
1.16    ! millert  9685: int
        !          9686: main ()
        !          9687: {
        !          9688: return f != $ac_func;
1.9       millert  9689:   ;
                   9690:   return 0;
                   9691: }
                   9692: _ACEOF
                   9693: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9694: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.13      millert  9695:   (eval $ac_link) 2>&5
                   9696:   ac_status=$?
1.16    ! millert  9697:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13      millert  9698:   (exit $ac_status); } &&
                   9699:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9700:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13      millert  9701:   (eval $ac_try) 2>&5
                   9702:   ac_status=$?
1.16    ! millert  9703:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13      millert  9704:   (exit $ac_status); }; }; then
                   9705:   eval "$as_ac_var=yes"
                   9706: else
                   9707:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9708: sed 's/^/| /' conftest.$ac_ext >&5
        !          9709:
1.13      millert  9710: eval "$as_ac_var=no"
                   9711: fi
                   9712: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9713: fi
1.16    ! millert  9714: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.13      millert  9715: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9716: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9717:   cat >>confdefs.h <<_ACEOF
1.13      millert  9718: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9719: _ACEOF
1.13      millert  9720:
                   9721: for ac_func in freeifaddrs
                   9722: do
                   9723: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9724: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.13      millert  9725: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9726: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9727:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   9728: else
                   9729:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9730: #line $LINENO "configure"
        !          9731: /* confdefs.h.  */
        !          9732: _ACEOF
        !          9733: cat confdefs.h >>conftest.$ac_ext
        !          9734: cat >>conftest.$ac_ext <<_ACEOF
        !          9735: /* end confdefs.h.  */
        !          9736: /* System header to define __stub macros and hopefully few prototypes,
        !          9737:     which can conflict with char $ac_func (); below.
        !          9738:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9739:     <limits.h> exists even on freestanding compilers.  */
        !          9740: #ifdef __STDC__
        !          9741: # include <limits.h>
        !          9742: #else
        !          9743: # include <assert.h>
        !          9744: #endif
1.13      millert  9745: /* Override any gcc2 internal prototype to avoid an error.  */
                   9746: #ifdef __cplusplus
                   9747: extern "C"
1.16    ! millert  9748: {
1.13      millert  9749: #endif
                   9750: /* We use char because int might match the return type of a gcc2
                   9751:    builtin and then its argument prototype would still apply.  */
                   9752: char $ac_func ();
                   9753: /* The GNU C library defines this for functions which it implements
                   9754:     to always fail with ENOSYS.  Some functions are actually named
                   9755:     something starting with __ and the normal name is an alias.  */
                   9756: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9757: choke me
                   9758: #else
1.16    ! millert  9759: char (*f) () = $ac_func;
        !          9760: #endif
        !          9761: #ifdef __cplusplus
        !          9762: }
1.13      millert  9763: #endif
                   9764:
1.16    ! millert  9765: int
        !          9766: main ()
        !          9767: {
        !          9768: return f != $ac_func;
1.13      millert  9769:   ;
                   9770:   return 0;
                   9771: }
                   9772: _ACEOF
                   9773: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9775:   (eval $ac_link) 2>&5
                   9776:   ac_status=$?
1.16    ! millert  9777:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9778:   (exit $ac_status); } &&
                   9779:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9780:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9781:   (eval $ac_try) 2>&5
                   9782:   ac_status=$?
1.16    ! millert  9783:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9784:   (exit $ac_status); }; }; then
                   9785:   eval "$as_ac_var=yes"
                   9786: else
                   9787:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9788: sed 's/^/| /' conftest.$ac_ext >&5
        !          9789:
1.9       millert  9790: eval "$as_ac_var=no"
                   9791: fi
                   9792: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9793: fi
1.16    ! millert  9794: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  9795: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9796: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9797:   cat >>confdefs.h <<_ACEOF
1.9       millert  9798: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9799: _ACEOF
1.1       millert  9800:
                   9801: fi
                   9802: done
                   9803:
                   9804: fi
1.13      millert  9805: done
                   9806:
                   9807: fi
1.9       millert  9808: if test -n "$SECUREWARE"; then
1.1       millert  9809:
1.16    ! millert  9810:
        !          9811:
1.9       millert  9812: for ac_func in bigcrypt set_auth_parameters initprivs
                   9813: do
                   9814: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9815: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9816: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9817: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9818:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9819: else
1.9       millert  9820:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9821: #line $LINENO "configure"
        !          9822: /* confdefs.h.  */
        !          9823: _ACEOF
        !          9824: cat confdefs.h >>conftest.$ac_ext
        !          9825: cat >>conftest.$ac_ext <<_ACEOF
        !          9826: /* end confdefs.h.  */
1.1       millert  9827: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  9828:     which can conflict with char $ac_func (); below.
        !          9829:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9830:     <limits.h> exists even on freestanding compilers.  */
        !          9831: #ifdef __STDC__
        !          9832: # include <limits.h>
        !          9833: #else
        !          9834: # include <assert.h>
        !          9835: #endif
1.1       millert  9836: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9837: #ifdef __cplusplus
                   9838: extern "C"
1.16    ! millert  9839: {
1.1       millert  9840: #endif
                   9841: /* We use char because int might match the return type of a gcc2
1.9       millert  9842:    builtin and then its argument prototype would still apply.  */
                   9843: char $ac_func ();
1.1       millert  9844: /* The GNU C library defines this for functions which it implements
                   9845:     to always fail with ENOSYS.  Some functions are actually named
                   9846:     something starting with __ and the normal name is an alias.  */
                   9847: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9848: choke me
                   9849: #else
1.16    ! millert  9850: char (*f) () = $ac_func;
        !          9851: #endif
        !          9852: #ifdef __cplusplus
        !          9853: }
1.1       millert  9854: #endif
                   9855:
1.16    ! millert  9856: int
        !          9857: main ()
        !          9858: {
        !          9859: return f != $ac_func;
1.9       millert  9860:   ;
                   9861:   return 0;
                   9862: }
                   9863: _ACEOF
                   9864: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9865: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9866:   (eval $ac_link) 2>&5
                   9867:   ac_status=$?
1.16    ! millert  9868:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9869:   (exit $ac_status); } &&
                   9870:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9871:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9872:   (eval $ac_try) 2>&5
                   9873:   ac_status=$?
1.16    ! millert  9874:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9875:   (exit $ac_status); }; }; then
                   9876:   eval "$as_ac_var=yes"
                   9877: else
                   9878:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9879: sed 's/^/| /' conftest.$ac_ext >&5
        !          9880:
1.9       millert  9881: eval "$as_ac_var=no"
                   9882: fi
                   9883: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9884: fi
1.16    ! millert  9885: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  9886: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9887: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9888:   cat >>confdefs.h <<_ACEOF
1.9       millert  9889: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9890: _ACEOF
1.1       millert  9891:
                   9892: fi
                   9893: done
                   9894:
                   9895: fi
1.9       millert  9896: if test -z "$BROKEN_GETCWD"; then
1.1       millert  9897:
1.9       millert  9898: for ac_func in getcwd
                   9899: do
                   9900: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9901: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9902: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9903: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9904:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9905: else
1.9       millert  9906:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9907: #line $LINENO "configure"
        !          9908: /* confdefs.h.  */
        !          9909: _ACEOF
        !          9910: cat confdefs.h >>conftest.$ac_ext
        !          9911: cat >>conftest.$ac_ext <<_ACEOF
        !          9912: /* end confdefs.h.  */
1.1       millert  9913: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  9914:     which can conflict with char $ac_func (); below.
        !          9915:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          9916:     <limits.h> exists even on freestanding compilers.  */
        !          9917: #ifdef __STDC__
        !          9918: # include <limits.h>
        !          9919: #else
        !          9920: # include <assert.h>
        !          9921: #endif
1.1       millert  9922: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9923: #ifdef __cplusplus
                   9924: extern "C"
1.16    ! millert  9925: {
1.1       millert  9926: #endif
                   9927: /* We use char because int might match the return type of a gcc2
1.9       millert  9928:    builtin and then its argument prototype would still apply.  */
                   9929: char $ac_func ();
1.1       millert  9930: /* The GNU C library defines this for functions which it implements
                   9931:     to always fail with ENOSYS.  Some functions are actually named
                   9932:     something starting with __ and the normal name is an alias.  */
                   9933: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   9934: choke me
                   9935: #else
1.16    ! millert  9936: char (*f) () = $ac_func;
        !          9937: #endif
        !          9938: #ifdef __cplusplus
        !          9939: }
1.1       millert  9940: #endif
                   9941:
1.16    ! millert  9942: int
        !          9943: main ()
        !          9944: {
        !          9945: return f != $ac_func;
1.9       millert  9946:   ;
                   9947:   return 0;
                   9948: }
                   9949: _ACEOF
                   9950: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  9951: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  9952:   (eval $ac_link) 2>&5
                   9953:   ac_status=$?
1.16    ! millert  9954:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9955:   (exit $ac_status); } &&
                   9956:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  9957:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  9958:   (eval $ac_try) 2>&5
                   9959:   ac_status=$?
1.16    ! millert  9960:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  9961:   (exit $ac_status); }; }; then
                   9962:   eval "$as_ac_var=yes"
                   9963: else
                   9964:   echo "$as_me: failed program was:" >&5
1.16    ! millert  9965: sed 's/^/| /' conftest.$ac_ext >&5
        !          9966:
1.9       millert  9967: eval "$as_ac_var=no"
                   9968: fi
                   9969: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9970: fi
1.16    ! millert  9971: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  9972: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   9973: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  9974:   cat >>confdefs.h <<_ACEOF
1.9       millert  9975: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  9976: _ACEOF
1.1       millert  9977:
                   9978: else
1.9       millert  9979:   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1       millert  9980: fi
                   9981: done
                   9982:
1.16    ! millert  9983:
1.1       millert  9984: fi
                   9985:
1.16    ! millert  9986:
1.9       millert  9987: for ac_func in lockf flock
                   9988: do
                   9989: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  9990: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  9991: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   9992: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   9993:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9994: else
1.9       millert  9995:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  9996: #line $LINENO "configure"
        !          9997: /* confdefs.h.  */
        !          9998: _ACEOF
        !          9999: cat confdefs.h >>conftest.$ac_ext
        !          10000: cat >>conftest.$ac_ext <<_ACEOF
        !          10001: /* end confdefs.h.  */
1.1       millert  10002: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10003:     which can conflict with char $ac_func (); below.
        !          10004:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10005:     <limits.h> exists even on freestanding compilers.  */
        !          10006: #ifdef __STDC__
        !          10007: # include <limits.h>
        !          10008: #else
        !          10009: # include <assert.h>
        !          10010: #endif
1.1       millert  10011: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10012: #ifdef __cplusplus
                   10013: extern "C"
1.16    ! millert  10014: {
1.9       millert  10015: #endif
1.1       millert  10016: /* We use char because int might match the return type of a gcc2
1.9       millert  10017:    builtin and then its argument prototype would still apply.  */
                   10018: char $ac_func ();
1.1       millert  10019: /* The GNU C library defines this for functions which it implements
                   10020:     to always fail with ENOSYS.  Some functions are actually named
                   10021:     something starting with __ and the normal name is an alias.  */
1.9       millert  10022: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10023: choke me
                   10024: #else
1.16    ! millert  10025: char (*f) () = $ac_func;
        !          10026: #endif
        !          10027: #ifdef __cplusplus
        !          10028: }
1.1       millert  10029: #endif
                   10030:
1.16    ! millert  10031: int
        !          10032: main ()
        !          10033: {
        !          10034: return f != $ac_func;
1.9       millert  10035:   ;
                   10036:   return 0;
                   10037: }
                   10038: _ACEOF
                   10039: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10040: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10041:   (eval $ac_link) 2>&5
                   10042:   ac_status=$?
1.16    ! millert  10043:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10044:   (exit $ac_status); } &&
                   10045:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10046:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10047:   (eval $ac_try) 2>&5
                   10048:   ac_status=$?
1.16    ! millert  10049:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10050:   (exit $ac_status); }; }; then
                   10051:   eval "$as_ac_var=yes"
                   10052: else
                   10053:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10054: sed 's/^/| /' conftest.$ac_ext >&5
        !          10055:
1.9       millert  10056: eval "$as_ac_var=no"
                   10057: fi
                   10058: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10059: fi
1.16    ! millert  10060: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10061: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10062: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10063:   cat >>confdefs.h <<_ACEOF
1.9       millert  10064: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10065: _ACEOF
1.9       millert  10066:  break
1.1       millert  10067: fi
1.9       millert  10068: done
1.1       millert  10069:
1.16    ! millert  10070:
        !          10071:
1.9       millert  10072: for ac_func in waitpid wait3
1.1       millert  10073: do
1.9       millert  10074: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10075: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10076: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10077: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10078:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10079: else
1.9       millert  10080:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10081: #line $LINENO "configure"
        !          10082: /* confdefs.h.  */
        !          10083: _ACEOF
        !          10084: cat confdefs.h >>conftest.$ac_ext
        !          10085: cat >>conftest.$ac_ext <<_ACEOF
        !          10086: /* end confdefs.h.  */
1.1       millert  10087: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10088:     which can conflict with char $ac_func (); below.
        !          10089:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10090:     <limits.h> exists even on freestanding compilers.  */
        !          10091: #ifdef __STDC__
        !          10092: # include <limits.h>
        !          10093: #else
        !          10094: # include <assert.h>
        !          10095: #endif
1.1       millert  10096: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10097: #ifdef __cplusplus
                   10098: extern "C"
1.16    ! millert  10099: {
1.9       millert  10100: #endif
1.1       millert  10101: /* We use char because int might match the return type of a gcc2
1.9       millert  10102:    builtin and then its argument prototype would still apply.  */
                   10103: char $ac_func ();
1.1       millert  10104: /* The GNU C library defines this for functions which it implements
                   10105:     to always fail with ENOSYS.  Some functions are actually named
                   10106:     something starting with __ and the normal name is an alias.  */
                   10107: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   10108: choke me
                   10109: #else
1.16    ! millert  10110: char (*f) () = $ac_func;
        !          10111: #endif
        !          10112: #ifdef __cplusplus
        !          10113: }
1.1       millert  10114: #endif
                   10115:
1.16    ! millert  10116: int
        !          10117: main ()
        !          10118: {
        !          10119: return f != $ac_func;
1.9       millert  10120:   ;
                   10121:   return 0;
                   10122: }
                   10123: _ACEOF
                   10124: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10125: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10126:   (eval $ac_link) 2>&5
                   10127:   ac_status=$?
1.16    ! millert  10128:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10129:   (exit $ac_status); } &&
                   10130:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10131:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10132:   (eval $ac_try) 2>&5
                   10133:   ac_status=$?
1.16    ! millert  10134:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10135:   (exit $ac_status); }; }; then
                   10136:   eval "$as_ac_var=yes"
                   10137: else
                   10138:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10139: sed 's/^/| /' conftest.$ac_ext >&5
        !          10140:
1.9       millert  10141: eval "$as_ac_var=no"
                   10142: fi
                   10143: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10144: fi
1.16    ! millert  10145: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10146: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10147: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10148:   cat >>confdefs.h <<_ACEOF
1.9       millert  10149: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10150: _ACEOF
1.9       millert  10151:  break
1.1       millert  10152: fi
                   10153: done
                   10154:
1.16    ! millert  10155:
        !          10156:
1.9       millert  10157: for ac_func in innetgr _innetgr
                   10158: do
                   10159: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10160: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10161: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10162: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10163:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10164: else
1.9       millert  10165:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10166: #line $LINENO "configure"
        !          10167: /* confdefs.h.  */
        !          10168: _ACEOF
        !          10169: cat confdefs.h >>conftest.$ac_ext
        !          10170: cat >>conftest.$ac_ext <<_ACEOF
        !          10171: /* end confdefs.h.  */
1.1       millert  10172: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10173:     which can conflict with char $ac_func (); below.
        !          10174:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10175:     <limits.h> exists even on freestanding compilers.  */
        !          10176: #ifdef __STDC__
        !          10177: # include <limits.h>
        !          10178: #else
        !          10179: # include <assert.h>
        !          10180: #endif
1.1       millert  10181: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10182: #ifdef __cplusplus
                   10183: extern "C"
1.16    ! millert  10184: {
1.9       millert  10185: #endif
1.1       millert  10186: /* We use char because int might match the return type of a gcc2
1.9       millert  10187:    builtin and then its argument prototype would still apply.  */
                   10188: char $ac_func ();
1.1       millert  10189: /* The GNU C library defines this for functions which it implements
                   10190:     to always fail with ENOSYS.  Some functions are actually named
                   10191:     something starting with __ and the normal name is an alias.  */
1.9       millert  10192: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10193: choke me
                   10194: #else
1.16    ! millert  10195: char (*f) () = $ac_func;
        !          10196: #endif
        !          10197: #ifdef __cplusplus
        !          10198: }
1.1       millert  10199: #endif
                   10200:
1.16    ! millert  10201: int
        !          10202: main ()
        !          10203: {
        !          10204: return f != $ac_func;
1.9       millert  10205:   ;
                   10206:   return 0;
                   10207: }
                   10208: _ACEOF
                   10209: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10210: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10211:   (eval $ac_link) 2>&5
                   10212:   ac_status=$?
1.16    ! millert  10213:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10214:   (exit $ac_status); } &&
                   10215:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10216:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10217:   (eval $ac_try) 2>&5
                   10218:   ac_status=$?
1.16    ! millert  10219:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10220:   (exit $ac_status); }; }; then
                   10221:   eval "$as_ac_var=yes"
                   10222: else
                   10223:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10224: sed 's/^/| /' conftest.$ac_ext >&5
        !          10225:
1.9       millert  10226: eval "$as_ac_var=no"
                   10227: fi
                   10228: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10229: fi
1.16    ! millert  10230: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10231: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10232: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10233:   cat >>confdefs.h <<_ACEOF
1.9       millert  10234: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10235: _ACEOF
1.1       millert  10236:
1.9       millert  10237: for ac_func in getdomainname
                   10238: do
                   10239: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10240: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10241: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10242: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10243:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10244: else
1.9       millert  10245:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10246: #line $LINENO "configure"
        !          10247: /* confdefs.h.  */
        !          10248: _ACEOF
        !          10249: cat confdefs.h >>conftest.$ac_ext
        !          10250: cat >>conftest.$ac_ext <<_ACEOF
        !          10251: /* end confdefs.h.  */
        !          10252: /* System header to define __stub macros and hopefully few prototypes,
        !          10253:     which can conflict with char $ac_func (); below.
        !          10254:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10255:     <limits.h> exists even on freestanding compilers.  */
        !          10256: #ifdef __STDC__
        !          10257: # include <limits.h>
        !          10258: #else
        !          10259: # include <assert.h>
        !          10260: #endif
1.1       millert  10261: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10262: #ifdef __cplusplus
                   10263: extern "C"
1.16    ! millert  10264: {
1.9       millert  10265: #endif
1.1       millert  10266: /* We use char because int might match the return type of a gcc2
1.9       millert  10267:    builtin and then its argument prototype would still apply.  */
                   10268: char $ac_func ();
1.1       millert  10269: /* The GNU C library defines this for functions which it implements
                   10270:     to always fail with ENOSYS.  Some functions are actually named
                   10271:     something starting with __ and the normal name is an alias.  */
1.9       millert  10272: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10273: choke me
                   10274: #else
1.16    ! millert  10275: char (*f) () = $ac_func;
        !          10276: #endif
        !          10277: #ifdef __cplusplus
        !          10278: }
1.1       millert  10279: #endif
                   10280:
1.16    ! millert  10281: int
        !          10282: main ()
        !          10283: {
        !          10284: return f != $ac_func;
1.9       millert  10285:   ;
                   10286:   return 0;
                   10287: }
                   10288: _ACEOF
                   10289: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10290: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10291:   (eval $ac_link) 2>&5
                   10292:   ac_status=$?
1.16    ! millert  10293:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10294:   (exit $ac_status); } &&
                   10295:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10296:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10297:   (eval $ac_try) 2>&5
                   10298:   ac_status=$?
1.16    ! millert  10299:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10300:   (exit $ac_status); }; }; then
                   10301:   eval "$as_ac_var=yes"
                   10302: else
                   10303:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10304: sed 's/^/| /' conftest.$ac_ext >&5
        !          10305:
1.9       millert  10306: eval "$as_ac_var=no"
                   10307: fi
                   10308: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10309: fi
1.16    ! millert  10310: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10311: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10312: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10313:   cat >>confdefs.h <<_ACEOF
1.9       millert  10314: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10315: _ACEOF
1.9       millert  10316:
1.1       millert  10317: fi
1.9       millert  10318: done
                   10319:  break
1.1       millert  10320: fi
1.9       millert  10321: done
1.1       millert  10322:
1.16    ! millert  10323:
1.9       millert  10324: for ac_func in lsearch
                   10325: do
                   10326: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10327: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10328: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10329: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10330:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10331: else
1.9       millert  10332:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10333: #line $LINENO "configure"
        !          10334: /* confdefs.h.  */
        !          10335: _ACEOF
        !          10336: cat confdefs.h >>conftest.$ac_ext
        !          10337: cat >>conftest.$ac_ext <<_ACEOF
        !          10338: /* end confdefs.h.  */
1.1       millert  10339: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10340:     which can conflict with char $ac_func (); below.
        !          10341:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10342:     <limits.h> exists even on freestanding compilers.  */
        !          10343: #ifdef __STDC__
        !          10344: # include <limits.h>
        !          10345: #else
        !          10346: # include <assert.h>
        !          10347: #endif
1.1       millert  10348: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10349: #ifdef __cplusplus
                   10350: extern "C"
1.16    ! millert  10351: {
1.9       millert  10352: #endif
1.1       millert  10353: /* We use char because int might match the return type of a gcc2
1.9       millert  10354:    builtin and then its argument prototype would still apply.  */
                   10355: char $ac_func ();
1.1       millert  10356: /* The GNU C library defines this for functions which it implements
                   10357:     to always fail with ENOSYS.  Some functions are actually named
                   10358:     something starting with __ and the normal name is an alias.  */
1.9       millert  10359: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10360: choke me
                   10361: #else
1.16    ! millert  10362: char (*f) () = $ac_func;
        !          10363: #endif
        !          10364: #ifdef __cplusplus
        !          10365: }
1.1       millert  10366: #endif
                   10367:
1.16    ! millert  10368: int
        !          10369: main ()
        !          10370: {
        !          10371: return f != $ac_func;
1.9       millert  10372:   ;
                   10373:   return 0;
                   10374: }
                   10375: _ACEOF
                   10376: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10377: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10378:   (eval $ac_link) 2>&5
                   10379:   ac_status=$?
1.16    ! millert  10380:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10381:   (exit $ac_status); } &&
                   10382:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10383:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10384:   (eval $ac_try) 2>&5
                   10385:   ac_status=$?
1.16    ! millert  10386:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10387:   (exit $ac_status); }; }; then
                   10388:   eval "$as_ac_var=yes"
                   10389: else
                   10390:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10391: sed 's/^/| /' conftest.$ac_ext >&5
        !          10392:
1.9       millert  10393: eval "$as_ac_var=no"
                   10394: fi
                   10395: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10396: fi
1.16    ! millert  10397: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10398: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10399: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10400:   cat >>confdefs.h <<_ACEOF
1.9       millert  10401: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10402: _ACEOF
1.9       millert  10403:
                   10404: else
1.16    ! millert  10405:   echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
1.9       millert  10406: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
                   10407: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
                   10408:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10409: else
                   10410:   ac_check_lib_save_LIBS=$LIBS
                   10411: LIBS="-lcompat  $LIBS"
                   10412: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10413: #line $LINENO "configure"
        !          10414: /* confdefs.h.  */
        !          10415: _ACEOF
        !          10416: cat confdefs.h >>conftest.$ac_ext
        !          10417: cat >>conftest.$ac_ext <<_ACEOF
        !          10418: /* end confdefs.h.  */
1.9       millert  10419:
                   10420: /* Override any gcc2 internal prototype to avoid an error.  */
                   10421: #ifdef __cplusplus
                   10422: extern "C"
                   10423: #endif
                   10424: /* We use char because int might match the return type of a gcc2
                   10425:    builtin and then its argument prototype would still apply.  */
                   10426: char lsearch ();
                   10427: int
                   10428: main ()
                   10429: {
                   10430: lsearch ();
                   10431:   ;
                   10432:   return 0;
                   10433: }
                   10434: _ACEOF
                   10435: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10436: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10437:   (eval $ac_link) 2>&5
                   10438:   ac_status=$?
1.16    ! millert  10439:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10440:   (exit $ac_status); } &&
                   10441:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10442:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10443:   (eval $ac_try) 2>&5
                   10444:   ac_status=$?
1.16    ! millert  10445:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10446:   (exit $ac_status); }; }; then
                   10447:   ac_cv_lib_compat_lsearch=yes
                   10448: else
                   10449:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10450: sed 's/^/| /' conftest.$ac_ext >&5
        !          10451:
1.9       millert  10452: ac_cv_lib_compat_lsearch=no
                   10453: fi
                   10454: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10455: LIBS=$ac_check_lib_save_LIBS
                   10456: fi
1.16    ! millert  10457: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
1.9       millert  10458: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
                   10459: if test $ac_cv_lib_compat_lsearch = yes; then
1.16    ! millert  10460:   echo "$as_me:$LINENO: checking for search.h" >&5
1.9       millert  10461: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
                   10462: if test "${ac_cv_header_search_h+set}" = set; then
                   10463:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10464: else
1.9       millert  10465:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10466: #line $LINENO "configure"
        !          10467: /* confdefs.h.  */
        !          10468: _ACEOF
        !          10469: cat confdefs.h >>conftest.$ac_ext
        !          10470: cat >>conftest.$ac_ext <<_ACEOF
        !          10471: /* end confdefs.h.  */
1.9       millert  10472: #include <search.h>
                   10473: _ACEOF
1.16    ! millert  10474: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  10475:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   10476:   ac_status=$?
1.16    ! millert  10477:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  10478:   rm -f conftest.er1
                   10479:   cat conftest.err >&5
1.16    ! millert  10480:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10481:   (exit $ac_status); } >/dev/null; then
                   10482:   if test -s conftest.err; then
                   10483:     ac_cpp_err=$ac_c_preproc_warn_flag
                   10484:   else
                   10485:     ac_cpp_err=
                   10486:   fi
                   10487: else
                   10488:   ac_cpp_err=yes
                   10489: fi
                   10490: if test -z "$ac_cpp_err"; then
                   10491:   ac_cv_header_search_h=yes
                   10492: else
                   10493:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10494: sed 's/^/| /' conftest.$ac_ext >&5
        !          10495:
1.9       millert  10496:   ac_cv_header_search_h=no
1.1       millert  10497: fi
1.9       millert  10498: rm -f conftest.err conftest.$ac_ext
1.1       millert  10499: fi
1.16    ! millert  10500: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
1.9       millert  10501: echo "${ECHO_T}$ac_cv_header_search_h" >&6
                   10502: if test $ac_cv_header_search_h = yes; then
1.16    ! millert  10503:   cat >>confdefs.h <<\_ACEOF
1.9       millert  10504: #define HAVE_LSEARCH 1
1.16    ! millert  10505: _ACEOF
1.9       millert  10506:  LIBS="${LIBS} -lcompat"
                   10507: else
                   10508:   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
                   10509: fi
1.1       millert  10510:
1.16    ! millert  10511:
1.1       millert  10512: else
1.9       millert  10513:   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1       millert  10514: fi
                   10515:
                   10516: fi
1.9       millert  10517: done
1.1       millert  10518:
1.16    ! millert  10519:
1.9       millert  10520: for ac_func in utime
                   10521: do
                   10522: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10523: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10524: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10525: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10526:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10527: else
1.9       millert  10528:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10529: #line $LINENO "configure"
        !          10530: /* confdefs.h.  */
        !          10531: _ACEOF
        !          10532: cat confdefs.h >>conftest.$ac_ext
        !          10533: cat >>conftest.$ac_ext <<_ACEOF
        !          10534: /* end confdefs.h.  */
1.1       millert  10535: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10536:     which can conflict with char $ac_func (); below.
        !          10537:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10538:     <limits.h> exists even on freestanding compilers.  */
        !          10539: #ifdef __STDC__
        !          10540: # include <limits.h>
        !          10541: #else
        !          10542: # include <assert.h>
        !          10543: #endif
1.1       millert  10544: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10545: #ifdef __cplusplus
                   10546: extern "C"
1.16    ! millert  10547: {
1.9       millert  10548: #endif
1.1       millert  10549: /* We use char because int might match the return type of a gcc2
1.9       millert  10550:    builtin and then its argument prototype would still apply.  */
                   10551: char $ac_func ();
1.1       millert  10552: /* The GNU C library defines this for functions which it implements
                   10553:     to always fail with ENOSYS.  Some functions are actually named
                   10554:     something starting with __ and the normal name is an alias.  */
1.9       millert  10555: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10556: choke me
                   10557: #else
1.16    ! millert  10558: char (*f) () = $ac_func;
        !          10559: #endif
        !          10560: #ifdef __cplusplus
        !          10561: }
1.1       millert  10562: #endif
                   10563:
1.16    ! millert  10564: int
        !          10565: main ()
        !          10566: {
        !          10567: return f != $ac_func;
1.9       millert  10568:   ;
                   10569:   return 0;
                   10570: }
                   10571: _ACEOF
                   10572: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10573: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10574:   (eval $ac_link) 2>&5
                   10575:   ac_status=$?
1.16    ! millert  10576:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10577:   (exit $ac_status); } &&
                   10578:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10579:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10580:   (eval $ac_try) 2>&5
                   10581:   ac_status=$?
1.16    ! millert  10582:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10583:   (exit $ac_status); }; }; then
                   10584:   eval "$as_ac_var=yes"
                   10585: else
                   10586:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10587: sed 's/^/| /' conftest.$ac_ext >&5
        !          10588:
1.9       millert  10589: eval "$as_ac_var=no"
                   10590: fi
                   10591: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10592: fi
1.16    ! millert  10593: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10594: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10595: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10596:   cat >>confdefs.h <<_ACEOF
1.9       millert  10597: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10598: _ACEOF
        !          10599:  echo "$as_me:$LINENO: checking for POSIX utime" >&5
1.9       millert  10600: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
                   10601: if test "${sudo_cv_func_utime_posix+set}" = set; then
                   10602:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10603: else
                   10604:   rm -f conftestdata; > conftestdata
                   10605: if test "$cross_compiling" = yes; then
                   10606:   sudo_cv_func_utime_posix=no
                   10607: else
1.9       millert  10608:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10609: #line $LINENO "configure"
        !          10610: /* confdefs.h.  */
        !          10611: _ACEOF
        !          10612: cat confdefs.h >>conftest.$ac_ext
        !          10613: cat >>conftest.$ac_ext <<_ACEOF
        !          10614: /* end confdefs.h.  */
1.1       millert  10615: #include <sys/types.h>
                   10616: #include <sys/time.h>
                   10617: #include <utime.h>
                   10618: main() {
                   10619: struct utimbuf ut;
                   10620: ut.actime = ut.modtime = time(0);
                   10621: utime("conftestdata", &ut);
                   10622: exit(0);
                   10623: }
1.9       millert  10624: _ACEOF
                   10625: rm -f conftest$ac_exeext
1.16    ! millert  10626: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10627:   (eval $ac_link) 2>&5
                   10628:   ac_status=$?
1.16    ! millert  10629:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10630:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  10631:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10632:   (eval $ac_try) 2>&5
                   10633:   ac_status=$?
1.16    ! millert  10634:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10635:   (exit $ac_status); }; }; then
1.1       millert  10636:   sudo_cv_func_utime_posix=yes
                   10637: else
1.9       millert  10638:   echo "$as_me: program exited with status $ac_status" >&5
                   10639: echo "$as_me: failed program was:" >&5
1.16    ! millert  10640: sed 's/^/| /' conftest.$ac_ext >&5
        !          10641:
        !          10642: ( exit $ac_status )
1.9       millert  10643: sudo_cv_func_utime_posix=no
1.1       millert  10644: fi
1.16    ! millert  10645: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  10646: fi
                   10647: rm -f core core.* *.core
                   10648: fi
1.16    ! millert  10649: echo "$as_me:$LINENO: result: $sudo_cv_func_utime_posix" >&5
1.9       millert  10650: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1       millert  10651: if test $sudo_cv_func_utime_posix = yes; then
1.9       millert  10652:
1.16    ! millert  10653: cat >>confdefs.h <<\_ACEOF
1.1       millert  10654: #define HAVE_UTIME_POSIX 1
1.16    ! millert  10655: _ACEOF
1.1       millert  10656:
                   10657: fi
                   10658:
                   10659: else
1.9       millert  10660:   LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1       millert  10661: fi
1.9       millert  10662: done
1.1       millert  10663:
1.16    ! millert  10664: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
1.9       millert  10665: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
                   10666: if test "${sudo_cv_func_fnmatch+set}" = set; then
                   10667:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10668: else
                   10669:   rm -f conftestdata; > conftestdata
                   10670: if test "$cross_compiling" = yes; then
                   10671:   sudo_cv_func_fnmatch=no
                   10672: else
1.9       millert  10673:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10674: #line $LINENO "configure"
        !          10675: /* confdefs.h.  */
        !          10676: _ACEOF
        !          10677: cat confdefs.h >>conftest.$ac_ext
        !          10678: cat >>conftest.$ac_ext <<_ACEOF
        !          10679: /* end confdefs.h.  */
1.3       millert  10680: #include <fnmatch.h>
1.6       millert  10681: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3       millert  10682:
1.9       millert  10683: _ACEOF
                   10684: rm -f conftest$ac_exeext
1.16    ! millert  10685: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10686:   (eval $ac_link) 2>&5
                   10687:   ac_status=$?
1.16    ! millert  10688:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10689:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  10690:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10691:   (eval $ac_try) 2>&5
                   10692:   ac_status=$?
1.16    ! millert  10693:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10694:   (exit $ac_status); }; }; then
1.1       millert  10695:   sudo_cv_func_fnmatch=yes
                   10696: else
1.9       millert  10697:   echo "$as_me: program exited with status $ac_status" >&5
                   10698: echo "$as_me: failed program was:" >&5
1.16    ! millert  10699: sed 's/^/| /' conftest.$ac_ext >&5
        !          10700:
        !          10701: ( exit $ac_status )
1.9       millert  10702: sudo_cv_func_fnmatch=no
1.1       millert  10703: fi
1.16    ! millert  10704: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  10705: fi
                   10706: rm -f core core.* *.core
                   10707: fi
1.16    ! millert  10708: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
1.9       millert  10709: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1       millert  10710: if test $sudo_cv_func_fnmatch = yes; then
1.9       millert  10711:
1.16    ! millert  10712: cat >>confdefs.h <<\_ACEOF
1.1       millert  10713: #define HAVE_FNMATCH 1
1.16    ! millert  10714: _ACEOF
1.1       millert  10715:
                   10716: else
1.9       millert  10717:   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1       millert  10718: fi
                   10719:
1.16    ! millert  10720: echo "$as_me:$LINENO: checking for isblank" >&5
1.9       millert  10721: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
                   10722: if test "${sudo_cv_func_isblank+set}" = set; then
                   10723:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10724: else
1.9       millert  10725:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10726: #line $LINENO "configure"
        !          10727: /* confdefs.h.  */
        !          10728: _ACEOF
        !          10729: cat confdefs.h >>conftest.$ac_ext
        !          10730: cat >>conftest.$ac_ext <<_ACEOF
        !          10731: /* end confdefs.h.  */
1.9       millert  10732: #include <ctype.h>
                   10733: int
                   10734: main ()
                   10735: {
                   10736: (void)isblank(1);
                   10737:   ;
                   10738:   return 0;
                   10739: }
                   10740: _ACEOF
                   10741: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10742: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10743:   (eval $ac_link) 2>&5
                   10744:   ac_status=$?
1.16    ! millert  10745:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10746:   (exit $ac_status); } &&
                   10747:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10748:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10749:   (eval $ac_try) 2>&5
                   10750:   ac_status=$?
1.16    ! millert  10751:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10752:   (exit $ac_status); }; }; then
                   10753:   sudo_cv_func_isblank=yes
                   10754: else
                   10755:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10756: sed 's/^/| /' conftest.$ac_ext >&5
        !          10757:
1.9       millert  10758: sudo_cv_func_isblank=no
                   10759: fi
                   10760: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       millert  10761: fi
1.16    ! millert  10762: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
1.9       millert  10763: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1       millert  10764:
1.9       millert  10765:   if test "$sudo_cv_func_isblank" = "yes"; then
1.1       millert  10766:
1.16    ! millert  10767: cat >>confdefs.h <<\_ACEOF
1.9       millert  10768: #define HAVE_ISBLANK 1
1.16    ! millert  10769: _ACEOF
1.1       millert  10770:
1.9       millert  10771:   fi
1.1       millert  10772:
1.16    ! millert  10773:
        !          10774:
        !          10775:
        !          10776:
        !          10777:
        !          10778: for ac_func in strerror strcasecmp sigaction strlcpy strlcat
1.9       millert  10779: do
                   10780: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10781: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10782: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10783: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10784:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10785: else
1.9       millert  10786:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10787: #line $LINENO "configure"
        !          10788: /* confdefs.h.  */
        !          10789: _ACEOF
        !          10790: cat confdefs.h >>conftest.$ac_ext
        !          10791: cat >>conftest.$ac_ext <<_ACEOF
        !          10792: /* end confdefs.h.  */
1.1       millert  10793: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10794:     which can conflict with char $ac_func (); below.
        !          10795:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10796:     <limits.h> exists even on freestanding compilers.  */
        !          10797: #ifdef __STDC__
        !          10798: # include <limits.h>
        !          10799: #else
        !          10800: # include <assert.h>
        !          10801: #endif
1.1       millert  10802: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10803: #ifdef __cplusplus
                   10804: extern "C"
1.16    ! millert  10805: {
1.1       millert  10806: #endif
                   10807: /* We use char because int might match the return type of a gcc2
1.9       millert  10808:    builtin and then its argument prototype would still apply.  */
                   10809: char $ac_func ();
1.1       millert  10810: /* The GNU C library defines this for functions which it implements
                   10811:     to always fail with ENOSYS.  Some functions are actually named
                   10812:     something starting with __ and the normal name is an alias.  */
1.9       millert  10813: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10814: choke me
                   10815: #else
1.16    ! millert  10816: char (*f) () = $ac_func;
        !          10817: #endif
        !          10818: #ifdef __cplusplus
        !          10819: }
1.1       millert  10820: #endif
                   10821:
1.16    ! millert  10822: int
        !          10823: main ()
        !          10824: {
        !          10825: return f != $ac_func;
1.9       millert  10826:   ;
                   10827:   return 0;
                   10828: }
                   10829: _ACEOF
                   10830: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10831: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10832:   (eval $ac_link) 2>&5
                   10833:   ac_status=$?
1.16    ! millert  10834:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10835:   (exit $ac_status); } &&
                   10836:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10837:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10838:   (eval $ac_try) 2>&5
                   10839:   ac_status=$?
1.16    ! millert  10840:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10841:   (exit $ac_status); }; }; then
                   10842:   eval "$as_ac_var=yes"
                   10843: else
                   10844:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10845: sed 's/^/| /' conftest.$ac_ext >&5
        !          10846:
1.9       millert  10847: eval "$as_ac_var=no"
                   10848: fi
                   10849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10850: fi
1.16    ! millert  10851: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10852: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10853: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10854:   cat >>confdefs.h <<_ACEOF
1.9       millert  10855: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10856: _ACEOF
1.1       millert  10857:
                   10858: else
1.9       millert  10859:   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1       millert  10860: fi
1.9       millert  10861: done
1.1       millert  10862:
1.16    ! millert  10863:
        !          10864:
        !          10865:
        !          10866:
        !          10867:
1.9       millert  10868: for ac_func in snprintf vsnprintf asprintf vasprintf
                   10869: do
                   10870: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  10871: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  10872: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10873: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10874:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10875: else
1.9       millert  10876:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10877: #line $LINENO "configure"
        !          10878: /* confdefs.h.  */
        !          10879: _ACEOF
        !          10880: cat confdefs.h >>conftest.$ac_ext
        !          10881: cat >>conftest.$ac_ext <<_ACEOF
        !          10882: /* end confdefs.h.  */
1.1       millert  10883: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10884:     which can conflict with char $ac_func (); below.
        !          10885:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10886:     <limits.h> exists even on freestanding compilers.  */
        !          10887: #ifdef __STDC__
        !          10888: # include <limits.h>
        !          10889: #else
        !          10890: # include <assert.h>
        !          10891: #endif
1.1       millert  10892: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10893: #ifdef __cplusplus
                   10894: extern "C"
1.16    ! millert  10895: {
1.9       millert  10896: #endif
1.1       millert  10897: /* We use char because int might match the return type of a gcc2
1.9       millert  10898:    builtin and then its argument prototype would still apply.  */
                   10899: char $ac_func ();
1.1       millert  10900: /* The GNU C library defines this for functions which it implements
                   10901:     to always fail with ENOSYS.  Some functions are actually named
                   10902:     something starting with __ and the normal name is an alias.  */
1.9       millert  10903: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  10904: choke me
                   10905: #else
1.16    ! millert  10906: char (*f) () = $ac_func;
        !          10907: #endif
        !          10908: #ifdef __cplusplus
        !          10909: }
1.1       millert  10910: #endif
                   10911:
1.16    ! millert  10912: int
        !          10913: main ()
        !          10914: {
        !          10915: return f != $ac_func;
1.9       millert  10916:   ;
                   10917:   return 0;
                   10918: }
                   10919: _ACEOF
                   10920: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  10921: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  10922:   (eval $ac_link) 2>&5
                   10923:   ac_status=$?
1.16    ! millert  10924:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10925:   (exit $ac_status); } &&
                   10926:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  10927:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  10928:   (eval $ac_try) 2>&5
                   10929:   ac_status=$?
1.16    ! millert  10930:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  10931:   (exit $ac_status); }; }; then
                   10932:   eval "$as_ac_var=yes"
                   10933: else
                   10934:   echo "$as_me: failed program was:" >&5
1.16    ! millert  10935: sed 's/^/| /' conftest.$ac_ext >&5
        !          10936:
1.9       millert  10937: eval "$as_ac_var=no"
                   10938: fi
                   10939: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10940: fi
1.16    ! millert  10941: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10942: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10943: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16    ! millert  10944:   cat >>confdefs.h <<_ACEOF
1.9       millert  10945: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16    ! millert  10946: _ACEOF
1.1       millert  10947:
                   10948: else
1.9       millert  10949:   NEED_SNPRINTF=1
1.1       millert  10950: fi
1.9       millert  10951: done
1.1       millert  10952:
                   10953: if test -n "$NEED_SNPRINTF"; then
1.9       millert  10954:     LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1       millert  10955: fi
                   10956: if test -z "$LIB_CRYPT"; then
1.16    ! millert  10957:     echo "$as_me:$LINENO: checking for crypt" >&5
1.9       millert  10958: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
                   10959: if test "${ac_cv_func_crypt+set}" = set; then
                   10960:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10961: else
1.9       millert  10962:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  10963: #line $LINENO "configure"
        !          10964: /* confdefs.h.  */
        !          10965: _ACEOF
        !          10966: cat confdefs.h >>conftest.$ac_ext
        !          10967: cat >>conftest.$ac_ext <<_ACEOF
        !          10968: /* end confdefs.h.  */
1.1       millert  10969: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  10970:     which can conflict with char crypt (); below.
        !          10971:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          10972:     <limits.h> exists even on freestanding compilers.  */
        !          10973: #ifdef __STDC__
        !          10974: # include <limits.h>
        !          10975: #else
        !          10976: # include <assert.h>
        !          10977: #endif
1.1       millert  10978: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10979: #ifdef __cplusplus
                   10980: extern "C"
1.16    ! millert  10981: {
1.9       millert  10982: #endif
1.1       millert  10983: /* We use char because int might match the return type of a gcc2
1.9       millert  10984:    builtin and then its argument prototype would still apply.  */
                   10985: char crypt ();
1.1       millert  10986: /* The GNU C library defines this for functions which it implements
                   10987:     to always fail with ENOSYS.  Some functions are actually named
                   10988:     something starting with __ and the normal name is an alias.  */
                   10989: #if defined (__stub_crypt) || defined (__stub___crypt)
                   10990: choke me
                   10991: #else
1.16    ! millert  10992: char (*f) () = crypt;
        !          10993: #endif
        !          10994: #ifdef __cplusplus
        !          10995: }
1.1       millert  10996: #endif
                   10997:
1.16    ! millert  10998: int
        !          10999: main ()
        !          11000: {
        !          11001: return f != crypt;
1.9       millert  11002:   ;
                   11003:   return 0;
                   11004: }
                   11005: _ACEOF
                   11006: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11007: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11008:   (eval $ac_link) 2>&5
                   11009:   ac_status=$?
1.16    ! millert  11010:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11011:   (exit $ac_status); } &&
                   11012:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11013:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11014:   (eval $ac_try) 2>&5
                   11015:   ac_status=$?
1.16    ! millert  11016:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11017:   (exit $ac_status); }; }; then
                   11018:   ac_cv_func_crypt=yes
                   11019: else
                   11020:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11021: sed 's/^/| /' conftest.$ac_ext >&5
        !          11022:
1.9       millert  11023: ac_cv_func_crypt=no
                   11024: fi
                   11025: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11026: fi
1.16    ! millert  11027: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
1.9       millert  11028: echo "${ECHO_T}$ac_cv_func_crypt" >&6
                   11029: if test $ac_cv_func_crypt = yes; then
1.1       millert  11030:   :
                   11031: else
1.16    ! millert  11032:   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
1.9       millert  11033: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
                   11034: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
                   11035:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11036: else
1.9       millert  11037:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11038: LIBS="-lcrypt  $LIBS"
1.9       millert  11039: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11040: #line $LINENO "configure"
        !          11041: /* confdefs.h.  */
        !          11042: _ACEOF
        !          11043: cat confdefs.h >>conftest.$ac_ext
        !          11044: cat >>conftest.$ac_ext <<_ACEOF
        !          11045: /* end confdefs.h.  */
1.9       millert  11046:
1.1       millert  11047: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11048: #ifdef __cplusplus
                   11049: extern "C"
                   11050: #endif
1.1       millert  11051: /* We use char because int might match the return type of a gcc2
1.9       millert  11052:    builtin and then its argument prototype would still apply.  */
                   11053: char crypt ();
                   11054: int
                   11055: main ()
                   11056: {
                   11057: crypt ();
                   11058:   ;
                   11059:   return 0;
                   11060: }
                   11061: _ACEOF
                   11062: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11063: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11064:   (eval $ac_link) 2>&5
                   11065:   ac_status=$?
1.16    ! millert  11066:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11067:   (exit $ac_status); } &&
                   11068:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11069:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11070:   (eval $ac_try) 2>&5
                   11071:   ac_status=$?
1.16    ! millert  11072:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11073:   (exit $ac_status); }; }; then
                   11074:   ac_cv_lib_crypt_crypt=yes
                   11075: else
                   11076:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11077: sed 's/^/| /' conftest.$ac_ext >&5
        !          11078:
1.9       millert  11079: ac_cv_lib_crypt_crypt=no
                   11080: fi
                   11081: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11082: LIBS=$ac_check_lib_save_LIBS
                   11083: fi
1.16    ! millert  11084: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
1.9       millert  11085: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
                   11086: if test $ac_cv_lib_crypt_crypt = yes; then
1.1       millert  11087:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   11088: else
1.16    ! millert  11089:   echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
1.9       millert  11090: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
                   11091: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
                   11092:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11093: else
1.9       millert  11094:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11095: LIBS="-lcrypt_d  $LIBS"
1.9       millert  11096: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11097: #line $LINENO "configure"
        !          11098: /* confdefs.h.  */
        !          11099: _ACEOF
        !          11100: cat confdefs.h >>conftest.$ac_ext
        !          11101: cat >>conftest.$ac_ext <<_ACEOF
        !          11102: /* end confdefs.h.  */
1.9       millert  11103:
1.1       millert  11104: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11105: #ifdef __cplusplus
                   11106: extern "C"
                   11107: #endif
1.1       millert  11108: /* We use char because int might match the return type of a gcc2
1.9       millert  11109:    builtin and then its argument prototype would still apply.  */
                   11110: char crypt ();
                   11111: int
                   11112: main ()
                   11113: {
                   11114: crypt ();
                   11115:   ;
                   11116:   return 0;
                   11117: }
                   11118: _ACEOF
                   11119: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11120: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11121:   (eval $ac_link) 2>&5
                   11122:   ac_status=$?
1.16    ! millert  11123:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11124:   (exit $ac_status); } &&
                   11125:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11126:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11127:   (eval $ac_try) 2>&5
                   11128:   ac_status=$?
1.16    ! millert  11129:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11130:   (exit $ac_status); }; }; then
                   11131:   ac_cv_lib_crypt_d_crypt=yes
                   11132: else
                   11133:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11134: sed 's/^/| /' conftest.$ac_ext >&5
        !          11135:
1.9       millert  11136: ac_cv_lib_crypt_d_crypt=no
                   11137: fi
                   11138: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11139: LIBS=$ac_check_lib_save_LIBS
                   11140: fi
1.16    ! millert  11141: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9       millert  11142: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
                   11143: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1       millert  11144:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   11145: else
1.16    ! millert  11146:   echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
1.9       millert  11147: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
                   11148: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
                   11149:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11150: else
1.9       millert  11151:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11152: LIBS="-lufc  $LIBS"
1.9       millert  11153: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11154: #line $LINENO "configure"
        !          11155: /* confdefs.h.  */
        !          11156: _ACEOF
        !          11157: cat confdefs.h >>conftest.$ac_ext
        !          11158: cat >>conftest.$ac_ext <<_ACEOF
        !          11159: /* end confdefs.h.  */
1.9       millert  11160:
1.1       millert  11161: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11162: #ifdef __cplusplus
                   11163: extern "C"
                   11164: #endif
1.1       millert  11165: /* We use char because int might match the return type of a gcc2
1.9       millert  11166:    builtin and then its argument prototype would still apply.  */
                   11167: char crypt ();
                   11168: int
                   11169: main ()
                   11170: {
                   11171: crypt ();
                   11172:   ;
                   11173:   return 0;
                   11174: }
                   11175: _ACEOF
                   11176: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11177: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11178:   (eval $ac_link) 2>&5
                   11179:   ac_status=$?
1.16    ! millert  11180:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11181:   (exit $ac_status); } &&
                   11182:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11183:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11184:   (eval $ac_try) 2>&5
                   11185:   ac_status=$?
1.16    ! millert  11186:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11187:   (exit $ac_status); }; }; then
                   11188:   ac_cv_lib_ufc_crypt=yes
                   11189: else
                   11190:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11191: sed 's/^/| /' conftest.$ac_ext >&5
        !          11192:
1.9       millert  11193: ac_cv_lib_ufc_crypt=no
                   11194: fi
                   11195: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11196: LIBS=$ac_check_lib_save_LIBS
                   11197: fi
1.16    ! millert  11198: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
1.9       millert  11199: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
                   11200: if test $ac_cv_lib_ufc_crypt = yes; then
1.1       millert  11201:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
                   11202: fi
                   11203:
                   11204: fi
                   11205:
                   11206: fi
                   11207:
                   11208: fi
                   11209:
                   11210: fi
1.16    ! millert  11211: echo "$as_me:$LINENO: checking for socket" >&5
1.9       millert  11212: echo $ECHO_N "checking for socket... $ECHO_C" >&6
                   11213: if test "${ac_cv_func_socket+set}" = set; then
                   11214:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11215: else
1.9       millert  11216:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11217: #line $LINENO "configure"
        !          11218: /* confdefs.h.  */
        !          11219: _ACEOF
        !          11220: cat confdefs.h >>conftest.$ac_ext
        !          11221: cat >>conftest.$ac_ext <<_ACEOF
        !          11222: /* end confdefs.h.  */
1.1       millert  11223: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  11224:     which can conflict with char socket (); below.
        !          11225:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          11226:     <limits.h> exists even on freestanding compilers.  */
        !          11227: #ifdef __STDC__
        !          11228: # include <limits.h>
        !          11229: #else
        !          11230: # include <assert.h>
        !          11231: #endif
1.1       millert  11232: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11233: #ifdef __cplusplus
                   11234: extern "C"
1.16    ! millert  11235: {
1.9       millert  11236: #endif
1.1       millert  11237: /* We use char because int might match the return type of a gcc2
1.9       millert  11238:    builtin and then its argument prototype would still apply.  */
                   11239: char socket ();
1.1       millert  11240: /* The GNU C library defines this for functions which it implements
                   11241:     to always fail with ENOSYS.  Some functions are actually named
                   11242:     something starting with __ and the normal name is an alias.  */
                   11243: #if defined (__stub_socket) || defined (__stub___socket)
                   11244: choke me
                   11245: #else
1.16    ! millert  11246: char (*f) () = socket;
        !          11247: #endif
        !          11248: #ifdef __cplusplus
        !          11249: }
1.1       millert  11250: #endif
                   11251:
1.16    ! millert  11252: int
        !          11253: main ()
        !          11254: {
        !          11255: return f != socket;
1.9       millert  11256:   ;
                   11257:   return 0;
                   11258: }
                   11259: _ACEOF
                   11260: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11261: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11262:   (eval $ac_link) 2>&5
                   11263:   ac_status=$?
1.16    ! millert  11264:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11265:   (exit $ac_status); } &&
                   11266:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11267:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11268:   (eval $ac_try) 2>&5
                   11269:   ac_status=$?
1.16    ! millert  11270:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11271:   (exit $ac_status); }; }; then
                   11272:   ac_cv_func_socket=yes
                   11273: else
                   11274:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11275: sed 's/^/| /' conftest.$ac_ext >&5
        !          11276:
1.9       millert  11277: ac_cv_func_socket=no
                   11278: fi
                   11279: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11280: fi
1.16    ! millert  11281: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
1.9       millert  11282: echo "${ECHO_T}$ac_cv_func_socket" >&6
                   11283: if test $ac_cv_func_socket = yes; then
1.1       millert  11284:   :
                   11285: else
1.16    ! millert  11286:   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9       millert  11287: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   11288: if test "${ac_cv_lib_socket_socket+set}" = set; then
                   11289:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11290: else
1.9       millert  11291:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11292: LIBS="-lsocket  $LIBS"
1.9       millert  11293: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11294: #line $LINENO "configure"
        !          11295: /* confdefs.h.  */
        !          11296: _ACEOF
        !          11297: cat confdefs.h >>conftest.$ac_ext
        !          11298: cat >>conftest.$ac_ext <<_ACEOF
        !          11299: /* end confdefs.h.  */
1.9       millert  11300:
1.1       millert  11301: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11302: #ifdef __cplusplus
                   11303: extern "C"
                   11304: #endif
1.1       millert  11305: /* We use char because int might match the return type of a gcc2
1.9       millert  11306:    builtin and then its argument prototype would still apply.  */
                   11307: char socket ();
                   11308: int
                   11309: main ()
                   11310: {
                   11311: socket ();
                   11312:   ;
                   11313:   return 0;
                   11314: }
                   11315: _ACEOF
                   11316: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11317: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11318:   (eval $ac_link) 2>&5
                   11319:   ac_status=$?
1.16    ! millert  11320:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11321:   (exit $ac_status); } &&
                   11322:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11323:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11324:   (eval $ac_try) 2>&5
                   11325:   ac_status=$?
1.16    ! millert  11326:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11327:   (exit $ac_status); }; }; then
                   11328:   ac_cv_lib_socket_socket=yes
                   11329: else
                   11330:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11331: sed 's/^/| /' conftest.$ac_ext >&5
        !          11332:
1.9       millert  11333: ac_cv_lib_socket_socket=no
                   11334: fi
                   11335: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11336: LIBS=$ac_check_lib_save_LIBS
                   11337: fi
1.16    ! millert  11338: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
1.9       millert  11339: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
                   11340: if test $ac_cv_lib_socket_socket = yes; then
1.1       millert  11341:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   11342: else
1.16    ! millert  11343:   echo "$as_me:$LINENO: checking for socket in -linet" >&5
1.9       millert  11344: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
                   11345: if test "${ac_cv_lib_inet_socket+set}" = set; then
                   11346:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11347: else
1.9       millert  11348:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11349: LIBS="-linet  $LIBS"
1.9       millert  11350: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11351: #line $LINENO "configure"
        !          11352: /* confdefs.h.  */
        !          11353: _ACEOF
        !          11354: cat confdefs.h >>conftest.$ac_ext
        !          11355: cat >>conftest.$ac_ext <<_ACEOF
        !          11356: /* end confdefs.h.  */
1.9       millert  11357:
1.1       millert  11358: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11359: #ifdef __cplusplus
                   11360: extern "C"
                   11361: #endif
1.1       millert  11362: /* We use char because int might match the return type of a gcc2
1.9       millert  11363:    builtin and then its argument prototype would still apply.  */
                   11364: char socket ();
                   11365: int
                   11366: main ()
                   11367: {
                   11368: socket ();
                   11369:   ;
                   11370:   return 0;
                   11371: }
                   11372: _ACEOF
                   11373: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11374: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11375:   (eval $ac_link) 2>&5
                   11376:   ac_status=$?
1.16    ! millert  11377:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11378:   (exit $ac_status); } &&
                   11379:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11380:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11381:   (eval $ac_try) 2>&5
                   11382:   ac_status=$?
1.16    ! millert  11383:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11384:   (exit $ac_status); }; }; then
                   11385:   ac_cv_lib_inet_socket=yes
                   11386: else
                   11387:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11388: sed 's/^/| /' conftest.$ac_ext >&5
        !          11389:
1.9       millert  11390: ac_cv_lib_inet_socket=no
                   11391: fi
                   11392: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11393: LIBS=$ac_check_lib_save_LIBS
                   11394: fi
1.16    ! millert  11395: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
1.9       millert  11396: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
                   11397: if test $ac_cv_lib_inet_socket = yes; then
1.1       millert  11398:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   11399: else
1.16    ! millert  11400:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9       millert  11401: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.16    ! millert  11402: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9       millert  11403: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   11404: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
                   11405:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11406: else
1.9       millert  11407:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11408: LIBS="-lsocket -lnsl $LIBS"
1.9       millert  11409: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11410: #line $LINENO "configure"
        !          11411: /* confdefs.h.  */
        !          11412: _ACEOF
        !          11413: cat confdefs.h >>conftest.$ac_ext
        !          11414: cat >>conftest.$ac_ext <<_ACEOF
        !          11415: /* end confdefs.h.  */
1.9       millert  11416:
1.1       millert  11417: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11418: #ifdef __cplusplus
                   11419: extern "C"
                   11420: #endif
1.1       millert  11421: /* We use char because int might match the return type of a gcc2
1.9       millert  11422:    builtin and then its argument prototype would still apply.  */
                   11423: char socket ();
                   11424: int
                   11425: main ()
                   11426: {
                   11427: socket ();
                   11428:   ;
                   11429:   return 0;
                   11430: }
                   11431: _ACEOF
                   11432: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11433: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11434:   (eval $ac_link) 2>&5
                   11435:   ac_status=$?
1.16    ! millert  11436:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11437:   (exit $ac_status); } &&
                   11438:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11439:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11440:   (eval $ac_try) 2>&5
                   11441:   ac_status=$?
1.16    ! millert  11442:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11443:   (exit $ac_status); }; }; then
                   11444:   ac_cv_lib_socket_socket_lnsl=yes
                   11445: else
                   11446:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11447: sed 's/^/| /' conftest.$ac_ext >&5
        !          11448:
1.9       millert  11449: ac_cv_lib_socket_socket_lnsl=no
                   11450: fi
                   11451: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11452: LIBS=$ac_check_lib_save_LIBS
                   11453: fi
1.16    ! millert  11454: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9       millert  11455: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
                   11456: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1       millert  11457:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   11458: fi
                   11459:
                   11460: fi
                   11461:
                   11462: fi
                   11463:
                   11464: fi
                   11465:
1.16    ! millert  11466: echo "$as_me:$LINENO: checking for inet_addr" >&5
1.9       millert  11467: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
                   11468: if test "${ac_cv_func_inet_addr+set}" = set; then
                   11469:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11470: else
1.9       millert  11471:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11472: #line $LINENO "configure"
        !          11473: /* confdefs.h.  */
        !          11474: _ACEOF
        !          11475: cat confdefs.h >>conftest.$ac_ext
        !          11476: cat >>conftest.$ac_ext <<_ACEOF
        !          11477: /* end confdefs.h.  */
1.1       millert  11478: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  11479:     which can conflict with char inet_addr (); below.
        !          11480:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          11481:     <limits.h> exists even on freestanding compilers.  */
        !          11482: #ifdef __STDC__
        !          11483: # include <limits.h>
        !          11484: #else
        !          11485: # include <assert.h>
        !          11486: #endif
1.1       millert  11487: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11488: #ifdef __cplusplus
                   11489: extern "C"
1.16    ! millert  11490: {
1.9       millert  11491: #endif
1.1       millert  11492: /* We use char because int might match the return type of a gcc2
1.9       millert  11493:    builtin and then its argument prototype would still apply.  */
                   11494: char inet_addr ();
1.1       millert  11495: /* The GNU C library defines this for functions which it implements
                   11496:     to always fail with ENOSYS.  Some functions are actually named
                   11497:     something starting with __ and the normal name is an alias.  */
                   11498: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
                   11499: choke me
                   11500: #else
1.16    ! millert  11501: char (*f) () = inet_addr;
        !          11502: #endif
        !          11503: #ifdef __cplusplus
        !          11504: }
1.1       millert  11505: #endif
                   11506:
1.16    ! millert  11507: int
        !          11508: main ()
        !          11509: {
        !          11510: return f != inet_addr;
1.9       millert  11511:   ;
                   11512:   return 0;
                   11513: }
                   11514: _ACEOF
                   11515: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11516: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11517:   (eval $ac_link) 2>&5
                   11518:   ac_status=$?
1.16    ! millert  11519:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11520:   (exit $ac_status); } &&
                   11521:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11522:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11523:   (eval $ac_try) 2>&5
                   11524:   ac_status=$?
1.16    ! millert  11525:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11526:   (exit $ac_status); }; }; then
                   11527:   ac_cv_func_inet_addr=yes
                   11528: else
                   11529:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11530: sed 's/^/| /' conftest.$ac_ext >&5
        !          11531:
1.9       millert  11532: ac_cv_func_inet_addr=no
                   11533: fi
                   11534: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11535: fi
1.16    ! millert  11536: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
1.9       millert  11537: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
                   11538: if test $ac_cv_func_inet_addr = yes; then
1.1       millert  11539:   :
                   11540: else
1.16    ! millert  11541:   echo "$as_me:$LINENO: checking for __inet_addr" >&5
1.9       millert  11542: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
                   11543: if test "${ac_cv_func___inet_addr+set}" = set; then
                   11544:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  11545: else
1.9       millert  11546:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11547: #line $LINENO "configure"
        !          11548: /* confdefs.h.  */
        !          11549: _ACEOF
        !          11550: cat confdefs.h >>conftest.$ac_ext
        !          11551: cat >>conftest.$ac_ext <<_ACEOF
        !          11552: /* end confdefs.h.  */
1.6       millert  11553: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  11554:     which can conflict with char __inet_addr (); below.
        !          11555:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          11556:     <limits.h> exists even on freestanding compilers.  */
        !          11557: #ifdef __STDC__
        !          11558: # include <limits.h>
        !          11559: #else
        !          11560: # include <assert.h>
        !          11561: #endif
1.6       millert  11562: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11563: #ifdef __cplusplus
                   11564: extern "C"
1.16    ! millert  11565: {
1.9       millert  11566: #endif
1.6       millert  11567: /* We use char because int might match the return type of a gcc2
1.9       millert  11568:    builtin and then its argument prototype would still apply.  */
                   11569: char __inet_addr ();
1.6       millert  11570: /* The GNU C library defines this for functions which it implements
                   11571:     to always fail with ENOSYS.  Some functions are actually named
                   11572:     something starting with __ and the normal name is an alias.  */
                   11573: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
                   11574: choke me
                   11575: #else
1.16    ! millert  11576: char (*f) () = __inet_addr;
        !          11577: #endif
        !          11578: #ifdef __cplusplus
        !          11579: }
1.6       millert  11580: #endif
                   11581:
1.16    ! millert  11582: int
        !          11583: main ()
        !          11584: {
        !          11585: return f != __inet_addr;
1.9       millert  11586:   ;
                   11587:   return 0;
                   11588: }
                   11589: _ACEOF
                   11590: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11592:   (eval $ac_link) 2>&5
                   11593:   ac_status=$?
1.16    ! millert  11594:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11595:   (exit $ac_status); } &&
                   11596:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11597:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11598:   (eval $ac_try) 2>&5
                   11599:   ac_status=$?
1.16    ! millert  11600:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11601:   (exit $ac_status); }; }; then
                   11602:   ac_cv_func___inet_addr=yes
                   11603: else
                   11604:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11605: sed 's/^/| /' conftest.$ac_ext >&5
        !          11606:
1.9       millert  11607: ac_cv_func___inet_addr=no
                   11608: fi
                   11609: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11610: fi
1.16    ! millert  11611: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
1.9       millert  11612: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
                   11613: if test $ac_cv_func___inet_addr = yes; then
1.6       millert  11614:   :
                   11615: else
1.16    ! millert  11616:   echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
1.9       millert  11617: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
                   11618: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
                   11619:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11620: else
1.9       millert  11621:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11622: LIBS="-lnsl  $LIBS"
1.9       millert  11623: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11624: #line $LINENO "configure"
        !          11625: /* confdefs.h.  */
        !          11626: _ACEOF
        !          11627: cat confdefs.h >>conftest.$ac_ext
        !          11628: cat >>conftest.$ac_ext <<_ACEOF
        !          11629: /* end confdefs.h.  */
1.9       millert  11630:
1.1       millert  11631: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11632: #ifdef __cplusplus
                   11633: extern "C"
                   11634: #endif
1.1       millert  11635: /* We use char because int might match the return type of a gcc2
1.9       millert  11636:    builtin and then its argument prototype would still apply.  */
                   11637: char inet_addr ();
                   11638: int
                   11639: main ()
                   11640: {
                   11641: inet_addr ();
                   11642:   ;
                   11643:   return 0;
                   11644: }
                   11645: _ACEOF
                   11646: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11647: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11648:   (eval $ac_link) 2>&5
                   11649:   ac_status=$?
1.16    ! millert  11650:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11651:   (exit $ac_status); } &&
                   11652:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11653:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11654:   (eval $ac_try) 2>&5
                   11655:   ac_status=$?
1.16    ! millert  11656:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11657:   (exit $ac_status); }; }; then
                   11658:   ac_cv_lib_nsl_inet_addr=yes
                   11659: else
                   11660:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11661: sed 's/^/| /' conftest.$ac_ext >&5
        !          11662:
1.9       millert  11663: ac_cv_lib_nsl_inet_addr=no
                   11664: fi
                   11665: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11666: LIBS=$ac_check_lib_save_LIBS
                   11667: fi
1.16    ! millert  11668: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9       millert  11669: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
                   11670: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1       millert  11671:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   11672: else
1.16    ! millert  11673:   echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
1.9       millert  11674: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
                   11675: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
                   11676:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11677: else
1.9       millert  11678:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11679: LIBS="-linet  $LIBS"
1.9       millert  11680: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11681: #line $LINENO "configure"
        !          11682: /* confdefs.h.  */
        !          11683: _ACEOF
        !          11684: cat confdefs.h >>conftest.$ac_ext
        !          11685: cat >>conftest.$ac_ext <<_ACEOF
        !          11686: /* end confdefs.h.  */
1.9       millert  11687:
1.1       millert  11688: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11689: #ifdef __cplusplus
                   11690: extern "C"
                   11691: #endif
1.1       millert  11692: /* We use char because int might match the return type of a gcc2
1.9       millert  11693:    builtin and then its argument prototype would still apply.  */
                   11694: char inet_addr ();
                   11695: int
                   11696: main ()
                   11697: {
                   11698: inet_addr ();
                   11699:   ;
                   11700:   return 0;
                   11701: }
                   11702: _ACEOF
                   11703: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11704: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11705:   (eval $ac_link) 2>&5
                   11706:   ac_status=$?
1.16    ! millert  11707:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11708:   (exit $ac_status); } &&
                   11709:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11710:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11711:   (eval $ac_try) 2>&5
                   11712:   ac_status=$?
1.16    ! millert  11713:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11714:   (exit $ac_status); }; }; then
                   11715:   ac_cv_lib_inet_inet_addr=yes
                   11716: else
                   11717:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11718: sed 's/^/| /' conftest.$ac_ext >&5
        !          11719:
1.9       millert  11720: ac_cv_lib_inet_inet_addr=no
                   11721: fi
                   11722: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11723: LIBS=$ac_check_lib_save_LIBS
                   11724: fi
1.16    ! millert  11725: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
1.9       millert  11726: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
                   11727: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1       millert  11728:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   11729: else
1.16    ! millert  11730:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9       millert  11731: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.16    ! millert  11732: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
1.9       millert  11733: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
                   11734: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
                   11735:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11736: else
1.9       millert  11737:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11738: LIBS="-lsocket -lnsl $LIBS"
1.9       millert  11739: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11740: #line $LINENO "configure"
        !          11741: /* confdefs.h.  */
        !          11742: _ACEOF
        !          11743: cat confdefs.h >>conftest.$ac_ext
        !          11744: cat >>conftest.$ac_ext <<_ACEOF
        !          11745: /* end confdefs.h.  */
1.9       millert  11746:
1.1       millert  11747: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11748: #ifdef __cplusplus
                   11749: extern "C"
                   11750: #endif
1.1       millert  11751: /* We use char because int might match the return type of a gcc2
1.9       millert  11752:    builtin and then its argument prototype would still apply.  */
                   11753: char inet_addr ();
                   11754: int
                   11755: main ()
                   11756: {
                   11757: inet_addr ();
                   11758:   ;
                   11759:   return 0;
                   11760: }
                   11761: _ACEOF
                   11762: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11764:   (eval $ac_link) 2>&5
                   11765:   ac_status=$?
1.16    ! millert  11766:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11767:   (exit $ac_status); } &&
                   11768:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11769:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11770:   (eval $ac_try) 2>&5
                   11771:   ac_status=$?
1.16    ! millert  11772:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11773:   (exit $ac_status); }; }; then
                   11774:   ac_cv_lib_socket_inet_addr_lnsl=yes
                   11775: else
                   11776:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11777: sed 's/^/| /' conftest.$ac_ext >&5
        !          11778:
1.9       millert  11779: ac_cv_lib_socket_inet_addr_lnsl=no
                   11780: fi
                   11781: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11782: LIBS=$ac_check_lib_save_LIBS
                   11783: fi
1.16    ! millert  11784: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9       millert  11785: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
                   11786: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1       millert  11787:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   11788: fi
                   11789:
                   11790: fi
                   11791:
                   11792: fi
                   11793:
                   11794: fi
                   11795:
1.6       millert  11796: fi
                   11797:
1.16    ! millert  11798: echo "$as_me:$LINENO: checking for syslog" >&5
1.9       millert  11799: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
                   11800: if test "${ac_cv_func_syslog+set}" = set; then
                   11801:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11802: else
1.9       millert  11803:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11804: #line $LINENO "configure"
        !          11805: /* confdefs.h.  */
        !          11806: _ACEOF
        !          11807: cat confdefs.h >>conftest.$ac_ext
        !          11808: cat >>conftest.$ac_ext <<_ACEOF
        !          11809: /* end confdefs.h.  */
1.1       millert  11810: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  11811:     which can conflict with char syslog (); below.
        !          11812:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          11813:     <limits.h> exists even on freestanding compilers.  */
        !          11814: #ifdef __STDC__
        !          11815: # include <limits.h>
        !          11816: #else
        !          11817: # include <assert.h>
        !          11818: #endif
1.1       millert  11819: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11820: #ifdef __cplusplus
                   11821: extern "C"
1.16    ! millert  11822: {
1.9       millert  11823: #endif
1.1       millert  11824: /* We use char because int might match the return type of a gcc2
1.9       millert  11825:    builtin and then its argument prototype would still apply.  */
                   11826: char syslog ();
1.1       millert  11827: /* The GNU C library defines this for functions which it implements
                   11828:     to always fail with ENOSYS.  Some functions are actually named
                   11829:     something starting with __ and the normal name is an alias.  */
                   11830: #if defined (__stub_syslog) || defined (__stub___syslog)
                   11831: choke me
                   11832: #else
1.16    ! millert  11833: char (*f) () = syslog;
        !          11834: #endif
        !          11835: #ifdef __cplusplus
        !          11836: }
1.1       millert  11837: #endif
                   11838:
1.16    ! millert  11839: int
        !          11840: main ()
        !          11841: {
        !          11842: return f != syslog;
1.9       millert  11843:   ;
                   11844:   return 0;
                   11845: }
                   11846: _ACEOF
                   11847: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11848: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11849:   (eval $ac_link) 2>&5
                   11850:   ac_status=$?
1.16    ! millert  11851:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11852:   (exit $ac_status); } &&
                   11853:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11854:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11855:   (eval $ac_try) 2>&5
                   11856:   ac_status=$?
1.16    ! millert  11857:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11858:   (exit $ac_status); }; }; then
                   11859:   ac_cv_func_syslog=yes
                   11860: else
                   11861:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11862: sed 's/^/| /' conftest.$ac_ext >&5
        !          11863:
1.9       millert  11864: ac_cv_func_syslog=no
                   11865: fi
                   11866: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11867: fi
1.16    ! millert  11868: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
1.9       millert  11869: echo "${ECHO_T}$ac_cv_func_syslog" >&6
                   11870: if test $ac_cv_func_syslog = yes; then
1.1       millert  11871:   :
                   11872: else
1.16    ! millert  11873:   echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
1.9       millert  11874: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
                   11875: if test "${ac_cv_lib_socket_syslog+set}" = set; then
                   11876:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11877: else
1.9       millert  11878:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11879: LIBS="-lsocket  $LIBS"
1.9       millert  11880: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11881: #line $LINENO "configure"
        !          11882: /* confdefs.h.  */
        !          11883: _ACEOF
        !          11884: cat confdefs.h >>conftest.$ac_ext
        !          11885: cat >>conftest.$ac_ext <<_ACEOF
        !          11886: /* end confdefs.h.  */
1.9       millert  11887:
1.1       millert  11888: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  11889: #ifdef __cplusplus
                   11890: extern "C"
                   11891: #endif
1.1       millert  11892: /* We use char because int might match the return type of a gcc2
1.9       millert  11893:    builtin and then its argument prototype would still apply.  */
                   11894: char syslog ();
                   11895: int
                   11896: main ()
                   11897: {
                   11898: syslog ();
                   11899:   ;
                   11900:   return 0;
                   11901: }
                   11902: _ACEOF
                   11903: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11904: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11905:   (eval $ac_link) 2>&5
                   11906:   ac_status=$?
1.16    ! millert  11907:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11908:   (exit $ac_status); } &&
                   11909:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11910:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11911:   (eval $ac_try) 2>&5
                   11912:   ac_status=$?
1.16    ! millert  11913:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11914:   (exit $ac_status); }; }; then
                   11915:   ac_cv_lib_socket_syslog=yes
                   11916: else
                   11917:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11918: sed 's/^/| /' conftest.$ac_ext >&5
        !          11919:
1.9       millert  11920: ac_cv_lib_socket_syslog=no
                   11921: fi
                   11922: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11923: LIBS=$ac_check_lib_save_LIBS
                   11924: fi
1.16    ! millert  11925: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
1.9       millert  11926: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
                   11927: if test $ac_cv_lib_socket_syslog = yes; then
1.1       millert  11928:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   11929: else
1.16    ! millert  11930:   echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
1.9       millert  11931: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
                   11932: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   11933:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11934: else
1.9       millert  11935:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11936: LIBS="-lnsl  $LIBS"
1.9       millert  11937: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11938: #line $LINENO "configure"
        !          11939: /* confdefs.h.  */
        !          11940: _ACEOF
        !          11941: cat confdefs.h >>conftest.$ac_ext
        !          11942: cat >>conftest.$ac_ext <<_ACEOF
        !          11943: /* end confdefs.h.  */
1.1       millert  11944:
1.9       millert  11945: /* Override any gcc2 internal prototype to avoid an error.  */
                   11946: #ifdef __cplusplus
                   11947: extern "C"
                   11948: #endif
                   11949: /* We use char because int might match the return type of a gcc2
                   11950:    builtin and then its argument prototype would still apply.  */
                   11951: char syslog ();
                   11952: int
                   11953: main ()
                   11954: {
                   11955: syslog ();
                   11956:   ;
                   11957:   return 0;
                   11958: }
                   11959: _ACEOF
                   11960: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  11961: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  11962:   (eval $ac_link) 2>&5
                   11963:   ac_status=$?
1.16    ! millert  11964:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11965:   (exit $ac_status); } &&
                   11966:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  11967:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  11968:   (eval $ac_try) 2>&5
                   11969:   ac_status=$?
1.16    ! millert  11970:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  11971:   (exit $ac_status); }; }; then
                   11972:   ac_cv_lib_nsl_syslog=yes
                   11973: else
                   11974:   echo "$as_me: failed program was:" >&5
1.16    ! millert  11975: sed 's/^/| /' conftest.$ac_ext >&5
        !          11976:
1.9       millert  11977: ac_cv_lib_nsl_syslog=no
                   11978: fi
                   11979: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   11980: LIBS=$ac_check_lib_save_LIBS
                   11981: fi
1.16    ! millert  11982: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
1.9       millert  11983: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
                   11984: if test $ac_cv_lib_nsl_syslog = yes; then
1.1       millert  11985:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   11986: else
1.16    ! millert  11987:   echo "$as_me:$LINENO: checking for syslog in -linet" >&5
1.9       millert  11988: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
                   11989: if test "${ac_cv_lib_inet_syslog+set}" = set; then
                   11990:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  11991: else
1.9       millert  11992:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  11993: LIBS="-linet  $LIBS"
1.9       millert  11994: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  11995: #line $LINENO "configure"
        !          11996: /* confdefs.h.  */
        !          11997: _ACEOF
        !          11998: cat confdefs.h >>conftest.$ac_ext
        !          11999: cat >>conftest.$ac_ext <<_ACEOF
        !          12000: /* end confdefs.h.  */
1.9       millert  12001:
1.1       millert  12002: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  12003: #ifdef __cplusplus
                   12004: extern "C"
                   12005: #endif
1.1       millert  12006: /* We use char because int might match the return type of a gcc2
1.9       millert  12007:    builtin and then its argument prototype would still apply.  */
                   12008: char syslog ();
                   12009: int
                   12010: main ()
                   12011: {
                   12012: syslog ();
                   12013:   ;
                   12014:   return 0;
                   12015: }
                   12016: _ACEOF
                   12017: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12018: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12019:   (eval $ac_link) 2>&5
                   12020:   ac_status=$?
1.16    ! millert  12021:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12022:   (exit $ac_status); } &&
                   12023:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12024:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12025:   (eval $ac_try) 2>&5
                   12026:   ac_status=$?
1.16    ! millert  12027:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12028:   (exit $ac_status); }; }; then
                   12029:   ac_cv_lib_inet_syslog=yes
                   12030: else
                   12031:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12032: sed 's/^/| /' conftest.$ac_ext >&5
        !          12033:
1.9       millert  12034: ac_cv_lib_inet_syslog=no
                   12035: fi
                   12036: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12037: LIBS=$ac_check_lib_save_LIBS
                   12038: fi
1.16    ! millert  12039: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
1.9       millert  12040: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
                   12041: if test $ac_cv_lib_inet_syslog = yes; then
1.1       millert  12042:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   12043: fi
                   12044:
                   12045: fi
                   12046:
                   12047: fi
                   12048:
                   12049: fi
                   12050:
                   12051: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   12052:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   12053: # for constant arguments.  Useless!
1.16    ! millert  12054: echo "$as_me:$LINENO: checking for working alloca.h" >&5
1.9       millert  12055: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
                   12056: if test "${ac_cv_working_alloca_h+set}" = set; then
                   12057:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12058: else
1.9       millert  12059:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12060: #line $LINENO "configure"
        !          12061: /* confdefs.h.  */
        !          12062: _ACEOF
        !          12063: cat confdefs.h >>conftest.$ac_ext
        !          12064: cat >>conftest.$ac_ext <<_ACEOF
        !          12065: /* end confdefs.h.  */
1.1       millert  12066: #include <alloca.h>
1.9       millert  12067: int
                   12068: main ()
                   12069: {
                   12070: char *p = (char *) alloca (2 * sizeof (int));
                   12071:   ;
                   12072:   return 0;
                   12073: }
                   12074: _ACEOF
                   12075: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12076: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12077:   (eval $ac_link) 2>&5
                   12078:   ac_status=$?
1.16    ! millert  12079:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12080:   (exit $ac_status); } &&
                   12081:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12082:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12083:   (eval $ac_try) 2>&5
                   12084:   ac_status=$?
1.16    ! millert  12085:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12086:   (exit $ac_status); }; }; then
                   12087:   ac_cv_working_alloca_h=yes
                   12088: else
                   12089:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12090: sed 's/^/| /' conftest.$ac_ext >&5
        !          12091:
1.9       millert  12092: ac_cv_working_alloca_h=no
                   12093: fi
                   12094: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12095: fi
1.16    ! millert  12096: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
1.9       millert  12097: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
                   12098: if test $ac_cv_working_alloca_h = yes; then
1.1       millert  12099:
1.16    ! millert  12100: cat >>confdefs.h <<\_ACEOF
1.1       millert  12101: #define HAVE_ALLOCA_H 1
1.16    ! millert  12102: _ACEOF
1.1       millert  12103:
                   12104: fi
                   12105:
1.16    ! millert  12106: echo "$as_me:$LINENO: checking for alloca" >&5
1.9       millert  12107: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
                   12108: if test "${ac_cv_func_alloca_works+set}" = set; then
                   12109:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12110: else
1.9       millert  12111:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12112: #line $LINENO "configure"
        !          12113: /* confdefs.h.  */
        !          12114: _ACEOF
        !          12115: cat confdefs.h >>conftest.$ac_ext
        !          12116: cat >>conftest.$ac_ext <<_ACEOF
        !          12117: /* end confdefs.h.  */
1.1       millert  12118: #ifdef __GNUC__
                   12119: # define alloca __builtin_alloca
                   12120: #else
1.9       millert  12121: # ifdef _MSC_VER
                   12122: #  include <malloc.h>
                   12123: #  define alloca _alloca
1.1       millert  12124: # else
1.9       millert  12125: #  if HAVE_ALLOCA_H
                   12126: #   include <alloca.h>
                   12127: #  else
                   12128: #   ifdef _AIX
1.1       millert  12129:  #pragma alloca
1.9       millert  12130: #   else
                   12131: #    ifndef alloca /* predefined by HP cc +Olibcalls */
1.1       millert  12132: char *alloca ();
1.9       millert  12133: #    endif
1.1       millert  12134: #   endif
                   12135: #  endif
                   12136: # endif
                   12137: #endif
                   12138:
1.9       millert  12139: int
                   12140: main ()
                   12141: {
                   12142: char *p = (char *) alloca (1);
                   12143:   ;
                   12144:   return 0;
                   12145: }
                   12146: _ACEOF
                   12147: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12148: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12149:   (eval $ac_link) 2>&5
                   12150:   ac_status=$?
1.16    ! millert  12151:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12152:   (exit $ac_status); } &&
                   12153:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12154:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12155:   (eval $ac_try) 2>&5
                   12156:   ac_status=$?
1.16    ! millert  12157:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12158:   (exit $ac_status); }; }; then
1.1       millert  12159:   ac_cv_func_alloca_works=yes
                   12160: else
1.9       millert  12161:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12162: sed 's/^/| /' conftest.$ac_ext >&5
        !          12163:
1.9       millert  12164: ac_cv_func_alloca_works=no
1.1       millert  12165: fi
1.9       millert  12166: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       millert  12167: fi
1.16    ! millert  12168: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
1.9       millert  12169: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1       millert  12170:
                   12171: if test $ac_cv_func_alloca_works = yes; then
1.9       millert  12172:
1.16    ! millert  12173: cat >>confdefs.h <<\_ACEOF
1.1       millert  12174: #define HAVE_ALLOCA 1
1.16    ! millert  12175: _ACEOF
1.1       millert  12176:
1.9       millert  12177: else
                   12178:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   12179: # that cause trouble.  Some versions do not even contain alloca or
                   12180: # contain a buggy version.  If you still want to use their alloca,
                   12181: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   12182:
                   12183: ALLOCA=alloca.$ac_objext
1.1       millert  12184:
1.16    ! millert  12185: cat >>confdefs.h <<\_ACEOF
1.1       millert  12186: #define C_ALLOCA 1
1.16    ! millert  12187: _ACEOF
        !          12188:
1.1       millert  12189:
1.16    ! millert  12190: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
1.9       millert  12191: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
                   12192: if test "${ac_cv_os_cray+set}" = set; then
                   12193:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12194: else
1.9       millert  12195:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12196: #line $LINENO "configure"
        !          12197: /* confdefs.h.  */
        !          12198: _ACEOF
        !          12199: cat confdefs.h >>conftest.$ac_ext
        !          12200: cat >>conftest.$ac_ext <<_ACEOF
        !          12201: /* end confdefs.h.  */
1.1       millert  12202: #if defined(CRAY) && ! defined(CRAY2)
                   12203: webecray
                   12204: #else
                   12205: wenotbecray
                   12206: #endif
                   12207:
1.9       millert  12208: _ACEOF
1.1       millert  12209: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16    ! millert  12210:   $EGREP "webecray" >/dev/null 2>&1; then
1.1       millert  12211:   ac_cv_os_cray=yes
                   12212: else
                   12213:   ac_cv_os_cray=no
                   12214: fi
                   12215: rm -f conftest*
                   12216:
                   12217: fi
1.16    ! millert  12218: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
1.9       millert  12219: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1       millert  12220: if test $ac_cv_os_cray = yes; then
1.9       millert  12221:   for ac_func in _getb67 GETB67 getb67; do
                   12222:     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16    ! millert  12223: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  12224: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   12225: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   12226:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12227: else
1.9       millert  12228:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12229: #line $LINENO "configure"
        !          12230: /* confdefs.h.  */
        !          12231: _ACEOF
        !          12232: cat confdefs.h >>conftest.$ac_ext
        !          12233: cat >>conftest.$ac_ext <<_ACEOF
        !          12234: /* end confdefs.h.  */
1.1       millert  12235: /* System header to define __stub macros and hopefully few prototypes,
1.16    ! millert  12236:     which can conflict with char $ac_func (); below.
        !          12237:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          12238:     <limits.h> exists even on freestanding compilers.  */
        !          12239: #ifdef __STDC__
        !          12240: # include <limits.h>
        !          12241: #else
        !          12242: # include <assert.h>
        !          12243: #endif
1.1       millert  12244: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  12245: #ifdef __cplusplus
                   12246: extern "C"
1.16    ! millert  12247: {
1.9       millert  12248: #endif
1.1       millert  12249: /* We use char because int might match the return type of a gcc2
1.9       millert  12250:    builtin and then its argument prototype would still apply.  */
                   12251: char $ac_func ();
1.1       millert  12252: /* The GNU C library defines this for functions which it implements
                   12253:     to always fail with ENOSYS.  Some functions are actually named
                   12254:     something starting with __ and the normal name is an alias.  */
                   12255: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   12256: choke me
                   12257: #else
1.16    ! millert  12258: char (*f) () = $ac_func;
        !          12259: #endif
        !          12260: #ifdef __cplusplus
        !          12261: }
1.1       millert  12262: #endif
                   12263:
1.16    ! millert  12264: int
        !          12265: main ()
        !          12266: {
        !          12267: return f != $ac_func;
1.9       millert  12268:   ;
                   12269:   return 0;
                   12270: }
                   12271: _ACEOF
                   12272: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12273: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12274:   (eval $ac_link) 2>&5
                   12275:   ac_status=$?
1.16    ! millert  12276:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12277:   (exit $ac_status); } &&
                   12278:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12279:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12280:   (eval $ac_try) 2>&5
                   12281:   ac_status=$?
1.16    ! millert  12282:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12283:   (exit $ac_status); }; }; then
                   12284:   eval "$as_ac_var=yes"
                   12285: else
                   12286:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12287: sed 's/^/| /' conftest.$ac_ext >&5
        !          12288:
1.9       millert  12289: eval "$as_ac_var=no"
                   12290: fi
                   12291: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12292: fi
1.16    ! millert  12293: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  12294: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   12295: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1       millert  12296:
1.16    ! millert  12297: cat >>confdefs.h <<_ACEOF
1.1       millert  12298: #define CRAY_STACKSEG_END $ac_func
1.16    ! millert  12299: _ACEOF
1.1       millert  12300:
1.9       millert  12301:     break
1.1       millert  12302: fi
                   12303:
1.9       millert  12304:   done
1.1       millert  12305: fi
                   12306:
1.16    ! millert  12307: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
1.9       millert  12308: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
                   12309: if test "${ac_cv_c_stack_direction+set}" = set; then
                   12310:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12311: else
                   12312:   if test "$cross_compiling" = yes; then
                   12313:   ac_cv_c_stack_direction=0
                   12314: else
1.9       millert  12315:   cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12316: #line $LINENO "configure"
        !          12317: /* confdefs.h.  */
        !          12318: _ACEOF
        !          12319: cat confdefs.h >>conftest.$ac_ext
        !          12320: cat >>conftest.$ac_ext <<_ACEOF
        !          12321: /* end confdefs.h.  */
1.9       millert  12322: int
1.1       millert  12323: find_stack_direction ()
                   12324: {
                   12325:   static char *addr = 0;
                   12326:   auto char dummy;
                   12327:   if (addr == 0)
                   12328:     {
                   12329:       addr = &dummy;
                   12330:       return find_stack_direction ();
                   12331:     }
                   12332:   else
                   12333:     return (&dummy > addr) ? 1 : -1;
                   12334: }
1.9       millert  12335:
                   12336: int
1.1       millert  12337: main ()
                   12338: {
1.9       millert  12339:   exit (find_stack_direction () < 0);
1.1       millert  12340: }
1.9       millert  12341: _ACEOF
                   12342: rm -f conftest$ac_exeext
1.16    ! millert  12343: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12344:   (eval $ac_link) 2>&5
                   12345:   ac_status=$?
1.16    ! millert  12346:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12347:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16    ! millert  12348:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12349:   (eval $ac_try) 2>&5
                   12350:   ac_status=$?
1.16    ! millert  12351:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12352:   (exit $ac_status); }; }; then
1.1       millert  12353:   ac_cv_c_stack_direction=1
                   12354: else
1.9       millert  12355:   echo "$as_me: program exited with status $ac_status" >&5
                   12356: echo "$as_me: failed program was:" >&5
1.16    ! millert  12357: sed 's/^/| /' conftest.$ac_ext >&5
        !          12358:
        !          12359: ( exit $ac_status )
1.9       millert  12360: ac_cv_c_stack_direction=-1
1.1       millert  12361: fi
1.16    ! millert  12362: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  12363: fi
                   12364: fi
1.16    ! millert  12365: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
1.9       millert  12366: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1       millert  12367:
1.16    ! millert  12368: cat >>confdefs.h <<_ACEOF
1.1       millert  12369: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.16    ! millert  12370: _ACEOF
        !          12371:
1.1       millert  12372:
                   12373: fi
                   12374:
                   12375: fi
                   12376:
                   12377: if test "$with_kerb5" = "yes"; then
1.9       millert  12378:
1.16    ! millert  12379: cat >>confdefs.h <<\_ACEOF
1.1       millert  12380: #define HAVE_KERB5 1
1.16    ! millert  12381: _ACEOF
1.1       millert  12382:
                   12383:     if test -f "/usr/local/include/krb5.h"; then
                   12384:        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
                   12385:     elif test -f "/usr/local/kerberos/include/krb5.h"; then
                   12386:        CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
1.9       millert  12387:     elif test -f "/usr/krb5/include/krb5.h"; then
                   12388:        CPPFLAGS="$CPPFLAGS -I/usr/krb5/include"
1.1       millert  12389:     elif test -f "/usr/local/krb5/include/krb5.h"; then
                   12390:        CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
                   12391:     else
                   12392:        echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   12393:     fi
                   12394:
                   12395:     if test -f "/usr/local/lib/libkrb5.a"; then
                   12396:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   12397:     elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
                   12398:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
1.9       millert  12399:     elif test -f "/usr/krb5/lib/libkrb5.a"; then
                   12400:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/krb5/lib"
1.1       millert  12401:     elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
                   12402:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
                   12403:     else
                   12404:        echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   12405:     fi
                   12406:
                   12407:     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   12408:     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
                   12409: fi
                   12410:
1.5       millert  12411: if test "$with_pam" = "yes"; then
1.16    ! millert  12412:     echo "$as_me:$LINENO: checking for main in -ldl" >&5
1.9       millert  12413: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
                   12414: if test "${ac_cv_lib_dl_main+set}" = set; then
                   12415:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.5       millert  12416: else
1.9       millert  12417:   ac_check_lib_save_LIBS=$LIBS
1.5       millert  12418: LIBS="-ldl  $LIBS"
1.9       millert  12419: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12420: #line $LINENO "configure"
        !          12421: /* confdefs.h.  */
        !          12422: _ACEOF
        !          12423: cat confdefs.h >>conftest.$ac_ext
        !          12424: cat >>conftest.$ac_ext <<_ACEOF
        !          12425: /* end confdefs.h.  */
        !          12426:
1.5       millert  12427:
1.9       millert  12428: int
                   12429: main ()
                   12430: {
                   12431: main ();
                   12432:   ;
                   12433:   return 0;
                   12434: }
                   12435: _ACEOF
                   12436: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12437: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12438:   (eval $ac_link) 2>&5
                   12439:   ac_status=$?
1.16    ! millert  12440:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12441:   (exit $ac_status); } &&
                   12442:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12443:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12444:   (eval $ac_try) 2>&5
                   12445:   ac_status=$?
1.16    ! millert  12446:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12447:   (exit $ac_status); }; }; then
                   12448:   ac_cv_lib_dl_main=yes
                   12449: else
                   12450:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12451: sed 's/^/| /' conftest.$ac_ext >&5
        !          12452:
1.9       millert  12453: ac_cv_lib_dl_main=no
                   12454: fi
                   12455: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12456: LIBS=$ac_check_lib_save_LIBS
                   12457: fi
1.16    ! millert  12458: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
1.9       millert  12459: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
                   12460: if test $ac_cv_lib_dl_main = yes; then
1.16    ! millert  12461:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
1.5       millert  12462: else
                   12463:   SUDO_LIBS="${SUDO_LIBS} -lpam"
                   12464: fi
1.9       millert  12465: ac_cv_lib_dl=ac_cv_lib_dl_main
1.5       millert  12466:
                   12467: fi
                   12468:
1.1       millert  12469: if test "$with_kerb4" = "yes"; then
1.9       millert  12470:
1.16    ! millert  12471: cat >>confdefs.h <<\_ACEOF
1.1       millert  12472: #define HAVE_KERB4 1
1.16    ! millert  12473: _ACEOF
1.1       millert  12474:
                   12475:     if test -f "/usr/include/kerberosIV/krb.h"; then
                   12476:        CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
                   12477:     elif test -f "/usr/local/include/kerberosIV/krb.h"; then
                   12478:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
                   12479:     elif test -f "/usr/kerberos/include/krb.h"; then
                   12480:        CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
                   12481:     elif test -f "/usr/local/kerberos/include/krb.h"; then
                   12482:        CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
                   12483:     else
                   12484:        echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   12485:     fi
                   12486:
                   12487:     if test -d "/usr/kerberos/lib"; then
                   12488:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
                   12489:     elif test -d "/usr/lib/kerberos"; then
                   12490:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
                   12491:     elif test -f "/usr/local/lib/libkrb.a"; then
                   12492:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   12493:     elif test ! -f "/usr/lib/libkrb.a"; then
                   12494:        echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   12495:     fi
                   12496:
1.16    ! millert  12497:     echo "$as_me:$LINENO: checking for main in -ldes" >&5
1.9       millert  12498: echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
                   12499: if test "${ac_cv_lib_des_main+set}" = set; then
                   12500:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12501: else
1.9       millert  12502:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  12503: LIBS="-ldes  $LIBS"
1.9       millert  12504: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12505: #line $LINENO "configure"
        !          12506: /* confdefs.h.  */
        !          12507: _ACEOF
        !          12508: cat confdefs.h >>conftest.$ac_ext
        !          12509: cat >>conftest.$ac_ext <<_ACEOF
        !          12510: /* end confdefs.h.  */
        !          12511:
1.1       millert  12512:
1.9       millert  12513: int
                   12514: main ()
                   12515: {
                   12516: main ();
                   12517:   ;
                   12518:   return 0;
                   12519: }
                   12520: _ACEOF
                   12521: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12522: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12523:   (eval $ac_link) 2>&5
                   12524:   ac_status=$?
1.16    ! millert  12525:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12526:   (exit $ac_status); } &&
                   12527:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12528:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12529:   (eval $ac_try) 2>&5
                   12530:   ac_status=$?
1.16    ! millert  12531:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12532:   (exit $ac_status); }; }; then
                   12533:   ac_cv_lib_des_main=yes
                   12534: else
                   12535:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12536: sed 's/^/| /' conftest.$ac_ext >&5
        !          12537:
1.9       millert  12538: ac_cv_lib_des_main=no
                   12539: fi
                   12540: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12541: LIBS=$ac_check_lib_save_LIBS
                   12542: fi
1.16    ! millert  12543: echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
1.9       millert  12544: echo "${ECHO_T}$ac_cv_lib_des_main" >&6
                   12545: if test $ac_cv_lib_des_main = yes; then
1.1       millert  12546:   SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
                   12547: else
                   12548:   SUDO_LIBS="${SUDO_LIBS} -lkrb"
                   12549: fi
1.9       millert  12550: ac_cv_lib_des=ac_cv_lib_des_main
1.1       millert  12551:
                   12552:     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
                   12553: fi
                   12554:
                   12555: if test "$with_AFS" = "yes"; then
                   12556:
                   12557:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   12558:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   12559:     for i in $AFSLIBDIRS; do
                   12560:        if test -d ${i}; then
                   12561:            SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
                   12562:            FOUND_AFSLIBDIR=true
                   12563:        fi
                   12564:     done
                   12565:     if test -z "$FOUND_AFSLIBDIR"; then
                   12566:        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.'
                   12567:     fi
                   12568:
                   12569:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   12570:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   12571:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   12572:     for i in $AFSLIBDIRS; do
                   12573:        if test -f ${i}/util.a; then
                   12574:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   12575:            FOUND_UTIL_A=true
                   12576:            break;
                   12577:        fi
                   12578:     done
                   12579:     if test -z "$FOUND_UTIL_A"; then
                   12580:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   12581:     fi
                   12582:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   12583:
                   12584:     # AFS includes may live in /usr/include on some machines...
                   12585:     for i in /usr/afsws/include; do
                   12586:        if test -d ${i}; then
                   12587:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   12588:            FOUND_AFSINCDIR=true
                   12589:        fi
                   12590:     done
                   12591:
                   12592:     if test -z "$FOUND_AFSLIBDIR"; then
                   12593:        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.'
                   12594:     fi
                   12595: fi
                   12596:
                   12597: if test "$with_DCE" = "yes"; then
                   12598:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   12599:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   12600: fi
                   12601:
                   12602: if test "$with_skey" = "yes"; then
                   12603:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   12604:     if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
                   12605:        :
                   12606:     elif test -f /usr/local/include/skey.h; then
                   12607:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   12608:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   12609:     elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
                   12610:        CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
                   12611:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
                   12612:     else
                   12613:        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'
                   12614:     fi
1.16    ! millert  12615:     echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
1.9       millert  12616: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
                   12617: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
                   12618:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12619: else
                   12620:   ac_check_lib_save_LIBS=$LIBS
1.16    ! millert  12621: LIBS="-lskey  $LIBS"
        !          12622: cat >conftest.$ac_ext <<_ACEOF
        !          12623: #line $LINENO "configure"
        !          12624: /* confdefs.h.  */
        !          12625: _ACEOF
        !          12626: cat confdefs.h >>conftest.$ac_ext
        !          12627: cat >>conftest.$ac_ext <<_ACEOF
        !          12628: /* end confdefs.h.  */
        !          12629:
        !          12630: /* Override any gcc2 internal prototype to avoid an error.  */
        !          12631: #ifdef __cplusplus
        !          12632: extern "C"
        !          12633: #endif
        !          12634: /* We use char because int might match the return type of a gcc2
        !          12635:    builtin and then its argument prototype would still apply.  */
        !          12636: char skeyaccess ();
        !          12637: int
        !          12638: main ()
        !          12639: {
        !          12640: skeyaccess ();
        !          12641:   ;
        !          12642:   return 0;
        !          12643: }
        !          12644: _ACEOF
        !          12645: rm -f conftest.$ac_objext conftest$ac_exeext
        !          12646: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
        !          12647:   (eval $ac_link) 2>&5
        !          12648:   ac_status=$?
        !          12649:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          12650:   (exit $ac_status); } &&
        !          12651:          { ac_try='test -s conftest$ac_exeext'
        !          12652:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          12653:   (eval $ac_try) 2>&5
        !          12654:   ac_status=$?
        !          12655:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          12656:   (exit $ac_status); }; }; then
        !          12657:   ac_cv_lib_skey_skeyaccess=yes
        !          12658: else
        !          12659:   echo "$as_me: failed program was:" >&5
        !          12660: sed 's/^/| /' conftest.$ac_ext >&5
        !          12661:
        !          12662: ac_cv_lib_skey_skeyaccess=no
        !          12663: fi
        !          12664: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        !          12665: LIBS=$ac_check_lib_save_LIBS
        !          12666: fi
        !          12667: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
        !          12668: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
        !          12669: if test $ac_cv_lib_skey_skeyaccess = yes; then
        !          12670:
        !          12671: cat >>confdefs.h <<\_ACEOF
        !          12672: #define HAVE_SKEYACCESS 1
        !          12673: _ACEOF
        !          12674:
        !          12675: fi
        !          12676:
        !          12677: fi
        !          12678:
        !          12679: if test "$with_opie" = "yes"; then
        !          12680:     SUDO_LIBS="${SUDO_LIBS} -lopie"
        !          12681:     if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
        !          12682:        :
        !          12683:     elif test -f /usr/local/include/opie.h; then
        !          12684:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
        !          12685:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
        !          12686:     else
        !          12687:        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'
        !          12688:     fi
        !          12689: fi
        !          12690:
        !          12691: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
        !          12692:     if test "$with_SecurID" != "yes"; then
        !          12693:        :
        !          12694:     elif test -d /usr/ace/examples; then
        !          12695:        with_SecurID=/usr/ace/examples
        !          12696:     else
        !          12697:        with_SecurID=/usr/ace
        !          12698:     fi
        !          12699:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
        !          12700:     _LDFLAGS="${LDFLAGS}"
        !          12701:     LDFLAGS="${LDFLAGS} -L${with_SecurID}"
        !          12702:     #
        !          12703:     # Determine whether to use the new or old SecurID API
        !          12704:     #
        !          12705:     echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
        !          12706: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
        !          12707: if test "${ac_cv_lib_aceclnt_SD_Init_lpthread+set}" = set; then
        !          12708:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          12709: else
        !          12710:   ac_check_lib_save_LIBS=$LIBS
        !          12711: LIBS="-laceclnt -lpthread $LIBS"
1.9       millert  12712: cat >conftest.$ac_ext <<_ACEOF
1.16    ! millert  12713: #line $LINENO "configure"
        !          12714: /* confdefs.h.  */
        !          12715: _ACEOF
        !          12716: cat confdefs.h >>conftest.$ac_ext
        !          12717: cat >>conftest.$ac_ext <<_ACEOF
        !          12718: /* end confdefs.h.  */
1.9       millert  12719:
                   12720: /* Override any gcc2 internal prototype to avoid an error.  */
                   12721: #ifdef __cplusplus
                   12722: extern "C"
                   12723: #endif
                   12724: /* We use char because int might match the return type of a gcc2
                   12725:    builtin and then its argument prototype would still apply.  */
1.16    ! millert  12726: char SD_Init ();
1.9       millert  12727: int
                   12728: main ()
                   12729: {
1.16    ! millert  12730: SD_Init ();
1.9       millert  12731:   ;
                   12732:   return 0;
                   12733: }
                   12734: _ACEOF
                   12735: rm -f conftest.$ac_objext conftest$ac_exeext
1.16    ! millert  12736: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  12737:   (eval $ac_link) 2>&5
                   12738:   ac_status=$?
1.16    ! millert  12739:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12740:   (exit $ac_status); } &&
                   12741:          { ac_try='test -s conftest$ac_exeext'
1.16    ! millert  12742:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12743:   (eval $ac_try) 2>&5
                   12744:   ac_status=$?
1.16    ! millert  12745:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12746:   (exit $ac_status); }; }; then
1.16    ! millert  12747:   ac_cv_lib_aceclnt_SD_Init_lpthread=yes
1.9       millert  12748: else
                   12749:   echo "$as_me: failed program was:" >&5
1.16    ! millert  12750: sed 's/^/| /' conftest.$ac_ext >&5
        !          12751:
        !          12752: ac_cv_lib_aceclnt_SD_Init_lpthread=no
1.9       millert  12753: fi
                   12754: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   12755: LIBS=$ac_check_lib_save_LIBS
                   12756: fi
1.16    ! millert  12757: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_lpthread" >&5
        !          12758: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_lpthread" >&6
        !          12759: if test $ac_cv_lib_aceclnt_SD_Init_lpthread = yes; then
        !          12760:   AUTH_OBJS="securid5.o"; SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"; SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
        !          12761: else
        !          12762:   AUTH_OBJS="securid.o"; SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
1.1       millert  12763: fi
                   12764:
1.16    ! millert  12765:     LDFLAGS="${_LDFLAGS}"
1.1       millert  12766: fi
                   12767:
                   12768: if test "$with_fwtk" = "yes"; then
                   12769:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   12770: fi
                   12771:
                   12772: if test "$with_authenticate" = "yes"; then
                   12773:     SUDO_LIBS="${SUDO_LIBS} -ls"
                   12774: fi
                   12775:
1.16    ! millert  12776: echo "$as_me:$LINENO: checking for log file location" >&5
1.9       millert  12777: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1       millert  12778: if test -n "$with_logpath"; then
1.16    ! millert  12779:     echo "$as_me:$LINENO: result: $with_logpath" >&5
1.9       millert  12780: echo "${ECHO_T}$with_logpath" >&6
                   12781:     cat >>confdefs.h <<EOF
1.1       millert  12782: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   12783: EOF
                   12784:
                   12785: elif test -d "/var/log"; then
1.16    ! millert  12786:     echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
1.9       millert  12787: echo "${ECHO_T}/var/log/sudo.log" >&6
                   12788:     cat >>confdefs.h <<\EOF
1.1       millert  12789: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   12790: EOF
                   12791:
                   12792: elif test -d "/var/adm"; then
1.16    ! millert  12793:     echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
1.9       millert  12794: echo "${ECHO_T}/var/adm/sudo.log" >&6
                   12795:     cat >>confdefs.h <<\EOF
1.1       millert  12796: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   12797: EOF
                   12798:
                   12799: elif test -d "/usr/adm"; then
1.16    ! millert  12800:     echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
1.9       millert  12801: echo "${ECHO_T}/usr/adm/sudo.log" >&6
                   12802:     cat >>confdefs.h <<\EOF
1.1       millert  12803: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   12804: EOF
                   12805:
                   12806: else
1.16    ! millert  12807:     echo "$as_me:$LINENO: result: unknown" >&5
1.9       millert  12808: echo "${ECHO_T}unknown" >&6
1.1       millert  12809: fi
                   12810:
1.16    ! millert  12811: echo "$as_me:$LINENO: checking for timestamp file location" >&5
1.9       millert  12812: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1       millert  12813: if test -n "$with_timedir"; then
1.16    ! millert  12814:     echo "$as_me:$LINENO: result: $with_timedir" >&5
1.9       millert  12815: echo "${ECHO_T}$with_timedir" >&6
                   12816:     cat >>confdefs.h <<EOF
1.1       millert  12817: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   12818: EOF
                   12819:
1.9       millert  12820:     timedir="$with_timedir"
1.1       millert  12821: elif test -d "/var/run"; then
1.16    ! millert  12822:     echo "$as_me:$LINENO: result: /var/run/sudo" >&5
1.9       millert  12823: echo "${ECHO_T}/var/run/sudo" >&6
                   12824:     cat >>confdefs.h <<\EOF
1.1       millert  12825: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   12826: EOF
                   12827:
1.9       millert  12828:     timedir="/var/run/sudo"
1.6       millert  12829: else
1.16    ! millert  12830:     echo "$as_me:$LINENO: result: /tmp/.odus" >&5
1.9       millert  12831: echo "${ECHO_T}/tmp/.odus" >&6
                   12832:     cat >>confdefs.h <<\EOF
1.1       millert  12833: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
                   12834: EOF
                   12835:
1.9       millert  12836:     timedir="/tmp/.odus"
1.1       millert  12837: fi
                   12838:
1.16    ! millert  12839:
1.1       millert  12840: if test "$with_passwd" = "no"; then
1.16    ! millert  12841:     cat >>confdefs.h <<\_ACEOF
1.9       millert  12842: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.16    ! millert  12843: _ACEOF
1.1       millert  12844:
                   12845:     if test -z "$AUTH_OBJS"; then
1.16    ! millert  12846:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
1.9       millert  12847: echo "$as_me: error: no authentication methods defined." >&2;}
                   12848:    { (exit 1); exit 1; }; }
1.1       millert  12849:     fi
                   12850: else
                   12851:     if test -n "$SECUREWARE"; then
                   12852:        AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
                   12853:     else
                   12854:        AUTH_OBJS="${AUTH_OBJS} passwd.o"
                   12855:     fi
                   12856: fi
                   12857:
                   12858: if test -n "$LIBS"; then
                   12859:     L="$LIBS"
                   12860:     LIBS=
                   12861:     for l in ${L}; do
                   12862:        dupe=0
                   12863:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   12864:            test $l = $sl && dupe=1
                   12865:        done
                   12866:        test $dupe = 0 && LIBS="${LIBS} $l"
                   12867:     done
                   12868: fi
                   12869:
                   12870: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   12871:
1.16    ! millert  12872:                                         ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
1.9       millert  12873: cat >confcache <<\_ACEOF
1.1       millert  12874: # This file is a shell script that caches the results of configure
                   12875: # tests run on this system so they can be shared between configure
1.9       millert  12876: # scripts and configure runs, see configure's option --config-cache.
                   12877: # It is not useful on other systems.  If it contains results you don't
                   12878: # want to keep, you may remove or edit it.
1.1       millert  12879: #
1.9       millert  12880: # config.status only pays attention to the cache file if you give it
                   12881: # the --recheck option to rerun configure.
1.1       millert  12882: #
1.16    ! millert  12883: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.9       millert  12884: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   12885: # following values.
                   12886:
                   12887: _ACEOF
                   12888:
1.1       millert  12889: # The following way of writing the cache mishandles newlines in values,
                   12890: # but we know of no workaround that is simple, portable, and efficient.
                   12891: # So, don't put newlines in cache variables' values.
                   12892: # Ultrix sh set writes to stderr and can't be redirected directly,
                   12893: # and sets the high bit in the cache file unless we assign to the vars.
1.9       millert  12894: {
                   12895:   (set) 2>&1 |
                   12896:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   12897:     *ac_space=\ *)
                   12898:       # `set' does not quote correctly, so add quotes (double-quote
                   12899:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   12900:       sed -n \
                   12901:         "s/'/'\\\\''/g;
                   12902:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   12903:       ;;
                   12904:     *)
                   12905:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   12906:       sed -n \
                   12907:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   12908:       ;;
                   12909:     esac;
                   12910: } |
                   12911:   sed '
                   12912:      t clear
                   12913:      : clear
                   12914:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   12915:      t end
                   12916:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   12917:      : end' >>confcache
1.16    ! millert  12918: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1       millert  12919:   if test -w $cache_file; then
1.9       millert  12920:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   12921:     cat confcache >$cache_file
1.1       millert  12922:   else
                   12923:     echo "not updating unwritable cache $cache_file"
                   12924:   fi
                   12925: fi
                   12926: rm -f confcache
                   12927:
                   12928: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   12929: # Let make expand exec_prefix.
                   12930: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   12931:
1.9       millert  12932: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   12933: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   12934: # trailing colons and then remove the whole line if VPATH becomes empty
                   12935: # (actually we leave an empty line to preserve line numbers).
1.1       millert  12936: if test "x$srcdir" = x.; then
1.9       millert  12937:   ac_vpsub='/^[        ]*VPATH[        ]*=/{
                   12938: s/:*\$(srcdir):*/:/;
                   12939: s/:*\${srcdir}:*/:/;
                   12940: s/:*@srcdir@:*/:/;
                   12941: s/^\([^=]*=[   ]*\):*/\1/;
                   12942: s/:*$//;
                   12943: s/^[^=]*=[     ]*$//;
                   12944: }'
1.1       millert  12945: fi
                   12946:
                   12947: DEFS=-DHAVE_CONFIG_H
                   12948:
1.16    ! millert  12949: ac_libobjs=
        !          12950: ac_ltlibobjs=
        !          12951: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
        !          12952:   # 1. Remove the extension, and $U if already installed.
        !          12953:   ac_i=`echo "$ac_i" |
        !          12954:          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
        !          12955:   # 2. Add them.
        !          12956:   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
        !          12957:   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
        !          12958: done
        !          12959: LIBOBJS=$ac_libobjs
        !          12960:
        !          12961: LTLIBOBJS=$ac_ltlibobjs
        !          12962:
        !          12963:
        !          12964:
1.1       millert  12965: : ${CONFIG_STATUS=./config.status}
1.9       millert  12966: ac_clean_files_save=$ac_clean_files
                   12967: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.16    ! millert  12968: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.9       millert  12969: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   12970: cat >$CONFIG_STATUS <<_ACEOF
                   12971: #! $SHELL
1.16    ! millert  12972: # Generated by $as_me.
1.1       millert  12973: # Run this file to recreate the current configuration.
                   12974: # Compiler output produced by configure, useful for debugging
1.9       millert  12975: # configure, is in config.log if it exists.
                   12976:
                   12977: debug=false
1.16    ! millert  12978: ac_cs_recheck=false
        !          12979: ac_cs_silent=false
1.9       millert  12980: SHELL=\${CONFIG_SHELL-$SHELL}
                   12981: _ACEOF
                   12982:
                   12983: cat >>$CONFIG_STATUS <<\_ACEOF
1.16    ! millert  12984: ## --------------------- ##
        !          12985: ## M4sh Initialization.  ##
        !          12986: ## --------------------- ##
        !          12987:
1.9       millert  12988: # Be Bourne compatible
                   12989: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   12990:   emulate sh
                   12991:   NULLCMD=:
1.16    ! millert  12992:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
        !          12993:   # is contrary to our usage.  Disable this feature.
        !          12994:   alias -g '${1+"$@"}'='"$@"'
1.9       millert  12995: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                   12996:   set -o posix
                   12997: fi
                   12998:
1.16    ! millert  12999: # Support unset when possible.
        !          13000: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
        !          13001:   as_unset=unset
        !          13002: else
        !          13003:   as_unset=false
        !          13004: fi
        !          13005:
        !          13006:
        !          13007: # Work around bugs in pre-3.0 UWIN ksh.
        !          13008: $as_unset ENV MAIL MAILPATH
        !          13009: PS1='$ '
        !          13010: PS2='> '
        !          13011: PS4='+ '
        !          13012:
        !          13013: # NLS nuisances.
        !          13014: for as_var in \
        !          13015:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
        !          13016:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
        !          13017:   LC_TELEPHONE LC_TIME
        !          13018: do
        !          13019:   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
        !          13020:     eval $as_var=C; export $as_var
        !          13021:   else
        !          13022:     $as_unset $as_var
        !          13023:   fi
        !          13024: done
        !          13025:
        !          13026: # Required to use basename.
        !          13027: if expr a : '\(a\)' >/dev/null 2>&1; then
        !          13028:   as_expr=expr
        !          13029: else
        !          13030:   as_expr=false
        !          13031: fi
        !          13032:
        !          13033: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
        !          13034:   as_basename=basename
        !          13035: else
        !          13036:   as_basename=false
        !          13037: fi
        !          13038:
        !          13039:
1.9       millert  13040: # Name of the executable.
1.16    ! millert  13041: as_me=`$as_basename "$0" ||
        !          13042: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
        !          13043:         X"$0" : 'X\(//\)$' \| \
        !          13044:         X"$0" : 'X\(/\)$' \| \
        !          13045:         .     : '\(.\)' 2>/dev/null ||
        !          13046: echo X/"$0" |
        !          13047:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
        !          13048:          /^X\/\(\/\/\)$/{ s//\1/; q; }
        !          13049:          /^X\/\(\/\).*/{ s//\1/; q; }
        !          13050:          s/.*/./; q'`
        !          13051:
        !          13052:
        !          13053: # PATH needs CR, and LINENO needs CR and PATH.
        !          13054: # Avoid depending upon Character Ranges.
        !          13055: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
        !          13056: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
        !          13057: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
        !          13058: as_cr_digits='0123456789'
        !          13059: as_cr_alnum=$as_cr_Letters$as_cr_digits
        !          13060:
        !          13061: # The user is always right.
        !          13062: if test "${PATH_SEPARATOR+set}" != set; then
        !          13063:   echo "#! /bin/sh" >conf$$.sh
        !          13064:   echo  "exit 0"   >>conf$$.sh
        !          13065:   chmod +x conf$$.sh
        !          13066:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
        !          13067:     PATH_SEPARATOR=';'
        !          13068:   else
        !          13069:     PATH_SEPARATOR=:
        !          13070:   fi
        !          13071:   rm -f conf$$.sh
        !          13072: fi
        !          13073:
        !          13074:
        !          13075:   as_lineno_1=$LINENO
        !          13076:   as_lineno_2=$LINENO
        !          13077:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
        !          13078:   test "x$as_lineno_1" != "x$as_lineno_2" &&
        !          13079:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
        !          13080:   # Find who we are.  Look in the path if we contain no path at all
        !          13081:   # relative or not.
        !          13082:   case $0 in
        !          13083:     *[\\/]* ) as_myself=$0 ;;
        !          13084:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          13085: for as_dir in $PATH
        !          13086: do
        !          13087:   IFS=$as_save_IFS
        !          13088:   test -z "$as_dir" && as_dir=.
        !          13089:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
        !          13090: done
        !          13091:
        !          13092:        ;;
        !          13093:   esac
        !          13094:   # We did not find ourselves, most probably we were run as `sh COMMAND'
        !          13095:   # in which case we are not to be found in the path.
        !          13096:   if test "x$as_myself" = x; then
        !          13097:     as_myself=$0
        !          13098:   fi
        !          13099:   if test ! -f "$as_myself"; then
        !          13100:     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
        !          13101: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
        !          13102:    { (exit 1); exit 1; }; }
        !          13103:   fi
        !          13104:   case $CONFIG_SHELL in
        !          13105:   '')
        !          13106:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          13107: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
        !          13108: do
        !          13109:   IFS=$as_save_IFS
        !          13110:   test -z "$as_dir" && as_dir=.
        !          13111:   for as_base in sh bash ksh sh5; do
        !          13112:         case $as_dir in
        !          13113:         /*)
        !          13114:           if ("$as_dir/$as_base" -c '
        !          13115:   as_lineno_1=$LINENO
        !          13116:   as_lineno_2=$LINENO
        !          13117:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
        !          13118:   test "x$as_lineno_1" != "x$as_lineno_2" &&
        !          13119:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
        !          13120:             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
        !          13121:             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
        !          13122:             CONFIG_SHELL=$as_dir/$as_base
        !          13123:             export CONFIG_SHELL
        !          13124:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
        !          13125:           fi;;
        !          13126:         esac
        !          13127:        done
        !          13128: done
        !          13129: ;;
        !          13130:   esac
        !          13131:
        !          13132:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
        !          13133:   # uniformly replaced by the line number.  The first 'sed' inserts a
        !          13134:   # line-number line before each line; the second 'sed' does the real
        !          13135:   # work.  The second script uses 'N' to pair each line-number line
        !          13136:   # with the numbered line, and appends trailing '-' during
        !          13137:   # substitution so that $LINENO is not a special case at line end.
        !          13138:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
        !          13139:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
        !          13140:   sed '=' <$as_myself |
        !          13141:     sed '
        !          13142:       N
        !          13143:       s,$,-,
        !          13144:       : loop
        !          13145:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
        !          13146:       t loop
        !          13147:       s,-$,,
        !          13148:       s,^['$as_cr_digits']*\n,,
        !          13149:     ' >$as_me.lineno &&
        !          13150:   chmod +x $as_me.lineno ||
        !          13151:     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
        !          13152: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
        !          13153:    { (exit 1); exit 1; }; }
        !          13154:
        !          13155:   # Don't try to exec as it changes $[0], causing all sort of problems
        !          13156:   # (the dirname of $[0] is not the place where we might find the
        !          13157:   # original and so on.  Autoconf is especially sensible to this).
        !          13158:   . ./$as_me.lineno
        !          13159:   # Exit status is that of the last command.
        !          13160:   exit
        !          13161: }
        !          13162:
        !          13163:
        !          13164: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
        !          13165:   *c*,-n*) ECHO_N= ECHO_C='
        !          13166: ' ECHO_T='     ' ;;
        !          13167:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
        !          13168:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
        !          13169: esac
1.9       millert  13170:
                   13171: if expr a : '\(a\)' >/dev/null 2>&1; then
                   13172:   as_expr=expr
                   13173: else
                   13174:   as_expr=false
                   13175: fi
                   13176:
                   13177: rm -f conf$$ conf$$.exe conf$$.file
                   13178: echo >conf$$.file
                   13179: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   13180:   # We could just check for DJGPP; but this test a) works b) is more generic
                   13181:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                   13182:   if test -f conf$$.exe; then
                   13183:     # Don't use ln at all; we don't have any links
                   13184:     as_ln_s='cp -p'
                   13185:   else
                   13186:     as_ln_s='ln -s'
                   13187:   fi
                   13188: elif ln conf$$.file conf$$ 2>/dev/null; then
                   13189:   as_ln_s=ln
                   13190: else
                   13191:   as_ln_s='cp -p'
                   13192: fi
                   13193: rm -f conf$$ conf$$.exe conf$$.file
                   13194:
1.16    ! millert  13195: if mkdir -p . 2>/dev/null; then
        !          13196:   as_mkdir_p=:
        !          13197: else
        !          13198:   as_mkdir_p=false
        !          13199: fi
        !          13200:
1.9       millert  13201: as_executable_p="test -f"
                   13202:
1.16    ! millert  13203: # Sed expression to map a string onto a valid CPP name.
        !          13204: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
        !          13205:
        !          13206: # Sed expression to map a string onto a valid variable name.
        !          13207: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9       millert  13208:
                   13209:
                   13210: # IFS
                   13211: # We need space, tab and new line, in precisely that order.
                   13212: as_nl='
                   13213: '
                   13214: IFS="  $as_nl"
                   13215:
                   13216: # CDPATH.
1.16    ! millert  13217: $as_unset CDPATH
1.9       millert  13218:
                   13219: exec 6>&1
                   13220:
1.16    ! millert  13221: # Open the log real soon, to keep \$[0] and so on meaningful, and to
        !          13222: # report actual input values of CONFIG_FILES etc. instead of their
        !          13223: # values after options handling.  Logging --version etc. is OK.
        !          13224: exec 5>>config.log
        !          13225: {
        !          13226:   echo
        !          13227:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
        !          13228: ## Running $as_me. ##
        !          13229: _ASBOX
        !          13230: } >&5
        !          13231: cat >&5 <<_CSEOF
        !          13232:
        !          13233: This file was extended by sudo $as_me 1.6.7, which was
        !          13234: generated by GNU Autoconf 2.57.  Invocation command line was
        !          13235:
        !          13236:   CONFIG_FILES    = $CONFIG_FILES
        !          13237:   CONFIG_HEADERS  = $CONFIG_HEADERS
        !          13238:   CONFIG_LINKS    = $CONFIG_LINKS
        !          13239:   CONFIG_COMMANDS = $CONFIG_COMMANDS
        !          13240:   $ $0 $@
        !          13241:
        !          13242: _CSEOF
        !          13243: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
        !          13244: echo >&5
1.9       millert  13245: _ACEOF
                   13246:
                   13247: # Files that config.status was made for.
                   13248: if test -n "$ac_config_files"; then
                   13249:   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
                   13250: fi
                   13251:
                   13252: if test -n "$ac_config_headers"; then
                   13253:   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
                   13254: fi
                   13255:
                   13256: if test -n "$ac_config_links"; then
                   13257:   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
                   13258: fi
                   13259:
                   13260: if test -n "$ac_config_commands"; then
                   13261:   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
                   13262: fi
                   13263:
1.16    ! millert  13264: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13265:
                   13266: ac_cs_usage="\
                   13267: \`$as_me' instantiates files from templates according to the
                   13268: current configuration.
                   13269:
                   13270: Usage: $0 [OPTIONS] [FILE]...
                   13271:
                   13272:   -h, --help       print this help, then exit
                   13273:   -V, --version    print version number, then exit
1.16    ! millert  13274:   -q, --quiet      do not print progress messages
1.9       millert  13275:   -d, --debug      don't remove temporary files
                   13276:       --recheck    update $as_me by reconfiguring in the same conditions
                   13277:   --file=FILE[:TEMPLATE]
                   13278:                    instantiate the configuration file FILE
                   13279:   --header=FILE[:TEMPLATE]
                   13280:                    instantiate the configuration header FILE
                   13281:
                   13282: Configuration files:
                   13283: $config_files
                   13284:
                   13285: Configuration headers:
                   13286: $config_headers
                   13287:
                   13288: Report bugs to <bug-autoconf@gnu.org>."
1.16    ! millert  13289: _ACEOF
1.9       millert  13290:
1.16    ! millert  13291: cat >>$CONFIG_STATUS <<_ACEOF
1.9       millert  13292: ac_cs_version="\\
1.16    ! millert  13293: sudo config.status 1.6.7
        !          13294: configured by $0, generated by GNU Autoconf 2.57,
1.9       millert  13295:   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
                   13296:
                   13297: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
                   13298: Free Software Foundation, Inc.
                   13299: This config.status script is free software; the Free Software Foundation
                   13300: gives unlimited permission to copy, distribute and modify it."
                   13301: srcdir=$srcdir
1.16    ! millert  13302: _ACEOF
1.9       millert  13303:
1.16    ! millert  13304: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13305: # If no file are specified by the user, then we need to provide default
                   13306: # value.  By we need to know if files were specified by the user.
                   13307: ac_need_defaults=:
                   13308: while test $# != 0
1.1       millert  13309: do
1.9       millert  13310:   case $1 in
                   13311:   --*=*)
                   13312:     ac_option=`expr "x$1" : 'x\([^=]*\)='`
                   13313:     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.16    ! millert  13314:     ac_shift=:
        !          13315:     ;;
        !          13316:   -*)
        !          13317:     ac_option=$1
        !          13318:     ac_optarg=$2
        !          13319:     ac_shift=shift
1.9       millert  13320:     ;;
                   13321:   *) # This is not an option, so the user has probably given explicit
                   13322:      # arguments.
1.16    ! millert  13323:      ac_option=$1
1.9       millert  13324:      ac_need_defaults=false;;
                   13325:   esac
                   13326:
1.16    ! millert  13327:   case $ac_option in
1.9       millert  13328:   # Handling of the options.
1.16    ! millert  13329: _ACEOF
        !          13330: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       millert  13331:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.16    ! millert  13332:     ac_cs_recheck=: ;;
1.9       millert  13333:   --version | --vers* | -V )
                   13334:     echo "$ac_cs_version"; exit 0 ;;
                   13335:   --he | --h)
                   13336:     # Conflict between --help and --header
1.16    ! millert  13337:     { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.9       millert  13338: Try \`$0 --help' for more information." >&5
                   13339: echo "$as_me: error: ambiguous option: $1
                   13340: Try \`$0 --help' for more information." >&2;}
                   13341:    { (exit 1); exit 1; }; };;
                   13342:   --help | --hel | -h )
                   13343:     echo "$ac_cs_usage"; exit 0 ;;
                   13344:   --debug | --d* | -d )
                   13345:     debug=: ;;
                   13346:   --file | --fil | --fi | --f )
1.16    ! millert  13347:     $ac_shift
        !          13348:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.9       millert  13349:     ac_need_defaults=false;;
                   13350:   --header | --heade | --head | --hea )
1.16    ! millert  13351:     $ac_shift
        !          13352:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.9       millert  13353:     ac_need_defaults=false;;
1.16    ! millert  13354:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
        !          13355:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
        !          13356:     ac_cs_silent=: ;;
1.9       millert  13357:
                   13358:   # This is an error.
1.16    ! millert  13359:   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.9       millert  13360: Try \`$0 --help' for more information." >&5
                   13361: echo "$as_me: error: unrecognized option: $1
                   13362: Try \`$0 --help' for more information." >&2;}
                   13363:    { (exit 1); exit 1; }; } ;;
                   13364:
                   13365:   *) ac_config_targets="$ac_config_targets $1" ;;
                   13366:
                   13367:   esac
                   13368:   shift
                   13369: done
                   13370:
1.16    ! millert  13371: ac_configure_extra_args=
1.9       millert  13372:
1.16    ! millert  13373: if $ac_cs_silent; then
        !          13374:   exec 6>/dev/null
        !          13375:   ac_configure_extra_args="$ac_configure_extra_args --silent"
        !          13376: fi
1.9       millert  13377:
1.16    ! millert  13378: _ACEOF
        !          13379: cat >>$CONFIG_STATUS <<_ACEOF
        !          13380: if \$ac_cs_recheck; then
        !          13381:   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
        !          13382:   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
        !          13383: fi
1.9       millert  13384:
                   13385: _ACEOF
                   13386:
1.16    ! millert  13387:
        !          13388:
        !          13389:
        !          13390:
        !          13391: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13392: for ac_config_target in $ac_config_targets
                   13393: do
                   13394:   case "$ac_config_target" in
                   13395:   # Handling of arguments.
                   13396:   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   13397:   "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   13398:   "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   13399:   "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
                   13400:   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   13401:   "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.16    ! millert  13402:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.9       millert  13403: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   13404:    { (exit 1); exit 1; }; };;
1.1       millert  13405:   esac
                   13406: done
                   13407:
1.9       millert  13408: # If the user did not use the arguments to specify the items to instantiate,
                   13409: # then the envvar interface is used.  Set only those that are not.
                   13410: # We use the long form for the default assignment because of an extremely
                   13411: # bizarre bug on SunOS 4.1.3.
                   13412: if $ac_need_defaults; then
                   13413:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   13414:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   13415: fi
                   13416:
1.16    ! millert  13417: # Have a temporary directory for convenience.  Make it in the build tree
        !          13418: # simply because there is no reason to put it here, and in addition,
        !          13419: # creating and moving files from /tmp can sometimes cause problems.
1.9       millert  13420: # Create a temporary directory, and hook for its removal unless debugging.
                   13421: $debug ||
                   13422: {
                   13423:   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
                   13424:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   13425: }
                   13426:
                   13427: # Create a (secure) tmp directory for tmp files.
1.16    ! millert  13428:
1.9       millert  13429: {
1.16    ! millert  13430:   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.9       millert  13431:   test -n "$tmp" && test -d "$tmp"
                   13432: }  ||
                   13433: {
1.16    ! millert  13434:   tmp=./confstat$$-$RANDOM
1.9       millert  13435:   (umask 077 && mkdir $tmp)
                   13436: } ||
                   13437: {
1.16    ! millert  13438:    echo "$me: cannot create a temporary directory in ." >&2
1.9       millert  13439:    { (exit 1); exit 1; }
                   13440: }
1.1       millert  13441:
1.16    ! millert  13442: _ACEOF
1.1       millert  13443:
1.16    ! millert  13444: cat >>$CONFIG_STATUS <<_ACEOF
1.9       millert  13445:
                   13446: #
                   13447: # CONFIG_FILES section.
                   13448: #
1.1       millert  13449:
1.9       millert  13450: # No need to generate the scripts if there are no CONFIG_FILES.
                   13451: # This happens for instance when ./config.status config.h
                   13452: if test -n "\$CONFIG_FILES"; then
                   13453:   # Protect against being on the right side of a sed subst in config.status.
                   13454:   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
                   13455:    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
                   13456: s,@SHELL@,$SHELL,;t t
1.16    ! millert  13457: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
        !          13458: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
        !          13459: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
        !          13460: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
        !          13461: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
        !          13462: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.9       millert  13463: s,@exec_prefix@,$exec_prefix,;t t
                   13464: s,@prefix@,$prefix,;t t
                   13465: s,@program_transform_name@,$program_transform_name,;t t
                   13466: s,@bindir@,$bindir,;t t
                   13467: s,@sbindir@,$sbindir,;t t
                   13468: s,@libexecdir@,$libexecdir,;t t
                   13469: s,@datadir@,$datadir,;t t
                   13470: s,@sysconfdir@,$sysconfdir,;t t
                   13471: s,@sharedstatedir@,$sharedstatedir,;t t
                   13472: s,@localstatedir@,$localstatedir,;t t
                   13473: s,@libdir@,$libdir,;t t
                   13474: s,@includedir@,$includedir,;t t
                   13475: s,@oldincludedir@,$oldincludedir,;t t
                   13476: s,@infodir@,$infodir,;t t
                   13477: s,@mandir@,$mandir,;t t
                   13478: s,@build_alias@,$build_alias,;t t
                   13479: s,@host_alias@,$host_alias,;t t
                   13480: s,@target_alias@,$target_alias,;t t
1.16    ! millert  13481: s,@DEFS@,$DEFS,;t t
1.9       millert  13482: s,@ECHO_C@,$ECHO_C,;t t
                   13483: s,@ECHO_N@,$ECHO_N,;t t
                   13484: s,@ECHO_T@,$ECHO_T,;t t
                   13485: s,@LIBS@,$LIBS,;t t
                   13486: s,@CFLAGS@,$CFLAGS,;t t
                   13487: s,@PROGS@,$PROGS,;t t
                   13488: s,@CPPFLAGS@,$CPPFLAGS,;t t
                   13489: s,@LDFLAGS@,$LDFLAGS,;t t
                   13490: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
                   13491: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
                   13492: s,@NET_LIBS@,$NET_LIBS,;t t
                   13493: s,@AFS_LIBS@,$AFS_LIBS,;t t
                   13494: s,@OSDEFS@,$OSDEFS,;t t
                   13495: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
                   13496: s,@MANTYPE@,$MANTYPE,;t t
                   13497: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
                   13498: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
                   13499: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
                   13500: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
                   13501: s,@DEV@,$DEV,;t t
                   13502: s,@mansectsu@,$mansectsu,;t t
                   13503: s,@mansectform@,$mansectform,;t t
                   13504: s,@mansrcdir@,$mansrcdir,;t t
                   13505: s,@timedir@,$timedir,;t t
                   13506: s,@timeout@,$timeout,;t t
                   13507: s,@password_timeout@,$password_timeout,;t t
                   13508: s,@sudo_umask@,$sudo_umask,;t t
                   13509: s,@passprompt@,$passprompt,;t t
                   13510: s,@long_otp_prompt@,$long_otp_prompt,;t t
                   13511: s,@lecture@,$lecture,;t t
                   13512: s,@logfac@,$logfac,;t t
                   13513: s,@goodpri@,$goodpri,;t t
                   13514: s,@badpri@,$badpri,;t t
                   13515: s,@loglen@,$loglen,;t t
                   13516: s,@ignore_dot@,$ignore_dot,;t t
                   13517: s,@mail_no_user@,$mail_no_user,;t t
                   13518: s,@mail_no_host@,$mail_no_host,;t t
                   13519: s,@mail_no_perms@,$mail_no_perms,;t t
                   13520: s,@mailto@,$mailto,;t t
                   13521: s,@mailsub@,$mailsub,;t t
                   13522: s,@badpass_message@,$badpass_message,;t t
                   13523: s,@fqdn@,$fqdn,;t t
                   13524: s,@runas_default@,$runas_default,;t t
                   13525: s,@env_editor@,$env_editor,;t t
                   13526: s,@passwd_tries@,$passwd_tries,;t t
                   13527: s,@tty_tickets@,$tty_tickets,;t t
                   13528: s,@insults@,$insults,;t t
                   13529: s,@EGREPPROG@,$EGREPPROG,;t t
                   13530: s,@CC@,$CC,;t t
                   13531: s,@ac_ct_CC@,$ac_ct_CC,;t t
                   13532: s,@EXEEXT@,$EXEEXT,;t t
                   13533: s,@OBJEXT@,$OBJEXT,;t t
                   13534: s,@CPP@,$CPP,;t t
                   13535: s,@UNAMEPROG@,$UNAMEPROG,;t t
                   13536: s,@TRPROG@,$TRPROG,;t t
                   13537: s,@SEDPROG@,$SEDPROG,;t t
                   13538: s,@NROFFPROG@,$NROFFPROG,;t t
                   13539: s,@build@,$build,;t t
                   13540: s,@build_cpu@,$build_cpu,;t t
                   13541: s,@build_vendor@,$build_vendor,;t t
                   13542: s,@build_os@,$build_os,;t t
                   13543: s,@host@,$host,;t t
                   13544: s,@host_cpu@,$host_cpu,;t t
                   13545: s,@host_vendor@,$host_vendor,;t t
                   13546: s,@host_os@,$host_os,;t t
1.16    ! millert  13547: s,@EGREP@,$EGREP,;t t
1.9       millert  13548: s,@YACC@,$YACC,;t t
1.16    ! millert  13549: s,@LIBOBJS@,$LIBOBJS,;t t
1.9       millert  13550: s,@ALLOCA@,$ALLOCA,;t t
1.16    ! millert  13551: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1       millert  13552: CEOF
1.9       millert  13553:
1.16    ! millert  13554: _ACEOF
1.1       millert  13555:
1.16    ! millert  13556:   cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13557:   # Split the substitutions into bite-sized pieces for seds with
                   13558:   # small command number limits, like on Digital OSF/1 and HP-UX.
                   13559:   ac_max_sed_lines=48
                   13560:   ac_sed_frag=1 # Number of current file.
                   13561:   ac_beg=1 # First line for current file.
                   13562:   ac_end=$ac_max_sed_lines # Line after last line for current file.
                   13563:   ac_more_lines=:
                   13564:   ac_sed_cmds=
                   13565:   while $ac_more_lines; do
                   13566:     if test $ac_beg -gt 1; then
                   13567:       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   13568:     else
                   13569:       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   13570:     fi
                   13571:     if test ! -s $tmp/subs.frag; then
                   13572:       ac_more_lines=false
1.1       millert  13573:     else
1.9       millert  13574:       # The purpose of the label and of the branching condition is to
                   13575:       # speed up the sed processing (if there are no `@' at all, there
                   13576:       # is no need to browse any of the substitutions).
                   13577:       # These are the two extra sed commands mentioned above.
                   13578:       (echo ':t
                   13579:   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
                   13580:       if test -z "$ac_sed_cmds"; then
                   13581:        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
                   13582:       else
                   13583:        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
                   13584:       fi
                   13585:       ac_sed_frag=`expr $ac_sed_frag + 1`
                   13586:       ac_beg=$ac_end
                   13587:       ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1       millert  13588:     fi
1.9       millert  13589:   done
                   13590:   if test -z "$ac_sed_cmds"; then
                   13591:     ac_sed_cmds=cat
1.1       millert  13592:   fi
1.9       millert  13593: fi # test -n "$CONFIG_FILES"
1.1       millert  13594:
1.16    ! millert  13595: _ACEOF
        !          13596: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13597: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1       millert  13598:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9       millert  13599:   case $ac_file in
                   13600:   - | *:- | *:-:* ) # input from stdin
                   13601:         cat >$tmp/stdin
                   13602:         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   13603:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   13604:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   13605:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   13606:   * )   ac_file_in=$ac_file.in ;;
1.1       millert  13607:   esac
                   13608:
1.9       millert  13609:   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.16    ! millert  13610:   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
        !          13611: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9       millert  13612:          X"$ac_file" : 'X\(//\)[^/]' \| \
                   13613:          X"$ac_file" : 'X\(//\)$' \| \
                   13614:          X"$ac_file" : 'X\(/\)' \| \
                   13615:          .     : '\(.\)' 2>/dev/null ||
                   13616: echo X"$ac_file" |
                   13617:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   13618:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   13619:          /^X\(\/\/\)$/{ s//\1/; q; }
                   13620:          /^X\(\/\).*/{ s//\1/; q; }
                   13621:          s/.*/./; q'`
1.16    ! millert  13622:   { if $as_mkdir_p; then
        !          13623:     mkdir -p "$ac_dir"
        !          13624:   else
        !          13625:     as_dir="$ac_dir"
        !          13626:     as_dirs=
        !          13627:     while test ! -d "$as_dir"; do
        !          13628:       as_dirs="$as_dir $as_dirs"
        !          13629:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
        !          13630: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
        !          13631:          X"$as_dir" : 'X\(//\)[^/]' \| \
        !          13632:          X"$as_dir" : 'X\(//\)$' \| \
        !          13633:          X"$as_dir" : 'X\(/\)' \| \
        !          13634:          .     : '\(.\)' 2>/dev/null ||
        !          13635: echo X"$as_dir" |
        !          13636:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
        !          13637:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
        !          13638:          /^X\(\/\/\)$/{ s//\1/; q; }
        !          13639:          /^X\(\/\).*/{ s//\1/; q; }
        !          13640:          s/.*/./; q'`
        !          13641:     done
        !          13642:     test ! -n "$as_dirs" || mkdir $as_dirs
        !          13643:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
        !          13644: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
        !          13645:    { (exit 1); exit 1; }; }; }
        !          13646:
        !          13647:   ac_builddir=.
        !          13648:
        !          13649: if test "$ac_dir" != .; then
        !          13650:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
        !          13651:   # A "../" for each directory in $ac_dir_suffix.
        !          13652:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
        !          13653: else
        !          13654:   ac_dir_suffix= ac_top_builddir=
        !          13655: fi
        !          13656:
        !          13657: case $srcdir in
        !          13658:   .)  # No --srcdir option.  We are building in place.
        !          13659:     ac_srcdir=.
        !          13660:     if test -z "$ac_top_builddir"; then
        !          13661:        ac_top_srcdir=.
        !          13662:     else
        !          13663:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
        !          13664:     fi ;;
        !          13665:   [\\/]* | ?:[\\/]* )  # Absolute path.
        !          13666:     ac_srcdir=$srcdir$ac_dir_suffix;
        !          13667:     ac_top_srcdir=$srcdir ;;
        !          13668:   *) # Relative path.
        !          13669:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
        !          13670:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
        !          13671: esac
        !          13672: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
        !          13673: # absolute.
        !          13674: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
        !          13675: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
        !          13676: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
        !          13677: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1       millert  13678:
                   13679:
                   13680:
1.9       millert  13681:   if test x"$ac_file" != x-; then
1.16    ! millert  13682:     { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9       millert  13683: echo "$as_me: creating $ac_file" >&6;}
                   13684:     rm -f "$ac_file"
                   13685:   fi
                   13686:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   13687:   # use $as_me), people would be surprised to read:
1.16    ! millert  13688:   #    /* config.h.  Generated by config.status.  */
        !          13689:   if test x"$ac_file" = x-; then
        !          13690:     configure_input=
        !          13691:   else
        !          13692:     configure_input="$ac_file.  "
        !          13693:   fi
        !          13694:   configure_input=$configure_input"Generated from `echo $ac_file_in |
        !          13695:                                      sed 's,.*/,,'` by configure."
1.9       millert  13696:
                   13697:   # First look for the input files in the build tree, otherwise in the
                   13698:   # src tree.
                   13699:   ac_file_inputs=`IFS=:
                   13700:     for f in $ac_file_in; do
                   13701:       case $f in
                   13702:       -) echo $tmp/stdin ;;
                   13703:       [\\/$]*)
                   13704:          # Absolute (can't be DOS-style, as IFS=:)
1.16    ! millert  13705:          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9       millert  13706: echo "$as_me: error: cannot find input file: $f" >&2;}
                   13707:    { (exit 1); exit 1; }; }
                   13708:          echo $f;;
                   13709:       *) # Relative
                   13710:          if test -f "$f"; then
                   13711:            # Build tree
                   13712:            echo $f
                   13713:          elif test -f "$srcdir/$f"; then
                   13714:            # Source tree
                   13715:            echo $srcdir/$f
                   13716:          else
                   13717:            # /dev/null tree
1.16    ! millert  13718:            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9       millert  13719: echo "$as_me: error: cannot find input file: $f" >&2;}
                   13720:    { (exit 1); exit 1; }; }
                   13721:          fi;;
                   13722:       esac
                   13723:     done` || { (exit 1); exit 1; }
1.16    ! millert  13724: _ACEOF
        !          13725: cat >>$CONFIG_STATUS <<_ACEOF
1.9       millert  13726:   sed "$ac_vpsub
                   13727: $extrasub
1.16    ! millert  13728: _ACEOF
        !          13729: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13730: :t
                   13731: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   13732: s,@configure_input@,$configure_input,;t t
                   13733: s,@srcdir@,$ac_srcdir,;t t
1.16    ! millert  13734: s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.9       millert  13735: s,@top_srcdir@,$ac_top_srcdir,;t t
1.16    ! millert  13736: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
        !          13737: s,@builddir@,$ac_builddir,;t t
        !          13738: s,@abs_builddir@,$ac_abs_builddir,;t t
        !          13739: s,@top_builddir@,$ac_top_builddir,;t t
        !          13740: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.9       millert  13741: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
                   13742:   rm -f $tmp/stdin
                   13743:   if test x"$ac_file" != x-; then
                   13744:     mv $tmp/out $ac_file
                   13745:   else
                   13746:     cat $tmp/out
                   13747:     rm -f $tmp/out
                   13748:   fi
1.1       millert  13749:
1.9       millert  13750: done
1.16    ! millert  13751: _ACEOF
        !          13752: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       millert  13753:
1.9       millert  13754: #
                   13755: # CONFIG_HEADER section.
                   13756: #
1.1       millert  13757:
                   13758: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   13759: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   13760: #
                   13761: # ac_d sets the value in "#define NAME VALUE" lines.
1.9       millert  13762: ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   13763: ac_dB='[       ].*$,\1#\2'
                   13764: ac_dC=' '
                   13765: ac_dD=',;t'
                   13766: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   13767: ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   13768: ac_uB='$,\1#\2define\3'
1.1       millert  13769: ac_uC=' '
1.9       millert  13770: ac_uD=',;t'
1.1       millert  13771:
1.9       millert  13772: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1       millert  13773:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9       millert  13774:   case $ac_file in
                   13775:   - | *:- | *:-:* ) # input from stdin
                   13776:         cat >$tmp/stdin
                   13777:         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   13778:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   13779:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   13780:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   13781:   * )   ac_file_in=$ac_file.in ;;
1.1       millert  13782:   esac
                   13783:
1.16    ! millert  13784:   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9       millert  13785: echo "$as_me: creating $ac_file" >&6;}
1.1       millert  13786:
1.9       millert  13787:   # First look for the input files in the build tree, otherwise in the
                   13788:   # src tree.
                   13789:   ac_file_inputs=`IFS=:
                   13790:     for f in $ac_file_in; do
                   13791:       case $f in
                   13792:       -) echo $tmp/stdin ;;
                   13793:       [\\/$]*)
                   13794:          # Absolute (can't be DOS-style, as IFS=:)
1.16    ! millert  13795:          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9       millert  13796: echo "$as_me: error: cannot find input file: $f" >&2;}
                   13797:    { (exit 1); exit 1; }; }
                   13798:          echo $f;;
                   13799:       *) # Relative
                   13800:          if test -f "$f"; then
                   13801:            # Build tree
                   13802:            echo $f
                   13803:          elif test -f "$srcdir/$f"; then
                   13804:            # Source tree
                   13805:            echo $srcdir/$f
                   13806:          else
                   13807:            # /dev/null tree
1.16    ! millert  13808:            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9       millert  13809: echo "$as_me: error: cannot find input file: $f" >&2;}
                   13810:    { (exit 1); exit 1; }; }
                   13811:          fi;;
                   13812:       esac
                   13813:     done` || { (exit 1); exit 1; }
                   13814:   # Remove the trailing spaces.
                   13815:   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
1.1       millert  13816:
1.16    ! millert  13817: _ACEOF
1.1       millert  13818:
1.9       millert  13819: # Transform confdefs.h into two sed scripts, `conftest.defines' and
                   13820: # `conftest.undefs', that substitutes the proper values into
                   13821: # config.h.in to produce config.h.  The first handles `#define'
                   13822: # templates, and the second `#undef' templates.
                   13823: # And first: Protect against being on the right side of a sed subst in
                   13824: # config.status.  Protect against being in an unquoted here document
                   13825: # in config.status.
                   13826: rm -f conftest.defines conftest.undefs
                   13827: # Using a here document instead of a string reduces the quoting nightmare.
                   13828: # Putting comments in sed scripts is not portable.
                   13829: #
                   13830: # `end' is used to avoid that the second main sed command (meant for
                   13831: # 0-ary CPP macros) applies to n-ary macro definitions.
                   13832: # See the Autoconf documentation for `clear'.
1.16    ! millert  13833: cat >confdef2sed.sed <<\_ACEOF
1.9       millert  13834: s/[\\&,]/\\&/g
                   13835: s,[\\$`],\\&,g
                   13836: t clear
                   13837: : clear
1.16    ! millert  13838: s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.9       millert  13839: t end
                   13840: s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
                   13841: : end
1.16    ! millert  13842: _ACEOF
1.9       millert  13843: # If some macros were called several times there might be several times
                   13844: # the same #defines, which is useless.  Nevertheless, we may not want to
                   13845: # sort them, since we want the *last* AC-DEFINE to be honored.
                   13846: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
                   13847: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
                   13848: rm -f confdef2sed.sed
1.1       millert  13849:
                   13850: # This sed command replaces #undef with comments.  This is necessary, for
                   13851: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   13852: # on some systems where configure will not decide to define it.
1.16    ! millert  13853: cat >>conftest.undefs <<\_ACEOF
1.9       millert  13854: s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.16    ! millert  13855: _ACEOF
1.1       millert  13856:
1.9       millert  13857: # Break up conftest.defines because some shells have a limit on the size
                   13858: # of here documents, and old seds have small limits too (100 cmds).
                   13859: echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16    ! millert  13860: echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.9       millert  13861: echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
                   13862: echo '  :' >>$CONFIG_STATUS
                   13863: rm -f conftest.tail
                   13864: while grep . conftest.defines >/dev/null
                   13865: do
                   13866:   # Write a limited-size here document to $tmp/defines.sed.
                   13867:   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
                   13868:   # Speed up: don't consider the non `#define' lines.
                   13869:   echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
                   13870:   # Work around the forget-to-reset-the-flag bug.
                   13871:   echo 't clr' >>$CONFIG_STATUS
                   13872:   echo ': clr' >>$CONFIG_STATUS
                   13873:   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
                   13874:   echo 'CEOF
                   13875:   sed -f $tmp/defines.sed $tmp/in >$tmp/out
                   13876:   rm -f $tmp/in
                   13877:   mv $tmp/out $tmp/in
                   13878: ' >>$CONFIG_STATUS
                   13879:   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
                   13880:   rm -f conftest.defines
                   13881:   mv conftest.tail conftest.defines
                   13882: done
                   13883: rm -f conftest.defines
1.16    ! millert  13884: echo '  fi # grep' >>$CONFIG_STATUS
1.9       millert  13885: echo >>$CONFIG_STATUS
                   13886:
                   13887: # Break up conftest.undefs because some shells have a limit on the size
                   13888: # of here documents, and old seds have small limits too (100 cmds).
                   13889: echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
1.1       millert  13890: rm -f conftest.tail
1.9       millert  13891: while grep . conftest.undefs >/dev/null
1.1       millert  13892: do
1.9       millert  13893:   # Write a limited-size here document to $tmp/undefs.sed.
                   13894:   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
                   13895:   # Speed up: don't consider the non `#undef'
                   13896:   echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
                   13897:   # Work around the forget-to-reset-the-flag bug.
                   13898:   echo 't clr' >>$CONFIG_STATUS
                   13899:   echo ': clr' >>$CONFIG_STATUS
                   13900:   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1       millert  13901:   echo 'CEOF
1.9       millert  13902:   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
                   13903:   rm -f $tmp/in
                   13904:   mv $tmp/out $tmp/in
                   13905: ' >>$CONFIG_STATUS
                   13906:   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
                   13907:   rm -f conftest.undefs
                   13908:   mv conftest.tail conftest.undefs
                   13909: done
                   13910: rm -f conftest.undefs
                   13911:
1.16    ! millert  13912: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  13913:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   13914:   # use $as_me), people would be surprised to read:
1.16    ! millert  13915:   #    /* config.h.  Generated by config.status.  */
1.9       millert  13916:   if test x"$ac_file" = x-; then
1.16    ! millert  13917:     echo "/* Generated by configure.  */" >$tmp/config.h
1.1       millert  13918:   else
1.16    ! millert  13919:     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
1.9       millert  13920:   fi
                   13921:   cat $tmp/in >>$tmp/config.h
                   13922:   rm -f $tmp/in
                   13923:   if test x"$ac_file" != x-; then
1.16    ! millert  13924:     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
        !          13925:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1.9       millert  13926: echo "$as_me: $ac_file is unchanged" >&6;}
                   13927:     else
1.16    ! millert  13928:       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
        !          13929: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9       millert  13930:          X"$ac_file" : 'X\(//\)[^/]' \| \
                   13931:          X"$ac_file" : 'X\(//\)$' \| \
                   13932:          X"$ac_file" : 'X\(/\)' \| \
                   13933:          .     : '\(.\)' 2>/dev/null ||
                   13934: echo X"$ac_file" |
                   13935:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   13936:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   13937:          /^X\(\/\/\)$/{ s//\1/; q; }
                   13938:          /^X\(\/\).*/{ s//\1/; q; }
                   13939:          s/.*/./; q'`
1.16    ! millert  13940:       { if $as_mkdir_p; then
        !          13941:     mkdir -p "$ac_dir"
        !          13942:   else
        !          13943:     as_dir="$ac_dir"
        !          13944:     as_dirs=
        !          13945:     while test ! -d "$as_dir"; do
        !          13946:       as_dirs="$as_dir $as_dirs"
        !          13947:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
        !          13948: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
        !          13949:          X"$as_dir" : 'X\(//\)[^/]' \| \
        !          13950:          X"$as_dir" : 'X\(//\)$' \| \
        !          13951:          X"$as_dir" : 'X\(/\)' \| \
        !          13952:          .     : '\(.\)' 2>/dev/null ||
        !          13953: echo X"$as_dir" |
        !          13954:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
        !          13955:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
        !          13956:          /^X\(\/\/\)$/{ s//\1/; q; }
        !          13957:          /^X\(\/\).*/{ s//\1/; q; }
        !          13958:          s/.*/./; q'`
        !          13959:     done
        !          13960:     test ! -n "$as_dirs" || mkdir $as_dirs
        !          13961:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
        !          13962: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
        !          13963:    { (exit 1); exit 1; }; }; }
1.9       millert  13964:
                   13965:       rm -f $ac_file
                   13966:       mv $tmp/config.h $ac_file
1.1       millert  13967:     fi
1.9       millert  13968:   else
                   13969:     cat $tmp/config.h
                   13970:     rm -f $tmp/config.h
1.1       millert  13971:   fi
1.9       millert  13972: done
1.16    ! millert  13973: _ACEOF
1.1       millert  13974:
1.16    ! millert  13975: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       millert  13976:
1.9       millert  13977: { (exit 0); exit 0; }
1.16    ! millert  13978: _ACEOF
1.1       millert  13979: chmod +x $CONFIG_STATUS
1.9       millert  13980: ac_clean_files=$ac_clean_files_save
1.1       millert  13981:
1.16    ! millert  13982:
1.9       millert  13983: # configure is writing to config.log, and then calls config.status.
                   13984: # config.status does its own redirection, appending to config.log.
                   13985: # Unfortunately, on DOS this fails, as config.log is still kept open
                   13986: # by configure, so config.status won't be able to write to it; its
                   13987: # output is simply discarded.  So we exec the FD to /dev/null,
                   13988: # effectively closing config.log, so it can be properly (re)opened and
                   13989: # appended to by config.status.  When coming back to configure, we
                   13990: # need to make the FD available again.
                   13991: if test "$no_create" != yes; then
                   13992:   ac_cs_success=:
1.16    ! millert  13993:   ac_config_status_args=
        !          13994:   test "$silent" = yes &&
        !          13995:     ac_config_status_args="$ac_config_status_args --quiet"
1.9       millert  13996:   exec 5>/dev/null
1.16    ! millert  13997:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9       millert  13998:   exec 5>>config.log
                   13999:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   14000:   # would make configure fail if this is the last instruction.
                   14001:   $ac_cs_success || { (exit 1); exit 1; }
                   14002: fi
1.1       millert  14003:
1.16    ! millert  14004:
1.1       millert  14005: if test "$with_pam" = "yes"; then
                   14006:     echo ""
                   14007:     case $host in
                   14008:        *-*-linux*)
                   14009:            echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
                   14010:            ;;
                   14011:     esac
                   14012:     echo ""
                   14013: fi
1.16    ! millert  14014:
        !          14015:
        !          14016:
        !          14017:
        !          14018:
        !          14019:
        !          14020:
        !          14021:
        !          14022:
        !          14023:
        !          14024:
        !          14025:
        !          14026:
        !          14027:
1.9       millert  14028: