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

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

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.25      millert     3: # Generated by GNU Autoconf 2.59 for sudo 1.6.9.
1.1       millert     4: #
1.25      millert     5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1       millert     6: # This configure script is free software; the Free Software Foundation
                      7: # gives unlimited permission to copy, distribute and modify it.
1.16      millert     8: ## --------------------- ##
                      9: ## M4sh Initialization.  ##
                     10: ## --------------------- ##
1.1       millert    11:
1.16      millert    12: # Be Bourne compatible
                     13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     14:   emulate sh
                     15:   NULLCMD=:
                     16:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     17:   # is contrary to our usage.  Disable this feature.
                     18:   alias -g '${1+"$@"}'='"$@"'
                     19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                     20:   set -o posix
                     21: fi
1.25      millert    22: DUALCASE=1; export DUALCASE # for MKS sh
1.16      millert    23:
                     24: # Support unset when possible.
1.25      millert    25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16      millert    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
1.25      millert    44:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16      millert    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
1.25      millert   221:   test -d ./-p && rmdir ./-p
1.16      millert   222:   as_mkdir_p=false
                    223: fi
                    224:
1.9       millert   225: as_executable_p="test -f"
                    226:
1.16      millert   227: # Sed expression to map a string onto a valid CPP name.
1.25      millert   228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert   229:
                    230: # Sed expression to map a string onto a valid variable name.
1.25      millert   231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9       millert   232:
                    233:
                    234: # IFS
                    235: # We need space, tab and new line, in precisely that order.
                    236: as_nl='
                    237: '
                    238: IFS="  $as_nl"
                    239:
                    240: # CDPATH.
1.16      millert   241: $as_unset CDPATH
                    242:
1.9       millert   243:
1.23      millert   244:
                    245: # Check that we are running under the correct shell.
                    246: SHELL=${CONFIG_SHELL-/bin/sh}
                    247:
1.25      millert   248: case $lt_ECHO in
1.23      millert   249: X*--fallback-echo)
                    250:   # Remove one level of quotation (which was required for Make).
1.25      millert   251:   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23      millert   252:   ;;
                    253: esac
                    254:
1.25      millert   255: ECHO=${lt_ECHO-echo}
1.23      millert   256: if test "X$1" = X--no-reexec; then
                    257:   # Discard the --no-reexec flag, and continue.
                    258:   shift
                    259: elif test "X$1" = X--fallback-echo; then
                    260:   # Avoid inline document here, it may be left over
                    261:   :
1.25      millert   262: elif test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' ; then
                    263:   # Yippee, $ECHO works!
1.23      millert   264:   :
                    265: else
                    266:   # Restart under the correct shell.
                    267:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    268: fi
                    269:
                    270: if test "X$1" = X--fallback-echo; then
                    271:   # used as fallback echo
                    272:   shift
1.25      millert   273:   cat <<_LT_EOF
1.23      millert   274: $*
1.25      millert   275: _LT_EOF
1.23      millert   276:   exit 0
                    277: fi
                    278:
                    279: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    280: # if CDPATH is set.
1.25      millert   281: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert   282:
1.25      millert   283: if test -z "$lt_ECHO"; then
                    284:   if test "X${echo_test_string+set}" != Xset; then
                    285:     # find a string as large as possible, as long as the shell can cope with it
                    286:     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    287:       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    288:       if (echo_test_string="`eval $cmd`") 2>/dev/null &&
                    289:          echo_test_string="`eval $cmd`" &&
                    290:          (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    291:       then
                    292:         break
                    293:       fi
                    294:     done
                    295:   fi
1.23      millert   296:
1.25      millert   297:   if test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' &&
                    298:      echo_testing_string=`($ECHO "$echo_test_string") 2>/dev/null` &&
                    299:      test "X$echo_testing_string" = "X$echo_test_string"; then
                    300:     :
                    301:   else
                    302:     # The Solaris, AIX, and Digital Unix default echo programs unquote
                    303:     # backslashes.  This makes it impossible to quote backslashes using
                    304:     #   echo "$something" | sed 's/\\/\\\\/g'
                    305:     #
                    306:     # So, first we look for a working echo in the user's PATH.
1.23      millert   307:
1.25      millert   308:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    309:     for dir in $PATH /usr/ucb; do
                    310:       IFS="$lt_save_ifs"
                    311:       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    312:          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    313:          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    314:          test "X$echo_testing_string" = "X$echo_test_string"; then
                    315:         ECHO="$dir/echo"
                    316:         break
                    317:       fi
                    318:     done
1.23      millert   319:     IFS="$lt_save_ifs"
                    320:
1.25      millert   321:     if test "X$ECHO" = Xecho; then
                    322:       # We didn't find a better echo, so look for alternatives.
                    323:       if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    324:          echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    325:          test "X$echo_testing_string" = "X$echo_test_string"; then
                    326:         # This shell has a builtin print -r that does the trick.
                    327:         ECHO='print -r'
                    328:       elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    329:           test "X$CONFIG_SHELL" != X/bin/ksh; then
                    330:         # If we have ksh, try running configure again with it.
                    331:         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    332:         export ORIGINAL_CONFIG_SHELL
                    333:         CONFIG_SHELL=/bin/ksh
                    334:         export CONFIG_SHELL
                    335:         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    336:       else
                    337:         # Try using printf.
                    338:         ECHO='printf %s\n'
                    339:         if test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' &&
                    340:           echo_testing_string=`($ECHO "$echo_test_string") 2>/dev/null` &&
1.23      millert   341:           test "X$echo_testing_string" = "X$echo_test_string"; then
1.25      millert   342:          # Cool, printf works
                    343:          :
                    344:         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    345:             test "X$echo_testing_string" = 'X\t' &&
                    346:             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    347:             test "X$echo_testing_string" = "X$echo_test_string"; then
                    348:          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    349:          export CONFIG_SHELL
                    350:          SHELL="$CONFIG_SHELL"
                    351:          export SHELL
                    352:          ECHO="$CONFIG_SHELL $0 --fallback-echo"
                    353:         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    354:             test "X$echo_testing_string" = 'X\t' &&
                    355:             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    356:             test "X$echo_testing_string" = "X$echo_test_string"; then
                    357:          ECHO="$CONFIG_SHELL $0 --fallback-echo"
                    358:         else
                    359:          # maybe with a smaller string...
                    360:          prev=:
                    361:
                    362:          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    363:            if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    364:            then
                    365:              break
                    366:            fi
                    367:            prev="$cmd"
                    368:          done
1.23      millert   369:
1.25      millert   370:          if test "$prev" != 'sed 50q "$0"'; then
                    371:            echo_test_string=`eval $prev`
                    372:            export echo_test_string
                    373:            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    374:          else
                    375:            # Oops.  We lost completely, so just stick with echo.
                    376:            ECHO=echo
1.23      millert   377:          fi
1.25      millert   378:         fi
1.23      millert   379:       fi
                    380:     fi
                    381:   fi
                    382: fi
                    383:
                    384: # Copy echo and quote the copy suitably for passing to libtool from
                    385: # the Makefile, instead of quoting the original, which is used later.
1.25      millert   386: lt_ECHO=$ECHO
                    387: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    388:    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23      millert   389: fi
                    390:
                    391:
                    392:
                    393:
1.9       millert   394: # Name of the host.
                    395: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    396: # so uname gets run too.
                    397: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    398:
                    399: exec 6>&1
                    400:
                    401: #
                    402: # Initializations.
                    403: #
1.1       millert   404: ac_default_prefix=/usr/local
1.16      millert   405: ac_config_libobj_dir=.
1.9       millert   406: cross_compiling=no
                    407: subdirs=
1.16      millert   408: MFLAGS=
                    409: MAKEFLAGS=
1.9       millert   410: SHELL=${CONFIG_SHELL-/bin/sh}
                    411:
                    412: # Maximum number of lines to put in a shell here document.
                    413: # This variable seems obsolete.  It should probably be removed, and
                    414: # only ac_max_sed_lines should be used.
                    415: : ${ac_max_here_lines=38}
                    416:
1.16      millert   417: # Identity of this package.
                    418: PACKAGE_NAME='sudo'
                    419: PACKAGE_TARNAME='sudo'
1.25      millert   420: PACKAGE_VERSION='1.6.9'
                    421: PACKAGE_STRING='sudo 1.6.9'
1.16      millert   422: PACKAGE_BUGREPORT=''
                    423:
1.9       millert   424: # Factoring default headers for most tests.
                    425: ac_includes_default="\
                    426: #include <stdio.h>
                    427: #if HAVE_SYS_TYPES_H
                    428: # include <sys/types.h>
                    429: #endif
                    430: #if HAVE_SYS_STAT_H
                    431: # include <sys/stat.h>
                    432: #endif
                    433: #if STDC_HEADERS
                    434: # include <stdlib.h>
                    435: # include <stddef.h>
                    436: #else
                    437: # if HAVE_STDLIB_H
                    438: #  include <stdlib.h>
                    439: # endif
                    440: #endif
                    441: #if HAVE_STRING_H
                    442: # if !STDC_HEADERS && HAVE_MEMORY_H
                    443: #  include <memory.h>
                    444: # endif
                    445: # include <string.h>
                    446: #endif
                    447: #if HAVE_STRINGS_H
                    448: # include <strings.h>
                    449: #endif
                    450: #if HAVE_INTTYPES_H
                    451: # include <inttypes.h>
                    452: #else
                    453: # if HAVE_STDINT_H
                    454: #  include <stdint.h>
                    455: # endif
                    456: #endif
                    457: #if HAVE_UNISTD_H
                    458: # include <unistd.h>
                    459: #endif"
1.1       millert   460:
1.25      millert   461: 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 LIBTOOL CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_OBJS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir NOEXECDIR noexec_file INSTALL_NOEXEC DONT_LEAK_PATH_INFO 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 root_sudo path_info EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SED EGREP FGREP GREP LD NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO UNAMEPROG TRPROG NROFFPROG YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
1.16      millert   462: ac_subst_files=''
                    463:
1.1       millert   464: # Initialize some variables set by options.
1.9       millert   465: ac_init_help=
                    466: ac_init_version=false
1.1       millert   467: # The variables have the same names as the options, with
                    468: # dashes changed to underlines.
1.9       millert   469: cache_file=/dev/null
1.1       millert   470: exec_prefix=NONE
                    471: no_create=
                    472: no_recursion=
                    473: prefix=NONE
                    474: program_prefix=NONE
                    475: program_suffix=NONE
                    476: program_transform_name=s,x,x,
                    477: silent=
                    478: site=
                    479: srcdir=
                    480: verbose=
                    481: x_includes=NONE
                    482: x_libraries=NONE
1.9       millert   483:
                    484: # Installation directory options.
                    485: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    486: # and all the variables that are supposed to be based on exec_prefix
                    487: # by default will actually change.
                    488: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1       millert   489: bindir='${exec_prefix}/bin'
                    490: sbindir='${exec_prefix}/sbin'
                    491: libexecdir='${exec_prefix}/libexec'
                    492: datadir='${prefix}/share'
                    493: sysconfdir='${prefix}/etc'
                    494: sharedstatedir='${prefix}/com'
                    495: localstatedir='${prefix}/var'
                    496: libdir='${exec_prefix}/lib'
                    497: includedir='${prefix}/include'
                    498: oldincludedir='/usr/include'
                    499: infodir='${prefix}/info'
                    500: mandir='${prefix}/man'
                    501:
                    502: ac_prev=
                    503: for ac_option
                    504: do
                    505:   # If the previous option needs an argument, assign it.
                    506:   if test -n "$ac_prev"; then
                    507:     eval "$ac_prev=\$ac_option"
                    508:     ac_prev=
                    509:     continue
                    510:   fi
                    511:
1.9       millert   512:   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1       millert   513:
                    514:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    515:
1.9       millert   516:   case $ac_option in
1.1       millert   517:
                    518:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    519:     ac_prev=bindir ;;
                    520:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   521:     bindir=$ac_optarg ;;
1.1       millert   522:
                    523:   -build | --build | --buil | --bui | --bu)
1.9       millert   524:     ac_prev=build_alias ;;
1.1       millert   525:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   526:     build_alias=$ac_optarg ;;
1.1       millert   527:
                    528:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    529:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    530:     ac_prev=cache_file ;;
                    531:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    532:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert   533:     cache_file=$ac_optarg ;;
                    534:
                    535:   --config-cache | -C)
                    536:     cache_file=config.cache ;;
1.1       millert   537:
                    538:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    539:     ac_prev=datadir ;;
                    540:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    541:   | --da=*)
1.9       millert   542:     datadir=$ac_optarg ;;
1.1       millert   543:
                    544:   -disable-* | --disable-*)
1.9       millert   545:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert   546:     # Reject names that are not valid shell variable names.
1.9       millert   547:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    548:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    549:    { (exit 1); exit 1; }; }
                    550:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    551:     eval "enable_$ac_feature=no" ;;
1.1       millert   552:
                    553:   -enable-* | --enable-*)
1.9       millert   554:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert   555:     # Reject names that are not valid shell variable names.
1.9       millert   556:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    557:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    558:    { (exit 1); exit 1; }; }
                    559:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    560:     case $ac_option in
                    561:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       millert   562:       *) ac_optarg=yes ;;
                    563:     esac
1.9       millert   564:     eval enable_$ac_feature='$ac_optarg' ;;
1.1       millert   565:
                    566:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    567:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    568:   | --exec | --exe | --ex)
                    569:     ac_prev=exec_prefix ;;
                    570:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    571:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    572:   | --exec=* | --exe=* | --ex=*)
1.9       millert   573:     exec_prefix=$ac_optarg ;;
1.1       millert   574:
                    575:   -gas | --gas | --ga | --g)
                    576:     # Obsolete; use --with-gas.
                    577:     with_gas=yes ;;
                    578:
1.9       millert   579:   -help | --help | --hel | --he | -h)
                    580:     ac_init_help=long ;;
                    581:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    582:     ac_init_help=recursive ;;
                    583:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    584:     ac_init_help=short ;;
1.1       millert   585:
                    586:   -host | --host | --hos | --ho)
1.9       millert   587:     ac_prev=host_alias ;;
1.1       millert   588:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert   589:     host_alias=$ac_optarg ;;
1.1       millert   590:
                    591:   -includedir | --includedir | --includedi | --included | --include \
                    592:   | --includ | --inclu | --incl | --inc)
                    593:     ac_prev=includedir ;;
                    594:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    595:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert   596:     includedir=$ac_optarg ;;
1.1       millert   597:
                    598:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    599:     ac_prev=infodir ;;
                    600:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert   601:     infodir=$ac_optarg ;;
1.1       millert   602:
                    603:   -libdir | --libdir | --libdi | --libd)
                    604:     ac_prev=libdir ;;
                    605:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert   606:     libdir=$ac_optarg ;;
1.1       millert   607:
                    608:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    609:   | --libexe | --libex | --libe)
                    610:     ac_prev=libexecdir ;;
                    611:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    612:   | --libexe=* | --libex=* | --libe=*)
1.9       millert   613:     libexecdir=$ac_optarg ;;
1.1       millert   614:
                    615:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    616:   | --localstate | --localstat | --localsta | --localst \
                    617:   | --locals | --local | --loca | --loc | --lo)
                    618:     ac_prev=localstatedir ;;
                    619:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    620:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    621:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9       millert   622:     localstatedir=$ac_optarg ;;
1.1       millert   623:
                    624:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    625:     ac_prev=mandir ;;
                    626:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert   627:     mandir=$ac_optarg ;;
1.1       millert   628:
                    629:   -nfp | --nfp | --nf)
                    630:     # Obsolete; use --without-fp.
                    631:     with_fp=no ;;
                    632:
                    633:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16      millert   634:   | --no-cr | --no-c | -n)
1.1       millert   635:     no_create=yes ;;
                    636:
                    637:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    638:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    639:     no_recursion=yes ;;
                    640:
                    641:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    642:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    643:   | --oldin | --oldi | --old | --ol | --o)
                    644:     ac_prev=oldincludedir ;;
                    645:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    646:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    647:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert   648:     oldincludedir=$ac_optarg ;;
1.1       millert   649:
                    650:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    651:     ac_prev=prefix ;;
                    652:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert   653:     prefix=$ac_optarg ;;
1.1       millert   654:
                    655:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    656:   | --program-pre | --program-pr | --program-p)
                    657:     ac_prev=program_prefix ;;
                    658:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    659:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert   660:     program_prefix=$ac_optarg ;;
1.1       millert   661:
                    662:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    663:   | --program-suf | --program-su | --program-s)
                    664:     ac_prev=program_suffix ;;
                    665:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    666:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert   667:     program_suffix=$ac_optarg ;;
1.1       millert   668:
                    669:   -program-transform-name | --program-transform-name \
                    670:   | --program-transform-nam | --program-transform-na \
                    671:   | --program-transform-n | --program-transform- \
                    672:   | --program-transform | --program-transfor \
                    673:   | --program-transfo | --program-transf \
                    674:   | --program-trans | --program-tran \
                    675:   | --progr-tra | --program-tr | --program-t)
                    676:     ac_prev=program_transform_name ;;
                    677:   -program-transform-name=* | --program-transform-name=* \
                    678:   | --program-transform-nam=* | --program-transform-na=* \
                    679:   | --program-transform-n=* | --program-transform-=* \
                    680:   | --program-transform=* | --program-transfor=* \
                    681:   | --program-transfo=* | --program-transf=* \
                    682:   | --program-trans=* | --program-tran=* \
                    683:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert   684:     program_transform_name=$ac_optarg ;;
1.1       millert   685:
                    686:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    687:   | -silent | --silent | --silen | --sile | --sil)
                    688:     silent=yes ;;
                    689:
                    690:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    691:     ac_prev=sbindir ;;
                    692:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    693:   | --sbi=* | --sb=*)
1.9       millert   694:     sbindir=$ac_optarg ;;
1.1       millert   695:
                    696:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    697:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    698:   | --sharedst | --shareds | --shared | --share | --shar \
                    699:   | --sha | --sh)
                    700:     ac_prev=sharedstatedir ;;
                    701:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    702:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    703:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    704:   | --sha=* | --sh=*)
1.9       millert   705:     sharedstatedir=$ac_optarg ;;
1.1       millert   706:
                    707:   -site | --site | --sit)
                    708:     ac_prev=site ;;
                    709:   -site=* | --site=* | --sit=*)
1.9       millert   710:     site=$ac_optarg ;;
1.1       millert   711:
                    712:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    713:     ac_prev=srcdir ;;
                    714:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert   715:     srcdir=$ac_optarg ;;
1.1       millert   716:
                    717:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    718:   | --syscon | --sysco | --sysc | --sys | --sy)
                    719:     ac_prev=sysconfdir ;;
                    720:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    721:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert   722:     sysconfdir=$ac_optarg ;;
1.1       millert   723:
                    724:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert   725:     ac_prev=target_alias ;;
1.1       millert   726:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert   727:     target_alias=$ac_optarg ;;
1.1       millert   728:
                    729:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    730:     verbose=yes ;;
                    731:
1.9       millert   732:   -version | --version | --versio | --versi | --vers | -V)
                    733:     ac_init_version=: ;;
1.1       millert   734:
                    735:   -with-* | --with-*)
1.9       millert   736:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert   737:     # Reject names that are not valid shell variable names.
1.9       millert   738:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    739:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    740:    { (exit 1); exit 1; }; }
1.1       millert   741:     ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9       millert   742:     case $ac_option in
                    743:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       millert   744:       *) ac_optarg=yes ;;
                    745:     esac
1.9       millert   746:     eval with_$ac_package='$ac_optarg' ;;
1.1       millert   747:
                    748:   -without-* | --without-*)
1.9       millert   749:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert   750:     # Reject names that are not valid shell variable names.
1.9       millert   751:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    752:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    753:    { (exit 1); exit 1; }; }
                    754:     ac_package=`echo $ac_package | sed 's/-/_/g'`
                    755:     eval "with_$ac_package=no" ;;
1.1       millert   756:
                    757:   --x)
                    758:     # Obsolete; use --with-x.
                    759:     with_x=yes ;;
                    760:
                    761:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    762:   | --x-incl | --x-inc | --x-in | --x-i)
                    763:     ac_prev=x_includes ;;
                    764:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    765:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert   766:     x_includes=$ac_optarg ;;
1.1       millert   767:
                    768:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    769:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    770:     ac_prev=x_libraries ;;
                    771:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    772:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert   773:     x_libraries=$ac_optarg ;;
1.1       millert   774:
1.9       millert   775:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                    776: Try \`$0 --help' for more information." >&2
                    777:    { (exit 1); exit 1; }; }
1.1       millert   778:     ;;
                    779:
1.9       millert   780:   *=*)
                    781:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                    782:     # Reject names that are not valid shell variable names.
                    783:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                    784:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                    785:    { (exit 1); exit 1; }; }
                    786:     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
                    787:     eval "$ac_envvar='$ac_optarg'"
                    788:     export $ac_envvar ;;
                    789:
1.1       millert   790:   *)
1.9       millert   791:     # FIXME: should be removed in autoconf 3.0.
                    792:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                    793:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                    794:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                    795:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert   796:     ;;
                    797:
                    798:   esac
                    799: done
                    800:
                    801: if test -n "$ac_prev"; then
1.9       millert   802:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                    803:   { echo "$as_me: error: missing argument to $ac_option" >&2
                    804:    { (exit 1); exit 1; }; }
1.1       millert   805: fi
                    806:
1.9       millert   807: # Be sure to have absolute paths.
                    808: for ac_var in exec_prefix prefix
                    809: do
                    810:   eval ac_val=$`echo $ac_var`
                    811:   case $ac_val in
                    812:     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.16      millert   813:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9       millert   814:    { (exit 1); exit 1; }; };;
                    815:   esac
                    816: done
1.1       millert   817:
1.9       millert   818: # Be sure to have absolute paths.
                    819: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.25      millert   820:              localstatedir libdir includedir oldincludedir infodir mandir
1.1       millert   821: do
1.9       millert   822:   eval ac_val=$`echo $ac_var`
                    823:   case $ac_val in
                    824:     [\\/$]* | ?:[\\/]* ) ;;
1.16      millert   825:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9       millert   826:    { (exit 1); exit 1; }; };;
1.1       millert   827:   esac
                    828: done
                    829:
1.9       millert   830: # There might be people who depend on the old broken behavior: `$host'
                    831: # used to hold the argument of --host etc.
1.16      millert   832: # FIXME: To remove some day.
1.9       millert   833: build=$build_alias
                    834: host=$host_alias
                    835: target=$target_alias
                    836:
1.16      millert   837: # FIXME: To remove some day.
1.9       millert   838: if test "x$host_alias" != x; then
                    839:   if test "x$build_alias" = x; then
                    840:     cross_compiling=maybe
                    841:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                    842:     If a cross compiler is detected then cross compile mode will be used." >&2
                    843:   elif test "x$build_alias" != "x$host_alias"; then
                    844:     cross_compiling=yes
                    845:   fi
                    846: fi
1.1       millert   847:
1.9       millert   848: ac_tool_prefix=
                    849: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert   850:
1.9       millert   851: test "$silent" = yes && exec 6>/dev/null
1.1       millert   852:
1.16      millert   853:
1.1       millert   854: # Find the source files, if location was not specified.
                    855: if test -z "$srcdir"; then
                    856:   ac_srcdir_defaulted=yes
                    857:   # Try the directory containing this script, then its parent.
1.16      millert   858:   ac_confdir=`(dirname "$0") 2>/dev/null ||
                    859: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25      millert   860:         X"$0" : 'X\(//\)[^/]' \| \
                    861:         X"$0" : 'X\(//\)$' \| \
                    862:         X"$0" : 'X\(/\)' \| \
                    863:         .     : '\(.\)' 2>/dev/null ||
1.16      millert   864: echo X"$0" |
                    865:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                    866:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                    867:          /^X\(\/\/\)$/{ s//\1/; q; }
                    868:          /^X\(\/\).*/{ s//\1/; q; }
                    869:          s/.*/./; q'`
1.1       millert   870:   srcdir=$ac_confdir
                    871:   if test ! -r $srcdir/$ac_unique_file; then
                    872:     srcdir=..
                    873:   fi
                    874: else
                    875:   ac_srcdir_defaulted=no
                    876: fi
                    877: if test ! -r $srcdir/$ac_unique_file; then
                    878:   if test "$ac_srcdir_defaulted" = yes; then
1.16      millert   879:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.9       millert   880:    { (exit 1); exit 1; }; }
1.1       millert   881:   else
1.16      millert   882:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.9       millert   883:    { (exit 1); exit 1; }; }
1.1       millert   884:   fi
                    885: fi
1.16      millert   886: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
                    887:   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
                    888:    { (exit 1); exit 1; }; }
1.9       millert   889: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
                    890: ac_env_build_alias_set=${build_alias+set}
                    891: ac_env_build_alias_value=$build_alias
                    892: ac_cv_env_build_alias_set=${build_alias+set}
                    893: ac_cv_env_build_alias_value=$build_alias
                    894: ac_env_host_alias_set=${host_alias+set}
                    895: ac_env_host_alias_value=$host_alias
                    896: ac_cv_env_host_alias_set=${host_alias+set}
                    897: ac_cv_env_host_alias_value=$host_alias
                    898: ac_env_target_alias_set=${target_alias+set}
                    899: ac_env_target_alias_value=$target_alias
                    900: ac_cv_env_target_alias_set=${target_alias+set}
                    901: ac_cv_env_target_alias_value=$target_alias
                    902: ac_env_CC_set=${CC+set}
                    903: ac_env_CC_value=$CC
                    904: ac_cv_env_CC_set=${CC+set}
                    905: ac_cv_env_CC_value=$CC
                    906: ac_env_CFLAGS_set=${CFLAGS+set}
                    907: ac_env_CFLAGS_value=$CFLAGS
                    908: ac_cv_env_CFLAGS_set=${CFLAGS+set}
                    909: ac_cv_env_CFLAGS_value=$CFLAGS
                    910: ac_env_LDFLAGS_set=${LDFLAGS+set}
                    911: ac_env_LDFLAGS_value=$LDFLAGS
                    912: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
                    913: ac_cv_env_LDFLAGS_value=$LDFLAGS
                    914: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
                    915: ac_env_CPPFLAGS_value=$CPPFLAGS
                    916: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
                    917: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
                    918: ac_env_CPP_set=${CPP+set}
                    919: ac_env_CPP_value=$CPP
                    920: ac_cv_env_CPP_set=${CPP+set}
                    921: ac_cv_env_CPP_value=$CPP
                    922:
                    923: #
                    924: # Report the --help message.
                    925: #
                    926: if test "$ac_init_help" = "long"; then
                    927:   # Omit some internal or obsolete options to make the list less imposing.
                    928:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16      millert   929:   cat <<_ACEOF
1.25      millert   930: \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1.9       millert   931:
                    932: Usage: $0 [OPTION]... [VAR=VALUE]...
                    933:
                    934: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                    935: VAR=VALUE.  See below for descriptions of some of the useful variables.
                    936:
                    937: Defaults for the options are specified in brackets.
                    938:
                    939: Configuration:
                    940:   -h, --help              display this help and exit
                    941:       --help=short        display options specific to this package
                    942:       --help=recursive    display the short help of all the included packages
                    943:   -V, --version           display version information and exit
                    944:   -q, --quiet, --silent   do not print \`checking...' messages
                    945:       --cache-file=FILE   cache test results in FILE [disabled]
                    946:   -C, --config-cache      alias for \`--cache-file=config.cache'
                    947:   -n, --no-create         do not create output files
                    948:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                    949:
1.16      millert   950: _ACEOF
1.9       millert   951:
1.16      millert   952:   cat <<_ACEOF
1.9       millert   953: Installation directories:
                    954:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.25      millert   955:                          [$ac_default_prefix]
1.9       millert   956:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.25      millert   957:                          [PREFIX]
1.9       millert   958:
                    959: By default, \`make install' will install all the files in
                    960: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                    961: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                    962: for instance \`--prefix=\$HOME'.
                    963:
                    964: For better control, use the options below.
                    965:
                    966: Fine tuning of the installation directories:
                    967:   --bindir=DIR           user executables [EPREFIX/bin]
                    968:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                    969:   --libexecdir=DIR       program executables [EPREFIX/libexec]
                    970:   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
                    971:   --sysconfdir=DIR       read-only single-machine data [/etc]
                    972:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                    973:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                    974:   --libdir=DIR           object code libraries [EPREFIX/lib]
                    975:   --includedir=DIR       C header files [PREFIX/include]
                    976:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
                    977:   --infodir=DIR          info documentation [PREFIX/info]
                    978:   --mandir=DIR           man documentation [PREFIX/man]
1.16      millert   979: _ACEOF
1.9       millert   980:
1.16      millert   981:   cat <<\_ACEOF
1.9       millert   982:
                    983: System types:
                    984:   --build=BUILD     configure for building on BUILD [guessed]
1.16      millert   985:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1.23      millert   986:   --target=TARGET   configure for building compilers for TARGET [HOST]
1.16      millert   987: _ACEOF
1.9       millert   988: fi
                    989:
                    990: if test -n "$ac_init_help"; then
                    991:   case $ac_init_help in
1.25      millert   992:      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1.9       millert   993:    esac
1.16      millert   994:   cat <<\_ACEOF
1.9       millert   995:
                    996: Optional Features:
                    997:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    998:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    999:   --disable-authentication
                   1000:                           Do not require authentication by default
1.12      millert  1001:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert  1002:   --disable-setreuid      Don't try to use the setreuid() function
1.25      millert  1003:   --disable-setresuid     Don't try to use the setresuid() function
1.9       millert  1004:   --disable-shadow        Never use shadow passwords
1.12      millert  1005:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert  1006:   --enable-log-host       Log the hostname in the log file
                   1007:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1008:   --enable-shell-sets-home
                   1009:                           set $HOME to target user in shell mode
                   1010:   --disable-path-info     Print 'command not allowed' not 'command not found'
1.25      millert  1011:   --enable-static[=PKGS]
                   1012:                           build static libraries [default=no]
1.23      millert  1013:   --enable-shared[=PKGS]
                   1014:                           build shared libraries [default=yes]
                   1015:   --enable-fast-install[=PKGS]
                   1016:                           optimize for fast installation [default=yes]
                   1017:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.25      millert  1018:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.9       millert  1019:   --disable-sia           Never use SIA on Digital UNIX
                   1020:
                   1021: Optional Packages:
                   1022:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1023:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1024:   --with-otp-only         deprecated
                   1025:   --with-alertmail        deprecated
                   1026:   --with-CC               C compiler to use
1.17      millert  1027:   --with-rpath            pass -R flag in addition to -L for lib paths
1.25      millert  1028:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1.9       millert  1029:   --with-incpath          additional places to look for include files
                   1030:   --with-libpath          additional places to look for libraries
                   1031:   --with-libraries        additional libraries to link with
1.15      david    1032:   --with-devel            add development options
1.11      millert  1033:   --with-efence           link with -lefence for malloc() debugging
1.9       millert  1034:   --with-csops            add CSOps standard options
                   1035:   --without-passwd        don't use passwd/shadow file for authentication
1.25      millert  1036:   --with-skey=DIR         enable S/Key support
                   1037:   --with-opie=DIR         enable OPIE support
1.9       millert  1038:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1.17      millert  1039:   --with-SecurID[=DIR]    enable SecurID support
                   1040:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
                   1041:   --with-kerb4[=DIR]      enable Kerberos IV support
                   1042:   --with-kerb5[=DIR]      enable Kerberos V support
1.25      millert  1043:   --with-aixauth          enable AIX general authentication support
1.9       millert  1044:   --with-pam              enable PAM support
                   1045:   --with-AFS              enable AFS support
                   1046:   --with-DCE              enable DCE support
                   1047:   --with-logincap         enable BSD login class support
                   1048:   --with-bsdauth          enable BSD authentication support
1.25      millert  1049:   --with-project          enable Solaris project support
1.9       millert  1050:   --without-lecture       don't print lecture for first-time sudoer
                   1051:   --with-logging          log via syslog, file, or both
                   1052:   --with-logfac           syslog facility to log with (default is "local2")
                   1053:   --with-goodpri          syslog priority for commands (def is "notice")
                   1054:   --with-badpri           syslog priority for failures (def is "alert")
                   1055:   --with-logpath          path to the sudo log file
                   1056:   --with-loglen           maximum length of a log file line (default is 80)
                   1057:   --with-ignore-dot       ignore '.' in the PATH
                   1058:   --without-mail-if-no-user do not send mail if user not in sudoers
                   1059:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1060:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1061:   --with-mailto           who should get sudo mail (default is "root")
                   1062:   --with-mailsubject      subject of sudo mail
                   1063:   --with-passprompt       default password prompt
                   1064:   --with-badpass-message  message the user sees when the password is wrong
                   1065:   --with-fqdn             expect fully qualified hosts in sudoers
                   1066:   --with-timedir          path to the sudo timestamp dir
                   1067:   --with-sendmail=path    set path to sendmail
                   1068:   --without-sendmail      do not send mail at all
                   1069:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1070:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1071:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                   1072:   --with-umask            umask with which the prog should run (default is 022)
                   1073:   --without-umask         Preserves the umask of the user invoking sudo.
                   1074:   --with-runas-default    User to run commands as (default is "root")
                   1075:   --with-exempt=group     no passwd needed for users in this group
                   1076:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1077:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1078:   --with-passwd-tries     number of tries to enter password (default is 3)
                   1079:   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
                   1080:   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
                   1081:   --with-tty-tickets      use a different ticket file for each tty
                   1082:   --with-insults          insult the user for entering an incorrect password
                   1083:   --with-all-insults      include all the sudo insult sets
                   1084:   --with-classic-insults  include the insults from the "classic" sudo
                   1085:   --with-csops-insults    include CSOps insults
                   1086:   --with-hal-insults      include 2001-like insults
                   1087:   --with-goons-insults    include the insults from the "Goon Show"
1.25      millert  1088:   --with-ldap[=DIR]       enable LDAP support
1.23      millert  1089:   --with-ldap-conf-file   path to LDAP configuration file
1.25      millert  1090:   --with-ldap-secret-file path to LDAP secret pasdword file
1.23      millert  1091:   --with-pc-insults       replace politically incorrect insults with less offensive ones
1.20      millert  1092:   --with-secure-path      override the user's path with a built-in one
1.9       millert  1093:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16      millert  1094:   --with-stow             properly handle GNU stow packaging
1.23      millert  1095:   --with-pic              try to use only PIC/non-PIC objects [default=use
                   1096:                           both]
1.25      millert  1097:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
                   1098:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1.9       millert  1099:
                   1100: Some influential environment variables:
                   1101:   CC          C compiler command
                   1102:   CFLAGS      C compiler flags
                   1103:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1104:               nonstandard directory <lib dir>
                   1105:   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
                   1106:               headers in a nonstandard directory <include dir>
                   1107:   CPP         C preprocessor
                   1108:
                   1109: Use these variables to override the choices made by `configure' or to help
                   1110: it to find libraries and programs with nonstandard names/locations.
                   1111:
1.16      millert  1112: _ACEOF
1.9       millert  1113: fi
                   1114:
                   1115: if test "$ac_init_help" = "recursive"; then
                   1116:   # If there are subdirs, report their specific --help.
                   1117:   ac_popdir=`pwd`
1.16      millert  1118:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                   1119:     test -d $ac_dir || continue
                   1120:     ac_builddir=.
                   1121:
                   1122: if test "$ac_dir" != .; then
                   1123:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   1124:   # A "../" for each directory in $ac_dir_suffix.
                   1125:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                   1126: else
                   1127:   ac_dir_suffix= ac_top_builddir=
                   1128: fi
                   1129:
                   1130: case $srcdir in
                   1131:   .)  # No --srcdir option.  We are building in place.
                   1132:     ac_srcdir=.
                   1133:     if test -z "$ac_top_builddir"; then
                   1134:        ac_top_srcdir=.
                   1135:     else
                   1136:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   1137:     fi ;;
                   1138:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   1139:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1140:     ac_top_srcdir=$srcdir ;;
                   1141:   *) # Relative path.
                   1142:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   1143:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   1144: esac
1.25      millert  1145:
                   1146: # Do not use `cd foo && pwd` to compute absolute paths, because
                   1147: # the directories may not exist.
                   1148: case `pwd` in
                   1149: .) ac_abs_builddir="$ac_dir";;
                   1150: *)
                   1151:   case "$ac_dir" in
                   1152:   .) ac_abs_builddir=`pwd`;;
                   1153:   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
                   1154:   *) ac_abs_builddir=`pwd`/"$ac_dir";;
                   1155:   esac;;
                   1156: esac
                   1157: case $ac_abs_builddir in
                   1158: .) ac_abs_top_builddir=${ac_top_builddir}.;;
                   1159: *)
                   1160:   case ${ac_top_builddir}. in
                   1161:   .) ac_abs_top_builddir=$ac_abs_builddir;;
                   1162:   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
                   1163:   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
                   1164:   esac;;
                   1165: esac
                   1166: case $ac_abs_builddir in
                   1167: .) ac_abs_srcdir=$ac_srcdir;;
                   1168: *)
                   1169:   case $ac_srcdir in
                   1170:   .) ac_abs_srcdir=$ac_abs_builddir;;
                   1171:   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
                   1172:   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
                   1173:   esac;;
                   1174: esac
                   1175: case $ac_abs_builddir in
                   1176: .) ac_abs_top_srcdir=$ac_top_srcdir;;
                   1177: *)
                   1178:   case $ac_top_srcdir in
                   1179:   .) ac_abs_top_srcdir=$ac_abs_builddir;;
                   1180:   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
                   1181:   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
                   1182:   esac;;
                   1183: esac
1.9       millert  1184:
1.16      millert  1185:     cd $ac_dir
1.9       millert  1186:     # Check for guested configure; otherwise get Cygnus style configure.
1.16      millert  1187:     if test -f $ac_srcdir/configure.gnu; then
1.9       millert  1188:       echo
1.16      millert  1189:       $SHELL $ac_srcdir/configure.gnu  --help=recursive
                   1190:     elif test -f $ac_srcdir/configure; then
1.9       millert  1191:       echo
1.16      millert  1192:       $SHELL $ac_srcdir/configure  --help=recursive
                   1193:     elif test -f $ac_srcdir/configure.ac ||
1.25      millert  1194:           test -f $ac_srcdir/configure.in; then
1.9       millert  1195:       echo
                   1196:       $ac_configure --help
                   1197:     else
1.16      millert  1198:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9       millert  1199:     fi
                   1200:     cd $ac_popdir
                   1201:   done
                   1202: fi
                   1203:
                   1204: test -n "$ac_init_help" && exit 0
                   1205: if $ac_init_version; then
1.16      millert  1206:   cat <<\_ACEOF
1.25      millert  1207: sudo configure 1.6.9
                   1208: generated by GNU Autoconf 2.59
1.9       millert  1209:
1.25      millert  1210: Copyright (C) 2003 Free Software Foundation, Inc.
1.9       millert  1211: This configure script is free software; the Free Software Foundation
                   1212: gives unlimited permission to copy, distribute and modify it.
1.16      millert  1213: _ACEOF
1.9       millert  1214:   exit 0
                   1215: fi
                   1216: exec 5>config.log
1.16      millert  1217: cat >&5 <<_ACEOF
1.9       millert  1218: This file contains any messages produced by compilers while
                   1219: running configure, to aid debugging if configure makes a mistake.
                   1220:
1.25      millert  1221: It was created by sudo $as_me 1.6.9, which was
                   1222: generated by GNU Autoconf 2.59.  Invocation command line was
1.9       millert  1223:
                   1224:   $ $0 $@
                   1225:
1.16      millert  1226: _ACEOF
1.9       millert  1227: {
                   1228: cat <<_ASUNAME
1.16      millert  1229: ## --------- ##
                   1230: ## Platform. ##
                   1231: ## --------- ##
1.9       millert  1232:
                   1233: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1234: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1235: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1236: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1237: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1238:
                   1239: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1240: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1241:
                   1242: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1243: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1244: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   1245: hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
                   1246: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1247: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1248: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1249:
1.16      millert  1250: _ASUNAME
                   1251:
                   1252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1253: for as_dir in $PATH
                   1254: do
                   1255:   IFS=$as_save_IFS
                   1256:   test -z "$as_dir" && as_dir=.
                   1257:   echo "PATH: $as_dir"
                   1258: done
1.9       millert  1259:
                   1260: } >&5
                   1261:
1.16      millert  1262: cat >&5 <<_ACEOF
                   1263:
                   1264:
                   1265: ## ----------- ##
                   1266: ## Core tests. ##
                   1267: ## ----------- ##
                   1268:
                   1269: _ACEOF
1.9       millert  1270:
                   1271:
                   1272: # Keep a trace of the command line.
                   1273: # Strip out --no-create and --no-recursion so they do not pile up.
1.16      millert  1274: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1275: # Also quote any args containing shell meta-characters.
1.16      millert  1276: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1277: ac_configure_args=
1.16      millert  1278: ac_configure_args0=
                   1279: ac_configure_args1=
1.9       millert  1280: ac_sep=
1.16      millert  1281: ac_must_keep_next=false
                   1282: for ac_pass in 1 2
1.9       millert  1283: do
1.16      millert  1284:   for ac_arg
                   1285:   do
                   1286:     case $ac_arg in
                   1287:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1288:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1289:     | -silent | --silent | --silen | --sile | --sil)
                   1290:       continue ;;
                   1291:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                   1292:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1293:     esac
                   1294:     case $ac_pass in
                   1295:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1296:     2)
                   1297:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1298:       if test $ac_must_keep_next = true; then
1.25      millert  1299:        ac_must_keep_next=false # Got value, back to normal.
1.16      millert  1300:       else
1.25      millert  1301:        case $ac_arg in
                   1302:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1303:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1304:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1305:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1306:            case "$ac_configure_args0 " in
                   1307:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1308:            esac
                   1309:            ;;
                   1310:          -* ) ac_must_keep_next=true ;;
                   1311:        esac
1.16      millert  1312:       fi
                   1313:       ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
                   1314:       # Get rid of the leading space.
                   1315:       ac_sep=" "
                   1316:       ;;
                   1317:     esac
                   1318:   done
1.9       millert  1319: done
1.16      millert  1320: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1321: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1322:
                   1323: # When interrupted or exit'd, cleanup temporary files, and complete
                   1324: # config.log.  We remove comments because anyway the quotes in there
                   1325: # would cause problems or look ugly.
1.16      millert  1326: # WARNING: Be sure not to use single quotes in there, as some shells,
                   1327: # such as our DU 5.0 friend, will then `close' the trap.
1.9       millert  1328: trap 'exit_status=$?
                   1329:   # Save into config.log some information that might help in debugging.
1.16      millert  1330:   {
                   1331:     echo
                   1332:
                   1333:     cat <<\_ASBOX
                   1334: ## ---------------- ##
                   1335: ## Cache variables. ##
                   1336: ## ---------------- ##
                   1337: _ASBOX
                   1338:     echo
                   1339:     # The following way of writing the cache mishandles newlines in values,
1.9       millert  1340: {
                   1341:   (set) 2>&1 |
                   1342:     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
                   1343:     *ac_space=\ *)
                   1344:       sed -n \
1.25      millert  1345:        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
                   1346:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.9       millert  1347:       ;;
                   1348:     *)
                   1349:       sed -n \
1.25      millert  1350:        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.9       millert  1351:       ;;
                   1352:     esac;
1.16      millert  1353: }
                   1354:     echo
                   1355:
                   1356:     cat <<\_ASBOX
                   1357: ## ----------------- ##
                   1358: ## Output variables. ##
                   1359: ## ----------------- ##
                   1360: _ASBOX
                   1361:     echo
                   1362:     for ac_var in $ac_subst_vars
                   1363:     do
                   1364:       eval ac_val=$`echo $ac_var`
                   1365:       echo "$ac_var='"'"'$ac_val'"'"'"
                   1366:     done | sort
                   1367:     echo
                   1368:
                   1369:     if test -n "$ac_subst_files"; then
                   1370:       cat <<\_ASBOX
                   1371: ## ------------- ##
                   1372: ## Output files. ##
                   1373: ## ------------- ##
                   1374: _ASBOX
                   1375:       echo
                   1376:       for ac_var in $ac_subst_files
                   1377:       do
                   1378:        eval ac_val=$`echo $ac_var`
1.25      millert  1379:        echo "$ac_var='"'"'$ac_val'"'"'"
1.16      millert  1380:       done | sort
                   1381:       echo
                   1382:     fi
                   1383:
                   1384:     if test -s confdefs.h; then
                   1385:       cat <<\_ASBOX
                   1386: ## ----------- ##
                   1387: ## confdefs.h. ##
                   1388: ## ----------- ##
                   1389: _ASBOX
                   1390:       echo
                   1391:       sed "/^$/d" confdefs.h | sort
                   1392:       echo
                   1393:     fi
                   1394:     test "$ac_signal" != 0 &&
                   1395:       echo "$as_me: caught signal $ac_signal"
                   1396:     echo "$as_me: exit $exit_status"
                   1397:   } >&5
1.25      millert  1398:   rm -f core *.core &&
1.16      millert  1399:   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1400:     exit $exit_status
                   1401:      ' 0
                   1402: for ac_signal in 1 2 13 15; do
                   1403:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1404: done
                   1405: ac_signal=0
1.1       millert  1406:
1.9       millert  1407: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   1408: rm -rf conftest* confdefs.h
                   1409: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                   1410: echo >confdefs.h
                   1411:
1.16      millert  1412: # Predefined preprocessor variables.
                   1413:
                   1414: cat >>confdefs.h <<_ACEOF
                   1415: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1416: _ACEOF
                   1417:
                   1418:
                   1419: cat >>confdefs.h <<_ACEOF
                   1420: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1421: _ACEOF
                   1422:
                   1423:
                   1424: cat >>confdefs.h <<_ACEOF
                   1425: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1426: _ACEOF
                   1427:
                   1428:
                   1429: cat >>confdefs.h <<_ACEOF
                   1430: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1431: _ACEOF
                   1432:
                   1433:
                   1434: cat >>confdefs.h <<_ACEOF
                   1435: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1436: _ACEOF
                   1437:
                   1438:
1.9       millert  1439: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1440: # Prefer explicitly selected file to automatically selected ones.
                   1441: if test -z "$CONFIG_SITE"; then
                   1442:   if test "x$prefix" != xNONE; then
                   1443:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                   1444:   else
                   1445:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                   1446:   fi
                   1447: fi
                   1448: for ac_site_file in $CONFIG_SITE; do
                   1449:   if test -r "$ac_site_file"; then
1.16      millert  1450:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1451: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16      millert  1452:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1453:     . "$ac_site_file"
                   1454:   fi
                   1455: done
                   1456:
                   1457: if test -r "$cache_file"; then
1.9       millert  1458:   # Some versions of bash will fail to source /dev/null (special
                   1459:   # files actually), so we avoid doing that.
                   1460:   if test -f "$cache_file"; then
1.16      millert  1461:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1462: echo "$as_me: loading cache $cache_file" >&6;}
                   1463:     case $cache_file in
                   1464:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                   1465:       *)                      . ./$cache_file;;
                   1466:     esac
                   1467:   fi
1.1       millert  1468: else
1.16      millert  1469:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1470: echo "$as_me: creating cache $cache_file" >&6;}
                   1471:   >$cache_file
                   1472: fi
                   1473:
                   1474: # Check that the precious variables saved in the cache have kept the same
                   1475: # value.
                   1476: ac_cache_corrupted=false
                   1477: for ac_var in `(set) 2>&1 |
1.25      millert  1478:               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.9       millert  1479:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1480:   eval ac_new_set=\$ac_env_${ac_var}_set
                   1481:   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
                   1482:   eval ac_new_val="\$ac_env_${ac_var}_value"
                   1483:   case $ac_old_set,$ac_new_set in
                   1484:     set,)
1.16      millert  1485:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1486: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1487:       ac_cache_corrupted=: ;;
                   1488:     ,set)
1.16      millert  1489:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1490: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1491:       ac_cache_corrupted=: ;;
                   1492:     ,);;
                   1493:     *)
                   1494:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.25      millert  1495:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1496: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25      millert  1497:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1498: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.25      millert  1499:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1500: echo "$as_me:   current value: $ac_new_val" >&2;}
1.25      millert  1501:        ac_cache_corrupted=:
1.9       millert  1502:       fi;;
                   1503:   esac
1.16      millert  1504:   # Pass precious variables to config.status.
1.9       millert  1505:   if test "$ac_new_set" = set; then
                   1506:     case $ac_new_val in
                   1507:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.16      millert  1508:       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1509:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1510:     esac
                   1511:     case " $ac_configure_args " in
                   1512:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1513:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  1514:     esac
                   1515:   fi
                   1516: done
                   1517: if $ac_cache_corrupted; then
1.16      millert  1518:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  1519: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16      millert  1520:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  1521: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1522:    { (exit 1); exit 1; }; }
1.1       millert  1523: fi
                   1524:
                   1525: ac_ext=c
                   1526: ac_cpp='$CPP $CPPFLAGS'
1.9       millert  1527: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1529: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1530:
                   1531:
                   1532:
1.16      millert  1533:
                   1534:
                   1535:
                   1536:
                   1537:
                   1538:
                   1539:
                   1540:
                   1541:
                   1542:
                   1543:
                   1544:
                   1545:
                   1546:
                   1547:
                   1548:
                   1549:
                   1550:
                   1551:
                   1552:
                   1553:
                   1554:
                   1555:
                   1556:
                   1557:                     ac_config_headers="$ac_config_headers config.h pathnames.h"
                   1558:
1.25      millert  1559: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
                   1560: echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
                   1561:
                   1562:
                   1563:
                   1564:
                   1565:
                   1566:
                   1567:
                   1568:
                   1569:
                   1570:
                   1571:
                   1572:
                   1573:
                   1574:
                   1575:
                   1576:
                   1577:
                   1578:
                   1579:
1.23      millert  1580:
                   1581:
                   1582:
                   1583:
                   1584:
1.16      millert  1585:
                   1586:
                   1587:
                   1588:
                   1589:
                   1590:
                   1591:
                   1592:
                   1593:
                   1594:
                   1595:
                   1596:
                   1597:
                   1598:
                   1599:
                   1600:
                   1601:
                   1602:
                   1603:
                   1604:
                   1605:
                   1606:
                   1607:
                   1608:
                   1609:
                   1610:
1.9       millert  1611:
                   1612: timeout=5
                   1613: password_timeout=5
                   1614: sudo_umask=0022
                   1615: passprompt="Password:"
                   1616: long_otp_prompt=off
1.23      millert  1617: lecture=once
1.9       millert  1618: logfac=local2
                   1619: goodpri=notice
                   1620: badpri=alert
                   1621: loglen=80
                   1622: ignore_dot=off
                   1623: mail_no_user=on
                   1624: mail_no_host=off
                   1625: mail_no_perms=off
                   1626: mailto=root
                   1627: mailsub='*** SECURITY information for %h ***'
                   1628: badpass_message='Sorry, try again.'
                   1629: fqdn=off
                   1630: runas_default=root
                   1631: env_editor=off
                   1632: passwd_tries=3
                   1633: tty_tickets=off
                   1634: insults=off
1.23      millert  1635: root_sudo=on
1.25      millert  1636: path_info=on
1.23      millert  1637: INSTALL_NOEXEC=
1.1       millert  1638: PROGS="sudo visudo"
1.25      millert  1639: : ${MANTYPE='man'}
                   1640: : ${mansrcdir='.'}
                   1641: : ${SUDOERS_MODE='0440'}
                   1642: : ${SUDOERS_UID='0'}
                   1643: : ${SUDOERS_GID='0'}
1.1       millert  1644: DEV="#"
1.25      millert  1645: AUTH_OBJS=passwd.o
1.1       millert  1646:
                   1647: CHECKSHADOW=true
                   1648: CHECKSIA=true
1.25      millert  1649: shadow_defs=
                   1650: shadow_funcs=
                   1651: shadow_libs=
                   1652: shadow_libs_optional=
1.1       millert  1653:
                   1654: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                   1655: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   1656: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16      millert  1657: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   1658:
                   1659:
1.1       millert  1660:
                   1661: # Check whether --with-otp-only or --without-otp-only was given.
                   1662: if test "${with_otp_only+set}" = set; then
                   1663:   withval="$with_otp_only"
                   1664:   case $with_otp_only in
1.25      millert  1665:     yes)       AUTH_OBJS=`echo "$AUTH_OBJS"|sed -e 's/^passwd\.o *//'`
1.17      millert  1666:                { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   1667: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1       millert  1668:                ;;
                   1669: esac
1.9       millert  1670: fi;
1.1       millert  1671:
1.16      millert  1672:
1.1       millert  1673: # Check whether --with-alertmail or --without-alertmail was given.
                   1674: if test "${with_alertmail+set}" = set; then
                   1675:   withval="$with_alertmail"
                   1676:   case $with_alertmail in
                   1677:     *)         with_mailto="$with_alertmail"
1.17      millert  1678:                { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
                   1679: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1       millert  1680:                ;;
                   1681: esac
1.9       millert  1682: fi;
1.1       millert  1683:
1.16      millert  1684:
                   1685:
1.1       millert  1686: # Check whether --with-CC or --without-CC was given.
                   1687: if test "${with_CC+set}" = set; then
                   1688:   withval="$with_CC"
                   1689:   case $with_CC in
1.16      millert  1690:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  1691: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   1692:    { (exit 1); exit 1; }; }
                   1693:                ;;
1.16      millert  1694:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  1695: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   1696:    { (exit 1); exit 1; }; }
1.1       millert  1697:                ;;
                   1698:     *)         CC=$with_CC
                   1699:                ;;
                   1700: esac
1.9       millert  1701: fi;
1.1       millert  1702:
1.16      millert  1703:
1.17      millert  1704: # Check whether --with-rpath or --without-rpath was given.
                   1705: if test "${with_rpath+set}" = set; then
                   1706:   withval="$with_rpath"
                   1707:   case $with_rpath in
1.25      millert  1708:     yes|no)    ;;
1.17      millert  1709:     *)         { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
                   1710: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
                   1711:    { (exit 1); exit 1; }; }
                   1712:                ;;
                   1713: esac
                   1714: fi;
                   1715:
                   1716:
                   1717: # Check whether --with-blibpath or --without-blibpath was given.
                   1718: if test "${with_blibpath+set}" = set; then
                   1719:   withval="$with_blibpath"
                   1720:   case $with_blibpath in
1.25      millert  1721:     yes|no)    ;;
1.17      millert  1722:     *)         { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
                   1723: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
                   1724:                ;;
                   1725: esac
                   1726: fi;
                   1727:
                   1728:
1.1       millert  1729: # Check whether --with-incpath or --without-incpath was given.
                   1730: if test "${with_incpath+set}" = set; then
                   1731:   withval="$with_incpath"
1.9       millert  1732:   case $with_incpath in
1.16      millert  1733:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  1734: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   1735:    { (exit 1); exit 1; }; }
                   1736:                ;;
1.16      millert  1737:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  1738: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   1739:    { (exit 1); exit 1; }; }
1.1       millert  1740:                ;;
1.17      millert  1741:     *)         { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
                   1742: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1       millert  1743:                for i in ${with_incpath}; do
                   1744:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   1745:                done
                   1746:                ;;
                   1747: esac
1.9       millert  1748: fi;
1.1       millert  1749:
1.16      millert  1750:
1.1       millert  1751: # Check whether --with-libpath or --without-libpath was given.
                   1752: if test "${with_libpath+set}" = set; then
                   1753:   withval="$with_libpath"
1.9       millert  1754:   case $with_libpath in
1.16      millert  1755:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  1756: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   1757:    { (exit 1); exit 1; }; }
                   1758:                ;;
1.16      millert  1759:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  1760: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   1761:    { (exit 1); exit 1; }; }
1.1       millert  1762:                ;;
1.17      millert  1763:     *)         { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
                   1764: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1       millert  1765:                ;;
                   1766: esac
1.9       millert  1767: fi;
1.1       millert  1768:
1.16      millert  1769:
1.1       millert  1770: # Check whether --with-libraries or --without-libraries was given.
                   1771: if test "${with_libraries+set}" = set; then
                   1772:   withval="$with_libraries"
1.9       millert  1773:   case $with_libraries in
1.16      millert  1774:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  1775: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   1776:    { (exit 1); exit 1; }; }
                   1777:                ;;
1.16      millert  1778:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  1779: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   1780:    { (exit 1); exit 1; }; }
1.1       millert  1781:                ;;
1.17      millert  1782:     *)         { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
                   1783: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1       millert  1784:                ;;
                   1785: esac
1.9       millert  1786: fi;
1.1       millert  1787:
1.16      millert  1788:
1.1       millert  1789: # Check whether --with-devel or --without-devel was given.
                   1790: if test "${with_devel+set}" = set; then
                   1791:   withval="$with_devel"
1.9       millert  1792:   case $with_devel in
1.17      millert  1793:     yes)       { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
                   1794: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1       millert  1795:                PROGS="${PROGS} testsudoers"
                   1796:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   1797:                DEV=""
                   1798:                ;;
                   1799:     no)                ;;
1.17      millert  1800:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   1801: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1       millert  1802:                ;;
                   1803: esac
1.9       millert  1804: fi;
1.1       millert  1805:
1.16      millert  1806:
1.11      millert  1807: # Check whether --with-efence or --without-efence was given.
                   1808: if test "${with_efence+set}" = set; then
                   1809:   withval="$with_efence"
                   1810:   case $with_efence in
1.17      millert  1811:     yes)       { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
                   1812: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11      millert  1813:                LIBS="${LIBS} -lefence"
                   1814:                if test -f /usr/local/lib/libefence.a; then
1.17      millert  1815:                    with_libpath="${with_libpath} /usr/local/lib"
1.11      millert  1816:                fi
                   1817:                ;;
                   1818:     no)                ;;
1.17      millert  1819:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   1820: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11      millert  1821:                ;;
                   1822: esac
                   1823: fi;
                   1824:
1.16      millert  1825:
1.1       millert  1826: # Check whether --with-csops or --without-csops was given.
                   1827: if test "${with_csops+set}" = set; then
                   1828:   withval="$with_csops"
1.9       millert  1829:   case $with_csops in
1.17      millert  1830:     yes)       { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
                   1831: echo "$as_me: Adding CSOps standard options" >&6;}
1.1       millert  1832:                CHECKSIA=false
                   1833:                with_ignore_dot=yes
1.9       millert  1834:                insults=on
1.1       millert  1835:                with_classic_insults=yes
                   1836:                with_csops_insults=yes
                   1837:                with_env_editor=yes
1.25      millert  1838:                : ${mansectsu='8'}
                   1839:                : ${mansectform='5'}
1.1       millert  1840:                ;;
                   1841:     no)                ;;
1.17      millert  1842:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   1843: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1       millert  1844:                ;;
                   1845: esac
1.9       millert  1846: fi;
1.1       millert  1847:
1.16      millert  1848:
1.1       millert  1849: # Check whether --with-passwd or --without-passwd was given.
                   1850: if test "${with_passwd+set}" = set; then
                   1851:   withval="$with_passwd"
                   1852:   case $with_passwd in
                   1853:     yes)       ;;
1.25      millert  1854:     no)                AUTH_OBJS=`echo "$AUTH_OBJS"|sed -e 's/^passwd\.o *//'`
1.16      millert  1855:                echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1.9       millert  1856: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.16      millert  1857:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  1858: echo "${ECHO_T}no" >&6
1.1       millert  1859:                ;;
1.16      millert  1860:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  1861: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   1862:    { (exit 1); exit 1; }; }
1.1       millert  1863:                ;;
                   1864: esac
1.9       millert  1865: fi;
1.1       millert  1866:
1.16      millert  1867:
1.1       millert  1868: # Check whether --with-skey or --without-skey was given.
                   1869: if test "${with_skey+set}" = set; then
                   1870:   withval="$with_skey"
                   1871:   case $with_skey in
1.25      millert  1872:     no)                with_skey=""
                   1873:                ;;
1.17      millert  1874:     *)         if test -n "$with_opie"; then
1.16      millert  1875:                    { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9       millert  1876: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1877:    { (exit 1); exit 1; }; }
1.1       millert  1878:                fi
1.23      millert  1879:                cat >>confdefs.h <<\_ACEOF
1.1       millert  1880: #define HAVE_SKEY 1
1.16      millert  1881: _ACEOF
1.1       millert  1882:
1.16      millert  1883:                echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1.9       millert  1884: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.16      millert  1885:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1886: echo "${ECHO_T}yes" >&6
1.25      millert  1887:
                   1888: if test X"$AUTH_EXCL" != X""; then
                   1889:     { { echo "$as_me:$LINENO: error: \"cannot mix S/Key with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   1890: echo "$as_me: error: \"cannot mix S/Key with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   1891:    { (exit 1); exit 1; }; }
                   1892: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   1893:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   1894:     { { echo "$as_me:$LINENO: error: \"cannot mix S/Key with other authentication methods (such as $_AUTH)\"" >&5
                   1895: echo "$as_me: error: \"cannot mix S/Key with other authentication methods (such as $_AUTH)\"" >&2;}
                   1896:    { (exit 1); exit 1; }; }
                   1897: fi
                   1898: if test X"" != X""; then
                   1899:     AUTH_OBJS="rfc1938.o"
                   1900:     AUTH_EXCL="S/Key"
                   1901: elif test X"$AUTH_OBJS" = X""; then
                   1902:     AUTH_OBJS="rfc1938.o"
                   1903: else
                   1904:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
                   1905: fi
                   1906:
1.1       millert  1907:                ;;
                   1908: esac
1.9       millert  1909: fi;
1.1       millert  1910:
1.16      millert  1911:
1.1       millert  1912: # Check whether --with-opie or --without-opie was given.
                   1913: if test "${with_opie+set}" = set; then
                   1914:   withval="$with_opie"
                   1915:   case $with_opie in
1.25      millert  1916:     no)                with_opie=""
                   1917:                ;;
1.17      millert  1918:     *)         if test -n "$with_skey"; then
1.16      millert  1919:                    { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9       millert  1920: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1921:    { (exit 1); exit 1; }; }
1.1       millert  1922:                fi
1.23      millert  1923:                cat >>confdefs.h <<\_ACEOF
1.1       millert  1924: #define HAVE_OPIE 1
1.16      millert  1925: _ACEOF
1.1       millert  1926:
1.16      millert  1927:                echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1.9       millert  1928: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1.16      millert  1929:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1930: echo "${ECHO_T}yes" >&6
1.25      millert  1931:
                   1932: if test X"$AUTH_EXCL" != X""; then
                   1933:     { { echo "$as_me:$LINENO: error: \"cannot mix NRL OPIE with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   1934: echo "$as_me: error: \"cannot mix NRL OPIE with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   1935:    { (exit 1); exit 1; }; }
                   1936: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   1937:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   1938:     { { echo "$as_me:$LINENO: error: \"cannot mix NRL OPIE with other authentication methods (such as $_AUTH)\"" >&5
                   1939: echo "$as_me: error: \"cannot mix NRL OPIE with other authentication methods (such as $_AUTH)\"" >&2;}
                   1940:    { (exit 1); exit 1; }; }
                   1941: fi
                   1942: if test X"" != X""; then
                   1943:     AUTH_OBJS="rfc1938.o"
                   1944:     AUTH_EXCL="NRL OPIE"
                   1945: elif test X"$AUTH_OBJS" = X""; then
                   1946:     AUTH_OBJS="rfc1938.o"
                   1947: else
                   1948:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
                   1949: fi
                   1950:
1.1       millert  1951:                ;;
                   1952: esac
1.9       millert  1953: fi;
1.1       millert  1954:
1.16      millert  1955:
1.1       millert  1956: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
                   1957: if test "${with_long_otp_prompt+set}" = set; then
                   1958:   withval="$with_long_otp_prompt"
                   1959:   case $with_long_otp_prompt in
1.23      millert  1960:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  1961: #define LONG_OTP_PROMPT 1
1.16      millert  1962: _ACEOF
1.1       millert  1963:
1.16      millert  1964:                echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1.9       millert  1965: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.16      millert  1966:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1967: echo "${ECHO_T}yes" >&6
                   1968:                long_otp_prompt=on
1.1       millert  1969:                ;;
1.9       millert  1970:     no)                long_otp_prompt=off
                   1971:                ;;
1.16      millert  1972:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  1973: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   1974:    { (exit 1); exit 1; }; }
1.1       millert  1975:                ;;
                   1976: esac
1.9       millert  1977: fi;
1.1       millert  1978:
1.16      millert  1979:
1.1       millert  1980: # Check whether --with-SecurID or --without-SecurID was given.
                   1981: if test "${with_SecurID+set}" = set; then
                   1982:   withval="$with_SecurID"
                   1983:   case $with_SecurID in
1.17      millert  1984:     no)                with_SecurID="";;
1.23      millert  1985:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  1986: #define HAVE_SECURID 1
1.16      millert  1987: _ACEOF
1.1       millert  1988:
1.16      millert  1989:                echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1.9       millert  1990: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.16      millert  1991:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  1992: echo "${ECHO_T}yes" >&6
1.25      millert  1993:                # AUTH_OBJS updated later
1.1       millert  1994:                ;;
                   1995: esac
1.9       millert  1996: fi;
1.1       millert  1997:
1.16      millert  1998:
1.1       millert  1999: # Check whether --with-fwtk or --without-fwtk was given.
                   2000: if test "${with_fwtk+set}" = set; then
                   2001:   withval="$with_fwtk"
                   2002:   case $with_fwtk in
1.17      millert  2003:     no)                with_fwtk="";;
1.23      millert  2004:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2005: #define HAVE_FWTK 1
1.16      millert  2006: _ACEOF
1.1       millert  2007:
1.16      millert  2008:                echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1.9       millert  2009: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.16      millert  2010:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2011: echo "${ECHO_T}yes" >&6
1.25      millert  2012:
                   2013: if test X"$AUTH_EXCL" != X""; then
                   2014:     { { echo "$as_me:$LINENO: error: \"cannot mix FWTK AuthSRV with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   2015: echo "$as_me: error: \"cannot mix FWTK AuthSRV with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   2016:    { (exit 1); exit 1; }; }
                   2017: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   2018:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   2019:     { { echo "$as_me:$LINENO: error: \"cannot mix FWTK AuthSRV with other authentication methods (such as $_AUTH)\"" >&5
                   2020: echo "$as_me: error: \"cannot mix FWTK AuthSRV with other authentication methods (such as $_AUTH)\"" >&2;}
                   2021:    { (exit 1); exit 1; }; }
                   2022: fi
                   2023: if test X"true" != X""; then
                   2024:     AUTH_OBJS="fwtk.o"
                   2025:     AUTH_EXCL="FWTK AuthSRV"
                   2026: elif test X"$AUTH_OBJS" = X""; then
                   2027:     AUTH_OBJS="fwtk.o"
                   2028: else
                   2029:     AUTH_OBJS="$AUTH_OBJS fwtk.o"
                   2030: fi
                   2031:
1.1       millert  2032:                ;;
                   2033: esac
1.9       millert  2034: fi;
1.1       millert  2035:
1.16      millert  2036:
1.1       millert  2037: # Check whether --with-kerb4 or --without-kerb4 was given.
                   2038: if test "${with_kerb4+set}" = set; then
                   2039:   withval="$with_kerb4"
                   2040:   case $with_kerb4 in
1.17      millert  2041:     no)                with_kerb4="";;
                   2042:     *)         echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
                   2043: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1.16      millert  2044:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2045: echo "${ECHO_T}yes" >&6
1.1       millert  2046:                ;;
                   2047: esac
1.9       millert  2048: fi;
1.1       millert  2049:
1.16      millert  2050:
1.1       millert  2051: # Check whether --with-kerb5 or --without-kerb5 was given.
                   2052: if test "${with_kerb5+set}" = set; then
                   2053:   withval="$with_kerb5"
                   2054:   case $with_kerb5 in
1.17      millert  2055:     no)                with_kerb5="";;
                   2056:     *)         echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
                   2057: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1.16      millert  2058:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2059: echo "${ECHO_T}yes" >&6
1.1       millert  2060:                ;;
                   2061: esac
1.9       millert  2062: fi;
1.1       millert  2063:
1.16      millert  2064:
1.25      millert  2065: # Check whether --with-aixauth or --without-aixauth was given.
                   2066: if test "${with_aixauth+set}" = set; then
                   2067:   withval="$with_aixauth"
                   2068:   case $with_aixauth in
                   2069:     yes|no)    ;;
                   2070:     *)         { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
                   2071: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9       millert  2072:    { (exit 1); exit 1; }; }
1.1       millert  2073:                ;;
                   2074: esac
1.9       millert  2075: fi;
1.1       millert  2076:
1.16      millert  2077:
1.1       millert  2078: # Check whether --with-pam or --without-pam was given.
                   2079: if test "${with_pam+set}" = set; then
                   2080:   withval="$with_pam"
                   2081:   case $with_pam in
1.25      millert  2082:     yes|no)    ;;
1.16      millert  2083:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  2084: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   2085:    { (exit 1); exit 1; }; }
1.1       millert  2086:                ;;
                   2087: esac
1.9       millert  2088: fi;
1.1       millert  2089:
1.16      millert  2090:
1.1       millert  2091: # Check whether --with-AFS or --without-AFS was given.
                   2092: if test "${with_AFS+set}" = set; then
                   2093:   withval="$with_AFS"
                   2094:   case $with_AFS in
1.23      millert  2095:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2096: #define HAVE_AFS 1
1.16      millert  2097: _ACEOF
1.1       millert  2098:
1.16      millert  2099:                echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
1.9       millert  2100: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.16      millert  2101:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2102: echo "${ECHO_T}yes" >&6
1.25      millert  2103:
                   2104: if test X"$AUTH_EXCL" != X""; then
                   2105:     { { echo "$as_me:$LINENO: error: \"cannot mix AFS with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   2106: echo "$as_me: error: \"cannot mix AFS with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   2107:    { (exit 1); exit 1; }; }
                   2108: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   2109:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   2110:     { { echo "$as_me:$LINENO: error: \"cannot mix AFS with other authentication methods (such as $_AUTH)\"" >&5
                   2111: echo "$as_me: error: \"cannot mix AFS with other authentication methods (such as $_AUTH)\"" >&2;}
                   2112:    { (exit 1); exit 1; }; }
                   2113: fi
                   2114: if test X"" != X""; then
                   2115:     AUTH_OBJS="afs.o"
                   2116:     AUTH_EXCL="AFS"
                   2117: elif test X"$AUTH_OBJS" = X""; then
                   2118:     AUTH_OBJS="afs.o"
                   2119: else
                   2120:     AUTH_OBJS="$AUTH_OBJS afs.o"
                   2121: fi
                   2122:
1.1       millert  2123:                ;;
                   2124:     no)                ;;
1.16      millert  2125:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  2126: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   2127:    { (exit 1); exit 1; }; }
1.1       millert  2128:                ;;
                   2129: esac
1.9       millert  2130: fi;
1.1       millert  2131:
1.16      millert  2132:
1.1       millert  2133: # Check whether --with-DCE or --without-DCE was given.
                   2134: if test "${with_DCE+set}" = set; then
                   2135:   withval="$with_DCE"
                   2136:   case $with_DCE in
1.23      millert  2137:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2138: #define HAVE_DCE 1
1.16      millert  2139: _ACEOF
1.1       millert  2140:
1.16      millert  2141:                echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
1.9       millert  2142: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.16      millert  2143:                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2144: echo "${ECHO_T}yes" >&6
1.25      millert  2145:
                   2146: if test X"$AUTH_EXCL" != X""; then
                   2147:     { { echo "$as_me:$LINENO: error: \"cannot mix DCE with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   2148: echo "$as_me: error: \"cannot mix DCE with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   2149:    { (exit 1); exit 1; }; }
                   2150: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   2151:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   2152:     { { echo "$as_me:$LINENO: error: \"cannot mix DCE with other authentication methods (such as $_AUTH)\"" >&5
                   2153: echo "$as_me: error: \"cannot mix DCE with other authentication methods (such as $_AUTH)\"" >&2;}
                   2154:    { (exit 1); exit 1; }; }
                   2155: fi
                   2156: if test X"" != X""; then
                   2157:     AUTH_OBJS="dce.o"
                   2158:     AUTH_EXCL="DCE"
                   2159: elif test X"$AUTH_OBJS" = X""; then
                   2160:     AUTH_OBJS="dce.o"
                   2161: else
                   2162:     AUTH_OBJS="$AUTH_OBJS dce.o"
                   2163: fi
                   2164:
1.1       millert  2165:                ;;
                   2166:     no)                ;;
1.16      millert  2167:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  2168: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   2169:    { (exit 1); exit 1; }; }
1.1       millert  2170:                ;;
                   2171: esac
1.9       millert  2172: fi;
1.1       millert  2173:
1.16      millert  2174:
1.6       millert  2175: # Check whether --with-logincap or --without-logincap was given.
                   2176: if test "${with_logincap+set}" = set; then
                   2177:   withval="$with_logincap"
                   2178:   case $with_logincap in
1.7       millert  2179:     yes|no)    ;;
1.16      millert  2180:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  2181: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   2182:    { (exit 1); exit 1; }; }
1.7       millert  2183:                ;;
                   2184: esac
1.9       millert  2185: fi;
1.6       millert  2186:
1.16      millert  2187:
1.7       millert  2188: # Check whether --with-bsdauth or --without-bsdauth was given.
                   2189: if test "${with_bsdauth+set}" = set; then
                   2190:   withval="$with_bsdauth"
                   2191:   case $with_bsdauth in
1.25      millert  2192:     yes|no)    ;;
1.16      millert  2193:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  2194: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   2195:    { (exit 1); exit 1; }; }
1.6       millert  2196:                ;;
                   2197: esac
1.9       millert  2198: fi;
1.6       millert  2199:
1.25      millert  2200:
                   2201: # Check whether --with-project or --without-project was given.
                   2202: if test "${with_project+set}" = set; then
                   2203:   withval="$with_project"
                   2204:   case $with_project in
                   2205:     yes|no)    ;;
                   2206:     no)        ;;
                   2207:     *)         { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
                   2208: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
                   2209:    { (exit 1); exit 1; }; }
                   2210:                ;;
                   2211: esac
                   2212: fi;
                   2213:
1.16      millert  2214: echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
1.9       millert  2215: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6       millert  2216:
1.1       millert  2217: # Check whether --with-lecture or --without-lecture was given.
                   2218: if test "${with_lecture+set}" = set; then
                   2219:   withval="$with_lecture"
1.9       millert  2220:   case $with_lecture in
1.23      millert  2221:     yes|short|always)  lecture=once
1.1       millert  2222:                ;;
1.23      millert  2223:     no|none|never)     lecture=never
1.1       millert  2224:                ;;
1.16      millert  2225:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  2226: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   2227:    { (exit 1); exit 1; }; }
1.1       millert  2228:                ;;
                   2229: esac
1.9       millert  2230: fi;
1.23      millert  2231: if test "$lecture" = "once"; then
1.16      millert  2232:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2233: echo "${ECHO_T}yes" >&6
1.1       millert  2234: else
1.23      millert  2235:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2236: #define NO_LECTURE 1
1.16      millert  2237: _ACEOF
1.9       millert  2238:
1.16      millert  2239:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2240: echo "${ECHO_T}no" >&6
1.1       millert  2241: fi
                   2242:
1.16      millert  2243: echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
1.9       millert  2244: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1       millert  2245:
                   2246: # Check whether --with-logging or --without-logging was given.
                   2247: if test "${with_logging+set}" = set; then
                   2248:   withval="$with_logging"
1.9       millert  2249:   case $with_logging in
1.16      millert  2250:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  2251: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   2252:    { (exit 1); exit 1; }; }
                   2253:                ;;
1.16      millert  2254:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  2255: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   2256:    { (exit 1); exit 1; }; }
1.1       millert  2257:                ;;
1.23      millert  2258:     syslog)    cat >>confdefs.h <<\_ACEOF
1.1       millert  2259: #define LOGGING SLOG_SYSLOG
1.16      millert  2260: _ACEOF
1.1       millert  2261:
1.16      millert  2262:                echo "$as_me:$LINENO: result: syslog" >&5
1.9       millert  2263: echo "${ECHO_T}syslog" >&6
1.1       millert  2264:                ;;
1.16      millert  2265:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2266: #define LOGGING SLOG_FILE
1.16      millert  2267: _ACEOF
1.1       millert  2268:
1.16      millert  2269:                echo "$as_me:$LINENO: result: file" >&5
1.9       millert  2270: echo "${ECHO_T}file" >&6
1.1       millert  2271:                ;;
1.16      millert  2272:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2273: #define LOGGING SLOG_BOTH
1.16      millert  2274: _ACEOF
1.1       millert  2275:
1.16      millert  2276:                echo "$as_me:$LINENO: result: both" >&5
1.9       millert  2277: echo "${ECHO_T}both" >&6
1.1       millert  2278:                ;;
1.16      millert  2279:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  2280: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   2281:    { (exit 1); exit 1; }; }
1.1       millert  2282:                ;;
                   2283: esac
                   2284: else
1.16      millert  2285:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2286: #define LOGGING SLOG_SYSLOG
1.16      millert  2287: _ACEOF
                   2288:  echo "$as_me:$LINENO: result: syslog" >&5
1.9       millert  2289: echo "${ECHO_T}syslog" >&6
                   2290: fi;
1.1       millert  2291:
1.16      millert  2292: echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
1.9       millert  2293: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1       millert  2294:
                   2295: # Check whether --with-logfac or --without-logfac was given.
                   2296: if test "${with_logfac+set}" = set; then
                   2297:   withval="$with_logfac"
1.9       millert  2298:   case $with_logfac in
1.16      millert  2299:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  2300: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   2301:    { (exit 1); exit 1; }; }
                   2302:                ;;
1.16      millert  2303:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  2304: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   2305:    { (exit 1); exit 1; }; }
1.1       millert  2306:                ;;
1.9       millert  2307:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2308:                ;;
1.16      millert  2309:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2310: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2311:    { (exit 1); exit 1; }; }
1.1       millert  2312:                ;;
                   2313: esac
1.9       millert  2314: fi;
                   2315:
1.16      millert  2316: cat >>confdefs.h <<_ACEOF
1.9       millert  2317: #define LOGFAC "$logfac"
1.16      millert  2318: _ACEOF
1.1       millert  2319:
1.16      millert  2320: echo "$as_me:$LINENO: result: $logfac" >&5
1.9       millert  2321: echo "${ECHO_T}$logfac" >&6
                   2322:
1.16      millert  2323: echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
1.9       millert  2324: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1       millert  2325:
                   2326: # Check whether --with-goodpri or --without-goodpri was given.
                   2327: if test "${with_goodpri+set}" = set; then
                   2328:   withval="$with_goodpri"
1.9       millert  2329:   case $with_goodpri in
1.16      millert  2330:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2331: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2332:    { (exit 1); exit 1; }; }
1.1       millert  2333:                ;;
1.16      millert  2334:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2335: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2336:    { (exit 1); exit 1; }; }
1.1       millert  2337:                ;;
1.9       millert  2338:     alert|crit|debug|emerg|err|info|notice|warning)
                   2339:                goodpri=$with_goodpri
1.1       millert  2340:                ;;
1.16      millert  2341:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2342: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2343:    { (exit 1); exit 1; }; }
1.1       millert  2344:                ;;
                   2345: esac
1.9       millert  2346: fi;
                   2347:
1.16      millert  2348: cat >>confdefs.h <<_ACEOF
1.9       millert  2349: #define PRI_SUCCESS "$goodpri"
1.16      millert  2350: _ACEOF
1.1       millert  2351:
1.16      millert  2352: echo "$as_me:$LINENO: result: $goodpri" >&5
1.9       millert  2353: echo "${ECHO_T}$goodpri" >&6
                   2354:
1.16      millert  2355: echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
1.9       millert  2356: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1       millert  2357:
                   2358: # Check whether --with-badpri or --without-badpri was given.
                   2359: if test "${with_badpri+set}" = set; then
                   2360:   withval="$with_badpri"
1.9       millert  2361:   case $with_badpri in
1.16      millert  2362:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2363: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2364:    { (exit 1); exit 1; }; }
1.1       millert  2365:                ;;
1.16      millert  2366:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2367: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2368:    { (exit 1); exit 1; }; }
1.1       millert  2369:                ;;
1.9       millert  2370:     alert|crit|debug|emerg|err|info|notice|warning)
                   2371:                badpri=$with_badpri
1.1       millert  2372:                ;;
1.16      millert  2373:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2374: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2375:    { (exit 1); exit 1; }; }
1.1       millert  2376:                ;;
                   2377: esac
1.9       millert  2378: fi;
                   2379:
1.16      millert  2380: cat >>confdefs.h <<_ACEOF
1.9       millert  2381: #define PRI_FAILURE "$badpri"
1.16      millert  2382: _ACEOF
                   2383:
                   2384: echo "$as_me:$LINENO: result: $badpri" >&5
                   2385: echo "${ECHO_T}$badpri" >&6
1.1       millert  2386:
                   2387:
                   2388: # Check whether --with-logpath or --without-logpath was given.
                   2389: if test "${with_logpath+set}" = set; then
                   2390:   withval="$with_logpath"
1.9       millert  2391:   case $with_logpath in
1.16      millert  2392:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2393: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2394:    { (exit 1); exit 1; }; }
1.1       millert  2395:                ;;
1.16      millert  2396:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2397: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2398:    { (exit 1); exit 1; }; }
1.1       millert  2399:                ;;
                   2400: esac
1.9       millert  2401: fi;
1.1       millert  2402:
1.16      millert  2403: echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
1.9       millert  2404: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1       millert  2405:
                   2406: # Check whether --with-loglen or --without-loglen was given.
                   2407: if test "${with_loglen+set}" = set; then
                   2408:   withval="$with_loglen"
1.9       millert  2409:   case $with_loglen in
1.16      millert  2410:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2411: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2412:    { (exit 1); exit 1; }; }
1.1       millert  2413:                ;;
1.16      millert  2414:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2415: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2416:    { (exit 1); exit 1; }; }
1.1       millert  2417:                ;;
1.9       millert  2418:     [0-9]*)    loglen=$with_loglen
1.1       millert  2419:                ;;
1.16      millert  2420:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2421: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2422:    { (exit 1); exit 1; }; }
1.1       millert  2423:                ;;
                   2424: esac
1.9       millert  2425: fi;
                   2426:
1.16      millert  2427: cat >>confdefs.h <<_ACEOF
1.9       millert  2428: #define MAXLOGFILELEN $loglen
1.16      millert  2429: _ACEOF
1.1       millert  2430:
1.16      millert  2431: echo "$as_me:$LINENO: result: $loglen" >&5
1.9       millert  2432: echo "${ECHO_T}$loglen" >&6
                   2433:
1.16      millert  2434: echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9       millert  2435: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1       millert  2436:
                   2437: # Check whether --with-ignore-dot or --without-ignore-dot was given.
                   2438: if test "${with_ignore_dot+set}" = set; then
                   2439:   withval="$with_ignore_dot"
1.9       millert  2440:   case $with_ignore_dot in
                   2441:     yes)       ignore_dot=on
1.1       millert  2442:                ;;
1.9       millert  2443:     no)                ignore_dot=off
1.1       millert  2444:                ;;
1.16      millert  2445:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2446: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2447:    { (exit 1); exit 1; }; }
1.1       millert  2448:                ;;
                   2449: esac
1.9       millert  2450: fi;
                   2451: if test "$ignore_dot" = "on"; then
1.23      millert  2452:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2453: #define IGNORE_DOT_PATH 1
1.16      millert  2454: _ACEOF
1.9       millert  2455:
1.16      millert  2456:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2457: echo "${ECHO_T}yes" >&6
1.1       millert  2458: else
1.16      millert  2459:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2460: echo "${ECHO_T}no" >&6
1.1       millert  2461: fi
                   2462:
1.16      millert  2463: echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
1.9       millert  2464: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1       millert  2465:
1.9       millert  2466: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
                   2467: if test "${with_mail_if_no_user+set}" = set; then
                   2468:   withval="$with_mail_if_no_user"
                   2469:   case $with_mail_if_no_user in
                   2470:     yes)       mail_no_user=on
                   2471:                ;;
                   2472:     no)                mail_no_user=off
1.1       millert  2473:                ;;
1.16      millert  2474:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2475: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2476:    { (exit 1); exit 1; }; }
1.1       millert  2477:                ;;
1.9       millert  2478: esac
                   2479: fi;
                   2480: if test "$mail_no_user" = "on"; then
1.23      millert  2481:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2482: #define SEND_MAIL_WHEN_NO_USER 1
1.16      millert  2483: _ACEOF
1.1       millert  2484:
1.16      millert  2485:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2486: echo "${ECHO_T}yes" >&6
1.1       millert  2487: else
1.16      millert  2488:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2489: echo "${ECHO_T}no" >&6
1.1       millert  2490: fi
                   2491:
1.16      millert  2492: echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
1.9       millert  2493: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1       millert  2494:
1.9       millert  2495: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
                   2496: if test "${with_mail_if_no_host+set}" = set; then
                   2497:   withval="$with_mail_if_no_host"
                   2498:   case $with_mail_if_no_host in
                   2499:     yes)       mail_no_host=on
1.1       millert  2500:                ;;
1.9       millert  2501:     no)                mail_no_host=off
1.1       millert  2502:                ;;
1.16      millert  2503:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2504: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2505:    { (exit 1); exit 1; }; }
1.1       millert  2506:                ;;
                   2507: esac
1.9       millert  2508: fi;
                   2509: if test "$mail_no_host" = "on"; then
1.23      millert  2510:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2511: #define SEND_MAIL_WHEN_NO_HOST 1
1.16      millert  2512: _ACEOF
1.1       millert  2513:
1.16      millert  2514:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2515: echo "${ECHO_T}yes" >&6
                   2516: else
1.16      millert  2517:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2518: echo "${ECHO_T}no" >&6
1.1       millert  2519: fi
                   2520:
1.16      millert  2521: echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
1.9       millert  2522: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1       millert  2523:
1.9       millert  2524: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
                   2525: if test "${with_mail_if_noperms+set}" = set; then
                   2526:   withval="$with_mail_if_noperms"
                   2527:   case $with_mail_if_noperms in
                   2528:     yes)       mail_noperms=on
1.1       millert  2529:                ;;
1.9       millert  2530:     no)                mail_noperms=off
1.1       millert  2531:                ;;
1.16      millert  2532:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2533: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2534:    { (exit 1); exit 1; }; }
1.1       millert  2535:                ;;
                   2536: esac
1.9       millert  2537: fi;
                   2538: if test "$mail_noperms" = "on"; then
1.23      millert  2539:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2540: #define SEND_MAIL_WHEN_NOT_OK 1
1.16      millert  2541: _ACEOF
1.9       millert  2542:
1.16      millert  2543:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2544: echo "${ECHO_T}yes" >&6
1.1       millert  2545: else
1.16      millert  2546:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2547: echo "${ECHO_T}no" >&6
1.1       millert  2548: fi
                   2549:
1.16      millert  2550: echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
1.9       millert  2551: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1       millert  2552:
1.9       millert  2553: # Check whether --with-mailto or --without-mailto was given.
                   2554: if test "${with_mailto+set}" = set; then
                   2555:   withval="$with_mailto"
                   2556:   case $with_mailto in
1.16      millert  2557:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  2558: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   2559:    { (exit 1); exit 1; }; }
1.1       millert  2560:                ;;
1.16      millert  2561:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  2562: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   2563:    { (exit 1); exit 1; }; }
1.1       millert  2564:                ;;
1.9       millert  2565:     *)         mailto=$with_mailto
1.1       millert  2566:                ;;
                   2567: esac
1.9       millert  2568: fi;
1.1       millert  2569:
1.16      millert  2570: cat >>confdefs.h <<_ACEOF
1.9       millert  2571: #define MAILTO "$mailto"
1.16      millert  2572: _ACEOF
1.1       millert  2573:
1.16      millert  2574: echo "$as_me:$LINENO: result: $mailto" >&5
1.9       millert  2575: echo "${ECHO_T}$mailto" >&6
1.1       millert  2576:
1.16      millert  2577:
1.9       millert  2578: # Check whether --with-mailsubject or --without-mailsubject was given.
                   2579: if test "${with_mailsubject+set}" = set; then
                   2580:   withval="$with_mailsubject"
                   2581:   case $with_mailsubject in
1.16      millert  2582:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  2583: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   2584:    { (exit 1); exit 1; }; }
1.1       millert  2585:                ;;
1.17      millert  2586:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
                   2587: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1       millert  2588:                ;;
1.9       millert  2589:     *)         mailsub="$with_mailsubject"
1.16      millert  2590:                echo "$as_me:$LINENO: checking sudo mail subject" >&5
1.9       millert  2591: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.16      millert  2592:                echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
1.9       millert  2593: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1       millert  2594:                ;;
                   2595: esac
1.9       millert  2596: fi;
                   2597:
1.16      millert  2598: cat >>confdefs.h <<_ACEOF
1.9       millert  2599: #define MAILSUBJECT "$mailsub"
1.16      millert  2600: _ACEOF
                   2601:
1.1       millert  2602:
1.16      millert  2603: echo "$as_me:$LINENO: checking for bad password prompt" >&5
1.9       millert  2604: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1       millert  2605:
                   2606: # Check whether --with-passprompt or --without-passprompt was given.
                   2607: if test "${with_passprompt+set}" = set; then
                   2608:   withval="$with_passprompt"
1.9       millert  2609:   case $with_passprompt in
1.16      millert  2610:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  2611: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   2612:    { (exit 1); exit 1; }; }
1.1       millert  2613:                ;;
1.17      millert  2614:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
                   2615: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1       millert  2616:                ;;
1.9       millert  2617:     *)         passprompt="$with_passprompt"
                   2618: esac
                   2619: fi;
1.16      millert  2620: echo "$as_me:$LINENO: result: $passprompt" >&5
1.9       millert  2621: echo "${ECHO_T}$passprompt" >&6
1.1       millert  2622:
1.16      millert  2623: cat >>confdefs.h <<_ACEOF
1.9       millert  2624: #define PASSPROMPT "$passprompt"
1.16      millert  2625: _ACEOF
                   2626:
1.1       millert  2627:
1.16      millert  2628: echo "$as_me:$LINENO: checking for bad password message" >&5
1.9       millert  2629: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1       millert  2630:
                   2631: # Check whether --with-badpass-message or --without-badpass-message was given.
                   2632: if test "${with_badpass_message+set}" = set; then
                   2633:   withval="$with_badpass_message"
1.9       millert  2634:   case $with_badpass_message in
1.16      millert  2635:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  2636: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   2637:    { (exit 1); exit 1; }; }
1.1       millert  2638:                ;;
1.17      millert  2639:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
                   2640: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1       millert  2641:                ;;
1.9       millert  2642:     *)         badpass_message="$with_badpass_message"
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 INCORRECT_PASSWORD "$badpass_message"
1.16      millert  2649: _ACEOF
1.1       millert  2650:
1.16      millert  2651: echo "$as_me:$LINENO: result: $badpass_message" >&5
1.9       millert  2652: echo "${ECHO_T}$badpass_message" >&6
                   2653:
1.16      millert  2654: echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
1.9       millert  2655: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1       millert  2656:
                   2657: # Check whether --with-fqdn or --without-fqdn was given.
                   2658: if test "${with_fqdn+set}" = set; then
                   2659:   withval="$with_fqdn"
1.9       millert  2660:   case $with_fqdn in
                   2661:     yes)       fqdn=on
1.1       millert  2662:                ;;
1.9       millert  2663:     no)                fqdn=off
1.1       millert  2664:                ;;
1.16      millert  2665:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  2666: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   2667:    { (exit 1); exit 1; }; }
1.1       millert  2668:                ;;
                   2669: esac
1.9       millert  2670: fi;
                   2671: if test "$fqdn" = "on"; then
1.23      millert  2672:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2673: #define FQDN 1
1.16      millert  2674: _ACEOF
1.9       millert  2675:
1.16      millert  2676:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2677: echo "${ECHO_T}yes" >&6
1.1       millert  2678: else
1.16      millert  2679:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2680: echo "${ECHO_T}no" >&6
1.1       millert  2681: fi
                   2682:
1.16      millert  2683:
1.1       millert  2684: # Check whether --with-timedir or --without-timedir was given.
                   2685: if test "${with_timedir+set}" = set; then
                   2686:   withval="$with_timedir"
1.9       millert  2687:   case $with_timedir in
1.16      millert  2688:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  2689: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   2690:    { (exit 1); exit 1; }; }
1.1       millert  2691:                ;;
1.16      millert  2692:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  2693: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   2694:    { (exit 1); exit 1; }; }
1.1       millert  2695:                ;;
                   2696: esac
1.9       millert  2697: fi;
1.1       millert  2698:
1.16      millert  2699:
1.1       millert  2700: # Check whether --with-sendmail or --without-sendmail was given.
                   2701: if test "${with_sendmail+set}" = set; then
                   2702:   withval="$with_sendmail"
1.9       millert  2703:   case $with_sendmail in
1.1       millert  2704:     yes)       with_sendmail=""
                   2705:                ;;
                   2706:     no)                ;;
1.9       millert  2707:     *)         cat >>confdefs.h <<EOF
                   2708: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  2709: EOF
                   2710:
                   2711:                ;;
                   2712: esac
1.9       millert  2713: fi;
1.1       millert  2714:
1.16      millert  2715:
1.1       millert  2716: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
                   2717: if test "${with_sudoers_mode+set}" = set; then
                   2718:   withval="$with_sudoers_mode"
1.9       millert  2719:   case $with_sudoers_mode in
1.16      millert  2720:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  2721: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   2722:    { (exit 1); exit 1; }; }
                   2723:                ;;
1.16      millert  2724:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  2725: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   2726:    { (exit 1); exit 1; }; }
1.1       millert  2727:                ;;
                   2728:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   2729:                ;;
                   2730:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   2731:                ;;
1.16      millert  2732:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
                   2733: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  2734:    { (exit 1); exit 1; }; }
1.1       millert  2735:                ;;
                   2736: esac
1.9       millert  2737: fi;
1.1       millert  2738:
1.16      millert  2739:
1.1       millert  2740: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
                   2741: if test "${with_sudoers_uid+set}" = set; then
                   2742:   withval="$with_sudoers_uid"
1.9       millert  2743:   case $with_sudoers_uid in
1.16      millert  2744:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  2745: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   2746:    { (exit 1); exit 1; }; }
                   2747:                ;;
1.16      millert  2748:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  2749: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   2750:    { (exit 1); exit 1; }; }
1.1       millert  2751:                ;;
                   2752:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   2753:                ;;
1.16      millert  2754:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
                   2755: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  2756:    { (exit 1); exit 1; }; }
1.1       millert  2757:                ;;
                   2758: esac
1.9       millert  2759: fi;
1.1       millert  2760:
1.16      millert  2761:
1.1       millert  2762: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
                   2763: if test "${with_sudoers_gid+set}" = set; then
                   2764:   withval="$with_sudoers_gid"
1.9       millert  2765:   case $with_sudoers_gid in
1.16      millert  2766:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  2767: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   2768:    { (exit 1); exit 1; }; }
                   2769:                ;;
1.16      millert  2770:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  2771: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   2772:    { (exit 1); exit 1; }; }
1.1       millert  2773:                ;;
                   2774:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   2775:                ;;
1.16      millert  2776:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
                   2777: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  2778:    { (exit 1); exit 1; }; }
1.1       millert  2779:                ;;
                   2780: esac
1.9       millert  2781: fi;
1.1       millert  2782:
1.16      millert  2783: echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
1.9       millert  2784: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1       millert  2785:
                   2786: # Check whether --with-umask or --without-umask was given.
                   2787: if test "${with_umask+set}" = set; then
                   2788:   withval="$with_umask"
1.9       millert  2789:   case $with_umask in
1.16      millert  2790:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  2791: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   2792:    { (exit 1); exit 1; }; }
1.1       millert  2793:                ;;
1.9       millert  2794:     no)                sudo_umask=0777
1.1       millert  2795:                ;;
1.9       millert  2796:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  2797:                ;;
1.16      millert  2798:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  2799: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   2800:    { (exit 1); exit 1; }; }
1.1       millert  2801:                ;;
                   2802: esac
1.9       millert  2803: fi;
                   2804:
1.16      millert  2805: cat >>confdefs.h <<_ACEOF
1.9       millert  2806: #define SUDO_UMASK $sudo_umask
1.16      millert  2807: _ACEOF
1.9       millert  2808:
                   2809: if test "$sudo_umask" = "0777"; then
1.16      millert  2810:     echo "$as_me:$LINENO: result: user" >&5
1.9       millert  2811: echo "${ECHO_T}user" >&6
1.1       millert  2812: else
1.16      millert  2813:     echo "$as_me:$LINENO: result: $sudo_umask" >&5
1.9       millert  2814: echo "${ECHO_T}$sudo_umask" >&6
1.1       millert  2815: fi
                   2816:
1.16      millert  2817: echo "$as_me:$LINENO: checking for default user to run commands as" >&5
1.9       millert  2818: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1       millert  2819:
                   2820: # Check whether --with-runas-default or --without-runas-default was given.
                   2821: if test "${with_runas_default+set}" = set; then
                   2822:   withval="$with_runas_default"
1.9       millert  2823:   case $with_runas_default in
1.16      millert  2824:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  2825: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   2826:    { (exit 1); exit 1; }; }
1.1       millert  2827:                ;;
1.16      millert  2828:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  2829: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   2830:    { (exit 1); exit 1; }; }
1.1       millert  2831:                ;;
1.9       millert  2832:     *)         runas_default="$with_runas_default"
1.1       millert  2833:                ;;
                   2834: esac
1.9       millert  2835: fi;
                   2836:
1.16      millert  2837: cat >>confdefs.h <<_ACEOF
1.9       millert  2838: #define RUNAS_DEFAULT "$runas_default"
1.16      millert  2839: _ACEOF
1.1       millert  2840:
1.16      millert  2841: echo "$as_me:$LINENO: result: $runas_default" >&5
1.9       millert  2842: echo "${ECHO_T}$runas_default" >&6
1.1       millert  2843:
1.16      millert  2844:
1.1       millert  2845: # Check whether --with-exempt or --without-exempt was given.
                   2846: if test "${with_exempt+set}" = set; then
                   2847:   withval="$with_exempt"
1.9       millert  2848:   case $with_exempt in
1.16      millert  2849:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  2850: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   2851:    { (exit 1); exit 1; }; }
                   2852:                ;;
1.16      millert  2853:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  2854: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   2855:    { (exit 1); exit 1; }; }
1.1       millert  2856:                ;;
1.9       millert  2857:     *)
1.16      millert  2858: cat >>confdefs.h <<_ACEOF
1.1       millert  2859: #define EXEMPTGROUP "$with_exempt"
1.16      millert  2860: _ACEOF
1.1       millert  2861:
1.16      millert  2862:                echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
1.9       millert  2863: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.16      millert  2864:                echo "$as_me:$LINENO: result: $with_exempt" >&5
1.9       millert  2865: echo "${ECHO_T}$with_exempt" >&6
1.1       millert  2866:                ;;
                   2867: esac
1.9       millert  2868: fi;
1.1       millert  2869:
1.16      millert  2870: echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
1.9       millert  2871: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1       millert  2872:
                   2873: # Check whether --with-editor or --without-editor was given.
                   2874: if test "${with_editor+set}" = set; then
                   2875:   withval="$with_editor"
1.9       millert  2876:   case $with_editor in
1.16      millert  2877:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  2878: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   2879:    { (exit 1); exit 1; }; }
                   2880:                ;;
1.16      millert  2881:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  2882: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2883:    { (exit 1); exit 1; }; }
1.1       millert  2884:                ;;
1.9       millert  2885:     *)
1.16      millert  2886: cat >>confdefs.h <<_ACEOF
1.1       millert  2887: #define EDITOR "$with_editor"
1.16      millert  2888: _ACEOF
1.1       millert  2889:
1.16      millert  2890:                echo "$as_me:$LINENO: result: $with_editor" >&5
1.9       millert  2891: echo "${ECHO_T}$with_editor" >&6
1.1       millert  2892:                ;;
                   2893: esac
                   2894: else
1.16      millert  2895:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2896: #define EDITOR _PATH_VI
1.16      millert  2897: _ACEOF
                   2898:  echo "$as_me:$LINENO: result: vi" >&5
1.9       millert  2899: echo "${ECHO_T}vi" >&6
                   2900: fi;
1.1       millert  2901:
1.16      millert  2902: echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9       millert  2903: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1       millert  2904:
                   2905: # Check whether --with-env-editor or --without-env-editor was given.
                   2906: if test "${with_env_editor+set}" = set; then
                   2907:   withval="$with_env_editor"
1.9       millert  2908:   case $with_env_editor in
                   2909:     yes)       env_editor=on
1.1       millert  2910:                ;;
1.9       millert  2911:     no)                env_editor=off
1.1       millert  2912:                ;;
1.16      millert  2913:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  2914: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   2915:    { (exit 1); exit 1; }; }
1.1       millert  2916:                ;;
                   2917: esac
1.9       millert  2918: fi;
                   2919: if test "$env_editor" = "on"; then
1.23      millert  2920:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2921: #define ENV_EDITOR 1
1.16      millert  2922: _ACEOF
1.9       millert  2923:
1.16      millert  2924:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  2925: echo "${ECHO_T}yes" >&6
1.1       millert  2926: else
1.16      millert  2927:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  2928: echo "${ECHO_T}no" >&6
1.1       millert  2929: fi
                   2930:
1.16      millert  2931: echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
1.9       millert  2932: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1       millert  2933:
                   2934: # Check whether --with-passwd-tries or --without-passwd-tries was given.
                   2935: if test "${with_passwd_tries+set}" = set; then
                   2936:   withval="$with_passwd_tries"
1.9       millert  2937:   case $with_passwd_tries in
                   2938:     yes)       ;;
1.16      millert  2939:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  2940: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2941:    { (exit 1); exit 1; }; }
1.1       millert  2942:                ;;
1.9       millert  2943:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  2944:                ;;
1.16      millert  2945:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  2946: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   2947:    { (exit 1); exit 1; }; }
1.1       millert  2948:                ;;
                   2949: esac
1.9       millert  2950: fi;
                   2951:
1.16      millert  2952: cat >>confdefs.h <<_ACEOF
1.9       millert  2953: #define TRIES_FOR_PASSWORD $passwd_tries
1.16      millert  2954: _ACEOF
1.1       millert  2955:
1.16      millert  2956: echo "$as_me:$LINENO: result: $passwd_tries" >&5
1.9       millert  2957: echo "${ECHO_T}$passwd_tries" >&6
                   2958:
1.16      millert  2959: echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
1.9       millert  2960: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1       millert  2961:
                   2962: # Check whether --with-timeout or --without-timeout was given.
                   2963: if test "${with_timeout+set}" = set; then
                   2964:   withval="$with_timeout"
1.16      millert  2965:   case $with_timeout in
1.9       millert  2966:     yes)       ;;
                   2967:     no)                timeout=0
1.1       millert  2968:                ;;
1.9       millert  2969:     [0-9]*)    timeout=$with_timeout
1.1       millert  2970:                ;;
1.16      millert  2971:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  2972: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2973:    { (exit 1); exit 1; }; }
1.1       millert  2974:                ;;
                   2975: esac
1.9       millert  2976: fi;
                   2977:
1.16      millert  2978: cat >>confdefs.h <<_ACEOF
1.9       millert  2979: #define TIMEOUT $timeout
1.16      millert  2980: _ACEOF
1.1       millert  2981:
1.16      millert  2982: echo "$as_me:$LINENO: result: $timeout" >&5
1.9       millert  2983: echo "${ECHO_T}$timeout" >&6
                   2984:
1.16      millert  2985: echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
1.9       millert  2986: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1       millert  2987:
                   2988: # Check whether --with-password-timeout or --without-password-timeout was given.
                   2989: if test "${with_password_timeout+set}" = set; then
                   2990:   withval="$with_password_timeout"
1.9       millert  2991:   case $with_password_timeout in
                   2992:     yes)       ;;
                   2993:     no)                password_timeout=0
1.1       millert  2994:                ;;
1.9       millert  2995:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  2996:                ;;
1.16      millert  2997:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  2998: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2999:    { (exit 1); exit 1; }; }
1.1       millert  3000:                ;;
                   3001: esac
1.9       millert  3002: fi;
                   3003:
1.16      millert  3004: cat >>confdefs.h <<_ACEOF
1.9       millert  3005: #define PASSWORD_TIMEOUT $password_timeout
1.16      millert  3006: _ACEOF
1.1       millert  3007:
1.16      millert  3008: echo "$as_me:$LINENO: result: $password_timeout" >&5
1.9       millert  3009: echo "${ECHO_T}$password_timeout" >&6
1.1       millert  3010:
1.16      millert  3011: echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
1.9       millert  3012: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1       millert  3013:
                   3014: # Check whether --with-tty-tickets or --without-tty-tickets was given.
                   3015: if test "${with_tty_tickets+set}" = set; then
                   3016:   withval="$with_tty_tickets"
1.9       millert  3017:   case $with_tty_tickets in
                   3018:     yes)       tty_tickets=on
1.1       millert  3019:                ;;
1.9       millert  3020:     no)                tty_tickets=off
1.1       millert  3021:                ;;
1.16      millert  3022:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  3023: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   3024:    { (exit 1); exit 1; }; }
1.1       millert  3025:                ;;
                   3026: esac
1.9       millert  3027: fi;
                   3028: if test "$tty_tickets" = "on"; then
1.23      millert  3029:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3030: #define USE_TTY_TICKETS 1
1.16      millert  3031: _ACEOF
1.9       millert  3032:
1.16      millert  3033:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3034: echo "${ECHO_T}yes" >&6
1.1       millert  3035: else
1.16      millert  3036:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3037: echo "${ECHO_T}no" >&6
1.1       millert  3038: fi
                   3039:
1.16      millert  3040: echo "$as_me:$LINENO: checking whether to include insults" >&5
1.9       millert  3041: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1       millert  3042:
                   3043: # Check whether --with-insults or --without-insults was given.
                   3044: if test "${with_insults+set}" = set; then
                   3045:   withval="$with_insults"
1.9       millert  3046:   case $with_insults in
                   3047:     yes)       insults=on
1.1       millert  3048:                with_classic_insults=yes
                   3049:                with_csops_insults=yes
                   3050:                ;;
1.9       millert  3051:     no)                insults=off
1.1       millert  3052:                ;;
1.16      millert  3053:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  3054: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   3055:    { (exit 1); exit 1; }; }
1.1       millert  3056:                ;;
                   3057: esac
1.9       millert  3058: fi;
                   3059: if test "$insults" = "on"; then
1.23      millert  3060:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3061: #define USE_INSULTS 1
1.16      millert  3062: _ACEOF
1.9       millert  3063:
1.16      millert  3064:     echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3065: echo "${ECHO_T}yes" >&6
1.1       millert  3066: else
1.16      millert  3067:     echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3068: echo "${ECHO_T}no" >&6
1.1       millert  3069: fi
                   3070:
1.16      millert  3071:
1.1       millert  3072: # Check whether --with-all-insults or --without-all-insults was given.
                   3073: if test "${with_all_insults+set}" = set; then
                   3074:   withval="$with_all_insults"
1.9       millert  3075:   case $with_all_insults in
1.1       millert  3076:     yes)       with_classic_insults=yes
                   3077:                with_csops_insults=yes
                   3078:                with_hal_insults=yes
                   3079:                with_goons_insults=yes
                   3080:                ;;
                   3081:     no)                ;;
1.16      millert  3082:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  3083: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   3084:    { (exit 1); exit 1; }; }
1.1       millert  3085:                ;;
                   3086: esac
1.9       millert  3087: fi;
1.1       millert  3088:
1.16      millert  3089:
1.1       millert  3090: # Check whether --with-classic-insults or --without-classic-insults was given.
                   3091: if test "${with_classic_insults+set}" = set; then
                   3092:   withval="$with_classic_insults"
1.9       millert  3093:   case $with_classic_insults in
1.23      millert  3094:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3095: #define CLASSIC_INSULTS 1
1.16      millert  3096: _ACEOF
1.1       millert  3097:
                   3098:                ;;
                   3099:     no)                ;;
1.16      millert  3100:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  3101: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   3102:    { (exit 1); exit 1; }; }
1.1       millert  3103:                ;;
                   3104: esac
1.9       millert  3105: fi;
1.1       millert  3106:
1.16      millert  3107:
1.1       millert  3108: # Check whether --with-csops-insults or --without-csops-insults was given.
                   3109: if test "${with_csops_insults+set}" = set; then
                   3110:   withval="$with_csops_insults"
1.9       millert  3111:   case $with_csops_insults in
1.23      millert  3112:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3113: #define CSOPS_INSULTS 1
1.16      millert  3114: _ACEOF
1.1       millert  3115:
                   3116:                ;;
                   3117:     no)                ;;
1.16      millert  3118:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  3119: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   3120:    { (exit 1); exit 1; }; }
1.1       millert  3121:                ;;
                   3122: esac
1.9       millert  3123: fi;
1.1       millert  3124:
1.16      millert  3125:
1.1       millert  3126: # Check whether --with-hal-insults or --without-hal-insults was given.
                   3127: if test "${with_hal_insults+set}" = set; then
                   3128:   withval="$with_hal_insults"
1.9       millert  3129:   case $with_hal_insults in
1.23      millert  3130:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3131: #define HAL_INSULTS 1
1.16      millert  3132: _ACEOF
1.1       millert  3133:
                   3134:                ;;
                   3135:     no)                ;;
1.16      millert  3136:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  3137: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
                   3138:    { (exit 1); exit 1; }; }
1.1       millert  3139:                ;;
                   3140: esac
1.9       millert  3141: fi;
1.1       millert  3142:
1.16      millert  3143:
1.1       millert  3144: # Check whether --with-goons-insults or --without-goons-insults was given.
                   3145: if test "${with_goons_insults+set}" = set; then
                   3146:   withval="$with_goons_insults"
1.9       millert  3147:   case $with_goons_insults in
1.23      millert  3148:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3149: #define GOONS_INSULTS 1
1.16      millert  3150: _ACEOF
1.1       millert  3151:
                   3152:                ;;
                   3153:     no)                ;;
1.16      millert  3154:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  3155: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   3156:    { (exit 1); exit 1; }; }
1.1       millert  3157:                ;;
                   3158: esac
1.9       millert  3159: fi;
1.1       millert  3160:
1.23      millert  3161:
                   3162: # Check whether --with-ldap or --without-ldap was given.
                   3163: if test "${with_ldap+set}" = set; then
                   3164:   withval="$with_ldap"
                   3165:   case $with_ldap in
                   3166:     no)                with_ldap="";;
                   3167:     *)         cat >>confdefs.h <<\_ACEOF
                   3168: #define HAVE_LDAP 1
                   3169: _ACEOF
                   3170:
                   3171:                echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
                   3172: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6
                   3173:                echo "$as_me:$LINENO: result: yes" >&5
                   3174: echo "${ECHO_T}yes" >&6
                   3175:                ;;
                   3176: esac
                   3177: fi;
                   3178:
                   3179: # Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
                   3180: if test "${with_ldap_conf_file+set}" = set; then
                   3181:   withval="$with_ldap_conf_file"
                   3182:
                   3183: cat >>confdefs.h <<_ACEOF
                   3184: #define _PATH_LDAP_CONF "$with_ldap_conf_file"
                   3185: _ACEOF
                   3186:
                   3187: fi;
                   3188:
1.25      millert  3189: # Check whether --with-ldap-secret-file or --without-ldap-secret-file was given.
                   3190: if test "${with_ldap_secret_file+set}" = set; then
                   3191:   withval="$with_ldap_secret_file"
                   3192:
                   3193: cat >>confdefs.h <<_ACEOF
                   3194: #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
                   3195: _ACEOF
                   3196:
                   3197: fi;
                   3198:
1.23      millert  3199:
                   3200: # Check whether --with-pc-insults or --without-pc-insults was given.
                   3201: if test "${with_pc_insults+set}" = set; then
                   3202:   withval="$with_pc_insults"
                   3203:   case $with_pc_insults in
                   3204:     yes)       cat >>confdefs.h <<\_ACEOF
                   3205: #define PC_INSULTS 1
                   3206: _ACEOF
                   3207:
                   3208:                ;;
                   3209:     no)                ;;
                   3210:     *)         { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
                   3211: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
                   3212:    { (exit 1); exit 1; }; }
                   3213:                ;;
                   3214: esac
                   3215: fi;
                   3216:
1.9       millert  3217: if test "$insults" = "on"; then
1.16      millert  3218:     echo "$as_me:$LINENO: checking which insult sets to include" >&5
1.9       millert  3219: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1       millert  3220:     i=""
                   3221:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   3222:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   3223:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   3224:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.16      millert  3225:     echo "$as_me:$LINENO: result: $i" >&5
1.9       millert  3226: echo "${ECHO_T}$i" >&6
1.1       millert  3227: fi
                   3228:
1.16      millert  3229: echo "$as_me:$LINENO: checking whether to override the user's path" >&5
1.9       millert  3230: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
                   3231:
1.1       millert  3232: # Check whether --with-secure-path or --without-secure-path was given.
                   3233: if test "${with_secure_path+set}" = set; then
                   3234:   withval="$with_secure_path"
1.9       millert  3235:   case $with_secure_path in
1.23      millert  3236:     yes)       cat >>confdefs.h <<_ACEOF
1.1       millert  3237: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16      millert  3238: _ACEOF
1.1       millert  3239:
1.16      millert  3240:                echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9       millert  3241: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1       millert  3242:                ;;
1.16      millert  3243:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3244: echo "${ECHO_T}no" >&6
1.1       millert  3245:                ;;
1.16      millert  3246:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  3247: #define SECURE_PATH "$with_secure_path"
1.16      millert  3248: _ACEOF
1.1       millert  3249:
1.16      millert  3250:                echo "$as_me:$LINENO: result: $with_secure_path" >&5
1.9       millert  3251: echo "${ECHO_T}$with_secure_path" >&6
1.1       millert  3252:                ;;
                   3253: esac
                   3254: else
1.16      millert  3255:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3256: echo "${ECHO_T}no" >&6
                   3257: fi;
1.1       millert  3258:
1.16      millert  3259: echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
1.9       millert  3260: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1       millert  3261:
                   3262: # Check whether --with-interfaces or --without-interfaces was given.
                   3263: if test "${with_interfaces+set}" = set; then
                   3264:   withval="$with_interfaces"
1.9       millert  3265:   case $with_interfaces in
1.16      millert  3266:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3267: echo "${ECHO_T}yes" >&6
1.1       millert  3268:                ;;
1.23      millert  3269:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3270: #define STUB_LOAD_INTERFACES 1
1.16      millert  3271: _ACEOF
1.1       millert  3272:
1.16      millert  3273:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3274: echo "${ECHO_T}no" >&6
1.1       millert  3275:                ;;
1.16      millert  3276:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  3277: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   3278:    { (exit 1); exit 1; }; }
1.1       millert  3279:                ;;
                   3280: esac
                   3281: else
1.16      millert  3282:   echo "$as_me:$LINENO: result: yes" >&5
                   3283: echo "${ECHO_T}yes" >&6
                   3284: fi;
                   3285:
                   3286: echo "$as_me:$LINENO: checking whether stow should be used" >&5
                   3287: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
                   3288:
                   3289: # Check whether --with-stow or --without-stow was given.
                   3290: if test "${with_stow+set}" = set; then
                   3291:   withval="$with_stow"
                   3292:   case $with_stow in
                   3293:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3294: echo "${ECHO_T}yes" >&6
1.23      millert  3295:                cat >>confdefs.h <<\_ACEOF
1.16      millert  3296: #define USE_STOW 1
                   3297: _ACEOF
                   3298:
                   3299:                ;;
                   3300:     no)                echo "$as_me:$LINENO: result: no" >&5
                   3301: echo "${ECHO_T}no" >&6
                   3302:                ;;
                   3303:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
                   3304: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
                   3305:    { (exit 1); exit 1; }; }
                   3306:                ;;
                   3307: esac
                   3308: else
                   3309:   echo "$as_me:$LINENO: result: no" >&5
                   3310: echo "${ECHO_T}no" >&6
1.9       millert  3311: fi;
1.1       millert  3312:
1.16      millert  3313:
                   3314: echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
1.9       millert  3315: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1       millert  3316: # Check whether --enable-authentication or --disable-authentication was given.
                   3317: if test "${enable_authentication+set}" = set; then
                   3318:   enableval="$enable_authentication"
                   3319:    case "$enableval" in
1.16      millert  3320:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3321: echo "${ECHO_T}yes" >&6
1.1       millert  3322:                ;;
1.16      millert  3323:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3324: echo "${ECHO_T}no" >&6
1.23      millert  3325:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3326: #define NO_AUTHENTICATION 1
1.16      millert  3327: _ACEOF
1.1       millert  3328:
                   3329:                ;;
1.16      millert  3330:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3331: echo "${ECHO_T}no" >&6
1.17      millert  3332:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   3333: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1       millert  3334:                ;;
                   3335:   esac
                   3336:
                   3337: else
1.16      millert  3338:   echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3339: echo "${ECHO_T}yes" >&6
                   3340: fi;
1.1       millert  3341:
1.16      millert  3342: echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
1.12      millert  3343: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
                   3344: # Check whether --enable-root-mailer or --disable-root-mailer was given.
                   3345: if test "${enable_root_mailer+set}" = set; then
                   3346:   enableval="$enable_root_mailer"
                   3347:    case "$enableval" in
1.16      millert  3348:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3349: echo "${ECHO_T}no" >&6
                   3350:                ;;
1.16      millert  3351:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.12      millert  3352: echo "${ECHO_T}yes" >&6
1.23      millert  3353:                cat >>confdefs.h <<\_ACEOF
1.12      millert  3354: #define NO_ROOT_MAILER 1
1.16      millert  3355: _ACEOF
1.12      millert  3356:
                   3357:                ;;
1.16      millert  3358:     *)         echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3359: echo "${ECHO_T}no" >&6
1.17      millert  3360:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   3361: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12      millert  3362:                ;;
                   3363:   esac
                   3364:
                   3365: else
1.16      millert  3366:   echo "$as_me:$LINENO: result: no" >&5
1.12      millert  3367: echo "${ECHO_T}no" >&6
                   3368: fi;
                   3369:
1.13      millert  3370: # Check whether --enable-setreuid or --disable-setreuid was given.
                   3371: if test "${enable_setreuid+set}" = set; then
                   3372:   enableval="$enable_setreuid"
                   3373:    case "$enableval" in
1.16      millert  3374:     no)                SKIP_SETREUID=yes
                   3375:                ;;
                   3376:     *)         ;;
                   3377:   esac
                   3378:
                   3379: fi;
                   3380:
                   3381: # Check whether --enable-setresuid or --disable-setresuid was given.
                   3382: if test "${enable_setresuid+set}" = set; then
                   3383:   enableval="$enable_setresuid"
                   3384:    case "$enableval" in
                   3385:     no)                SKIP_SETRESUID=yes
1.13      millert  3386:                ;;
                   3387:     *)         ;;
                   3388:   esac
                   3389:
                   3390: fi;
                   3391:
1.16      millert  3392: echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
1.9       millert  3393: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1       millert  3394: # Check whether --enable-shadow or --disable-shadow was given.
                   3395: if test "${enable_shadow+set}" = set; then
                   3396:   enableval="$enable_shadow"
                   3397:    case "$enableval" in
1.16      millert  3398:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3399: echo "${ECHO_T}no" >&6
1.1       millert  3400:                ;;
1.16      millert  3401:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3402: echo "${ECHO_T}yes" >&6
1.1       millert  3403:                CHECKSHADOW="false"
                   3404:                ;;
1.16      millert  3405:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3406: echo "${ECHO_T}no" >&6
1.17      millert  3407:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   3408: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1       millert  3409:                ;;
                   3410:   esac
                   3411:
                   3412: else
1.16      millert  3413:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3414: echo "${ECHO_T}no" >&6
                   3415: fi;
1.1       millert  3416:
1.16      millert  3417: echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
1.9       millert  3418: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1       millert  3419: # Check whether --enable-root-sudo or --disable-root-sudo was given.
                   3420: if test "${enable_root_sudo+set}" = set; then
                   3421:   enableval="$enable_root_sudo"
1.9       millert  3422:    case "$enableval" in
1.16      millert  3423:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3424: echo "${ECHO_T}yes" >&6
1.1       millert  3425:                ;;
1.23      millert  3426:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3427: #define NO_ROOT_SUDO 1
1.16      millert  3428: _ACEOF
1.1       millert  3429:
1.16      millert  3430:                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3431: echo "${ECHO_T}no" >&6
1.23      millert  3432:                root_sudo=off
1.1       millert  3433:                ;;
1.16      millert  3434:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9       millert  3435: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   3436:    { (exit 1); exit 1; }; }
1.1       millert  3437:                ;;
                   3438:   esac
                   3439:
                   3440: else
1.16      millert  3441:   echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3442: echo "${ECHO_T}yes" >&6
                   3443: fi;
1.1       millert  3444:
1.16      millert  3445: echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
1.9       millert  3446: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1       millert  3447: # Check whether --enable-log-host or --disable-log-host was given.
                   3448: if test "${enable_log_host+set}" = set; then
                   3449:   enableval="$enable_log_host"
                   3450:    case "$enableval" in
1.16      millert  3451:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3452: echo "${ECHO_T}yes" >&6
1.23      millert  3453:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3454: #define HOST_IN_LOG 1
1.16      millert  3455: _ACEOF
1.1       millert  3456:
                   3457:                ;;
1.16      millert  3458:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3459: echo "${ECHO_T}no" >&6
1.1       millert  3460:                ;;
1.16      millert  3461:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3462: echo "${ECHO_T}no" >&6
1.17      millert  3463:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   3464: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1       millert  3465:                ;;
                   3466:   esac
                   3467:
                   3468: else
1.16      millert  3469:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3470: echo "${ECHO_T}no" >&6
                   3471: fi;
1.1       millert  3472:
1.16      millert  3473: echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9       millert  3474: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1       millert  3475: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
                   3476: if test "${enable_noargs_shell+set}" = set; then
                   3477:   enableval="$enable_noargs_shell"
                   3478:    case "$enableval" in
1.16      millert  3479:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3480: echo "${ECHO_T}yes" >&6
1.23      millert  3481:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3482: #define SHELL_IF_NO_ARGS 1
1.16      millert  3483: _ACEOF
1.1       millert  3484:
                   3485:                ;;
1.16      millert  3486:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3487: echo "${ECHO_T}no" >&6
1.1       millert  3488:                ;;
1.16      millert  3489:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3490: echo "${ECHO_T}no" >&6
1.17      millert  3491:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   3492: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1       millert  3493:                ;;
                   3494:   esac
                   3495:
                   3496: else
1.16      millert  3497:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3498: echo "${ECHO_T}no" >&6
                   3499: fi;
1.1       millert  3500:
1.16      millert  3501: echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
1.9       millert  3502: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1       millert  3503: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
                   3504: if test "${enable_shell_sets_home+set}" = set; then
                   3505:   enableval="$enable_shell_sets_home"
                   3506:    case "$enableval" in
1.16      millert  3507:     yes)       echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3508: echo "${ECHO_T}yes" >&6
1.23      millert  3509:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3510: #define SHELL_SETS_HOME 1
1.16      millert  3511: _ACEOF
1.1       millert  3512:
                   3513:                ;;
1.16      millert  3514:     no)                echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3515: echo "${ECHO_T}no" >&6
1.1       millert  3516:                ;;
1.16      millert  3517:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3518: echo "${ECHO_T}no" >&6
1.17      millert  3519:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   3520: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1       millert  3521:                ;;
                   3522:   esac
                   3523:
                   3524: else
1.16      millert  3525:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3526: echo "${ECHO_T}no" >&6
                   3527: fi;
1.1       millert  3528:
1.16      millert  3529: echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
1.9       millert  3530: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1       millert  3531: # Check whether --enable-path_info or --disable-path_info was given.
                   3532: if test "${enable_path_info+set}" = set; then
                   3533:   enableval="$enable_path_info"
                   3534:    case "$enableval" in
1.16      millert  3535:     yes)       echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3536: echo "${ECHO_T}no" >&6
1.1       millert  3537:                ;;
1.16      millert  3538:     no)                echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  3539: echo "${ECHO_T}yes" >&6
1.23      millert  3540:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3541: #define DONT_LEAK_PATH_INFO 1
1.16      millert  3542: _ACEOF
1.1       millert  3543:
1.25      millert  3544:                path_info=off
1.1       millert  3545:                ;;
1.16      millert  3546:     *)         echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3547: echo "${ECHO_T}no" >&6
1.17      millert  3548:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   3549: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1       millert  3550:                ;;
                   3551:   esac
                   3552:
                   3553: else
1.16      millert  3554:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3555: echo "${ECHO_T}no" >&6
                   3556: fi;
1.1       millert  3557:
                   3558: # Extract the first word of "egrep", so it can be a program name with args.
                   3559: set dummy egrep; ac_word=$2
1.16      millert  3560: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3561: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3562: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   3563:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3564: else
                   3565:   if test -n "$EGREPPROG"; then
                   3566:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   3567: else
1.16      millert  3568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3569: for as_dir in $PATH
                   3570: do
                   3571:   IFS=$as_save_IFS
                   3572:   test -z "$as_dir" && as_dir=.
                   3573:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3574:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3575:     ac_cv_prog_EGREPPROG="egrep"
                   3576:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3577:     break 2
                   3578:   fi
                   3579: done
1.9       millert  3580: done
                   3581:
1.1       millert  3582: fi
                   3583: fi
1.9       millert  3584: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  3585: if test -n "$EGREPPROG"; then
1.16      millert  3586:   echo "$as_me:$LINENO: result: $EGREPPROG" >&5
1.9       millert  3587: echo "${ECHO_T}$EGREPPROG" >&6
1.1       millert  3588: else
1.16      millert  3589:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3590: echo "${ECHO_T}no" >&6
1.1       millert  3591: fi
                   3592:
                   3593: if test -z "$EGREPPROG"; then
1.17      millert  3594:     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
                   3595: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
                   3596:    { (exit 1); exit 1; }; }
1.1       millert  3597: fi
                   3598:
1.9       millert  3599: if test "$with_devel" != "yes"; then
                   3600:     ac_cv_prog_cc_g=no
                   3601: fi
                   3602:
                   3603: ac_ext=c
                   3604: ac_cpp='$CPP $CPPFLAGS'
                   3605: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3606: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3607: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3608: if test -n "$ac_tool_prefix"; then
                   3609:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3610: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.16      millert  3611: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3612: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3613: if test "${ac_cv_prog_CC+set}" = set; then
                   3614:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3615: else
                   3616:   if test -n "$CC"; then
                   3617:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3618: else
1.16      millert  3619: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3620: for as_dir in $PATH
                   3621: do
                   3622:   IFS=$as_save_IFS
                   3623:   test -z "$as_dir" && as_dir=.
                   3624:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3625:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3626:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   3627:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3628:     break 2
                   3629:   fi
                   3630: done
1.9       millert  3631: done
                   3632:
1.1       millert  3633: fi
                   3634: fi
1.9       millert  3635: CC=$ac_cv_prog_CC
1.1       millert  3636: if test -n "$CC"; then
1.16      millert  3637:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3638: echo "${ECHO_T}$CC" >&6
1.1       millert  3639: else
1.16      millert  3640:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3641: echo "${ECHO_T}no" >&6
                   3642: fi
                   3643:
                   3644: fi
                   3645: if test -z "$ac_cv_prog_CC"; then
                   3646:   ac_ct_CC=$CC
                   3647:   # Extract the first word of "gcc", so it can be a program name with args.
                   3648: set dummy gcc; ac_word=$2
1.16      millert  3649: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3650: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3651: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3652:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3653: else
                   3654:   if test -n "$ac_ct_CC"; then
                   3655:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3656: else
1.16      millert  3657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3658: for as_dir in $PATH
                   3659: do
                   3660:   IFS=$as_save_IFS
                   3661:   test -z "$as_dir" && as_dir=.
                   3662:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3663:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3664:     ac_cv_prog_ac_ct_CC="gcc"
                   3665:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3666:     break 2
                   3667:   fi
                   3668: done
1.9       millert  3669: done
                   3670:
                   3671: fi
                   3672: fi
                   3673: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3674: if test -n "$ac_ct_CC"; then
1.16      millert  3675:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3676: echo "${ECHO_T}$ac_ct_CC" >&6
                   3677: else
1.16      millert  3678:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3679: echo "${ECHO_T}no" >&6
                   3680: fi
                   3681:
                   3682:   CC=$ac_ct_CC
                   3683: else
                   3684:   CC="$ac_cv_prog_CC"
1.1       millert  3685: fi
                   3686:
                   3687: if test -z "$CC"; then
1.9       millert  3688:   if test -n "$ac_tool_prefix"; then
                   3689:   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   3690: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.16      millert  3691: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3692: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3693: if test "${ac_cv_prog_CC+set}" = set; then
                   3694:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3695: else
                   3696:   if test -n "$CC"; then
                   3697:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3698: else
1.16      millert  3699: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3700: for as_dir in $PATH
                   3701: do
                   3702:   IFS=$as_save_IFS
                   3703:   test -z "$as_dir" && as_dir=.
                   3704:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3705:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3706:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   3707:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3708:     break 2
                   3709:   fi
                   3710: done
1.9       millert  3711: done
                   3712:
                   3713: fi
                   3714: fi
                   3715: CC=$ac_cv_prog_CC
                   3716: if test -n "$CC"; then
1.16      millert  3717:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3718: echo "${ECHO_T}$CC" >&6
                   3719: else
1.16      millert  3720:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3721: echo "${ECHO_T}no" >&6
                   3722: fi
                   3723:
                   3724: fi
                   3725: if test -z "$ac_cv_prog_CC"; then
                   3726:   ac_ct_CC=$CC
1.1       millert  3727:   # Extract the first word of "cc", so it can be a program name with args.
                   3728: set dummy cc; ac_word=$2
1.16      millert  3729: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3730: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3731: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3732:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3733: else
                   3734:   if test -n "$ac_ct_CC"; then
                   3735:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3736: else
1.16      millert  3737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3738: for as_dir in $PATH
                   3739: do
                   3740:   IFS=$as_save_IFS
                   3741:   test -z "$as_dir" && as_dir=.
                   3742:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3743:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3744:     ac_cv_prog_ac_ct_CC="cc"
                   3745:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3746:     break 2
                   3747:   fi
                   3748: done
1.9       millert  3749: done
                   3750:
                   3751: fi
                   3752: fi
                   3753: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3754: if test -n "$ac_ct_CC"; then
1.16      millert  3755:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3756: echo "${ECHO_T}$ac_ct_CC" >&6
                   3757: else
1.16      millert  3758:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3759: echo "${ECHO_T}no" >&6
                   3760: fi
                   3761:
                   3762:   CC=$ac_ct_CC
                   3763: else
                   3764:   CC="$ac_cv_prog_CC"
                   3765: fi
                   3766:
                   3767: fi
                   3768: if test -z "$CC"; then
                   3769:   # Extract the first word of "cc", so it can be a program name with args.
                   3770: set dummy cc; ac_word=$2
1.16      millert  3771: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3772: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3773: if test "${ac_cv_prog_CC+set}" = set; then
                   3774:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3775: else
                   3776:   if test -n "$CC"; then
                   3777:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3778: else
                   3779:   ac_prog_rejected=no
1.16      millert  3780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3781: for as_dir in $PATH
                   3782: do
                   3783:   IFS=$as_save_IFS
                   3784:   test -z "$as_dir" && as_dir=.
                   3785:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3786:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3787:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   3788:        ac_prog_rejected=yes
                   3789:        continue
                   3790:      fi
                   3791:     ac_cv_prog_CC="cc"
                   3792:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3793:     break 2
                   3794:   fi
                   3795: done
1.9       millert  3796: done
                   3797:
1.1       millert  3798: if test $ac_prog_rejected = yes; then
                   3799:   # We found a bogon in the path, so make sure we never use it.
                   3800:   set dummy $ac_cv_prog_CC
                   3801:   shift
1.9       millert  3802:   if test $# != 0; then
1.1       millert  3803:     # We chose a different compiler from the bogus one.
                   3804:     # However, it has the same basename, so the bogon will be chosen
                   3805:     # first if we set CC to just the basename; use the full file name.
                   3806:     shift
1.16      millert  3807:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       millert  3808:   fi
                   3809: fi
                   3810: fi
                   3811: fi
1.9       millert  3812: CC=$ac_cv_prog_CC
1.1       millert  3813: if test -n "$CC"; then
1.16      millert  3814:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3815: echo "${ECHO_T}$CC" >&6
                   3816: else
1.16      millert  3817:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3818: echo "${ECHO_T}no" >&6
                   3819: fi
                   3820:
                   3821: fi
                   3822: if test -z "$CC"; then
                   3823:   if test -n "$ac_tool_prefix"; then
                   3824:   for ac_prog in cl
                   3825:   do
                   3826:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3827: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.16      millert  3828: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3829: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3830: if test "${ac_cv_prog_CC+set}" = set; then
                   3831:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3832: else
                   3833:   if test -n "$CC"; then
                   3834:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3835: else
1.16      millert  3836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3837: for as_dir in $PATH
                   3838: do
                   3839:   IFS=$as_save_IFS
                   3840:   test -z "$as_dir" && as_dir=.
                   3841:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3842:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3843:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3844:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3845:     break 2
                   3846:   fi
                   3847: done
1.9       millert  3848: done
                   3849:
                   3850: fi
                   3851: fi
                   3852: CC=$ac_cv_prog_CC
                   3853: if test -n "$CC"; then
1.16      millert  3854:   echo "$as_me:$LINENO: result: $CC" >&5
1.9       millert  3855: echo "${ECHO_T}$CC" >&6
                   3856: else
1.16      millert  3857:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3858: echo "${ECHO_T}no" >&6
                   3859: fi
                   3860:
                   3861:     test -n "$CC" && break
                   3862:   done
                   3863: fi
                   3864: if test -z "$CC"; then
                   3865:   ac_ct_CC=$CC
                   3866:   for ac_prog in cl
                   3867: do
                   3868:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3869: set dummy $ac_prog; ac_word=$2
1.16      millert  3870: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9       millert  3871: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3872: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3873:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3874: else
                   3875:   if test -n "$ac_ct_CC"; then
                   3876:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3877: else
1.16      millert  3878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3879: for as_dir in $PATH
                   3880: do
                   3881:   IFS=$as_save_IFS
                   3882:   test -z "$as_dir" && as_dir=.
                   3883:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3884:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3885:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3886:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3887:     break 2
                   3888:   fi
                   3889: done
1.9       millert  3890: done
                   3891:
                   3892: fi
                   3893: fi
                   3894: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3895: if test -n "$ac_ct_CC"; then
1.16      millert  3896:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9       millert  3897: echo "${ECHO_T}$ac_ct_CC" >&6
1.1       millert  3898: else
1.16      millert  3899:   echo "$as_me:$LINENO: result: no" >&5
1.9       millert  3900: echo "${ECHO_T}no" >&6
                   3901: fi
                   3902:
                   3903:   test -n "$ac_ct_CC" && break
                   3904: done
                   3905:
                   3906:   CC=$ac_ct_CC
1.1       millert  3907: fi
                   3908:
                   3909: fi
                   3910:
1.16      millert  3911:
                   3912: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   3913: See \`config.log' for more details." >&5
                   3914: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   3915: See \`config.log' for more details." >&2;}
1.9       millert  3916:    { (exit 1); exit 1; }; }
                   3917:
                   3918: # Provide some information about the compiler.
1.16      millert  3919: echo "$as_me:$LINENO:" \
1.9       millert  3920:      "checking for C compiler version" >&5
                   3921: ac_compiler=`set X $ac_compile; echo $2`
1.16      millert  3922: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9       millert  3923:   (eval $ac_compiler --version </dev/null >&5) 2>&5
                   3924:   ac_status=$?
1.16      millert  3925:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3926:   (exit $ac_status); }
1.16      millert  3927: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9       millert  3928:   (eval $ac_compiler -v </dev/null >&5) 2>&5
                   3929:   ac_status=$?
1.16      millert  3930:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3931:   (exit $ac_status); }
1.16      millert  3932: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9       millert  3933:   (eval $ac_compiler -V </dev/null >&5) 2>&5
                   3934:   ac_status=$?
1.16      millert  3935:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3936:   (exit $ac_status); }
                   3937:
                   3938: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  3939: /* confdefs.h.  */
                   3940: _ACEOF
                   3941: cat confdefs.h >>conftest.$ac_ext
                   3942: cat >>conftest.$ac_ext <<_ACEOF
                   3943: /* end confdefs.h.  */
1.9       millert  3944:
                   3945: int
                   3946: main ()
                   3947: {
1.1       millert  3948:
1.9       millert  3949:   ;
                   3950:   return 0;
                   3951: }
                   3952: _ACEOF
                   3953: ac_clean_files_save=$ac_clean_files
1.16      millert  3954: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  3955: # Try to create an executable without -o first, disregard a.out.
                   3956: # It will help us diagnose broken compilers, and finding out an intuition
                   3957: # of exeext.
1.25      millert  3958: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   3959: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.9       millert  3960: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.16      millert  3961: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.9       millert  3962:   (eval $ac_link_default) 2>&5
                   3963:   ac_status=$?
1.16      millert  3964:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  3965:   (exit $ac_status); }; then
                   3966:   # Find the output, starting from the most likely.  This scheme is
                   3967: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
                   3968: # resort.
1.16      millert  3969:
                   3970: # Be careful to initialize this variable, since it used to be cached.
                   3971: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
                   3972: ac_cv_exeext=
                   3973: # b.out is created by i960 compilers.
                   3974: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
                   3975: do
                   3976:   test -f "$ac_file" || continue
1.9       millert  3977:   case $ac_file in
1.16      millert  3978:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25      millert  3979:        ;;
1.16      millert  3980:     conftest.$ac_ext )
1.25      millert  3981:        # This is the source file.
                   3982:        ;;
1.16      millert  3983:     [ab].out )
1.25      millert  3984:        # We found the default executable, but exeext='' is most
                   3985:        # certainly right.
                   3986:        break;;
1.16      millert  3987:     *.* )
1.25      millert  3988:        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3989:        # FIXME: I believe we export ac_cv_exeext for Libtool,
                   3990:        # but it would be cool to find out if it's true.  Does anybody
                   3991:        # maintain Libtool? --akim.
                   3992:        export ac_cv_exeext
                   3993:        break;;
1.16      millert  3994:     * )
1.25      millert  3995:        break;;
1.9       millert  3996:   esac
                   3997: done
                   3998: else
                   3999:   echo "$as_me: failed program was:" >&5
1.16      millert  4000: sed 's/^/| /' conftest.$ac_ext >&5
                   4001:
                   4002: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   4003: See \`config.log' for more details." >&5
                   4004: echo "$as_me: error: C compiler cannot create executables
                   4005: See \`config.log' for more details." >&2;}
1.9       millert  4006:    { (exit 77); exit 77; }; }
                   4007: fi
                   4008:
                   4009: ac_exeext=$ac_cv_exeext
1.16      millert  4010: echo "$as_me:$LINENO: result: $ac_file" >&5
1.9       millert  4011: echo "${ECHO_T}$ac_file" >&6
                   4012:
                   4013: # Check the compiler produces executables we can run.  If not, either
                   4014: # the compiler is broken, or we cross compile.
1.16      millert  4015: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.9       millert  4016: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
                   4017: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   4018: # If not cross compiling, check that we can run a simple program.
                   4019: if test "$cross_compiling" != yes; then
                   4020:   if { ac_try='./$ac_file'
1.16      millert  4021:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4022:   (eval $ac_try) 2>&5
                   4023:   ac_status=$?
1.16      millert  4024:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4025:   (exit $ac_status); }; }; then
                   4026:     cross_compiling=no
1.1       millert  4027:   else
1.9       millert  4028:     if test "$cross_compiling" = maybe; then
                   4029:        cross_compiling=yes
                   4030:     else
1.16      millert  4031:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   4032: If you meant to cross compile, use \`--host'.
                   4033: See \`config.log' for more details." >&5
1.9       millert  4034: echo "$as_me: error: cannot run C compiled programs.
1.16      millert  4035: If you meant to cross compile, use \`--host'.
                   4036: See \`config.log' for more details." >&2;}
1.9       millert  4037:    { (exit 1); exit 1; }; }
                   4038:     fi
1.1       millert  4039:   fi
1.9       millert  4040: fi
1.16      millert  4041: echo "$as_me:$LINENO: result: yes" >&5
1.9       millert  4042: echo "${ECHO_T}yes" >&6
                   4043:
1.16      millert  4044: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  4045: ac_clean_files=$ac_clean_files_save
                   4046: # Check the compiler produces executables we can run.  If not, either
                   4047: # the compiler is broken, or we cross compile.
1.16      millert  4048: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.9       millert  4049: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.16      millert  4050: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.9       millert  4051: echo "${ECHO_T}$cross_compiling" >&6
                   4052:
1.16      millert  4053: echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   4054: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
                   4055: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  4056:   (eval $ac_link) 2>&5
                   4057:   ac_status=$?
1.16      millert  4058:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4059:   (exit $ac_status); }; then
                   4060:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4061: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4062: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4063: # `rm'.
1.16      millert  4064: for ac_file in conftest.exe conftest conftest.*; do
                   4065:   test -f "$ac_file" || continue
1.9       millert  4066:   case $ac_file in
1.16      millert  4067:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.9       millert  4068:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25      millert  4069:          export ac_cv_exeext
                   4070:          break;;
1.9       millert  4071:     * ) break;;
                   4072:   esac
                   4073: done
1.1       millert  4074: else
1.16      millert  4075:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   4076: See \`config.log' for more details." >&5
                   4077: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   4078: See \`config.log' for more details." >&2;}
1.9       millert  4079:    { (exit 1); exit 1; }; }
1.1       millert  4080: fi
                   4081:
1.9       millert  4082: rm -f conftest$ac_cv_exeext
1.16      millert  4083: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.9       millert  4084: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1       millert  4085:
1.9       millert  4086: rm -f conftest.$ac_ext
                   4087: EXEEXT=$ac_cv_exeext
                   4088: ac_exeext=$EXEEXT
1.16      millert  4089: echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   4090: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.9       millert  4091: if test "${ac_cv_objext+set}" = set; then
                   4092:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4093: else
1.9       millert  4094:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4095: /* confdefs.h.  */
                   4096: _ACEOF
                   4097: cat confdefs.h >>conftest.$ac_ext
                   4098: cat >>conftest.$ac_ext <<_ACEOF
                   4099: /* end confdefs.h.  */
1.9       millert  4100:
                   4101: int
                   4102: main ()
                   4103: {
                   4104:
                   4105:   ;
                   4106:   return 0;
                   4107: }
                   4108: _ACEOF
                   4109: rm -f conftest.o conftest.obj
1.16      millert  4110: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9       millert  4111:   (eval $ac_compile) 2>&5
                   4112:   ac_status=$?
1.16      millert  4113:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4114:   (exit $ac_status); }; then
                   4115:   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
                   4116:   case $ac_file in
1.16      millert  4117:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.9       millert  4118:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4119:        break;;
                   4120:   esac
                   4121: done
1.1       millert  4122: else
1.9       millert  4123:   echo "$as_me: failed program was:" >&5
1.16      millert  4124: sed 's/^/| /' conftest.$ac_ext >&5
                   4125:
                   4126: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   4127: See \`config.log' for more details." >&5
                   4128: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   4129: See \`config.log' for more details." >&2;}
1.9       millert  4130:    { (exit 1); exit 1; }; }
1.1       millert  4131: fi
1.9       millert  4132:
                   4133: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  4134: fi
1.16      millert  4135: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.9       millert  4136: echo "${ECHO_T}$ac_cv_objext" >&6
                   4137: OBJEXT=$ac_cv_objext
                   4138: ac_objext=$OBJEXT
1.16      millert  4139: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9       millert  4140: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
                   4141: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   4142:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4143: else
                   4144:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4145: /* confdefs.h.  */
                   4146: _ACEOF
                   4147: cat confdefs.h >>conftest.$ac_ext
                   4148: cat >>conftest.$ac_ext <<_ACEOF
                   4149: /* end confdefs.h.  */
1.1       millert  4150:
1.9       millert  4151: int
                   4152: main ()
                   4153: {
                   4154: #ifndef __GNUC__
                   4155:        choke me
                   4156: #endif
1.1       millert  4157:
1.9       millert  4158:   ;
                   4159:   return 0;
                   4160: }
                   4161: _ACEOF
                   4162: rm -f conftest.$ac_objext
1.16      millert  4163: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4164:   (eval $ac_compile) 2>conftest.er1
1.9       millert  4165:   ac_status=$?
1.25      millert  4166:   grep -v '^ *+' conftest.er1 >conftest.err
                   4167:   rm -f conftest.er1
                   4168:   cat conftest.err >&5
1.16      millert  4169:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4170:   (exit $ac_status); } &&
1.25      millert  4171:         { ac_try='test -z "$ac_c_werror_flag"
                   4172:                         || test ! -s conftest.err'
                   4173:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4174:   (eval $ac_try) 2>&5
                   4175:   ac_status=$?
                   4176:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4177:   (exit $ac_status); }; } &&
                   4178:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4179:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4180:   (eval $ac_try) 2>&5
                   4181:   ac_status=$?
1.16      millert  4182:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4183:   (exit $ac_status); }; }; then
                   4184:   ac_compiler_gnu=yes
                   4185: else
                   4186:   echo "$as_me: failed program was:" >&5
1.16      millert  4187: sed 's/^/| /' conftest.$ac_ext >&5
                   4188:
1.9       millert  4189: ac_compiler_gnu=no
                   4190: fi
1.25      millert  4191: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4192: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4193:
                   4194: fi
1.16      millert  4195: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9       millert  4196: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
                   4197: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   4198: ac_test_CFLAGS=${CFLAGS+set}
                   4199: ac_save_CFLAGS=$CFLAGS
                   4200: CFLAGS="-g"
1.16      millert  4201: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.9       millert  4202: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
                   4203: if test "${ac_cv_prog_cc_g+set}" = set; then
                   4204:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4205: else
1.9       millert  4206:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4207: /* confdefs.h.  */
                   4208: _ACEOF
                   4209: cat confdefs.h >>conftest.$ac_ext
                   4210: cat >>conftest.$ac_ext <<_ACEOF
                   4211: /* end confdefs.h.  */
1.9       millert  4212:
                   4213: int
                   4214: main ()
                   4215: {
                   4216:
                   4217:   ;
                   4218:   return 0;
                   4219: }
                   4220: _ACEOF
                   4221: rm -f conftest.$ac_objext
1.16      millert  4222: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4223:   (eval $ac_compile) 2>conftest.er1
1.9       millert  4224:   ac_status=$?
1.25      millert  4225:   grep -v '^ *+' conftest.er1 >conftest.err
                   4226:   rm -f conftest.er1
                   4227:   cat conftest.err >&5
1.16      millert  4228:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4229:   (exit $ac_status); } &&
1.25      millert  4230:         { ac_try='test -z "$ac_c_werror_flag"
                   4231:                         || test ! -s conftest.err'
                   4232:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4233:   (eval $ac_try) 2>&5
                   4234:   ac_status=$?
                   4235:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4236:   (exit $ac_status); }; } &&
                   4237:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4238:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4239:   (eval $ac_try) 2>&5
                   4240:   ac_status=$?
1.16      millert  4241:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4242:   (exit $ac_status); }; }; then
1.1       millert  4243:   ac_cv_prog_cc_g=yes
                   4244: else
1.9       millert  4245:   echo "$as_me: failed program was:" >&5
1.16      millert  4246: sed 's/^/| /' conftest.$ac_ext >&5
                   4247:
1.9       millert  4248: ac_cv_prog_cc_g=no
                   4249: fi
1.25      millert  4250: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4251: fi
1.16      millert  4252: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.9       millert  4253: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
                   4254: if test "$ac_test_CFLAGS" = set; then
                   4255:   CFLAGS=$ac_save_CFLAGS
                   4256: elif test $ac_cv_prog_cc_g = yes; then
                   4257:   if test "$GCC" = yes; then
                   4258:     CFLAGS="-g -O2"
                   4259:   else
                   4260:     CFLAGS="-g"
                   4261:   fi
                   4262: else
                   4263:   if test "$GCC" = yes; then
                   4264:     CFLAGS="-O2"
                   4265:   else
                   4266:     CFLAGS=
                   4267:   fi
                   4268: fi
1.16      millert  4269: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
                   4270: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
                   4271: if test "${ac_cv_prog_cc_stdc+set}" = set; then
                   4272:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4273: else
                   4274:   ac_cv_prog_cc_stdc=no
                   4275: ac_save_CC=$CC
1.9       millert  4276: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4277: /* confdefs.h.  */
1.9       millert  4278: _ACEOF
1.16      millert  4279: cat confdefs.h >>conftest.$ac_ext
                   4280: cat >>conftest.$ac_ext <<_ACEOF
                   4281: /* end confdefs.h.  */
                   4282: #include <stdarg.h>
                   4283: #include <stdio.h>
                   4284: #include <sys/types.h>
                   4285: #include <sys/stat.h>
                   4286: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4287: struct buf { int x; };
                   4288: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4289: static char *e (p, i)
                   4290:      char **p;
                   4291:      int i;
1.9       millert  4292: {
1.16      millert  4293:   return p[i];
1.9       millert  4294: }
1.16      millert  4295: static char *f (char * (*g) (char **, int), char **p, ...)
                   4296: {
                   4297:   char *s;
                   4298:   va_list v;
                   4299:   va_start (v,p);
                   4300:   s = g (p, va_arg (v,int));
                   4301:   va_end (v);
                   4302:   return s;
                   4303: }
1.25      millert  4304:
                   4305: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4306:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4307:    These don't provoke an error unfortunately, instead are silently treated
                   4308:    as 'x'.  The following induces an error, until -std1 is added to get
                   4309:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4310:    array size at least.  It's necessary to write '\x00'==0 to get something
                   4311:    that's true only with -std1.  */
                   4312: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4313:
1.16      millert  4314: int test (int i, double x);
                   4315: struct s1 {int (*f) (int a);};
                   4316: struct s2 {int (*f) (double a);};
                   4317: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4318: int argc;
                   4319: char **argv;
                   4320: int
                   4321: main ()
                   4322: {
                   4323: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4324:   ;
                   4325:   return 0;
                   4326: }
                   4327: _ACEOF
                   4328: # Don't try gcc -ansi; that turns off useful extensions and
                   4329: # breaks some systems' header files.
                   4330: # AIX                  -qlanglvl=ansi
                   4331: # Ultrix and OSF/1     -std1
                   4332: # HP-UX 10.20 and later        -Ae
                   4333: # HP-UX older versions -Aa -D_HPUX_SOURCE
                   4334: # SVR4                 -Xc -D__EXTENSIONS__
                   4335: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   4336: do
                   4337:   CC="$ac_save_CC $ac_arg"
                   4338:   rm -f conftest.$ac_objext
                   4339: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4340:   (eval $ac_compile) 2>conftest.er1
1.16      millert  4341:   ac_status=$?
1.25      millert  4342:   grep -v '^ *+' conftest.er1 >conftest.err
                   4343:   rm -f conftest.er1
                   4344:   cat conftest.err >&5
1.16      millert  4345:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4346:   (exit $ac_status); } &&
1.25      millert  4347:         { ac_try='test -z "$ac_c_werror_flag"
                   4348:                         || test ! -s conftest.err'
                   4349:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4350:   (eval $ac_try) 2>&5
                   4351:   ac_status=$?
                   4352:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4353:   (exit $ac_status); }; } &&
                   4354:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4355:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4356:   (eval $ac_try) 2>&5
                   4357:   ac_status=$?
                   4358:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4359:   (exit $ac_status); }; }; then
                   4360:   ac_cv_prog_cc_stdc=$ac_arg
                   4361: break
                   4362: else
                   4363:   echo "$as_me: failed program was:" >&5
                   4364: sed 's/^/| /' conftest.$ac_ext >&5
                   4365:
                   4366: fi
1.25      millert  4367: rm -f conftest.err conftest.$ac_objext
1.16      millert  4368: done
                   4369: rm -f conftest.$ac_ext conftest.$ac_objext
                   4370: CC=$ac_save_CC
                   4371:
                   4372: fi
                   4373:
                   4374: case "x$ac_cv_prog_cc_stdc" in
                   4375:   x|xno)
                   4376:     echo "$as_me:$LINENO: result: none needed" >&5
                   4377: echo "${ECHO_T}none needed" >&6 ;;
                   4378:   *)
                   4379:     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
                   4380: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
                   4381:     CC="$CC $ac_cv_prog_cc_stdc" ;;
                   4382: esac
                   4383:
                   4384: # Some people use a C++ compiler to compile C.  Since we use `exit',
                   4385: # in C++ we need to declare it.  In case someone uses the same compiler
                   4386: # for both compiling C and C++ we need to have the C++ compiler decide
                   4387: # the declaration of exit, since it's the most demanding environment.
                   4388: cat >conftest.$ac_ext <<_ACEOF
                   4389: #ifndef __cplusplus
                   4390:   choke me
                   4391: #endif
1.9       millert  4392: _ACEOF
                   4393: rm -f conftest.$ac_objext
1.16      millert  4394: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4395:   (eval $ac_compile) 2>conftest.er1
1.9       millert  4396:   ac_status=$?
1.25      millert  4397:   grep -v '^ *+' conftest.er1 >conftest.err
                   4398:   rm -f conftest.er1
                   4399:   cat conftest.err >&5
1.16      millert  4400:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4401:   (exit $ac_status); } &&
1.25      millert  4402:         { ac_try='test -z "$ac_c_werror_flag"
                   4403:                         || test ! -s conftest.err'
                   4404:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4405:   (eval $ac_try) 2>&5
                   4406:   ac_status=$?
                   4407:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4408:   (exit $ac_status); }; } &&
                   4409:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4410:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4411:   (eval $ac_try) 2>&5
                   4412:   ac_status=$?
1.16      millert  4413:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4414:   (exit $ac_status); }; }; then
                   4415:   for ac_declaration in \
1.25      millert  4416:    '' \
1.16      millert  4417:    'extern "C" void std::exit (int) throw (); using std::exit;' \
                   4418:    'extern "C" void std::exit (int); using std::exit;' \
                   4419:    'extern "C" void exit (int) throw ();' \
                   4420:    'extern "C" void exit (int);' \
                   4421:    'void exit (int);'
                   4422: do
                   4423:   cat >conftest.$ac_ext <<_ACEOF
                   4424: /* confdefs.h.  */
                   4425: _ACEOF
                   4426: cat confdefs.h >>conftest.$ac_ext
                   4427: cat >>conftest.$ac_ext <<_ACEOF
                   4428: /* end confdefs.h.  */
1.25      millert  4429: $ac_declaration
1.16      millert  4430: #include <stdlib.h>
                   4431: int
                   4432: main ()
                   4433: {
                   4434: exit (42);
                   4435:   ;
                   4436:   return 0;
                   4437: }
                   4438: _ACEOF
                   4439: rm -f conftest.$ac_objext
                   4440: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4441:   (eval $ac_compile) 2>conftest.er1
1.16      millert  4442:   ac_status=$?
1.25      millert  4443:   grep -v '^ *+' conftest.er1 >conftest.err
                   4444:   rm -f conftest.er1
                   4445:   cat conftest.err >&5
1.16      millert  4446:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4447:   (exit $ac_status); } &&
1.25      millert  4448:         { ac_try='test -z "$ac_c_werror_flag"
                   4449:                         || test ! -s conftest.err'
                   4450:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4451:   (eval $ac_try) 2>&5
                   4452:   ac_status=$?
                   4453:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4454:   (exit $ac_status); }; } &&
                   4455:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4456:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4457:   (eval $ac_try) 2>&5
                   4458:   ac_status=$?
                   4459:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4460:   (exit $ac_status); }; }; then
                   4461:   :
                   4462: else
                   4463:   echo "$as_me: failed program was:" >&5
1.16      millert  4464: sed 's/^/| /' conftest.$ac_ext >&5
                   4465:
1.9       millert  4466: continue
                   4467: fi
1.25      millert  4468: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4469:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4470: /* confdefs.h.  */
                   4471: _ACEOF
                   4472: cat confdefs.h >>conftest.$ac_ext
                   4473: cat >>conftest.$ac_ext <<_ACEOF
                   4474: /* end confdefs.h.  */
1.9       millert  4475: $ac_declaration
                   4476: int
                   4477: main ()
                   4478: {
                   4479: exit (42);
                   4480:   ;
                   4481:   return 0;
                   4482: }
                   4483: _ACEOF
                   4484: rm -f conftest.$ac_objext
1.16      millert  4485: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  4486:   (eval $ac_compile) 2>conftest.er1
1.9       millert  4487:   ac_status=$?
1.25      millert  4488:   grep -v '^ *+' conftest.er1 >conftest.err
                   4489:   rm -f conftest.er1
                   4490:   cat conftest.err >&5
1.16      millert  4491:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4492:   (exit $ac_status); } &&
1.25      millert  4493:         { ac_try='test -z "$ac_c_werror_flag"
                   4494:                         || test ! -s conftest.err'
                   4495:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4496:   (eval $ac_try) 2>&5
                   4497:   ac_status=$?
                   4498:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4499:   (exit $ac_status); }; } &&
                   4500:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  4501:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4502:   (eval $ac_try) 2>&5
                   4503:   ac_status=$?
1.16      millert  4504:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4505:   (exit $ac_status); }; }; then
                   4506:   break
                   4507: else
                   4508:   echo "$as_me: failed program was:" >&5
1.16      millert  4509: sed 's/^/| /' conftest.$ac_ext >&5
                   4510:
1.1       millert  4511: fi
1.25      millert  4512: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4513: done
1.1       millert  4514: rm -f conftest*
1.9       millert  4515: if test -n "$ac_declaration"; then
                   4516:   echo '#ifdef __cplusplus' >>confdefs.h
                   4517:   echo $ac_declaration      >>confdefs.h
                   4518:   echo '#endif'             >>confdefs.h
                   4519: fi
1.1       millert  4520:
1.9       millert  4521: else
                   4522:   echo "$as_me: failed program was:" >&5
1.16      millert  4523: sed 's/^/| /' conftest.$ac_ext >&5
                   4524:
1.1       millert  4525: fi
1.25      millert  4526: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4527: ac_ext=c
                   4528: ac_cpp='$CPP $CPPFLAGS'
                   4529: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4530: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4531: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  4532:
1.9       millert  4533:
1.16      millert  4534: echo "$as_me:$LINENO: checking for library containing strerror" >&5
                   4535: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
                   4536: if test "${ac_cv_search_strerror+set}" = set; then
1.9       millert  4537:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4538: else
1.16      millert  4539:   ac_func_search_save_LIBS=$LIBS
                   4540: ac_cv_search_strerror=no
1.9       millert  4541: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4542: /* confdefs.h.  */
                   4543: _ACEOF
                   4544: cat confdefs.h >>conftest.$ac_ext
                   4545: cat >>conftest.$ac_ext <<_ACEOF
                   4546: /* end confdefs.h.  */
                   4547:
                   4548: /* Override any gcc2 internal prototype to avoid an error.  */
                   4549: #ifdef __cplusplus
                   4550: extern "C"
                   4551: #endif
                   4552: /* We use char because int might match the return type of a gcc2
                   4553:    builtin and then its argument prototype would still apply.  */
                   4554: char strerror ();
                   4555: int
                   4556: main ()
1.9       millert  4557: {
1.16      millert  4558: strerror ();
                   4559:   ;
                   4560:   return 0;
1.9       millert  4561: }
1.16      millert  4562: _ACEOF
                   4563: rm -f conftest.$ac_objext conftest$ac_exeext
                   4564: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  4565:   (eval $ac_link) 2>conftest.er1
1.16      millert  4566:   ac_status=$?
1.25      millert  4567:   grep -v '^ *+' conftest.er1 >conftest.err
                   4568:   rm -f conftest.er1
                   4569:   cat conftest.err >&5
1.16      millert  4570:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4571:   (exit $ac_status); } &&
1.25      millert  4572:         { ac_try='test -z "$ac_c_werror_flag"
                   4573:                         || test ! -s conftest.err'
                   4574:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4575:   (eval $ac_try) 2>&5
                   4576:   ac_status=$?
                   4577:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4578:   (exit $ac_status); }; } &&
                   4579:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  4580:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4581:   (eval $ac_try) 2>&5
                   4582:   ac_status=$?
                   4583:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4584:   (exit $ac_status); }; }; then
                   4585:   ac_cv_search_strerror="none required"
                   4586: else
                   4587:   echo "$as_me: failed program was:" >&5
                   4588: sed 's/^/| /' conftest.$ac_ext >&5
                   4589:
                   4590: fi
1.25      millert  4591: rm -f conftest.err conftest.$ac_objext \
                   4592:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  4593: if test "$ac_cv_search_strerror" = no; then
                   4594:   for ac_lib in cposix; do
                   4595:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   4596:     cat >conftest.$ac_ext <<_ACEOF
                   4597: /* confdefs.h.  */
                   4598: _ACEOF
                   4599: cat confdefs.h >>conftest.$ac_ext
                   4600: cat >>conftest.$ac_ext <<_ACEOF
                   4601: /* end confdefs.h.  */
                   4602:
                   4603: /* Override any gcc2 internal prototype to avoid an error.  */
                   4604: #ifdef __cplusplus
                   4605: extern "C"
                   4606: #endif
                   4607: /* We use char because int might match the return type of a gcc2
                   4608:    builtin and then its argument prototype would still apply.  */
                   4609: char strerror ();
1.9       millert  4610: int
                   4611: main ()
                   4612: {
1.16      millert  4613: strerror ();
1.9       millert  4614:   ;
                   4615:   return 0;
                   4616: }
                   4617: _ACEOF
1.16      millert  4618: rm -f conftest.$ac_objext conftest$ac_exeext
                   4619: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  4620:   (eval $ac_link) 2>conftest.er1
1.9       millert  4621:   ac_status=$?
1.25      millert  4622:   grep -v '^ *+' conftest.er1 >conftest.err
                   4623:   rm -f conftest.er1
                   4624:   cat conftest.err >&5
1.16      millert  4625:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4626:   (exit $ac_status); } &&
1.25      millert  4627:         { ac_try='test -z "$ac_c_werror_flag"
                   4628:                         || test ! -s conftest.err'
                   4629:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4630:   (eval $ac_try) 2>&5
                   4631:   ac_status=$?
                   4632:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4633:   (exit $ac_status); }; } &&
                   4634:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  4635:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  4636:   (eval $ac_try) 2>&5
                   4637:   ac_status=$?
1.16      millert  4638:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4639:   (exit $ac_status); }; }; then
1.16      millert  4640:   ac_cv_search_strerror="-l$ac_lib"
1.9       millert  4641: break
                   4642: else
                   4643:   echo "$as_me: failed program was:" >&5
1.16      millert  4644: sed 's/^/| /' conftest.$ac_ext >&5
                   4645:
                   4646: fi
1.25      millert  4647: rm -f conftest.err conftest.$ac_objext \
                   4648:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  4649:   done
                   4650: fi
                   4651: LIBS=$ac_func_search_save_LIBS
1.9       millert  4652: fi
1.16      millert  4653: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
                   4654: echo "${ECHO_T}$ac_cv_search_strerror" >&6
                   4655: if test "$ac_cv_search_strerror" != no; then
                   4656:   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.9       millert  4657:
                   4658: fi
                   4659:
                   4660: ac_ext=c
                   4661: ac_cpp='$CPP $CPPFLAGS'
                   4662: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4663: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4664: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16      millert  4665: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9       millert  4666: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1       millert  4667: # On Suns, sometimes $CPP names a directory.
                   4668: if test -n "$CPP" && test -d "$CPP"; then
                   4669:   CPP=
                   4670: fi
                   4671: if test -z "$CPP"; then
1.9       millert  4672:   if test "${ac_cv_prog_CPP+set}" = set; then
                   4673:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4674: else
1.9       millert  4675:       # Double quotes because CPP needs to be expanded
                   4676:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4677:     do
                   4678:       ac_preproc_ok=false
                   4679: for ac_c_preproc_warn_flag in '' yes
                   4680: do
                   4681:   # Use a header file that comes with gcc, so configuring glibc
                   4682:   # with a fresh cross-compiler works.
1.16      millert  4683:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4684:   # <limits.h> exists even on freestanding compilers.
1.1       millert  4685:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  4686:   # not just through cpp. "Syntax error" is here to catch this case.
                   4687:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4688: /* confdefs.h.  */
                   4689: _ACEOF
                   4690: cat confdefs.h >>conftest.$ac_ext
                   4691: cat >>conftest.$ac_ext <<_ACEOF
                   4692: /* end confdefs.h.  */
                   4693: #ifdef __STDC__
                   4694: # include <limits.h>
                   4695: #else
                   4696: # include <assert.h>
                   4697: #endif
1.25      millert  4698:                     Syntax error
1.9       millert  4699: _ACEOF
1.16      millert  4700: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4701:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4702:   ac_status=$?
1.16      millert  4703:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4704:   rm -f conftest.er1
                   4705:   cat conftest.err >&5
1.16      millert  4706:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4707:   (exit $ac_status); } >/dev/null; then
                   4708:   if test -s conftest.err; then
                   4709:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  4710:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9       millert  4711:   else
                   4712:     ac_cpp_err=
                   4713:   fi
                   4714: else
                   4715:   ac_cpp_err=yes
                   4716: fi
                   4717: if test -z "$ac_cpp_err"; then
1.1       millert  4718:   :
                   4719: else
1.9       millert  4720:   echo "$as_me: failed program was:" >&5
1.16      millert  4721: sed 's/^/| /' conftest.$ac_ext >&5
                   4722:
1.9       millert  4723:   # Broken: fails on valid input.
                   4724: continue
                   4725: fi
                   4726: rm -f conftest.err conftest.$ac_ext
                   4727:
                   4728:   # OK, works on sane cases.  Now check whether non-existent headers
                   4729:   # can be detected and how.
                   4730:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4731: /* confdefs.h.  */
                   4732: _ACEOF
                   4733: cat confdefs.h >>conftest.$ac_ext
                   4734: cat >>conftest.$ac_ext <<_ACEOF
                   4735: /* end confdefs.h.  */
1.9       millert  4736: #include <ac_nonexistent.h>
                   4737: _ACEOF
1.16      millert  4738: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4739:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4740:   ac_status=$?
1.16      millert  4741:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4742:   rm -f conftest.er1
                   4743:   cat conftest.err >&5
1.16      millert  4744:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4745:   (exit $ac_status); } >/dev/null; then
                   4746:   if test -s conftest.err; then
                   4747:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  4748:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9       millert  4749:   else
                   4750:     ac_cpp_err=
                   4751:   fi
                   4752: else
                   4753:   ac_cpp_err=yes
                   4754: fi
                   4755: if test -z "$ac_cpp_err"; then
                   4756:   # Broken: success on invalid input.
                   4757: continue
                   4758: else
                   4759:   echo "$as_me: failed program was:" >&5
1.16      millert  4760: sed 's/^/| /' conftest.$ac_ext >&5
                   4761:
1.9       millert  4762:   # Passes both tests.
                   4763: ac_preproc_ok=:
                   4764: break
                   4765: fi
                   4766: rm -f conftest.err conftest.$ac_ext
                   4767:
                   4768: done
                   4769: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4770: rm -f conftest.err conftest.$ac_ext
                   4771: if $ac_preproc_ok; then
                   4772:   break
                   4773: fi
                   4774:
                   4775:     done
                   4776:     ac_cv_prog_CPP=$CPP
                   4777:
                   4778: fi
                   4779:   CPP=$ac_cv_prog_CPP
                   4780: else
                   4781:   ac_cv_prog_CPP=$CPP
                   4782: fi
1.16      millert  4783: echo "$as_me:$LINENO: result: $CPP" >&5
1.9       millert  4784: echo "${ECHO_T}$CPP" >&6
                   4785: ac_preproc_ok=false
                   4786: for ac_c_preproc_warn_flag in '' yes
                   4787: do
                   4788:   # Use a header file that comes with gcc, so configuring glibc
                   4789:   # with a fresh cross-compiler works.
1.16      millert  4790:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4791:   # <limits.h> exists even on freestanding compilers.
1.9       millert  4792:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4793:   # not just through cpp. "Syntax error" is here to catch this case.
                   4794:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4795: /* confdefs.h.  */
                   4796: _ACEOF
                   4797: cat confdefs.h >>conftest.$ac_ext
                   4798: cat >>conftest.$ac_ext <<_ACEOF
                   4799: /* end confdefs.h.  */
                   4800: #ifdef __STDC__
                   4801: # include <limits.h>
                   4802: #else
                   4803: # include <assert.h>
                   4804: #endif
1.25      millert  4805:                     Syntax error
1.9       millert  4806: _ACEOF
1.16      millert  4807: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4808:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4809:   ac_status=$?
1.16      millert  4810:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4811:   rm -f conftest.er1
                   4812:   cat conftest.err >&5
1.16      millert  4813:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4814:   (exit $ac_status); } >/dev/null; then
                   4815:   if test -s conftest.err; then
                   4816:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  4817:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9       millert  4818:   else
                   4819:     ac_cpp_err=
                   4820:   fi
                   4821: else
                   4822:   ac_cpp_err=yes
                   4823: fi
                   4824: if test -z "$ac_cpp_err"; then
1.1       millert  4825:   :
                   4826: else
1.9       millert  4827:   echo "$as_me: failed program was:" >&5
1.16      millert  4828: sed 's/^/| /' conftest.$ac_ext >&5
                   4829:
1.9       millert  4830:   # Broken: fails on valid input.
                   4831: continue
1.1       millert  4832: fi
1.9       millert  4833: rm -f conftest.err conftest.$ac_ext
                   4834:
                   4835:   # OK, works on sane cases.  Now check whether non-existent headers
                   4836:   # can be detected and how.
                   4837:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4838: /* confdefs.h.  */
                   4839: _ACEOF
                   4840: cat confdefs.h >>conftest.$ac_ext
                   4841: cat >>conftest.$ac_ext <<_ACEOF
                   4842: /* end confdefs.h.  */
1.9       millert  4843: #include <ac_nonexistent.h>
                   4844: _ACEOF
1.16      millert  4845: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  4846:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4847:   ac_status=$?
1.16      millert  4848:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  4849:   rm -f conftest.er1
                   4850:   cat conftest.err >&5
1.16      millert  4851:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4852:   (exit $ac_status); } >/dev/null; then
                   4853:   if test -s conftest.err; then
                   4854:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  4855:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9       millert  4856:   else
                   4857:     ac_cpp_err=
                   4858:   fi
                   4859: else
                   4860:   ac_cpp_err=yes
1.1       millert  4861: fi
1.9       millert  4862: if test -z "$ac_cpp_err"; then
                   4863:   # Broken: success on invalid input.
                   4864: continue
1.1       millert  4865: else
1.9       millert  4866:   echo "$as_me: failed program was:" >&5
1.16      millert  4867: sed 's/^/| /' conftest.$ac_ext >&5
                   4868:
1.9       millert  4869:   # Passes both tests.
                   4870: ac_preproc_ok=:
                   4871: break
1.1       millert  4872: fi
1.9       millert  4873: rm -f conftest.err conftest.$ac_ext
1.1       millert  4874:
1.9       millert  4875: done
                   4876: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4877: rm -f conftest.err conftest.$ac_ext
                   4878: if $ac_preproc_ok; then
                   4879:   :
1.1       millert  4880: else
1.16      millert  4881:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   4882: See \`config.log' for more details." >&5
                   4883: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   4884: See \`config.log' for more details." >&2;}
1.9       millert  4885:    { (exit 1); exit 1; }; }
1.1       millert  4886: fi
                   4887:
1.9       millert  4888: ac_ext=c
                   4889: ac_cpp='$CPP $CPPFLAGS'
                   4890: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4891: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4892: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  4893:
1.16      millert  4894:
1.23      millert  4895: ac_aux_dir=
                   4896: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                   4897:   if test -f $ac_dir/install-sh; then
                   4898:     ac_aux_dir=$ac_dir
                   4899:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   4900:     break
                   4901:   elif test -f $ac_dir/install.sh; then
                   4902:     ac_aux_dir=$ac_dir
                   4903:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   4904:     break
                   4905:   elif test -f $ac_dir/shtool; then
                   4906:     ac_aux_dir=$ac_dir
                   4907:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   4908:     break
                   4909:   fi
                   4910: done
                   4911: if test -z "$ac_aux_dir"; then
                   4912:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
                   4913: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
                   4914:    { (exit 1); exit 1; }; }
1.1       millert  4915: fi
1.23      millert  4916: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
                   4917: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
                   4918: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
                   4919:
                   4920: # Make sure we can run config.sub.
                   4921: $ac_config_sub sun4 >/dev/null 2>&1 ||
                   4922:   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
                   4923: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
                   4924:    { (exit 1); exit 1; }; }
1.1       millert  4925:
1.23      millert  4926: echo "$as_me:$LINENO: checking build system type" >&5
                   4927: echo $ECHO_N "checking build system type... $ECHO_C" >&6
                   4928: if test "${ac_cv_build+set}" = set; then
1.9       millert  4929:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4930: else
1.23      millert  4931:   ac_cv_build_alias=$build_alias
                   4932: test -z "$ac_cv_build_alias" &&
                   4933:   ac_cv_build_alias=`$ac_config_guess`
                   4934: test -z "$ac_cv_build_alias" &&
                   4935:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   4936: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   4937:    { (exit 1); exit 1; }; }
                   4938: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
                   4939:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
                   4940: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
                   4941:    { (exit 1); exit 1; }; }
1.9       millert  4942:
1.1       millert  4943: fi
1.23      millert  4944: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   4945: echo "${ECHO_T}$ac_cv_build" >&6
                   4946: build=$ac_cv_build
                   4947: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4948: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4949: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   4950:
                   4951:
                   4952: echo "$as_me:$LINENO: checking host system type" >&5
                   4953: echo $ECHO_N "checking host system type... $ECHO_C" >&6
                   4954: if test "${ac_cv_host+set}" = set; then
                   4955:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4956: else
1.23      millert  4957:   ac_cv_host_alias=$host_alias
                   4958: test -z "$ac_cv_host_alias" &&
                   4959:   ac_cv_host_alias=$ac_cv_build_alias
                   4960: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
                   4961:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
                   4962: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
                   4963:    { (exit 1); exit 1; }; }
                   4964:
1.1       millert  4965: fi
1.23      millert  4966: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   4967: echo "${ECHO_T}$ac_cv_host" >&6
                   4968: host=$ac_cv_host
                   4969: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4970: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4971: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1       millert  4972:
1.23      millert  4973:
                   4974: echo "$as_me:$LINENO: checking target system type" >&5
                   4975: echo $ECHO_N "checking target system type... $ECHO_C" >&6
                   4976: if test "${ac_cv_target+set}" = set; then
                   4977:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4978: else
                   4979:   ac_cv_target_alias=$target_alias
                   4980: test "x$ac_cv_target_alias" = "x" &&
                   4981:   ac_cv_target_alias=$ac_cv_host_alias
                   4982: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
                   4983:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
                   4984: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
                   4985:    { (exit 1); exit 1; }; }
                   4986:
                   4987: fi
                   4988: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
                   4989: echo "${ECHO_T}$ac_cv_target" >&6
                   4990: target=$ac_cv_target
                   4991: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4992: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4993: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   4994:
                   4995:
                   4996: # The aliases save the names the user supplied, while $host etc.
                   4997: # will get canonicalized.
                   4998: test -n "$target_alias" &&
                   4999:   test "$program_prefix$program_suffix$program_transform_name" = \
                   5000:     NONENONEs,x,x, &&
                   5001:   program_prefix=${target_alias}-
                   5002:
                   5003:
                   5004:
1.25      millert  5005: macro_version='1.9f'
                   5006: macro_revision='1.1667.2.43'
                   5007:
                   5008:
                   5009:
                   5010:
                   5011:
                   5012:
                   5013:
                   5014:
                   5015:
                   5016:
                   5017:
                   5018:
                   5019: ltmain="$ac_aux_dir/ltmain.sh"
1.23      millert  5020:
                   5021: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
                   5022: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
                   5023: if test "${lt_cv_path_SED+set}" = set; then
                   5024:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5025: else
                   5026:   # Loop through the user's path and test for sed and gsed.
                   5027: # Then use that list of sed's as ones to test for truncation.
                   5028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5029: for as_dir in $PATH
                   5030: do
                   5031:   IFS=$as_save_IFS
                   5032:   test -z "$as_dir" && as_dir=.
                   5033:   for lt_ac_prog in sed gsed; do
                   5034:     for ac_exec_ext in '' $ac_executable_extensions; do
                   5035:       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
                   5036:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   5037:       fi
                   5038:     done
                   5039:   done
                   5040: done
                   5041: lt_ac_max=0
                   5042: lt_ac_count=0
                   5043: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   5044: # along with /bin/sed that truncates output.
                   5045: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
                   5046:   test ! -f $lt_ac_sed && break
                   5047:   cat /dev/null > conftest.in
                   5048:   lt_ac_count=0
1.25      millert  5049:   $ECHO $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23      millert  5050:   # Check for GNU sed and select it if it is found.
                   5051:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   5052:     lt_cv_path_SED=$lt_ac_sed
                   5053:     break
                   5054:   fi
                   5055:   while true; do
                   5056:     cat conftest.in conftest.in >conftest.tmp
                   5057:     mv conftest.tmp conftest.in
                   5058:     cp conftest.in conftest.nl
1.25      millert  5059:     $ECHO >>conftest.nl
1.23      millert  5060:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   5061:     cmp -s conftest.out conftest.nl || break
                   5062:     # 10000 chars as input seems more than enough
                   5063:     test $lt_ac_count -gt 10 && break
                   5064:     lt_ac_count=`expr $lt_ac_count + 1`
                   5065:     if test $lt_ac_count -gt $lt_ac_max; then
                   5066:       lt_ac_max=$lt_ac_count
                   5067:       lt_cv_path_SED=$lt_ac_sed
                   5068:     fi
                   5069:   done
                   5070: done
                   5071:
                   5072: fi
                   5073:
1.25      millert  5074: SED=$lt_cv_path_SED
                   5075:
1.23      millert  5076: echo "$as_me:$LINENO: result: $SED" >&5
                   5077: echo "${ECHO_T}$SED" >&6
                   5078:
1.25      millert  5079: test -z "$SED" && SED=sed
                   5080:
                   5081:
                   5082:
                   5083:
                   5084:
                   5085:
                   5086:
                   5087:
                   5088:
                   5089:
                   5090:
1.23      millert  5091: echo "$as_me:$LINENO: checking for egrep" >&5
                   5092: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
                   5093: if test "${ac_cv_prog_egrep+set}" = set; then
                   5094:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5095: else
                   5096:   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
                   5097:     then ac_cv_prog_egrep='grep -E'
                   5098:     else ac_cv_prog_egrep='egrep'
                   5099:     fi
                   5100: fi
                   5101: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
                   5102: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
                   5103:  EGREP=$ac_cv_prog_egrep
                   5104:
                   5105:
1.25      millert  5106: echo "$as_me:$LINENO: checking for fgrep" >&5
                   5107: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
                   5108: if test "${ac_cv_prog_fgrep+set}" = set; then
                   5109:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5110: else
                   5111:   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
                   5112:     then ac_cv_prog_fgrep='grep -F'
                   5113:     else ac_cv_prog_fgrep='fgrep'
                   5114:     fi
                   5115: fi
                   5116: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
                   5117: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
                   5118:  FGREP=$ac_cv_prog_fgrep
                   5119:
                   5120:
                   5121: test -z "$GREP" && GREP=grep
                   5122:
                   5123:
                   5124:
                   5125:
                   5126:
                   5127:
                   5128:
                   5129:
                   5130:
                   5131:
                   5132:
                   5133:
                   5134:
                   5135:
                   5136:
                   5137:
                   5138:
                   5139:
1.23      millert  5140:
                   5141: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   5142: if test "${with_gnu_ld+set}" = set; then
                   5143:   withval="$with_gnu_ld"
                   5144:   test "$withval" = no || with_gnu_ld=yes
                   5145: else
                   5146:   with_gnu_ld=no
                   5147: fi;
                   5148: ac_prog=ld
                   5149: if test "$GCC" = yes; then
                   5150:   # Check if gcc -print-prog-name=ld gives a path.
                   5151:   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
                   5152: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
                   5153:   case $host in
                   5154:   *-*-mingw*)
                   5155:     # gcc leaves a trailing carriage return which upsets mingw
                   5156:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5157:   *)
                   5158:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5159:   esac
                   5160:   case $ac_prog in
                   5161:     # Accept absolute paths.
                   5162:     [\\/]* | ?:[\\/]*)
                   5163:       re_direlt='/[^/][^/]*/\.\./'
1.25      millert  5164:       # Canonicalize the pathname of ld
                   5165:       ac_prog=`$ECHO $ac_prog| $SED 's%\\\\%/%g'`
                   5166:       while $ECHO $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
                   5167:        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.23      millert  5168:       done
                   5169:       test -z "$LD" && LD="$ac_prog"
                   5170:       ;;
                   5171:   "")
                   5172:     # If it fails, then pretend we aren't using GCC.
                   5173:     ac_prog=ld
                   5174:     ;;
                   5175:   *)
                   5176:     # If it is relative, then search for the first ld in PATH.
                   5177:     with_gnu_ld=unknown
                   5178:     ;;
                   5179:   esac
                   5180: elif test "$with_gnu_ld" = yes; then
                   5181:   echo "$as_me:$LINENO: checking for GNU ld" >&5
                   5182: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
                   5183: else
                   5184:   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   5185: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
                   5186: fi
                   5187: if test "${lt_cv_path_LD+set}" = set; then
                   5188:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5189: else
                   5190:   if test -z "$LD"; then
                   5191:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5192:   for ac_dir in $PATH; do
                   5193:     IFS="$lt_save_ifs"
                   5194:     test -z "$ac_dir" && ac_dir=.
                   5195:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5196:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5197:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   5198:       # but apparently some GNU ld's only accept -v.
                   5199:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5200:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5201:       *GNU* | *'with BFD'*)
                   5202:        test "$with_gnu_ld" != no && break
                   5203:        ;;
                   5204:       *)
                   5205:        test "$with_gnu_ld" != yes && break
                   5206:        ;;
                   5207:       esac
                   5208:     fi
                   5209:   done
                   5210:   IFS="$lt_save_ifs"
                   5211: else
                   5212:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5213: fi
                   5214: fi
                   5215:
                   5216: LD="$lt_cv_path_LD"
                   5217: if test -n "$LD"; then
                   5218:   echo "$as_me:$LINENO: result: $LD" >&5
                   5219: echo "${ECHO_T}$LD" >&6
                   5220: else
                   5221:   echo "$as_me:$LINENO: result: no" >&5
                   5222: echo "${ECHO_T}no" >&6
                   5223: fi
                   5224: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   5225: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   5226:    { (exit 1); exit 1; }; }
                   5227: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   5228: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
                   5229: if test "${lt_cv_prog_gnu_ld+set}" = set; then
                   5230:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5231: else
                   5232:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1.25      millert  5233: case `$LD -v 2>&1 </dev/null` in
1.23      millert  5234: *GNU* | *'with BFD'*)
                   5235:   lt_cv_prog_gnu_ld=yes
                   5236:   ;;
                   5237: *)
                   5238:   lt_cv_prog_gnu_ld=no
                   5239:   ;;
                   5240: esac
                   5241: fi
                   5242: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
                   5243: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
                   5244: with_gnu_ld=$lt_cv_prog_gnu_ld
                   5245:
                   5246:
1.25      millert  5247:
                   5248:
                   5249:
                   5250:
                   5251:
                   5252:
1.23      millert  5253:
                   5254: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   5255: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
                   5256: if test "${lt_cv_path_NM+set}" = set; then
                   5257:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5258: else
                   5259:   if test -n "$NM"; then
                   5260:   # Let the user override the test.
                   5261:   lt_cv_path_NM="$NM"
                   5262: else
                   5263:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5264:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
                   5265:     IFS="$lt_save_ifs"
                   5266:     test -z "$ac_dir" && ac_dir=.
                   5267:     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
                   5268:     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   5269:       # Check to see if the nm accepts a BSD-compat flag.
                   5270:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   5271:       #   nm: unknown option "B" ignored
                   5272:       # Tru64's nm complains that /dev/null is an invalid object file
                   5273:       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   5274:       */dev/null* | *'Invalid file or object type'*)
                   5275:        lt_cv_path_NM="$tmp_nm -B"
                   5276:        break
                   5277:         ;;
                   5278:       *)
                   5279:        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   5280:        */dev/null*)
                   5281:          lt_cv_path_NM="$tmp_nm -p"
                   5282:          break
                   5283:          ;;
                   5284:        *)
                   5285:          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   5286:          continue # so that we can try to find one that supports BSD flags
                   5287:          ;;
                   5288:        esac
                   5289:       esac
                   5290:     fi
                   5291:   done
                   5292:   IFS="$lt_save_ifs"
                   5293:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   5294: fi
                   5295: fi
                   5296: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
                   5297: echo "${ECHO_T}$lt_cv_path_NM" >&6
                   5298: NM="$lt_cv_path_NM"
1.25      millert  5299: test -z "$NM" && NM=nm
                   5300:
                   5301:
                   5302:
                   5303:
                   5304:
1.23      millert  5305:
                   5306: echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   5307: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
                   5308: LN_S=$as_ln_s
                   5309: if test "$LN_S" = "ln -s"; then
                   5310:   echo "$as_me:$LINENO: result: yes" >&5
                   5311: echo "${ECHO_T}yes" >&6
                   5312: else
                   5313:   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   5314: echo "${ECHO_T}no, using $LN_S" >&6
                   5315: fi
                   5316:
1.25      millert  5317: # find the maximum length of command line arguments
                   5318: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
                   5319: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
                   5320: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
                   5321:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5322: else
                   5323:     i=0
                   5324:   teststring="ABCD"
                   5325:
                   5326:   case $build_os in
                   5327:   msdosdjgpp*)
                   5328:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   5329:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   5330:     # during glob expansion).  Even if it were fixed, the result of this
                   5331:     # check would be larger than it should be.
                   5332:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   5333:     ;;
                   5334:
                   5335:   gnu*)
                   5336:     # Under GNU Hurd, this test is not required because there is
                   5337:     # no limit to the length of command line arguments.
                   5338:     # Libtool will interpret -1 as no limit whatsoever
                   5339:     lt_cv_sys_max_cmd_len=-1;
                   5340:     ;;
                   5341:
                   5342:   cygwin* | mingw*)
                   5343:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   5344:     # about 5 minutes as the teststring grows exponentially.
                   5345:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   5346:     # you end up with a "frozen" computer, even though with patience
                   5347:     # the test eventually succeeds (with a max line length of 256k).
                   5348:     # Instead, let's just punt: use the minimum linelength reported by
                   5349:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   5350:     lt_cv_sys_max_cmd_len=8192;
                   5351:     ;;
                   5352:
                   5353:   amigaos*)
                   5354:     # On AmigaOS with pdksh, this test takes hours, literally.
                   5355:     # So we just punt and use a minimum line length of 8192.
                   5356:     lt_cv_sys_max_cmd_len=8192;
                   5357:     ;;
                   5358:
                   5359:   netbsd* | freebsd* | openbsd* | darwin* )
                   5360:     # This has been around since 386BSD, at least.  Likely further.
                   5361:     if test -x /sbin/sysctl; then
                   5362:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   5363:     elif test -x /usr/sbin/sysctl; then
                   5364:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   5365:     else
                   5366:       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
                   5367:     fi
                   5368:     # And add a safety zone
                   5369:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   5370:     ;;
                   5371:  *)
                   5372:     # Make teststring a little bigger before we do anything with it.
                   5373:     # a 1K string should be a reasonable start.
                   5374:     for i in 1 2 3 4 5 6 7 8 ; do
                   5375:       teststring=$teststring$teststring
                   5376:     done
                   5377:     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   5378:     # If test is not a shell built-in, we'll probably end up computing a
                   5379:     # maximum length that is only half of the actual maximum length, but
                   5380:     # we can't tell.
                   5381:     while (test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
                   5382:               = "XX$teststring$teststring") >/dev/null 2>&1 &&
                   5383:            test $i != 17 # 1/2 MB should be enough
                   5384:     do
                   5385:       i=`expr $i + 1`
                   5386:       teststring=$teststring$teststring
                   5387:     done
                   5388:     # Only check the string length outside the loop.
                   5389:     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
                   5390:     teststring=
                   5391:     # Add a significant safety factor because C++ compilers can tack on massive
                   5392:     # amounts of additional arguments before passing them to the linker.
                   5393:     # It appears as though 1/2 is a usable value.
                   5394:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   5395:     ;;
                   5396:   esac
                   5397:
                   5398: fi
                   5399:
                   5400: if test -n $lt_cv_sys_max_cmd_len ; then
                   5401:   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
                   5402: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
                   5403: else
                   5404:   echo "$as_me:$LINENO: result: none" >&5
                   5405: echo "${ECHO_T}none" >&6
                   5406: fi
                   5407: max_cmd_len=$lt_cv_sys_max_cmd_len
                   5408:
                   5409:
                   5410:
                   5411:
                   5412:
                   5413:
                   5414:
                   5415:
                   5416: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
                   5417: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
                   5418: if test "${lt_cv_ld_reload_flag+set}" = set; then
                   5419:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5420: else
                   5421:   lt_cv_ld_reload_flag='-r'
                   5422: fi
                   5423: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
                   5424: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
                   5425: reload_flag=$lt_cv_ld_reload_flag
                   5426: case $reload_flag in
                   5427: "" | " "*) ;;
                   5428: *) reload_flag=" $reload_flag" ;;
                   5429: esac
                   5430: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5431: case $host_os in
                   5432:   darwin*)
                   5433:     if test "$GCC" = yes; then
                   5434:       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
                   5435:     else
                   5436:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5437:     fi
                   5438:     ;;
                   5439: esac
                   5440:
                   5441:
                   5442:
                   5443:
                   5444:
                   5445:
                   5446:
                   5447:
                   5448:
                   5449:
1.23      millert  5450: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
                   5451: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
                   5452: if test "${lt_cv_deplibs_check_method+set}" = set; then
                   5453:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5454: else
                   5455:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   5456: lt_cv_file_magic_test_file=
                   5457: lt_cv_deplibs_check_method='unknown'
                   5458: # Need to set the preceding variable on all platforms that support
                   5459: # interlibrary dependencies.
                   5460: # 'none' -- dependencies not supported.
                   5461: # `unknown' -- same as none, but documents that we really don't know.
                   5462: # 'pass_all' -- all dependencies passed with no checks.
                   5463: # 'test_compile' -- check by making test program.
                   5464: # 'file_magic [[regex]]' -- check by looking for files in library path
                   5465: # which responds to the $file_magic_cmd with a given extended regex.
                   5466: # If you have `file' or equivalent on your system and you're not sure
                   5467: # whether `pass_all' will *always* work, you probably want this one.
                   5468:
                   5469: case $host_os in
                   5470: aix4* | aix5*)
                   5471:   lt_cv_deplibs_check_method=pass_all
                   5472:   ;;
                   5473:
                   5474: beos*)
                   5475:   lt_cv_deplibs_check_method=pass_all
                   5476:   ;;
                   5477:
1.25      millert  5478: bsdi[45]*)
1.23      millert  5479:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   5480:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   5481:   lt_cv_file_magic_test_file=/shlib/libc.so
                   5482:   ;;
                   5483:
1.25      millert  5484: cygwin*)
                   5485:   # func_win32_libid is a shell function defined in ltmain.sh
1.23      millert  5486:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25      millert  5487:   lt_cv_file_magic_cmd='func_win32_libid'
                   5488:   ;;
                   5489:
                   5490:   # Base MSYS/MinGW do not provide the 'file' command needed by
                   5491:   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
                   5492: mingw* | pw32*)
                   5493:   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   5494:   lt_cv_file_magic_cmd='$OBJDUMP -f'
1.23      millert  5495:   ;;
                   5496:
                   5497: darwin* | rhapsody*)
1.25      millert  5498:   lt_cv_deplibs_check_method=pass_all
                   5499:   ;;
1.23      millert  5500:
1.25      millert  5501: freebsd* | kfreebsd*-gnu)
                   5502:   if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.23      millert  5503:     case $host_cpu in
                   5504:     i*86 )
                   5505:       # Not sure whether the presence of OpenBSD here was a mistake.
                   5506:       # Let's accept both of them until this is cleared up.
                   5507:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
                   5508:       lt_cv_file_magic_cmd=/usr/bin/file
1.25      millert  5509:       lt_cv_file_magic_test_file=`$ECHO /usr/lib/libc.so.*`
1.23      millert  5510:       ;;
                   5511:     esac
                   5512:   else
                   5513:     lt_cv_deplibs_check_method=pass_all
                   5514:   fi
                   5515:   ;;
                   5516:
                   5517: gnu*)
                   5518:   lt_cv_deplibs_check_method=pass_all
                   5519:   ;;
                   5520:
                   5521: hpux10.20* | hpux11*)
                   5522:   lt_cv_file_magic_cmd=/usr/bin/file
                   5523:   case "$host_cpu" in
                   5524:   ia64*)
                   5525:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   5526:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   5527:     ;;
                   5528:   hppa*64*)
                   5529:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
                   5530:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   5531:     ;;
                   5532:   *)
                   5533:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   5534:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   5535:     ;;
                   5536:   esac
                   5537:   ;;
                   5538:
                   5539: irix5* | irix6* | nonstopux*)
1.25      millert  5540:   case $LD in
                   5541:   *-32|*"-32 ") libmagic=32-bit;;
                   5542:   *-n32|*"-n32 ") libmagic=N32;;
                   5543:   *-64|*"-64 ") libmagic=64-bit;;
                   5544:   *) libmagic=never-match;;
1.23      millert  5545:   esac
                   5546:   lt_cv_deplibs_check_method=pass_all
                   5547:   ;;
                   5548:
                   5549: # This must be Linux ELF.
                   5550: linux*)
1.25      millert  5551:   lt_cv_deplibs_check_method=pass_all
1.23      millert  5552:   ;;
                   5553:
1.25      millert  5554: netbsd* | knetbsd*-gnu)
                   5555:   if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.23      millert  5556:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   5557:   else
                   5558:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   5559:   fi
                   5560:   ;;
                   5561:
                   5562: newos6*)
                   5563:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   5564:   lt_cv_file_magic_cmd=/usr/bin/file
                   5565:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   5566:   ;;
                   5567:
1.25      millert  5568: *nto* | *qnx*)
                   5569:   lt_cv_deplibs_check_method=pass_all
1.23      millert  5570:   ;;
                   5571:
                   5572: openbsd*)
1.25      millert  5573:   if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   5574:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23      millert  5575:   else
1.25      millert  5576:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23      millert  5577:   fi
                   5578:   ;;
                   5579:
                   5580: osf3* | osf4* | osf5*)
                   5581:   lt_cv_deplibs_check_method=pass_all
                   5582:   ;;
                   5583:
                   5584: sco3.2v5*)
                   5585:   lt_cv_deplibs_check_method=pass_all
                   5586:   ;;
                   5587:
                   5588: solaris*)
                   5589:   lt_cv_deplibs_check_method=pass_all
                   5590:   ;;
                   5591:
                   5592: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   5593:   case $host_vendor in
                   5594:   motorola)
                   5595:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1.25      millert  5596:     lt_cv_file_magic_test_file=`$ECHO /usr/lib/libc.so*`
1.23      millert  5597:     ;;
                   5598:   ncr)
                   5599:     lt_cv_deplibs_check_method=pass_all
                   5600:     ;;
                   5601:   sequent)
                   5602:     lt_cv_file_magic_cmd='/bin/file'
                   5603:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   5604:     ;;
                   5605:   sni)
                   5606:     lt_cv_file_magic_cmd='/bin/file'
                   5607:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   5608:     lt_cv_file_magic_test_file=/lib/libc.so
                   5609:     ;;
                   5610:   siemens)
                   5611:     lt_cv_deplibs_check_method=pass_all
                   5612:     ;;
                   5613:   esac
                   5614:   ;;
                   5615:
                   5616: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
                   5617:   lt_cv_deplibs_check_method=pass_all
                   5618:   ;;
1.25      millert  5619:
                   5620: tpf*)
                   5621:   lt_cv_deplibs_check_method=pass_all
                   5622:   ;;
1.23      millert  5623: esac
                   5624:
                   5625: fi
                   5626: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
                   5627: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
                   5628: file_magic_cmd=$lt_cv_file_magic_cmd
                   5629: deplibs_check_method=$lt_cv_deplibs_check_method
                   5630: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   5631:
                   5632:
                   5633:
                   5634:
                   5635:
                   5636:
                   5637:
                   5638:
                   5639:
                   5640:
1.25      millert  5641:
                   5642:
                   5643: if test -n "$ac_tool_prefix"; then
                   5644:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   5645: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   5646: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5647: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5648: if test "${ac_cv_prog_AR+set}" = set; then
1.23      millert  5649:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5650: else
1.25      millert  5651:   if test -n "$AR"; then
                   5652:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   5653: else
                   5654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5655: for as_dir in $PATH
                   5656: do
                   5657:   IFS=$as_save_IFS
                   5658:   test -z "$as_dir" && as_dir=.
                   5659:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5660:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5661:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   5662:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5663:     break 2
                   5664:   fi
                   5665: done
                   5666: done
1.23      millert  5667:
1.25      millert  5668: fi
                   5669: fi
                   5670: AR=$ac_cv_prog_AR
                   5671: if test -n "$AR"; then
                   5672:   echo "$as_me:$LINENO: result: $AR" >&5
                   5673: echo "${ECHO_T}$AR" >&6
                   5674: else
                   5675:   echo "$as_me:$LINENO: result: no" >&5
                   5676: echo "${ECHO_T}no" >&6
                   5677: fi
1.23      millert  5678:
1.25      millert  5679: fi
                   5680: if test -z "$ac_cv_prog_AR"; then
                   5681:   ac_ct_AR=$AR
                   5682:   # Extract the first word of "ar", so it can be a program name with args.
                   5683: set dummy ar; ac_word=$2
                   5684: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5685: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5686: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
                   5687:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5688: else
                   5689:   if test -n "$ac_ct_AR"; then
                   5690:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   5691: else
                   5692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5693: for as_dir in $PATH
                   5694: do
                   5695:   IFS=$as_save_IFS
                   5696:   test -z "$as_dir" && as_dir=.
                   5697:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5698:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5699:     ac_cv_prog_ac_ct_AR="ar"
                   5700:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5701:     break 2
                   5702:   fi
                   5703: done
                   5704: done
1.23      millert  5705:
1.25      millert  5706:   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
                   5707: fi
                   5708: fi
                   5709: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   5710: if test -n "$ac_ct_AR"; then
                   5711:   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
                   5712: echo "${ECHO_T}$ac_ct_AR" >&6
1.23      millert  5713: else
1.25      millert  5714:   echo "$as_me:$LINENO: result: no" >&5
                   5715: echo "${ECHO_T}no" >&6
                   5716: fi
1.23      millert  5717:
1.25      millert  5718:   AR=$ac_ct_AR
                   5719: else
                   5720:   AR="$ac_cv_prog_AR"
1.23      millert  5721: fi
                   5722:
1.25      millert  5723: test -z "$AR" && AR=ar
                   5724: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   5725:
                   5726:
                   5727:
                   5728:
                   5729:
                   5730:
1.23      millert  5731:
                   5732:
                   5733:
                   5734:
                   5735:
1.25      millert  5736: if test -n "$ac_tool_prefix"; then
                   5737:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   5738: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   5739: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5740: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5741: if test "${ac_cv_prog_STRIP+set}" = set; then
1.23      millert  5742:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5743: else
1.25      millert  5744:   if test -n "$STRIP"; then
                   5745:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   5746: else
                   5747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5748: for as_dir in $PATH
                   5749: do
                   5750:   IFS=$as_save_IFS
                   5751:   test -z "$as_dir" && as_dir=.
                   5752:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5753:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5754:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   5755:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5756:     break 2
                   5757:   fi
                   5758: done
                   5759: done
1.23      millert  5760:
1.25      millert  5761: fi
                   5762: fi
                   5763: STRIP=$ac_cv_prog_STRIP
                   5764: if test -n "$STRIP"; then
                   5765:   echo "$as_me:$LINENO: result: $STRIP" >&5
                   5766: echo "${ECHO_T}$STRIP" >&6
                   5767: else
                   5768:   echo "$as_me:$LINENO: result: no" >&5
                   5769: echo "${ECHO_T}no" >&6
                   5770: fi
1.23      millert  5771:
1.25      millert  5772: fi
                   5773: if test -z "$ac_cv_prog_STRIP"; then
                   5774:   ac_ct_STRIP=$STRIP
                   5775:   # Extract the first word of "strip", so it can be a program name with args.
                   5776: set dummy strip; ac_word=$2
                   5777: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5778: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5779: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
                   5780:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5781: else
                   5782:   if test -n "$ac_ct_STRIP"; then
                   5783:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23      millert  5784: else
1.25      millert  5785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5786: for as_dir in $PATH
                   5787: do
                   5788:   IFS=$as_save_IFS
                   5789:   test -z "$as_dir" && as_dir=.
                   5790:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5791:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5792:     ac_cv_prog_ac_ct_STRIP="strip"
                   5793:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5794:     break 2
                   5795:   fi
                   5796: done
                   5797: done
1.23      millert  5798:
1.25      millert  5799:   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
                   5800: fi
                   5801: fi
                   5802: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   5803: if test -n "$ac_ct_STRIP"; then
                   5804:   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
                   5805: echo "${ECHO_T}$ac_ct_STRIP" >&6
                   5806: else
                   5807:   echo "$as_me:$LINENO: result: no" >&5
                   5808: echo "${ECHO_T}no" >&6
1.23      millert  5809: fi
                   5810:
1.25      millert  5811:   STRIP=$ac_ct_STRIP
1.23      millert  5812: else
1.25      millert  5813:   STRIP="$ac_cv_prog_STRIP"
1.23      millert  5814: fi
                   5815:
1.25      millert  5816: test -z "$STRIP" && STRIP=:
                   5817:
                   5818:
                   5819:
                   5820:
                   5821:
1.23      millert  5822:
1.25      millert  5823: if test -n "$ac_tool_prefix"; then
                   5824:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   5825: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   5826: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5827: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5828: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   5829:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5830: else
                   5831:   if test -n "$RANLIB"; then
                   5832:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   5833: else
                   5834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5835: for as_dir in $PATH
                   5836: do
                   5837:   IFS=$as_save_IFS
                   5838:   test -z "$as_dir" && as_dir=.
                   5839:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5840:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5841:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   5842:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5843:     break 2
                   5844:   fi
                   5845: done
                   5846: done
1.23      millert  5847:
1.25      millert  5848: fi
                   5849: fi
                   5850: RANLIB=$ac_cv_prog_RANLIB
                   5851: if test -n "$RANLIB"; then
                   5852:   echo "$as_me:$LINENO: result: $RANLIB" >&5
                   5853: echo "${ECHO_T}$RANLIB" >&6
1.23      millert  5854: else
1.25      millert  5855:   echo "$as_me:$LINENO: result: no" >&5
                   5856: echo "${ECHO_T}no" >&6
1.23      millert  5857: fi
                   5858:
                   5859: fi
1.25      millert  5860: if test -z "$ac_cv_prog_RANLIB"; then
                   5861:   ac_ct_RANLIB=$RANLIB
                   5862:   # Extract the first word of "ranlib", so it can be a program name with args.
                   5863: set dummy ranlib; ac_word=$2
                   5864: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   5866: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
                   5867:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  5868: else
1.25      millert  5869:   if test -n "$ac_ct_RANLIB"; then
                   5870:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23      millert  5871: else
1.25      millert  5872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5873: for as_dir in $PATH
                   5874: do
                   5875:   IFS=$as_save_IFS
                   5876:   test -z "$as_dir" && as_dir=.
                   5877:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5878:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   5879:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   5880:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5881:     break 2
                   5882:   fi
                   5883: done
                   5884: done
1.23      millert  5885:
1.25      millert  5886:   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.23      millert  5887: fi
                   5888: fi
1.25      millert  5889: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   5890: if test -n "$ac_ct_RANLIB"; then
                   5891:   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   5892: echo "${ECHO_T}$ac_ct_RANLIB" >&6
                   5893: else
                   5894:   echo "$as_me:$LINENO: result: no" >&5
                   5895: echo "${ECHO_T}no" >&6
1.23      millert  5896: fi
                   5897:
1.25      millert  5898:   RANLIB=$ac_ct_RANLIB
                   5899: else
                   5900:   RANLIB="$ac_cv_prog_RANLIB"
1.23      millert  5901: fi
                   5902:
1.25      millert  5903: test -z "$RANLIB" && RANLIB=:
1.23      millert  5904:
                   5905:
                   5906:
                   5907:
                   5908:
                   5909:
1.25      millert  5910: # Determine commands to create old-style static archives.
                   5911: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
                   5912: old_postinstall_cmds='chmod 644 $oldlib'
                   5913: old_postuninstall_cmds=
1.23      millert  5914:
1.25      millert  5915: if test -n "$RANLIB"; then
                   5916:   case $host_os in
                   5917:   openbsd*)
                   5918:     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
                   5919:     ;;
                   5920:   *)
                   5921:     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
                   5922:     ;;
                   5923:   esac
                   5924:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   5925: fi
1.23      millert  5926:
                   5927:
                   5928:
                   5929:
                   5930:
                   5931:
                   5932:
                   5933:
                   5934:
                   5935:
                   5936:
                   5937:
                   5938:
                   5939:
                   5940:
                   5941:
                   5942:
1.25      millert  5943: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   5944: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
                   5945: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
                   5946: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.23      millert  5947:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5948: else
                   5949:
1.25      millert  5950: # These are sane defaults that work on at least a few old systems.
                   5951: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1.23      millert  5952:
1.25      millert  5953: # Character class describing NM global symbol codes.
                   5954: symcode='[BCDEGRST]'
1.23      millert  5955:
1.25      millert  5956: # Regexp to match symbols that can be accessed directly from C.
                   5957: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.23      millert  5958:
1.25      millert  5959: # Transform the above into a raw symbol and a C symbol.
                   5960: symxfrm='\1 \2\3 \3'
1.23      millert  5961:
1.25      millert  5962: # Define system-specific variables.
                   5963: case $host_os in
                   5964: aix*)
                   5965:   symcode='[BCDT]'
                   5966:   ;;
                   5967: cygwin* | mingw* | pw32*)
                   5968:   symcode='[ABCDGISTW]'
                   5969:   ;;
                   5970: hpux*)
                   5971:   if test "$host_cpu" = ia64; then
                   5972:     symcode='[ABCDEGRST]'
                   5973:   fi
                   5974:   ;;
                   5975: irix* | nonstopux*)
                   5976:   symcode='[BCDEGRST]'
                   5977:   ;;
                   5978: osf*)
                   5979:   symcode='[BCDEGQRST]'
                   5980:   ;;
                   5981: solaris* | sysv5*)
                   5982:   symcode='[BDRT]'
                   5983:   ;;
                   5984: sysv4)
                   5985:   symcode='[DFNSTU]'
                   5986:   ;;
                   5987: esac
1.23      millert  5988:
1.25      millert  5989: # If we're using GNU nm, then use its standard symbol codes.
                   5990: case `$NM -V 2>&1` in
                   5991: *GNU* | *'with BFD'*)
                   5992:   symcode='[ABCDGIRSTW]' ;;
                   5993: esac
                   5994:
                   5995: # Transform an extracted symbol line into a proper C declaration.
                   5996: # Some systems (esp. on ia64) link data and code symbols differently,
                   5997: # so use this general approach.
                   5998: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   5999:
                   6000: # Transform an extracted symbol line into symbol name and symbol address
                   6001: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
                   6002:
                   6003: # Handle CRLF in mingw tool chain
                   6004: opt_cr=
                   6005: case $build_os in
                   6006: mingw*)
                   6007:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
                   6008:   ;;
                   6009: esac
                   6010:
                   6011: # Try without a prefix underscore, then with it.
                   6012: for ac_symprfx in "" "_"; do
                   6013:
                   6014:   # Write the raw and C identifiers.
                   6015:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1.23      millert  6016:
1.25      millert  6017:   # Check to see that the pipe works correctly.
                   6018:   pipe_works=no
                   6019:
                   6020:   rm -f conftest*
                   6021:   cat > conftest.$ac_ext <<_LT_EOF
                   6022: #ifdef __cplusplus
                   6023: extern "C" {
                   6024: #endif
                   6025: char nm_test_var;
                   6026: void nm_test_func(){}
                   6027: #ifdef __cplusplus
                   6028: }
                   6029: #endif
                   6030: int main(){nm_test_var='a';nm_test_func();return(0);}
                   6031: _LT_EOF
                   6032:
                   6033:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6034:   (eval $ac_compile) 2>&5
1.23      millert  6035:   ac_status=$?
                   6036:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6037:   (exit $ac_status); }; then
                   6038:     # Now try to grab the symbols.
                   6039:     nlist=conftest.nm
                   6040:     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
                   6041:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23      millert  6042:   ac_status=$?
                   6043:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6044:   (exit $ac_status); } && test -s "$nlist"; then
                   6045:       # Try sorting and uniquifying the output.
                   6046:       if sort "$nlist" | uniq > "$nlist"T; then
                   6047:        mv -f "$nlist"T "$nlist"
                   6048:       else
                   6049:        rm -f "$nlist"T
                   6050:       fi
                   6051:
                   6052:       # Make sure that we snagged all the symbols we need.
                   6053:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
                   6054:        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
                   6055:          cat <<_LT_EOF > conftest.$ac_ext
                   6056: #ifdef __cplusplus
                   6057: extern "C" {
                   6058: #endif
                   6059:
                   6060: _LT_EOF
                   6061:          # Now generate the symbol file.
                   6062:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.23      millert  6063:
1.25      millert  6064:          cat <<_LT_EOF >> conftest.$ac_ext
1.23      millert  6065:
1.25      millert  6066: /* The mapping between symbol names and symbols.  */
                   6067: const struct {
                   6068:   const char *name;
                   6069:   void       *address;
                   6070: }
                   6071: lt__PROGRAM__LTX_preloaded_symbols[] =
1.23      millert  6072: {
1.25      millert  6073:   { "@PROGRAM@", (void *) 0 },
                   6074: _LT_EOF
                   6075:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
                   6076:          cat <<\_LT_EOF >> conftest.$ac_ext
                   6077:   {0, (void *) 0}
                   6078: };
                   6079:
                   6080: /* This works around a problem in FreeBSD linker */
                   6081: #ifdef FREEBSD_WORKAROUND
                   6082: static const void *lt_preloaded_setup() {
                   6083:   return lt__PROGRAM__LTX_preloaded_symbols;
                   6084: }
1.23      millert  6085: #endif
                   6086:
1.25      millert  6087: #ifdef __cplusplus
1.23      millert  6088: }
1.25      millert  6089: #endif
                   6090: _LT_EOF
                   6091:          # Now try linking the two files.
                   6092:          mv conftest.$ac_objext conftstm.$ac_objext
                   6093:          lt_save_LIBS="$LIBS"
                   6094:          lt_save_CFLAGS="$CFLAGS"
                   6095:          LIBS="conftstm.$ac_objext"
                   6096:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   6097:          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6098:   (eval $ac_link) 2>&5
1.23      millert  6099:   ac_status=$?
                   6100:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6101:   (exit $ac_status); } && test -s conftest${ac_exeext}; then
                   6102:            pipe_works=yes
                   6103:          fi
                   6104:          LIBS="$lt_save_LIBS"
                   6105:          CFLAGS="$lt_save_CFLAGS"
                   6106:        else
                   6107:          echo "cannot find nm_test_func in $nlist" >&5
                   6108:        fi
                   6109:       else
                   6110:        echo "cannot find nm_test_var in $nlist" >&5
                   6111:       fi
                   6112:     else
                   6113:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   6114:     fi
                   6115:   else
                   6116:     echo "$progname: failed program was:" >&5
                   6117:     cat conftest.$ac_ext >&5
                   6118:   fi
                   6119:   rm -f conftest* conftst*
                   6120:
                   6121:   # Do not use the global_symbol_pipe unless it works.
                   6122:   if test "$pipe_works" = yes; then
                   6123:     break
                   6124:   else
                   6125:     lt_cv_sys_global_symbol_pipe=
                   6126:   fi
                   6127: done
1.23      millert  6128:
                   6129: fi
                   6130:
1.25      millert  6131: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   6132:   lt_cv_sys_global_symbol_to_cdecl=
                   6133: fi
                   6134: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
                   6135:   echo "$as_me:$LINENO: result: failed" >&5
                   6136: echo "${ECHO_T}failed" >&6
                   6137: else
                   6138:   echo "$as_me:$LINENO: result: ok" >&5
                   6139: echo "${ECHO_T}ok" >&6
1.23      millert  6140: fi
1.25      millert  6141:
                   6142:
                   6143:
                   6144:
                   6145:
                   6146:
                   6147:
                   6148:
                   6149:
                   6150:
                   6151:
                   6152:
                   6153:
                   6154:
                   6155:
                   6156:
                   6157:
                   6158:
                   6159:
                   6160:
                   6161:
                   6162:
                   6163:
                   6164:
                   6165:
                   6166:
                   6167:
                   6168:
                   6169:
                   6170:
                   6171:
                   6172:
                   6173:
                   6174:
                   6175:
                   6176: # If no C compiler was specified, use CC.
                   6177: LTCC=${LTCC-"$CC"}
                   6178:
                   6179: # If no C compiler flags were specified, use CFLAGS.
                   6180: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   6181:
                   6182: # Allow CC to be a program name with arguments.
                   6183: compiler=$CC
                   6184:
                   6185:
                   6186: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6187: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
                   6188: if test "${ac_cv_header_stdc+set}" = set; then
1.23      millert  6189:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6190: else
                   6191:   cat >conftest.$ac_ext <<_ACEOF
                   6192: /* confdefs.h.  */
                   6193: _ACEOF
                   6194: cat confdefs.h >>conftest.$ac_ext
                   6195: cat >>conftest.$ac_ext <<_ACEOF
                   6196: /* end confdefs.h.  */
1.25      millert  6197: #include <stdlib.h>
                   6198: #include <stdarg.h>
                   6199: #include <string.h>
                   6200: #include <float.h>
1.23      millert  6201:
                   6202: int
                   6203: main ()
                   6204: {
                   6205:
                   6206:   ;
                   6207:   return 0;
                   6208: }
                   6209: _ACEOF
                   6210: rm -f conftest.$ac_objext
                   6211: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  6212:   (eval $ac_compile) 2>conftest.er1
1.23      millert  6213:   ac_status=$?
1.25      millert  6214:   grep -v '^ *+' conftest.er1 >conftest.err
                   6215:   rm -f conftest.er1
                   6216:   cat conftest.err >&5
1.23      millert  6217:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6218:   (exit $ac_status); } &&
1.25      millert  6219:         { ac_try='test -z "$ac_c_werror_flag"
                   6220:                         || test ! -s conftest.err'
                   6221:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6222:   (eval $ac_try) 2>&5
                   6223:   ac_status=$?
                   6224:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6225:   (exit $ac_status); }; } &&
                   6226:         { ac_try='test -s conftest.$ac_objext'
1.23      millert  6227:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6228:   (eval $ac_try) 2>&5
                   6229:   ac_status=$?
                   6230:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6231:   (exit $ac_status); }; }; then
1.25      millert  6232:   ac_cv_header_stdc=yes
1.23      millert  6233: else
                   6234:   echo "$as_me: failed program was:" >&5
                   6235: sed 's/^/| /' conftest.$ac_ext >&5
                   6236:
1.25      millert  6237: ac_cv_header_stdc=no
1.23      millert  6238: fi
1.25      millert  6239: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   6240:
                   6241: if test $ac_cv_header_stdc = yes; then
                   6242:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.23      millert  6243:   cat >conftest.$ac_ext <<_ACEOF
                   6244: /* confdefs.h.  */
                   6245: _ACEOF
                   6246: cat confdefs.h >>conftest.$ac_ext
                   6247: cat >>conftest.$ac_ext <<_ACEOF
                   6248: /* end confdefs.h.  */
1.25      millert  6249: #include <string.h>
                   6250:
1.23      millert  6251: _ACEOF
1.25      millert  6252: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6253:   $EGREP "memchr" >/dev/null 2>&1; then
1.23      millert  6254:   :
                   6255: else
1.25      millert  6256:   ac_cv_header_stdc=no
                   6257: fi
                   6258: rm -f conftest*
1.23      millert  6259:
                   6260: fi
1.25      millert  6261:
                   6262: if test $ac_cv_header_stdc = yes; then
                   6263:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.23      millert  6264:   cat >conftest.$ac_ext <<_ACEOF
                   6265: /* confdefs.h.  */
                   6266: _ACEOF
                   6267: cat confdefs.h >>conftest.$ac_ext
                   6268: cat >>conftest.$ac_ext <<_ACEOF
                   6269: /* end confdefs.h.  */
1.25      millert  6270: #include <stdlib.h>
                   6271:
                   6272: _ACEOF
                   6273: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6274:   $EGREP "free" >/dev/null 2>&1; then
                   6275:   :
                   6276: else
                   6277:   ac_cv_header_stdc=no
                   6278: fi
                   6279: rm -f conftest*
                   6280:
                   6281: fi
                   6282:
                   6283: if test $ac_cv_header_stdc = yes; then
                   6284:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6285:   if test "$cross_compiling" = yes; then
                   6286:   :
                   6287: else
                   6288:   cat >conftest.$ac_ext <<_ACEOF
                   6289: /* confdefs.h.  */
                   6290: _ACEOF
                   6291: cat confdefs.h >>conftest.$ac_ext
                   6292: cat >>conftest.$ac_ext <<_ACEOF
                   6293: /* end confdefs.h.  */
                   6294: #include <ctype.h>
                   6295: #if ((' ' & 0x0FF) == 0x020)
                   6296: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6297: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6298: #else
                   6299: # define ISLOWER(c) \
                   6300:                   (('a' <= (c) && (c) <= 'i') \
                   6301:                     || ('j' <= (c) && (c) <= 'r') \
                   6302:                     || ('s' <= (c) && (c) <= 'z'))
                   6303: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6304: #endif
                   6305:
                   6306: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.23      millert  6307: int
                   6308: main ()
                   6309: {
1.25      millert  6310:   int i;
                   6311:   for (i = 0; i < 256; i++)
                   6312:     if (XOR (islower (i), ISLOWER (i))
                   6313:        || toupper (i) != TOUPPER (i))
                   6314:       exit(2);
                   6315:   exit (0);
1.23      millert  6316: }
                   6317: _ACEOF
1.25      millert  6318: rm -f conftest$ac_exeext
                   6319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6320:   (eval $ac_link) 2>&5
1.23      millert  6321:   ac_status=$?
                   6322:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6323:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.23      millert  6324:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6325:   (eval $ac_try) 2>&5
                   6326:   ac_status=$?
                   6327:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6328:   (exit $ac_status); }; }; then
1.25      millert  6329:   :
1.23      millert  6330: else
1.25      millert  6331:   echo "$as_me: program exited with status $ac_status" >&5
                   6332: echo "$as_me: failed program was:" >&5
1.23      millert  6333: sed 's/^/| /' conftest.$ac_ext >&5
                   6334:
1.25      millert  6335: ( exit $ac_status )
                   6336: ac_cv_header_stdc=no
                   6337: fi
                   6338: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   6339: fi
                   6340: fi
1.23      millert  6341: fi
1.25      millert  6342: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   6343: echo "${ECHO_T}$ac_cv_header_stdc" >&6
                   6344: if test $ac_cv_header_stdc = yes; then
                   6345:
                   6346: cat >>confdefs.h <<\_ACEOF
                   6347: #define STDC_HEADERS 1
                   6348: _ACEOF
                   6349:
1.23      millert  6350: fi
                   6351:
1.25      millert  6352: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   6353:
                   6354:
                   6355:
                   6356:
                   6357:
                   6358:
                   6359:
                   6360:
                   6361:
                   6362: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   6363:                  inttypes.h stdint.h unistd.h
                   6364: do
                   6365: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6366: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6367: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   6368: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.23      millert  6369:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6370: else
                   6371:   cat >conftest.$ac_ext <<_ACEOF
                   6372: /* confdefs.h.  */
                   6373: _ACEOF
                   6374: cat confdefs.h >>conftest.$ac_ext
                   6375: cat >>conftest.$ac_ext <<_ACEOF
                   6376: /* end confdefs.h.  */
1.25      millert  6377: $ac_includes_default
                   6378:
                   6379: #include <$ac_header>
1.23      millert  6380: _ACEOF
1.25      millert  6381: rm -f conftest.$ac_objext
                   6382: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6383:   (eval $ac_compile) 2>conftest.er1
1.23      millert  6384:   ac_status=$?
                   6385:   grep -v '^ *+' conftest.er1 >conftest.err
                   6386:   rm -f conftest.er1
                   6387:   cat conftest.err >&5
                   6388:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6389:   (exit $ac_status); } &&
                   6390:         { ac_try='test -z "$ac_c_werror_flag"
                   6391:                         || test ! -s conftest.err'
                   6392:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6393:   (eval $ac_try) 2>&5
                   6394:   ac_status=$?
                   6395:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6396:   (exit $ac_status); }; } &&
                   6397:         { ac_try='test -s conftest.$ac_objext'
                   6398:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6399:   (eval $ac_try) 2>&5
                   6400:   ac_status=$?
                   6401:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6402:   (exit $ac_status); }; }; then
                   6403:   eval "$as_ac_Header=yes"
1.23      millert  6404: else
                   6405:   echo "$as_me: failed program was:" >&5
                   6406: sed 's/^/| /' conftest.$ac_ext >&5
                   6407:
1.25      millert  6408: eval "$as_ac_Header=no"
                   6409: fi
                   6410: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   6411: fi
                   6412: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   6413: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   6414: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6415:   cat >>confdefs.h <<_ACEOF
                   6416: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6417: _ACEOF
                   6418:
1.23      millert  6419: fi
                   6420:
1.25      millert  6421: done
                   6422:
                   6423:
                   6424:
                   6425: for ac_header in dlfcn.h
                   6426: do
                   6427: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6428: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6429: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   6430: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   6431:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6432: else
1.23      millert  6433:   cat >conftest.$ac_ext <<_ACEOF
                   6434: /* confdefs.h.  */
                   6435: _ACEOF
                   6436: cat confdefs.h >>conftest.$ac_ext
                   6437: cat >>conftest.$ac_ext <<_ACEOF
                   6438: /* end confdefs.h.  */
1.25      millert  6439: $ac_includes_default
                   6440:
                   6441: #include <$ac_header>
1.23      millert  6442: _ACEOF
1.25      millert  6443: rm -f conftest.$ac_objext
                   6444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6445:   (eval $ac_compile) 2>conftest.er1
1.23      millert  6446:   ac_status=$?
                   6447:   grep -v '^ *+' conftest.er1 >conftest.err
                   6448:   rm -f conftest.er1
                   6449:   cat conftest.err >&5
                   6450:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6451:   (exit $ac_status); } &&
                   6452:         { ac_try='test -z "$ac_c_werror_flag"
                   6453:                         || test ! -s conftest.err'
                   6454:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6455:   (eval $ac_try) 2>&5
                   6456:   ac_status=$?
                   6457:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6458:   (exit $ac_status); }; } &&
                   6459:         { ac_try='test -s conftest.$ac_objext'
                   6460:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6461:   (eval $ac_try) 2>&5
                   6462:   ac_status=$?
                   6463:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6464:   (exit $ac_status); }; }; then
                   6465:   eval "$as_ac_Header=yes"
1.23      millert  6466: else
                   6467:   echo "$as_me: failed program was:" >&5
                   6468: sed 's/^/| /' conftest.$ac_ext >&5
                   6469:
1.25      millert  6470: eval "$as_ac_Header=no"
                   6471: fi
                   6472: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   6473: fi
                   6474: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   6475: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   6476: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6477:   cat >>confdefs.h <<_ACEOF
                   6478: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6479: _ACEOF
                   6480:
1.23      millert  6481: fi
                   6482:
                   6483: done
                   6484:
1.25      millert  6485: if test "x$enable_dlopen" != xyes; then
                   6486:   enable_dlopen=unknown
                   6487:   enable_dlopen_self=unknown
                   6488:   enable_dlopen_self_static=unknown
                   6489: else
                   6490:   lt_cv_dlopen=no
                   6491:   lt_cv_dlopen_libs=
                   6492:
                   6493:   case $host_os in
                   6494:   beos*)
                   6495:     lt_cv_dlopen="load_add_on"
                   6496:     lt_cv_dlopen_libs=
                   6497:     lt_cv_dlopen_self=yes
                   6498:     ;;
                   6499:
                   6500:   mingw* | pw32*)
                   6501:     lt_cv_dlopen="LoadLibrary"
                   6502:     lt_cv_dlopen_libs=
                   6503:    ;;
                   6504:
                   6505:   cygwin*)
                   6506:     lt_cv_dlopen="dlopen"
                   6507:     lt_cv_dlopen_libs=
                   6508:    ;;
1.23      millert  6509:
1.25      millert  6510:   darwin*)
                   6511:   # if libdl is installed we need to link against it
                   6512:     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   6513: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
                   6514: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   6515:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  6516: else
1.25      millert  6517:   ac_check_lib_save_LIBS=$LIBS
                   6518: LIBS="-ldl  $LIBS"
                   6519: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  6520: /* confdefs.h.  */
                   6521: _ACEOF
                   6522: cat confdefs.h >>conftest.$ac_ext
                   6523: cat >>conftest.$ac_ext <<_ACEOF
                   6524: /* end confdefs.h.  */
1.25      millert  6525:
                   6526: /* Override any gcc2 internal prototype to avoid an error.  */
                   6527: #ifdef __cplusplus
                   6528: extern "C"
1.23      millert  6529: #endif
1.25      millert  6530: /* We use char because int might match the return type of a gcc2
                   6531:    builtin and then its argument prototype would still apply.  */
                   6532: char dlopen ();
                   6533: int
                   6534: main ()
                   6535: {
                   6536: dlopen ();
                   6537:   ;
                   6538:   return 0;
                   6539: }
1.23      millert  6540: _ACEOF
1.25      millert  6541: rm -f conftest.$ac_objext conftest$ac_exeext
                   6542: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6543:   (eval $ac_link) 2>conftest.er1
1.23      millert  6544:   ac_status=$?
                   6545:   grep -v '^ *+' conftest.er1 >conftest.err
                   6546:   rm -f conftest.er1
                   6547:   cat conftest.err >&5
                   6548:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6549:   (exit $ac_status); } &&
                   6550:         { ac_try='test -z "$ac_c_werror_flag"
                   6551:                         || test ! -s conftest.err'
                   6552:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6553:   (eval $ac_try) 2>&5
                   6554:   ac_status=$?
                   6555:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6556:   (exit $ac_status); }; } &&
                   6557:         { ac_try='test -s conftest$ac_exeext'
                   6558:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6559:   (eval $ac_try) 2>&5
                   6560:   ac_status=$?
                   6561:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6562:   (exit $ac_status); }; }; then
                   6563:   ac_cv_lib_dl_dlopen=yes
1.23      millert  6564: else
                   6565:   echo "$as_me: failed program was:" >&5
                   6566: sed 's/^/| /' conftest.$ac_ext >&5
                   6567:
1.25      millert  6568: ac_cv_lib_dl_dlopen=no
1.23      millert  6569: fi
1.25      millert  6570: rm -f conftest.err conftest.$ac_objext \
                   6571:       conftest$ac_exeext conftest.$ac_ext
                   6572: LIBS=$ac_check_lib_save_LIBS
1.23      millert  6573: fi
1.25      millert  6574: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   6575: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
                   6576: if test $ac_cv_lib_dl_dlopen = yes; then
                   6577:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.23      millert  6578: else
                   6579:
1.25      millert  6580:     lt_cv_dlopen="dyld"
                   6581:     lt_cv_dlopen_libs=
                   6582:     lt_cv_dlopen_self=yes
1.23      millert  6583:
                   6584: fi
                   6585:
1.25      millert  6586:    ;;
1.23      millert  6587:
1.25      millert  6588:   *)
                   6589:     echo "$as_me:$LINENO: checking for shl_load" >&5
                   6590: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
                   6591: if test "${ac_cv_func_shl_load+set}" = set; then
1.23      millert  6592:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6593: else
1.25      millert  6594:   cat >conftest.$ac_ext <<_ACEOF
                   6595: /* confdefs.h.  */
                   6596: _ACEOF
                   6597: cat confdefs.h >>conftest.$ac_ext
                   6598: cat >>conftest.$ac_ext <<_ACEOF
                   6599: /* end confdefs.h.  */
                   6600: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
                   6601:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   6602: #define shl_load innocuous_shl_load
1.23      millert  6603:
1.25      millert  6604: /* System header to define __stub macros and hopefully few prototypes,
                   6605:     which can conflict with char shl_load (); below.
                   6606:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   6607:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  6608:
1.25      millert  6609: #ifdef __STDC__
                   6610: # include <limits.h>
                   6611: #else
                   6612: # include <assert.h>
                   6613: #endif
1.23      millert  6614:
1.25      millert  6615: #undef shl_load
1.23      millert  6616:
1.25      millert  6617: /* Override any gcc2 internal prototype to avoid an error.  */
                   6618: #ifdef __cplusplus
                   6619: extern "C"
                   6620: {
                   6621: #endif
                   6622: /* We use char because int might match the return type of a gcc2
                   6623:    builtin and then its argument prototype would still apply.  */
                   6624: char shl_load ();
                   6625: /* The GNU C library defines this for functions which it implements
                   6626:     to always fail with ENOSYS.  Some functions are actually named
                   6627:     something starting with __ and the normal name is an alias.  */
                   6628: #if defined (__stub_shl_load) || defined (__stub___shl_load)
                   6629: choke me
                   6630: #else
                   6631: char (*f) () = shl_load;
                   6632: #endif
                   6633: #ifdef __cplusplus
                   6634: }
1.23      millert  6635: #endif
                   6636:
1.25      millert  6637: int
                   6638: main ()
                   6639: {
                   6640: return f != shl_load;
                   6641:   ;
                   6642:   return 0;
                   6643: }
1.23      millert  6644: _ACEOF
1.25      millert  6645: rm -f conftest.$ac_objext conftest$ac_exeext
                   6646: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6647:   (eval $ac_link) 2>conftest.er1
1.23      millert  6648:   ac_status=$?
1.25      millert  6649:   grep -v '^ *+' conftest.er1 >conftest.err
                   6650:   rm -f conftest.er1
                   6651:   cat conftest.err >&5
1.23      millert  6652:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6653:   (exit $ac_status); } &&
1.25      millert  6654:         { ac_try='test -z "$ac_c_werror_flag"
                   6655:                         || test ! -s conftest.err'
                   6656:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6657:   (eval $ac_try) 2>&5
                   6658:   ac_status=$?
                   6659:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6660:   (exit $ac_status); }; } &&
                   6661:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  6662:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6663:   (eval $ac_try) 2>&5
                   6664:   ac_status=$?
                   6665:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6666:   (exit $ac_status); }; }; then
1.25      millert  6667:   ac_cv_func_shl_load=yes
1.23      millert  6668: else
                   6669:   echo "$as_me: failed program was:" >&5
                   6670: sed 's/^/| /' conftest.$ac_ext >&5
                   6671:
1.25      millert  6672: ac_cv_func_shl_load=no
1.23      millert  6673: fi
1.25      millert  6674: rm -f conftest.err conftest.$ac_objext \
                   6675:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  6676: fi
1.25      millert  6677: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
                   6678: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
                   6679: if test $ac_cv_func_shl_load = yes; then
                   6680:   lt_cv_dlopen="shl_load"
                   6681: else
                   6682:   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
                   6683: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
                   6684: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.23      millert  6685:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6686: else
1.25      millert  6687:   ac_check_lib_save_LIBS=$LIBS
                   6688: LIBS="-ldld  $LIBS"
1.23      millert  6689: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  6690: /* confdefs.h.  */
                   6691: _ACEOF
                   6692: cat confdefs.h >>conftest.$ac_ext
                   6693: cat >>conftest.$ac_ext <<_ACEOF
                   6694: /* end confdefs.h.  */
1.23      millert  6695:
1.25      millert  6696: /* Override any gcc2 internal prototype to avoid an error.  */
                   6697: #ifdef __cplusplus
                   6698: extern "C"
                   6699: #endif
                   6700: /* We use char because int might match the return type of a gcc2
                   6701:    builtin and then its argument prototype would still apply.  */
                   6702: char shl_load ();
                   6703: int
                   6704: main ()
                   6705: {
                   6706: shl_load ();
                   6707:   ;
                   6708:   return 0;
                   6709: }
1.23      millert  6710: _ACEOF
1.25      millert  6711: rm -f conftest.$ac_objext conftest$ac_exeext
                   6712: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6713:   (eval $ac_link) 2>conftest.er1
1.23      millert  6714:   ac_status=$?
1.25      millert  6715:   grep -v '^ *+' conftest.er1 >conftest.err
                   6716:   rm -f conftest.er1
                   6717:   cat conftest.err >&5
1.23      millert  6718:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6719:   (exit $ac_status); } &&
1.25      millert  6720:         { ac_try='test -z "$ac_c_werror_flag"
                   6721:                         || test ! -s conftest.err'
                   6722:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6723:   (eval $ac_try) 2>&5
                   6724:   ac_status=$?
                   6725:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6726:   (exit $ac_status); }; } &&
                   6727:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  6728:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6729:   (eval $ac_try) 2>&5
                   6730:   ac_status=$?
                   6731:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6732:   (exit $ac_status); }; }; then
1.25      millert  6733:   ac_cv_lib_dld_shl_load=yes
1.23      millert  6734: else
                   6735:   echo "$as_me: failed program was:" >&5
                   6736: sed 's/^/| /' conftest.$ac_ext >&5
                   6737:
1.25      millert  6738: ac_cv_lib_dld_shl_load=no
1.23      millert  6739: fi
1.25      millert  6740: rm -f conftest.err conftest.$ac_objext \
                   6741:       conftest$ac_exeext conftest.$ac_ext
                   6742: LIBS=$ac_check_lib_save_LIBS
1.23      millert  6743: fi
1.25      millert  6744: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
                   6745: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
                   6746: if test $ac_cv_lib_dld_shl_load = yes; then
                   6747:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1.23      millert  6748: else
1.25      millert  6749:   echo "$as_me:$LINENO: checking for dlopen" >&5
                   6750: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
                   6751: if test "${ac_cv_func_dlopen+set}" = set; then
1.23      millert  6752:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6753: else
1.25      millert  6754:   cat >conftest.$ac_ext <<_ACEOF
                   6755: /* confdefs.h.  */
                   6756: _ACEOF
                   6757: cat confdefs.h >>conftest.$ac_ext
                   6758: cat >>conftest.$ac_ext <<_ACEOF
                   6759: /* end confdefs.h.  */
                   6760: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
                   6761:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   6762: #define dlopen innocuous_dlopen
1.23      millert  6763:
1.25      millert  6764: /* System header to define __stub macros and hopefully few prototypes,
                   6765:     which can conflict with char dlopen (); below.
                   6766:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   6767:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  6768:
1.25      millert  6769: #ifdef __STDC__
                   6770: # include <limits.h>
                   6771: #else
                   6772: # include <assert.h>
                   6773: #endif
1.23      millert  6774:
1.25      millert  6775: #undef dlopen
1.23      millert  6776:
1.25      millert  6777: /* Override any gcc2 internal prototype to avoid an error.  */
1.23      millert  6778: #ifdef __cplusplus
1.25      millert  6779: extern "C"
                   6780: {
                   6781: #endif
                   6782: /* We use char because int might match the return type of a gcc2
                   6783:    builtin and then its argument prototype would still apply.  */
                   6784: char dlopen ();
                   6785: /* The GNU C library defines this for functions which it implements
                   6786:     to always fail with ENOSYS.  Some functions are actually named
                   6787:     something starting with __ and the normal name is an alias.  */
                   6788: #if defined (__stub_dlopen) || defined (__stub___dlopen)
                   6789: choke me
                   6790: #else
                   6791: char (*f) () = dlopen;
1.23      millert  6792: #endif
                   6793: #ifdef __cplusplus
                   6794: }
                   6795: #endif
                   6796:
1.25      millert  6797: int
                   6798: main ()
                   6799: {
                   6800: return f != dlopen;
                   6801:   ;
                   6802:   return 0;
                   6803: }
                   6804: _ACEOF
                   6805: rm -f conftest.$ac_objext conftest$ac_exeext
                   6806: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6807:   (eval $ac_link) 2>conftest.er1
                   6808:   ac_status=$?
                   6809:   grep -v '^ *+' conftest.er1 >conftest.err
                   6810:   rm -f conftest.er1
                   6811:   cat conftest.err >&5
                   6812:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6813:   (exit $ac_status); } &&
                   6814:         { ac_try='test -z "$ac_c_werror_flag"
                   6815:                         || test ! -s conftest.err'
                   6816:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6817:   (eval $ac_try) 2>&5
1.23      millert  6818:   ac_status=$?
                   6819:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6820:   (exit $ac_status); }; } &&
                   6821:         { ac_try='test -s conftest$ac_exeext'
                   6822:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6823:   (eval $ac_try) 2>&5
1.23      millert  6824:   ac_status=$?
                   6825:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6826:   (exit $ac_status); }; }; then
                   6827:   ac_cv_func_dlopen=yes
                   6828: else
                   6829:   echo "$as_me: failed program was:" >&5
                   6830: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6831:
1.25      millert  6832: ac_cv_func_dlopen=no
                   6833: fi
                   6834: rm -f conftest.err conftest.$ac_objext \
                   6835:       conftest$ac_exeext conftest.$ac_ext
                   6836: fi
                   6837: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   6838: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
                   6839: if test $ac_cv_func_dlopen = yes; then
                   6840:   lt_cv_dlopen="dlopen"
                   6841: else
                   6842:   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   6843: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
                   6844: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   6845:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6846: else
                   6847:   ac_check_lib_save_LIBS=$LIBS
                   6848: LIBS="-ldl  $LIBS"
                   6849: cat >conftest.$ac_ext <<_ACEOF
                   6850: /* confdefs.h.  */
                   6851: _ACEOF
                   6852: cat confdefs.h >>conftest.$ac_ext
                   6853: cat >>conftest.$ac_ext <<_ACEOF
                   6854: /* end confdefs.h.  */
                   6855:
                   6856: /* Override any gcc2 internal prototype to avoid an error.  */
1.23      millert  6857: #ifdef __cplusplus
1.25      millert  6858: extern "C"
1.23      millert  6859: #endif
1.25      millert  6860: /* We use char because int might match the return type of a gcc2
                   6861:    builtin and then its argument prototype would still apply.  */
                   6862: char dlopen ();
                   6863: int
                   6864: main ()
                   6865: {
                   6866: dlopen ();
                   6867:   ;
                   6868:   return 0;
                   6869: }
                   6870: _ACEOF
                   6871: rm -f conftest.$ac_objext conftest$ac_exeext
                   6872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6873:   (eval $ac_link) 2>conftest.er1
                   6874:   ac_status=$?
                   6875:   grep -v '^ *+' conftest.er1 >conftest.err
                   6876:   rm -f conftest.er1
                   6877:   cat conftest.err >&5
                   6878:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6879:   (exit $ac_status); } &&
                   6880:         { ac_try='test -z "$ac_c_werror_flag"
                   6881:                         || test ! -s conftest.err'
                   6882:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6883:   (eval $ac_try) 2>&5
                   6884:   ac_status=$?
                   6885:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6886:   (exit $ac_status); }; } &&
                   6887:         { ac_try='test -s conftest$ac_exeext'
                   6888:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6889:   (eval $ac_try) 2>&5
                   6890:   ac_status=$?
                   6891:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6892:   (exit $ac_status); }; }; then
                   6893:   ac_cv_lib_dl_dlopen=yes
                   6894: else
                   6895:   echo "$as_me: failed program was:" >&5
                   6896: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6897:
1.25      millert  6898: ac_cv_lib_dl_dlopen=no
                   6899: fi
                   6900: rm -f conftest.err conftest.$ac_objext \
                   6901:       conftest$ac_exeext conftest.$ac_ext
                   6902: LIBS=$ac_check_lib_save_LIBS
                   6903: fi
                   6904: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   6905: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
                   6906: if test $ac_cv_lib_dl_dlopen = yes; then
                   6907:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   6908: else
                   6909:   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
                   6910: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
                   6911: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
                   6912:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6913: else
                   6914:   ac_check_lib_save_LIBS=$LIBS
                   6915: LIBS="-lsvld  $LIBS"
                   6916: cat >conftest.$ac_ext <<_ACEOF
                   6917: /* confdefs.h.  */
                   6918: _ACEOF
                   6919: cat confdefs.h >>conftest.$ac_ext
                   6920: cat >>conftest.$ac_ext <<_ACEOF
                   6921: /* end confdefs.h.  */
1.23      millert  6922:
1.25      millert  6923: /* Override any gcc2 internal prototype to avoid an error.  */
                   6924: #ifdef __cplusplus
                   6925: extern "C"
1.23      millert  6926: #endif
1.25      millert  6927: /* We use char because int might match the return type of a gcc2
                   6928:    builtin and then its argument prototype would still apply.  */
                   6929: char dlopen ();
                   6930: int
                   6931: main ()
1.23      millert  6932: {
1.25      millert  6933: dlopen ();
                   6934:   ;
                   6935:   return 0;
1.23      millert  6936: }
1.25      millert  6937: _ACEOF
                   6938: rm -f conftest.$ac_objext conftest$ac_exeext
                   6939: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   6940:   (eval $ac_link) 2>conftest.er1
                   6941:   ac_status=$?
                   6942:   grep -v '^ *+' conftest.er1 >conftest.err
                   6943:   rm -f conftest.er1
                   6944:   cat conftest.err >&5
                   6945:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6946:   (exit $ac_status); } &&
                   6947:         { ac_try='test -z "$ac_c_werror_flag"
                   6948:                         || test ! -s conftest.err'
                   6949:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6950:   (eval $ac_try) 2>&5
                   6951:   ac_status=$?
                   6952:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6953:   (exit $ac_status); }; } &&
                   6954:         { ac_try='test -s conftest$ac_exeext'
                   6955:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   6956:   (eval $ac_try) 2>&5
1.23      millert  6957:   ac_status=$?
                   6958:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  6959:   (exit $ac_status); }; }; then
                   6960:   ac_cv_lib_svld_dlopen=yes
                   6961: else
                   6962:   echo "$as_me: failed program was:" >&5
                   6963: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6964:
1.25      millert  6965: ac_cv_lib_svld_dlopen=no
1.23      millert  6966: fi
1.25      millert  6967: rm -f conftest.err conftest.$ac_objext \
                   6968:       conftest$ac_exeext conftest.$ac_ext
                   6969: LIBS=$ac_check_lib_save_LIBS
1.23      millert  6970: fi
1.25      millert  6971: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
                   6972: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
                   6973: if test $ac_cv_lib_svld_dlopen = yes; then
                   6974:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1.23      millert  6975: else
1.25      millert  6976:   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
                   6977: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
                   6978: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.23      millert  6979:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6980: else
1.25      millert  6981:   ac_check_lib_save_LIBS=$LIBS
                   6982: LIBS="-ldld  $LIBS"
                   6983: cat >conftest.$ac_ext <<_ACEOF
                   6984: /* confdefs.h.  */
                   6985: _ACEOF
                   6986: cat confdefs.h >>conftest.$ac_ext
                   6987: cat >>conftest.$ac_ext <<_ACEOF
                   6988: /* end confdefs.h.  */
                   6989:
                   6990: /* Override any gcc2 internal prototype to avoid an error.  */
                   6991: #ifdef __cplusplus
                   6992: extern "C"
                   6993: #endif
                   6994: /* We use char because int might match the return type of a gcc2
                   6995:    builtin and then its argument prototype would still apply.  */
                   6996: char dld_link ();
                   6997: int
                   6998: main ()
                   6999: {
                   7000: dld_link ();
                   7001:   ;
                   7002:   return 0;
                   7003: }
                   7004: _ACEOF
                   7005: rm -f conftest.$ac_objext conftest$ac_exeext
                   7006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7007:   (eval $ac_link) 2>conftest.er1
                   7008:   ac_status=$?
                   7009:   grep -v '^ *+' conftest.er1 >conftest.err
                   7010:   rm -f conftest.er1
                   7011:   cat conftest.err >&5
                   7012:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7013:   (exit $ac_status); } &&
                   7014:         { ac_try='test -z "$ac_c_werror_flag"
                   7015:                         || test ! -s conftest.err'
                   7016:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   7017:   (eval $ac_try) 2>&5
                   7018:   ac_status=$?
                   7019:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7020:   (exit $ac_status); }; } &&
                   7021:         { ac_try='test -s conftest$ac_exeext'
                   7022:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   7023:   (eval $ac_try) 2>&5
                   7024:   ac_status=$?
                   7025:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7026:   (exit $ac_status); }; }; then
                   7027:   ac_cv_lib_dld_dld_link=yes
1.23      millert  7028: else
1.25      millert  7029:   echo "$as_me: failed program was:" >&5
                   7030: sed 's/^/| /' conftest.$ac_ext >&5
                   7031:
                   7032: ac_cv_lib_dld_dld_link=no
                   7033: fi
                   7034: rm -f conftest.err conftest.$ac_objext \
                   7035:       conftest$ac_exeext conftest.$ac_ext
                   7036: LIBS=$ac_check_lib_save_LIBS
                   7037: fi
                   7038: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
                   7039: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
                   7040: if test $ac_cv_lib_dld_dld_link = yes; then
                   7041:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1.23      millert  7042: fi
1.25      millert  7043:
                   7044:
1.23      millert  7045: fi
                   7046:
                   7047:
1.25      millert  7048: fi
1.23      millert  7049:
                   7050:
1.25      millert  7051: fi
1.23      millert  7052:
                   7053:
1.25      millert  7054: fi
1.23      millert  7055:
                   7056:
1.25      millert  7057: fi
                   7058:
                   7059:     ;;
                   7060:   esac
1.23      millert  7061:
1.25      millert  7062:   if test "x$lt_cv_dlopen" != xno; then
                   7063:     enable_dlopen=yes
                   7064:   else
                   7065:     enable_dlopen=no
                   7066:   fi
1.23      millert  7067:
1.25      millert  7068:   case $lt_cv_dlopen in
                   7069:   dlopen)
                   7070:     save_CPPFLAGS="$CPPFLAGS"
                   7071:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23      millert  7072:
1.25      millert  7073:     save_LDFLAGS="$LDFLAGS"
                   7074:     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.23      millert  7075:
1.25      millert  7076:     save_LIBS="$LIBS"
                   7077:     LIBS="$lt_cv_dlopen_libs $LIBS"
1.23      millert  7078:
1.25      millert  7079:     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
                   7080: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
                   7081: if test "${lt_cv_dlopen_self+set}" = set; then
1.23      millert  7082:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7083: else
1.25      millert  7084:          if test "$cross_compiling" = yes; then :
                   7085:   lt_cv_dlopen_self=cross
1.23      millert  7086: else
1.25      millert  7087:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   7088:   lt_status=$lt_dlunknown
                   7089:   cat > conftest.$ac_ext <<_LT_EOF
                   7090: #line 7090 "configure"
                   7091: #include "confdefs.h"
                   7092:
                   7093: #if HAVE_DLFCN_H
                   7094: #include <dlfcn.h>
                   7095: #endif
                   7096:
                   7097: #include <stdio.h>
                   7098:
                   7099: #ifdef RTLD_GLOBAL
                   7100: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   7101: #else
                   7102: #  ifdef DL_GLOBAL
                   7103: #    define LT_DLGLOBAL                DL_GLOBAL
                   7104: #  else
                   7105: #    define LT_DLGLOBAL                0
                   7106: #  endif
                   7107: #endif
                   7108:
                   7109: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   7110:    find out it does not work in some platform. */
                   7111: #ifndef LT_DLLAZY_OR_NOW
                   7112: #  ifdef RTLD_LAZY
                   7113: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   7114: #  else
                   7115: #    ifdef DL_LAZY
                   7116: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   7117: #    else
                   7118: #      ifdef RTLD_NOW
                   7119: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   7120: #      else
                   7121: #        ifdef DL_NOW
                   7122: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   7123: #        else
                   7124: #          define LT_DLLAZY_OR_NOW     0
                   7125: #        endif
                   7126: #      endif
                   7127: #    endif
                   7128: #  endif
                   7129: #endif
                   7130:
                   7131: #ifdef __cplusplus
                   7132: extern "C" void exit (int);
                   7133: #endif
                   7134:
                   7135: void fnord() { int i=42;}
                   7136: int main ()
                   7137: {
                   7138:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   7139:   int status = $lt_dlunknown;
1.23      millert  7140:
1.25      millert  7141:   if (self)
                   7142:     {
                   7143:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   7144:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   7145:       /* dlclose (self); */
                   7146:     }
1.23      millert  7147:
1.25      millert  7148:     exit (status);
                   7149: }
                   7150: _LT_EOF
                   7151:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7152:   (eval $ac_link) 2>&5
                   7153:   ac_status=$?
                   7154:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7155:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   7156:     (./conftest; exit; ) 2>/dev/null
                   7157:     lt_status=$?
                   7158:     case x$lt_status in
                   7159:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   7160:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   7161:       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
                   7162:     esac
                   7163:   else :
                   7164:     # compilation failed
                   7165:     lt_cv_dlopen_self=no
                   7166:   fi
1.23      millert  7167: fi
1.25      millert  7168: rm -fr conftest*
1.23      millert  7169:
                   7170:
                   7171: fi
1.25      millert  7172: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
                   7173: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.23      millert  7174:
1.25      millert  7175:     if test "x$lt_cv_dlopen_self" = xyes; then
                   7176:       LDFLAGS="$LDFLAGS $link_static_flag"
                   7177:       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
                   7178: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
                   7179: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.23      millert  7180:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7181: else
1.25      millert  7182:          if test "$cross_compiling" = yes; then :
                   7183:   lt_cv_dlopen_self_static=cross
1.23      millert  7184: else
1.25      millert  7185:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   7186:   lt_status=$lt_dlunknown
                   7187:   cat > conftest.$ac_ext <<_LT_EOF
                   7188: #line 7188 "configure"
                   7189: #include "confdefs.h"
1.23      millert  7190:
1.25      millert  7191: #if HAVE_DLFCN_H
                   7192: #include <dlfcn.h>
                   7193: #endif
1.23      millert  7194:
1.25      millert  7195: #include <stdio.h>
1.23      millert  7196:
1.25      millert  7197: #ifdef RTLD_GLOBAL
                   7198: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   7199: #else
                   7200: #  ifdef DL_GLOBAL
                   7201: #    define LT_DLGLOBAL                DL_GLOBAL
                   7202: #  else
                   7203: #    define LT_DLGLOBAL                0
                   7204: #  endif
                   7205: #endif
                   7206:
                   7207: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   7208:    find out it does not work in some platform. */
                   7209: #ifndef LT_DLLAZY_OR_NOW
                   7210: #  ifdef RTLD_LAZY
                   7211: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   7212: #  else
                   7213: #    ifdef DL_LAZY
                   7214: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   7215: #    else
                   7216: #      ifdef RTLD_NOW
                   7217: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   7218: #      else
                   7219: #        ifdef DL_NOW
                   7220: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   7221: #        else
                   7222: #          define LT_DLLAZY_OR_NOW     0
                   7223: #        endif
                   7224: #      endif
                   7225: #    endif
                   7226: #  endif
                   7227: #endif
                   7228:
                   7229: #ifdef __cplusplus
                   7230: extern "C" void exit (int);
                   7231: #endif
                   7232:
                   7233: void fnord() { int i=42;}
                   7234: int main ()
                   7235: {
                   7236:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   7237:   int status = $lt_dlunknown;
                   7238:
                   7239:   if (self)
                   7240:     {
                   7241:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   7242:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   7243:       /* dlclose (self); */
                   7244:     }
                   7245:
                   7246:     exit (status);
                   7247: }
                   7248: _LT_EOF
                   7249:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7250:   (eval $ac_link) 2>&5
                   7251:   ac_status=$?
                   7252:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7253:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   7254:     (./conftest; exit; ) 2>/dev/null
                   7255:     lt_status=$?
                   7256:     case x$lt_status in
                   7257:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   7258:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   7259:       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
                   7260:     esac
                   7261:   else :
                   7262:     # compilation failed
                   7263:     lt_cv_dlopen_self_static=no
                   7264:   fi
1.23      millert  7265: fi
1.25      millert  7266: rm -fr conftest*
                   7267:
                   7268:
1.23      millert  7269: fi
1.25      millert  7270: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
                   7271: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
                   7272:     fi
                   7273:
                   7274:     CPPFLAGS="$save_CPPFLAGS"
                   7275:     LDFLAGS="$save_LDFLAGS"
                   7276:     LIBS="$save_LIBS"
                   7277:     ;;
                   7278:   esac
                   7279:
                   7280:   case $lt_cv_dlopen_self in
                   7281:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   7282:   *) enable_dlopen_self=unknown ;;
                   7283:   esac
                   7284:
                   7285:   case $lt_cv_dlopen_self_static in
                   7286:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   7287:   *) enable_dlopen_self_static=unknown ;;
                   7288:   esac
1.23      millert  7289: fi
                   7290:
                   7291:
                   7292:
                   7293:
                   7294:
                   7295:
                   7296:
                   7297:
                   7298:
                   7299:
                   7300:
                   7301:
                   7302:
                   7303:
                   7304:
                   7305:
1.25      millert  7306: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
                   7307: if test "${enable_libtool_lock+set}" = set; then
                   7308:   enableval="$enable_libtool_lock"
                   7309:
                   7310: fi;
                   7311: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
                   7312:
                   7313: # Some flags need to be propagated to the compiler or linker for good
                   7314: # libtool support.
                   7315: case $host in
                   7316: ia64-*-hpux*)
                   7317:   # Find out which ABI we are using.
                   7318:   $ECHO 'int i;' > conftest.$ac_ext
                   7319:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7320:   (eval $ac_compile) 2>&5
                   7321:   ac_status=$?
                   7322:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7323:   (exit $ac_status); }; then
                   7324:     case `/usr/bin/file conftest.$ac_objext` in
                   7325:       *ELF-32*)
                   7326:        HPUX_IA64_MODE="32"
                   7327:        ;;
                   7328:       *ELF-64*)
                   7329:        HPUX_IA64_MODE="64"
                   7330:        ;;
                   7331:     esac
                   7332:   fi
                   7333:   rm -rf conftest*
                   7334:   ;;
                   7335: *-*-irix6*)
                   7336:   # Find out which ABI we are using.
                   7337:   $ECHO '#line 7337 "configure"' > conftest.$ac_ext
                   7338:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7339:   (eval $ac_compile) 2>&5
                   7340:   ac_status=$?
                   7341:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7342:   (exit $ac_status); }; then
                   7343:     if test "$lt_cv_prog_gnu_ld" = yes; then
                   7344:       case `/usr/bin/file conftest.$ac_objext` in
                   7345:        *32-bit*)
                   7346:          LD="${LD-ld} -melf32bsmip"
                   7347:          ;;
                   7348:        *N32*)
                   7349:          LD="${LD-ld} -melf32bmipn32"
                   7350:          ;;
                   7351:        *64-bit*)
                   7352:          LD="${LD-ld} -melf64bmip"
                   7353:        ;;
                   7354:       esac
                   7355:     else
                   7356:       case `/usr/bin/file conftest.$ac_objext` in
                   7357:        *32-bit*)
                   7358:          LD="${LD-ld} -32"
                   7359:          ;;
                   7360:        *N32*)
                   7361:          LD="${LD-ld} -n32"
                   7362:          ;;
                   7363:        *64-bit*)
                   7364:          LD="${LD-ld} -64"
                   7365:          ;;
                   7366:       esac
                   7367:     fi
                   7368:   fi
                   7369:   rm -rf conftest*
                   7370:   ;;
                   7371:
                   7372: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
                   7373:   # Find out which ABI we are using.
                   7374:   $ECHO 'int i;' > conftest.$ac_ext
                   7375:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7376:   (eval $ac_compile) 2>&5
                   7377:   ac_status=$?
                   7378:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7379:   (exit $ac_status); }; then
                   7380:     case "`/usr/bin/file conftest.o`" in
                   7381:       *32-bit*)
                   7382:        case $host in
                   7383:          x86_64-*linux*)
                   7384:            LD="${LD-ld} -m elf_i386"
                   7385:            ;;
                   7386:          ppc64-*linux*|powerpc64-*linux*)
                   7387:            LD="${LD-ld} -m elf32ppclinux"
                   7388:            ;;
                   7389:          s390x-*linux*)
                   7390:            LD="${LD-ld} -m elf_s390"
                   7391:            ;;
                   7392:          sparc64-*linux*)
                   7393:            LD="${LD-ld} -m elf32_sparc"
                   7394:            ;;
                   7395:        esac
                   7396:        ;;
                   7397:       *64-bit*)
                   7398:        case $host in
                   7399:          x86_64-*linux*)
                   7400:            LD="${LD-ld} -m elf_x86_64"
                   7401:            ;;
                   7402:          ppc*-*linux*|powerpc*-*linux*)
                   7403:            LD="${LD-ld} -m elf64ppc"
                   7404:            ;;
                   7405:          s390*-*linux*|s390*-*tpf*)
                   7406:            LD="${LD-ld} -m elf64_s390"
                   7407:            ;;
                   7408:          sparc*-*linux*)
                   7409:            LD="${LD-ld} -m elf64_sparc"
                   7410:            ;;
                   7411:        esac
                   7412:        ;;
                   7413:     esac
                   7414:   fi
                   7415:   rm -rf conftest*
                   7416:   ;;
                   7417:
                   7418: *-*-sco3.2v5*)
                   7419:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   7420:   SAVE_CFLAGS="$CFLAGS"
                   7421:   CFLAGS="$CFLAGS -belf"
                   7422:   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   7423: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
                   7424: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23      millert  7425:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7426: else
1.25      millert  7427:   ac_ext=c
                   7428: ac_cpp='$CPP $CPPFLAGS'
                   7429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  7432:
1.25      millert  7433:      cat >conftest.$ac_ext <<_ACEOF
                   7434: /* confdefs.h.  */
                   7435: _ACEOF
                   7436: cat confdefs.h >>conftest.$ac_ext
                   7437: cat >>conftest.$ac_ext <<_ACEOF
                   7438: /* end confdefs.h.  */
1.23      millert  7439:
1.25      millert  7440: int
                   7441: main ()
                   7442: {
1.23      millert  7443:
1.25      millert  7444:   ;
                   7445:   return 0;
                   7446: }
                   7447: _ACEOF
                   7448: rm -f conftest.$ac_objext conftest$ac_exeext
                   7449: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7450:   (eval $ac_link) 2>conftest.er1
                   7451:   ac_status=$?
                   7452:   grep -v '^ *+' conftest.er1 >conftest.err
                   7453:   rm -f conftest.er1
                   7454:   cat conftest.err >&5
                   7455:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7456:   (exit $ac_status); } &&
                   7457:         { ac_try='test -z "$ac_c_werror_flag"
                   7458:                         || test ! -s conftest.err'
                   7459:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   7460:   (eval $ac_try) 2>&5
                   7461:   ac_status=$?
                   7462:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7463:   (exit $ac_status); }; } &&
                   7464:         { ac_try='test -s conftest$ac_exeext'
                   7465:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   7466:   (eval $ac_try) 2>&5
                   7467:   ac_status=$?
                   7468:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7469:   (exit $ac_status); }; }; then
                   7470:   lt_cv_cc_needs_belf=yes
1.23      millert  7471: else
1.25      millert  7472:   echo "$as_me: failed program was:" >&5
                   7473: sed 's/^/| /' conftest.$ac_ext >&5
                   7474:
                   7475: lt_cv_cc_needs_belf=no
1.23      millert  7476: fi
1.25      millert  7477: rm -f conftest.err conftest.$ac_objext \
                   7478:       conftest$ac_exeext conftest.$ac_ext
                   7479:      ac_ext=c
                   7480: ac_cpp='$CPP $CPPFLAGS'
                   7481: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7482: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7483: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  7484:
                   7485: fi
1.25      millert  7486: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   7487: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
                   7488:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   7489:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   7490:     CFLAGS="$SAVE_CFLAGS"
1.23      millert  7491:   fi
                   7492:   ;;
                   7493: esac
                   7494:
1.25      millert  7495: need_locks="$enable_libtool_lock"
                   7496:
1.23      millert  7497:
1.25      millert  7498: # This can be used to rebuild libtool when needed
                   7499: LIBTOOL_DEPS="$ltmain"
1.23      millert  7500:
1.25      millert  7501: # Always use our own libtool.
                   7502: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23      millert  7503:
1.25      millert  7504: # Set options
1.23      millert  7505:
1.25      millert  7506:     # Check whether --enable-static or --disable-static was given.
                   7507: if test "${enable_static+set}" = set; then
                   7508:   enableval="$enable_static"
                   7509:   p=${PACKAGE-default}
                   7510:     case $enableval in
                   7511:     yes) enable_static=yes ;;
                   7512:     no) enable_static=no ;;
                   7513:     *)
                   7514:      enable_static=no
                   7515:       # Look at the argument we got.  We use all the common list separators.
                   7516:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   7517:       for pkg in $enableval; do
                   7518:        IFS="$lt_save_ifs"
                   7519:        if test "X$pkg" = "X$p"; then
                   7520:          enable_static=yes
                   7521:        fi
                   7522:       done
                   7523:       IFS="$lt_save_ifs"
                   7524:       ;;
                   7525:     esac
1.23      millert  7526: else
1.25      millert  7527:   enable_static=no
1.23      millert  7528: fi;
                   7529:
                   7530:
                   7531:
                   7532:
                   7533:
                   7534:
1.25      millert  7535:
                   7536:     enable_dlopen=no
                   7537:
                   7538: enable_win32_dll=no
                   7539:
                   7540: # Check whether --enable-shared or --disable-shared was given.
                   7541: if test "${enable_shared+set}" = set; then
                   7542:   enableval="$enable_shared"
                   7543:   p=${PACKAGE-default}
                   7544:     case $enableval in
                   7545:     yes) enable_shared=yes ;;
                   7546:     no) enable_shared=no ;;
                   7547:     *)
                   7548:       enable_shared=no
                   7549:       # Look at the argument we got.  We use all the common list separators.
                   7550:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   7551:       for pkg in $enableval; do
                   7552:        IFS="$lt_save_ifs"
                   7553:        if test "X$pkg" = "X$p"; then
                   7554:          enable_shared=yes
                   7555:        fi
                   7556:       done
                   7557:       IFS="$lt_save_ifs"
                   7558:       ;;
                   7559:     esac
                   7560: else
                   7561:   enable_shared=yes
                   7562: fi;
                   7563:
1.23      millert  7564:
                   7565:
                   7566:
                   7567:
                   7568:
                   7569:
                   7570:
                   7571:
                   7572:
1.25      millert  7573: # Check whether --with-pic or --without-pic was given.
                   7574: if test "${with_pic+set}" = set; then
                   7575:   withval="$with_pic"
                   7576:   pic_mode="$withval"
1.23      millert  7577: else
1.25      millert  7578:   pic_mode=default
                   7579: fi;
1.23      millert  7580:
1.25      millert  7581: test -z "$pic_mode" && pic_mode=default
1.23      millert  7582:
                   7583:
                   7584:
                   7585:
                   7586:
                   7587:
                   7588:
1.25      millert  7589: # Check whether --enable-fast-install or --disable-fast-install was given.
                   7590: if test "${enable_fast_install+set}" = set; then
                   7591:   enableval="$enable_fast_install"
                   7592:   p=${PACKAGE-default}
                   7593:     case $enableval in
                   7594:     yes) enable_fast_install=yes ;;
                   7595:     no) enable_fast_install=no ;;
                   7596:     *)
                   7597:       enable_fast_install=no
                   7598:       # Look at the argument we got.  We use all the common list separators.
                   7599:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   7600:       for pkg in $enableval; do
                   7601:        IFS="$lt_save_ifs"
                   7602:        if test "X$pkg" = "X$p"; then
                   7603:          enable_fast_install=yes
                   7604:        fi
                   7605:       done
                   7606:       IFS="$lt_save_ifs"
                   7607:       ;;
                   7608:     esac
1.23      millert  7609: else
1.25      millert  7610:   enable_fast_install=yes
                   7611: fi;
1.23      millert  7612:
                   7613:
                   7614:
                   7615:
                   7616:
                   7617:
                   7618:
                   7619:
                   7620:
                   7621:
                   7622:
                   7623:
                   7624:
                   7625:
                   7626:
                   7627:
1.25      millert  7628: test -z "$LN_S" && LN_S="ln -s"
                   7629:
1.23      millert  7630:
                   7631:
                   7632:
                   7633:
                   7634:
                   7635:
                   7636:
                   7637:
                   7638:
                   7639:
                   7640:
                   7641:
                   7642:
1.25      millert  7643: if test -n "${ZSH_VERSION+set}" ; then
                   7644:    setopt NO_GLOB_SUBST
1.23      millert  7645: fi
                   7646:
1.25      millert  7647: echo "$as_me:$LINENO: checking for objdir" >&5
                   7648: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
                   7649: if test "${lt_cv_objdir+set}" = set; then
                   7650:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7651: else
                   7652:   rm -f .libs 2>/dev/null
                   7653: mkdir .libs 2>/dev/null
                   7654: if test -d .libs; then
                   7655:   lt_cv_objdir=.libs
1.23      millert  7656: else
1.25      millert  7657:   # MS-DOS does not allow filenames that begin with a dot.
                   7658:   lt_cv_objdir=_libs
                   7659: fi
                   7660: rmdir .libs 2>/dev/null
1.23      millert  7661: fi
1.25      millert  7662: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
                   7663: echo "${ECHO_T}$lt_cv_objdir" >&6
                   7664: objdir=$lt_cv_objdir
                   7665:
                   7666:
                   7667:
1.23      millert  7668:
                   7669:
1.25      millert  7670: cat >>confdefs.h <<_ACEOF
                   7671: #define LT_OBJDIR "$lt_cv_objdir/"
                   7672: _ACEOF
1.23      millert  7673:
                   7674:
                   7675:
                   7676:
                   7677:
                   7678:
                   7679:
                   7680:
                   7681:
                   7682:
                   7683:
                   7684:
                   7685:
                   7686:
                   7687:
                   7688:
                   7689:
1.25      millert  7690: case $host_os in
                   7691: aix3*)
                   7692:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   7693:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   7694:   # vanish in a puff of smoke.
                   7695:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   7696:     COLLECT_NAMES=
                   7697:     export COLLECT_NAMES
                   7698:   fi
                   7699:   ;;
                   7700: esac
1.23      millert  7701:
1.25      millert  7702: # Sed substitution that helps us do robust quoting.  It backslashifies
                   7703: # metacharacters that are still active within double-quoted strings.
                   7704: Xsed='sed -e s/^X//'
                   7705: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.23      millert  7706:
1.25      millert  7707: # Same as above, but do not quote variable references.
                   7708: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.23      millert  7709:
1.25      millert  7710: # Sed substitution to delay expansion of an escaped shell variable in a
                   7711: # double_quote_subst'ed string.
                   7712: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.23      millert  7713:
1.25      millert  7714: # Sed substitution to delay expansion of an escaped single quote.
                   7715: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.23      millert  7716:
1.25      millert  7717: # Sed substitution to avoid accidental globbing in evaled expressions
                   7718: no_glob_subst='s/\*/\\\*/g'
1.23      millert  7719:
1.25      millert  7720: # Constants:
                   7721: RM="rm -f"
1.23      millert  7722:
1.25      millert  7723: # Global variables:
                   7724: default_ofile=libtool
                   7725: ofile="$default_ofile"
                   7726: can_build_shared=yes
1.23      millert  7727:
1.25      millert  7728: # All known linkers require a `.a' archive for static linking (except M$VC,
                   7729: # which needs '.lib').
                   7730: libext=a
1.23      millert  7731:
1.25      millert  7732: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.23      millert  7733:
1.25      millert  7734: old_CC="$CC"
                   7735: old_CFLAGS="$CFLAGS"
1.23      millert  7736:
1.25      millert  7737: # Set sane defaults for various variables
                   7738: test -z "$CC" && CC=cc
                   7739: test -z "$LTCC" && LTCC=$CC
                   7740: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   7741: test -z "$LD" && LD=ld
                   7742: test -z "$ac_objext" && ac_objext=o
1.23      millert  7743:
1.25      millert  7744: cc_basename=`$ECHO X"$compiler" | $Xsed -e 's%^.*/%%'`
1.23      millert  7745:
1.25      millert  7746: # Only perform the check for file, if the check method requires it
                   7747: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   7748: case $deplibs_check_method in
                   7749: file_magic*)
                   7750:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   7751:     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
                   7752: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
                   7753: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
                   7754:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7755: else
                   7756:   case $MAGIC_CMD in
                   7757: [\\/*] |  ?:[\\/]*)
                   7758:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7759:   ;;
                   7760: *)
                   7761:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7762:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7763:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7764:   for ac_dir in $ac_dummy; do
                   7765:     IFS="$lt_save_ifs"
                   7766:     test -z "$ac_dir" && ac_dir=.
                   7767:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   7768:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   7769:       if test -n "$file_magic_test_file"; then
                   7770:        case $deplibs_check_method in
                   7771:        "file_magic "*)
                   7772:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7773:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7774:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7775:            $EGREP "$file_magic_regex" > /dev/null; then
                   7776:            :
1.23      millert  7777:          else
1.25      millert  7778:            cat <<_LT_EOF 1>&2
                   7779:
                   7780: *** Warning: the command libtool uses to detect shared libraries,
                   7781: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7782: *** The result is that libtool may fail to recognize shared libraries
                   7783: *** as such.  This will affect the creation of libtool libraries that
                   7784: *** depend on shared libraries, but programs linked with such libtool
                   7785: *** libraries will work regardless of this problem.  Nevertheless, you
                   7786: *** may want to report the problem to your system manager and/or to
                   7787: *** bug-libtool@gnu.org
                   7788:
                   7789: _LT_EOF
                   7790:          fi ;;
1.23      millert  7791:        esac
                   7792:       fi
1.25      millert  7793:       break
                   7794:     fi
                   7795:   done
                   7796:   IFS="$lt_save_ifs"
                   7797:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7798:   ;;
                   7799: esac
                   7800: fi
                   7801:
                   7802: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7803: if test -n "$MAGIC_CMD"; then
                   7804:   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7805: echo "${ECHO_T}$MAGIC_CMD" >&6
                   7806: else
                   7807:   echo "$as_me:$LINENO: result: no" >&5
                   7808: echo "${ECHO_T}no" >&6
                   7809: fi
                   7810:
                   7811:
1.23      millert  7812:
                   7813:
                   7814:
1.25      millert  7815: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   7816:   if test -n "$ac_tool_prefix"; then
                   7817:     echo "$as_me:$LINENO: checking for file" >&5
                   7818: echo $ECHO_N "checking for file... $ECHO_C" >&6
                   7819: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
                   7820:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7821: else
                   7822:   case $MAGIC_CMD in
                   7823: [\\/*] |  ?:[\\/]*)
                   7824:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7825:   ;;
                   7826: *)
                   7827:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7828:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7829:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7830:   for ac_dir in $ac_dummy; do
                   7831:     IFS="$lt_save_ifs"
                   7832:     test -z "$ac_dir" && ac_dir=.
                   7833:     if test -f $ac_dir/file; then
                   7834:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   7835:       if test -n "$file_magic_test_file"; then
                   7836:        case $deplibs_check_method in
                   7837:        "file_magic "*)
                   7838:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7839:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7840:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7841:            $EGREP "$file_magic_regex" > /dev/null; then
                   7842:            :
                   7843:          else
                   7844:            cat <<_LT_EOF 1>&2
                   7845:
                   7846: *** Warning: the command libtool uses to detect shared libraries,
                   7847: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7848: *** The result is that libtool may fail to recognize shared libraries
                   7849: *** as such.  This will affect the creation of libtool libraries that
                   7850: *** depend on shared libraries, but programs linked with such libtool
                   7851: *** libraries will work regardless of this problem.  Nevertheless, you
                   7852: *** may want to report the problem to your system manager and/or to
                   7853: *** bug-libtool@gnu.org
                   7854:
                   7855: _LT_EOF
                   7856:          fi ;;
                   7857:        esac
                   7858:       fi
                   7859:       break
                   7860:     fi
                   7861:   done
                   7862:   IFS="$lt_save_ifs"
                   7863:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7864:   ;;
                   7865: esac
                   7866: fi
1.23      millert  7867:
1.25      millert  7868: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7869: if test -n "$MAGIC_CMD"; then
                   7870:   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7871: echo "${ECHO_T}$MAGIC_CMD" >&6
1.23      millert  7872: else
1.25      millert  7873:   echo "$as_me:$LINENO: result: no" >&5
                   7874: echo "${ECHO_T}no" >&6
                   7875: fi
                   7876:
1.23      millert  7877:
1.25      millert  7878:   else
                   7879:     MAGIC_CMD=:
                   7880:   fi
1.23      millert  7881: fi
                   7882:
1.25      millert  7883:   fi
                   7884:   ;;
                   7885: esac
                   7886:
                   7887: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
                   7888: if test "${enable_libtool_lock+set}" = set; then
                   7889:   enableval="$enable_libtool_lock"
                   7890:
                   7891: fi;
                   7892: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
                   7893:
                   7894: # Use C for the default configuration in the libtool script
1.23      millert  7895:
1.25      millert  7896: lt_save_CC="$CC"
                   7897: ac_ext=c
                   7898: ac_cpp='$CPP $CPPFLAGS'
                   7899: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7900: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7901: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  7902:
                   7903:
1.25      millert  7904: # Source file extension for C test sources.
                   7905: ac_ext=c
1.23      millert  7906:
1.25      millert  7907: # Object file extension for compiled C test sources.
                   7908: objext=o
                   7909: objext=$objext
1.23      millert  7910:
1.25      millert  7911: # Code to be used in simple compile tests
                   7912: lt_simple_compile_test_code="int some_variable = 0;\n"
1.23      millert  7913:
1.25      millert  7914: # Code to be used in simple link tests
                   7915: lt_simple_link_test_code='int main(){return(0);}\n'
1.23      millert  7916:
                   7917:
                   7918:
                   7919:
                   7920:
                   7921:
                   7922:
1.25      millert  7923: # If no C compiler was specified, use CC.
                   7924: LTCC=${LTCC-"$CC"}
1.23      millert  7925:
1.25      millert  7926: # If no C compiler flags were specified, use CFLAGS.
                   7927: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  7928:
1.25      millert  7929: # Allow CC to be a program name with arguments.
                   7930: compiler=$CC
1.23      millert  7931:
1.25      millert  7932: # Save the default compiler, since it gets overwritten when the other
                   7933: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
                   7934: compiler_DEFAULT=$CC
1.23      millert  7935:
1.25      millert  7936: #
                   7937: # Check for any special shared library compilation flags.
                   7938: #
                   7939: lt_prog_cc_shlib=
                   7940: if test "$GCC" = no; then
                   7941:   case $host_os in
                   7942:   sco3.2v5*)
                   7943:     lt_prog_cc_shlib='-belf'
                   7944:     ;;
                   7945:   esac
                   7946: fi
                   7947: if test -n "$lt_prog_cc_shlib"; then
                   7948:   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
                   7949: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
                   7950:   if $ECHO "$old_CC $old_CFLAGS " | $GREP "[   ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
                   7951:   else
                   7952:     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
                   7953: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
                   7954:     lt_cv_prog_cc_can_build_shared=no
                   7955:   fi
                   7956: fi
                   7957:
                   7958:
                   7959: ## CAVEAT EMPTOR:
                   7960: ## There is no encapsulation within the following macros, do not change
                   7961: ## the running order or otherwise move them around unless you know exactly
                   7962: ## what you are doing...
                   7963: if test -n "$compiler"; then
                   7964:
                   7965: lt_prog_compiler_no_builtin_flag=
                   7966:
                   7967: if test "$GCC" = yes; then
                   7968:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
                   7969:
                   7970:   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   7971: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
                   7972: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
                   7973:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7974: else
                   7975:   lt_cv_prog_compiler_rtti_exceptions=no
                   7976:    ac_outfile=conftest.$ac_objext
                   7977:    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
                   7978:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   7979:    # Insert the option either (1) after the last *FLAGS variable, or
                   7980:    # (2) before a word containing "conftest.", or (3) at the end.
                   7981:    # Note that $ac_compile itself does not contain backslashes and begins
                   7982:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   7983:    # The option is referenced via a variable to avoid confusing sed.
                   7984:    lt_compile=`$ECHO "$ac_compile" | $SED \
                   7985:    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
                   7986:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   7987:    -e 's:$: $lt_compiler_flag:'`
                   7988:    (eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
                   7989:    (eval "$lt_compile" 2>conftest.err)
                   7990:    ac_status=$?
                   7991:    cat conftest.err >&5
                   7992:    echo "$as_me:7992: \$? = $ac_status" >&5
                   7993:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   7994:      # The compiler can only warn and ignore the option if not recognized
                   7995:      # So say no if there are warnings
                   7996:      if test ! -s conftest.err; then
                   7997:        lt_cv_prog_compiler_rtti_exceptions=yes
                   7998:      fi
                   7999:    fi
                   8000:    $RM conftest*
                   8001:
                   8002: fi
                   8003: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   8004: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
                   8005:
                   8006: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   8007:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
                   8008: else
                   8009:     :
                   8010: fi
                   8011:
                   8012: fi
                   8013:
                   8014:
                   8015:
                   8016:
                   8017:
                   8018:
                   8019:   lt_prog_compiler_wl=
                   8020: lt_prog_compiler_pic=
                   8021: lt_prog_compiler_static=
                   8022:
                   8023: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
                   8024: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.23      millert  8025:
1.25      millert  8026:   if test "$GCC" = yes; then
                   8027:     lt_prog_compiler_wl='-Wl,'
                   8028:     lt_prog_compiler_static='-static'
1.23      millert  8029:
1.25      millert  8030:     case $host_os in
                   8031:       aix*)
                   8032:       # All AIX code is PIC.
                   8033:       if test "$host_cpu" = ia64; then
                   8034:        # AIX 5 now supports IA64 processor
                   8035:        lt_prog_compiler_static='-Bstatic'
1.23      millert  8036:       fi
                   8037:       ;;
                   8038:
1.25      millert  8039:     amigaos*)
                   8040:       if test "$host_cpu" = m68k; then
                   8041:         # FIXME: we need at least 68020 code to build shared libraries, but
                   8042:         # adding the `-m68020' flag to GCC prevents building anything better,
                   8043:         # like `-m68040'.
                   8044:         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
1.23      millert  8045:       fi
                   8046:       ;;
                   8047:
1.25      millert  8048:     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   8049:       # PIC is the default for these OSes.
                   8050:       ;;
                   8051:
                   8052:     mingw* | pw32* | os2*)
                   8053:       # This hack is so that the source file can tell whether it is being
                   8054:       # built for inclusion in a dll (and should export symbols for example).
                   8055:       lt_prog_compiler_pic='-DDLL_EXPORT'
1.23      millert  8056:       ;;
                   8057:
1.25      millert  8058:     darwin* | rhapsody*)
                   8059:       # PIC is the default on this platform
                   8060:       # Common symbols not allowed in MH_DYLIB files
                   8061:       lt_prog_compiler_pic='-fno-common'
1.23      millert  8062:       ;;
                   8063:
1.25      millert  8064:     hpux*)
                   8065:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8066:       # not for PA HP-UX.
1.23      millert  8067:       case "$host_cpu" in
1.25      millert  8068:       hppa*64*|ia64*)
                   8069:        # +Z the default
                   8070:        ;;
                   8071:       *)
                   8072:        lt_prog_compiler_pic='-fPIC'
                   8073:        ;;
1.23      millert  8074:       esac
                   8075:       ;;
                   8076:
1.25      millert  8077:     msdosdjgpp*)
                   8078:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   8079:       # on systems that don't support them.
                   8080:       lt_prog_compiler_can_build_shared=no
                   8081:       enable_shared=no
1.23      millert  8082:       ;;
                   8083:
1.25      millert  8084:     *nto* | *qnx*)
                   8085:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   8086:       # it will coredump.
                   8087:       lt_prog_compiler_pic='-fPIC -shared'
1.23      millert  8088:       ;;
                   8089:
1.25      millert  8090:     sysv4*MP*)
                   8091:       if test -d /usr/nec; then
                   8092:        lt_prog_compiler_pic=-Kconform_pic
1.23      millert  8093:       fi
                   8094:       ;;
                   8095:
1.25      millert  8096:     *)
                   8097:       lt_prog_compiler_pic='-fPIC'
1.23      millert  8098:       ;;
1.25      millert  8099:     esac
                   8100:   else
                   8101:     # PORTME Check for flag to pass linker flags through the system compiler.
                   8102:     case $host_os in
                   8103:     aix*)
                   8104:       lt_prog_compiler_wl='-Wl,'
                   8105:       if test "$host_cpu" = ia64; then
                   8106:        # AIX 5 now supports IA64 processor
                   8107:        lt_prog_compiler_static='-Bstatic'
1.23      millert  8108:       else
1.25      millert  8109:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
1.23      millert  8110:       fi
1.25      millert  8111:       ;;
                   8112:       darwin*)
                   8113:         # PIC is the default on this platform
                   8114:         # Common symbols not allowed in MH_DYLIB files
                   8115:        case "$cc_basename" in
                   8116:          xlc*)
                   8117:          lt_prog_compiler_pic='-qnocommon'
                   8118:          lt_prog_compiler_wl='-Wl,'
                   8119:          ;;
                   8120:        esac
                   8121:        ;;
                   8122:
                   8123:     mingw* | pw32* | os2*)
                   8124:       # This hack is so that the source file can tell whether it is being
                   8125:       # built for inclusion in a dll (and should export symbols for example).
                   8126:       lt_prog_compiler_pic='-DDLL_EXPORT'
1.23      millert  8127:       ;;
                   8128:
1.25      millert  8129:     hpux9* | hpux10* | hpux11*)
                   8130:       lt_prog_compiler_wl='-Wl,'
                   8131:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8132:       # not for PA HP-UX.
                   8133:       case "$host_cpu" in
                   8134:       hppa*64*|ia64*)
                   8135:        # +Z the default
                   8136:        ;;
                   8137:       *)
                   8138:        lt_prog_compiler_pic='+Z'
                   8139:        ;;
                   8140:       esac
                   8141:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   8142:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   8143:       ;;
                   8144:
                   8145:     irix5* | irix6* | nonstopux*)
                   8146:       lt_prog_compiler_wl='-Wl,'
                   8147:       # PIC (with -KPIC) is the default.
                   8148:       lt_prog_compiler_static='-non_shared'
1.23      millert  8149:       ;;
                   8150:
1.25      millert  8151:     linux*)
                   8152:       case $CC in
                   8153:       icc* | ecc*)
                   8154:        lt_prog_compiler_wl='-Wl,'
                   8155:        lt_prog_compiler_pic='-KPIC'
                   8156:        lt_prog_compiler_static='-static'
                   8157:         ;;
                   8158:       ccc*)
                   8159:         lt_prog_compiler_wl='-Wl,'
                   8160:         # All Alpha code is PIC.
                   8161:         lt_prog_compiler_static='-non_shared'
1.23      millert  8162:         ;;
                   8163:       esac
                   8164:       ;;
                   8165:
1.25      millert  8166:     newsos6)
                   8167:       lt_prog_compiler_pic='-KPIC'
                   8168:       lt_prog_compiler_static='-Bstatic'
                   8169:       ;;
                   8170:
                   8171:     *nto* | *qnx*)
                   8172:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   8173:       # it will coredump.
                   8174:       lt_prog_compiler_pic='-fPIC -shared'
                   8175:       ;;
                   8176:
                   8177:     osf3* | osf4* | osf5*)
                   8178:       lt_prog_compiler_wl='-Wl,'
                   8179:       # All OSF/1 code is PIC.
                   8180:       lt_prog_compiler_static='-non_shared'
                   8181:       ;;
                   8182:
                   8183:     sco3.2v5*)
                   8184:       lt_prog_compiler_pic='-Kpic'
                   8185:       lt_prog_compiler_static='-dn'
1.23      millert  8186:       ;;
                   8187:
1.25      millert  8188:     solaris*)
                   8189:       lt_prog_compiler_wl='-Wl,'
                   8190:       lt_prog_compiler_pic='-KPIC'
                   8191:       lt_prog_compiler_static='-Bstatic'
1.23      millert  8192:       ;;
                   8193:
1.25      millert  8194:     sunos4*)
                   8195:       lt_prog_compiler_wl='-Qoption ld '
                   8196:       lt_prog_compiler_pic='-PIC'
                   8197:       lt_prog_compiler_static='-Bstatic'
1.23      millert  8198:       ;;
                   8199:
1.25      millert  8200:     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   8201:       lt_prog_compiler_wl='-Wl,'
                   8202:       lt_prog_compiler_pic='-KPIC'
                   8203:       lt_prog_compiler_static='-Bstatic'
1.23      millert  8204:       ;;
                   8205:
1.25      millert  8206:     sysv4*MP*)
                   8207:       if test -d /usr/nec ;then
                   8208:        lt_prog_compiler_pic='-Kconform_pic'
                   8209:        lt_prog_compiler_static='-Bstatic'
                   8210:       fi
1.23      millert  8211:       ;;
                   8212:
                   8213:     uts4*)
1.25      millert  8214:       lt_prog_compiler_pic='-pic'
                   8215:       lt_prog_compiler_static='-Bstatic'
1.23      millert  8216:       ;;
                   8217:
                   8218:     *)
1.25      millert  8219:       lt_prog_compiler_can_build_shared=no
1.23      millert  8220:       ;;
                   8221:     esac
                   8222:   fi
                   8223:
1.25      millert  8224: case "$host_os" in
                   8225:   # For platforms which do not support PIC, -DPIC is meaningless:
                   8226:   *djgpp*)
                   8227:     lt_prog_compiler_pic=
                   8228:     ;;
                   8229:   *)
                   8230:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
                   8231:     ;;
                   8232: esac
                   8233: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
                   8234: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1.23      millert  8235:
                   8236:
                   8237:
                   8238:
                   8239:
                   8240:
1.25      millert  8241: #
                   8242: # Check to make sure the PIC flag actually works.
                   8243: #
                   8244: if test -n "$lt_prog_compiler_pic"; then
                   8245:   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   8246: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
                   8247: if test "${lt_prog_compiler_pic_works+set}" = set; then
                   8248:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  8249: else
1.25      millert  8250:   lt_prog_compiler_pic_works=no
                   8251:    ac_outfile=conftest.$ac_objext
                   8252:    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8253:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   8254:    # Insert the option either (1) after the last *FLAGS variable, or
                   8255:    # (2) before a word containing "conftest.", or (3) at the end.
                   8256:    # Note that $ac_compile itself does not contain backslashes and begins
                   8257:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8258:    # The option is referenced via a variable to avoid confusing sed.
                   8259:    lt_compile=`$ECHO "$ac_compile" | $SED \
                   8260:    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
                   8261:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8262:    -e 's:$: $lt_compiler_flag:'`
                   8263:    (eval echo "\"\$as_me:8263: $lt_compile\"" >&5)
                   8264:    (eval "$lt_compile" 2>conftest.err)
                   8265:    ac_status=$?
                   8266:    cat conftest.err >&5
                   8267:    echo "$as_me:8267: \$? = $ac_status" >&5
                   8268:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8269:      # The compiler can only warn and ignore the option if not recognized
                   8270:      # So say no if there are warnings
                   8271:      if test ! -s conftest.err; then
                   8272:        lt_prog_compiler_pic_works=yes
                   8273:      fi
                   8274:    fi
                   8275:    $RM conftest*
                   8276:
                   8277: fi
                   8278: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
                   8279: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
                   8280:
                   8281: if test x"$lt_prog_compiler_pic_works" = xyes; then
                   8282:     case $lt_prog_compiler_pic in
                   8283:      "" | " "*) ;;
                   8284:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   8285:      esac
                   8286: else
                   8287:     lt_prog_compiler_pic=
                   8288:      lt_prog_compiler_can_build_shared=no
1.23      millert  8289: fi
                   8290:
                   8291: fi
                   8292:
1.25      millert  8293:
                   8294:
                   8295:
                   8296:
                   8297:
                   8298: #
                   8299: # Check to make sure the static flag actually works.
                   8300: #
                   8301: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
                   8302: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
                   8303: if test "${lt_prog_compiler_static_works+set}" = set; then
                   8304:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  8305: else
1.25      millert  8306:   lt_prog_compiler_static_works=no
                   8307:    save_LDFLAGS="$LDFLAGS"
                   8308:    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
                   8309:    printf "$lt_simple_link_test_code" > conftest.$ac_ext
                   8310:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   8311:      # The compiler can only warn and ignore the option if not recognized
                   8312:      # So say no if there are warnings
                   8313:      if test -s conftest.err; then
                   8314:        # Append any errors to the config.log.
                   8315:        cat conftest.err 1>&5
                   8316:      else
                   8317:        lt_prog_compiler_static_works=yes
                   8318:      fi
                   8319:    fi
                   8320:    $RM conftest*
                   8321:    LDFLAGS="$save_LDFLAGS"
                   8322:
1.23      millert  8323: fi
1.25      millert  8324: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
                   8325: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1.23      millert  8326:
1.25      millert  8327: if test x"$lt_prog_compiler_static_works" = xyes; then
                   8328:     :
1.23      millert  8329: else
1.25      millert  8330:     lt_prog_compiler_static=
1.23      millert  8331: fi
                   8332:
                   8333:
                   8334:
                   8335:
                   8336:
                   8337:
                   8338:
1.25      millert  8339:   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8340: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
                   8341: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8342:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8343: else
                   8344:   lt_cv_prog_compiler_c_o=no
                   8345:    $RM -r conftest 2>/dev/null
                   8346:    mkdir conftest
                   8347:    cd conftest
                   8348:    mkdir out
                   8349:    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8350:
                   8351:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8352:    # Insert the option either (1) after the last *FLAGS variable, or
                   8353:    # (2) before a word containing "conftest.", or (3) at the end.
                   8354:    # Note that $ac_compile itself does not contain backslashes and begins
                   8355:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8356:    lt_compile=`$ECHO "$ac_compile" | $SED \
                   8357:    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
                   8358:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8359:    -e 's:$: $lt_compiler_flag:'`
                   8360:    (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
                   8361:    (eval "$lt_compile" 2>out/conftest.err)
                   8362:    ac_status=$?
                   8363:    cat out/conftest.err >&5
                   8364:    echo "$as_me:8364: \$? = $ac_status" >&5
                   8365:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8366:    then
                   8367:      # The compiler can only warn and ignore the option if not recognized
                   8368:      # So say no if there are warnings
                   8369:      if test ! -s out/conftest.err; then
                   8370:        lt_cv_prog_compiler_c_o=yes
                   8371:      fi
                   8372:    fi
                   8373:    chmod u+w .
                   8374:    $RM conftest*
                   8375:    # SGI C++ compiler will create directory out/ii_files/ for
                   8376:    # template instantiation
                   8377:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   8378:    $RM out/* && rmdir out
                   8379:    cd ..
                   8380:    rmdir conftest
                   8381:    $RM conftest*
1.23      millert  8382:
1.25      millert  8383: fi
                   8384: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8385: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.23      millert  8386:
                   8387:
                   8388:
                   8389:
                   8390:
                   8391:
                   8392:
1.25      millert  8393: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8394: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
                   8395: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8396:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8397: else
                   8398:   lt_cv_prog_compiler_c_o=no
                   8399:    $RM -r conftest 2>/dev/null
                   8400:    mkdir conftest
                   8401:    cd conftest
                   8402:    mkdir out
                   8403:    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.23      millert  8404:
1.25      millert  8405:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8406:    # Insert the option either (1) after the last *FLAGS variable, or
                   8407:    # (2) before a word containing "conftest.", or (3) at the end.
                   8408:    # Note that $ac_compile itself does not contain backslashes and begins
                   8409:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8410:    lt_compile=`$ECHO "$ac_compile" | $SED \
                   8411:    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
                   8412:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8413:    -e 's:$: $lt_compiler_flag:'`
                   8414:    (eval echo "\"\$as_me:8414: $lt_compile\"" >&5)
                   8415:    (eval "$lt_compile" 2>out/conftest.err)
                   8416:    ac_status=$?
                   8417:    cat out/conftest.err >&5
                   8418:    echo "$as_me:8418: \$? = $ac_status" >&5
                   8419:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8420:    then
                   8421:      # The compiler can only warn and ignore the option if not recognized
                   8422:      # So say no if there are warnings
                   8423:      if test ! -s out/conftest.err; then
                   8424:        lt_cv_prog_compiler_c_o=yes
                   8425:      fi
                   8426:    fi
                   8427:    chmod u+w .
                   8428:    $RM conftest*
                   8429:    # SGI C++ compiler will create directory out/ii_files/ for
                   8430:    # template instantiation
                   8431:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   8432:    $RM out/* && rmdir out
                   8433:    cd ..
                   8434:    rmdir conftest
                   8435:    $RM conftest*
1.23      millert  8436:
1.25      millert  8437: fi
                   8438: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8439: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.23      millert  8440:
                   8441:
                   8442:
                   8443:
1.25      millert  8444: hard_links="nottested"
                   8445: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   8446:   # do not overwrite the value of need_locks provided by the user
                   8447:   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
                   8448: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
                   8449:   hard_links=yes
                   8450:   $RM conftest*
                   8451:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8452:   touch conftest.a
                   8453:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   8454:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8455:   echo "$as_me:$LINENO: result: $hard_links" >&5
                   8456: echo "${ECHO_T}$hard_links" >&6
                   8457:   if test "$hard_links" = no; then
                   8458:     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   8459: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   8460:     need_locks=warn
1.23      millert  8461:   fi
1.25      millert  8462: else
                   8463:   need_locks=no
                   8464: fi
1.23      millert  8465:
                   8466:
                   8467:
                   8468:
                   8469:
                   8470:
1.25      millert  8471:   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   8472: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.23      millert  8473:
1.25      millert  8474:   runpath_var=
                   8475:   allow_undefined_flag=
                   8476:   always_export_symbols=no
                   8477:   archive_cmds=
                   8478:   archive_expsym_cmds=
                   8479:   enable_shared_with_static_runtimes=no
                   8480:   export_dynamic_flag_spec=
                   8481:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   8482:   hardcode_automatic=no
                   8483:   hardcode_direct=no
                   8484:   hardcode_libdir_flag_spec=
                   8485:   hardcode_libdir_flag_spec_ld=
                   8486:   hardcode_libdir_separator=
                   8487:   hardcode_minus_L=no
                   8488:   hardcode_shlibpath_var=unsupported
                   8489:   inherit_rpath=no
                   8490:   link_all_deplibs=unknown
                   8491:   module_cmds=
                   8492:   module_expsym_cmds=
                   8493:   old_archive_from_new_cmds=
                   8494:   old_archive_from_expsyms_cmds=
                   8495:   thread_safe_flag_spec=
                   8496:   whole_archive_flag_spec=
                   8497:   # include_expsyms should be a list of space-separated symbols to be *always*
                   8498:   # included in the symbol list
                   8499:   include_expsyms=
                   8500:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   8501:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   8502:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   8503:   # as well as any symbol that contains `d'.
                   8504:   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
                   8505:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   8506:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   8507:   # the symbol is explicitly referenced.  Since portable code cannot
                   8508:   # rely on this symbol name, it's probably fine to never include it in
                   8509:   # preloaded symbol tables.
                   8510:   extract_expsyms_cmds=
                   8511:
                   8512:   case $host_os in
                   8513:   cygwin* | mingw* | pw32*)
                   8514:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   8515:     # When not using gcc, we currently assume that we are using
                   8516:     # Microsoft Visual C++.
                   8517:     if test "$GCC" != yes; then
                   8518:       with_gnu_ld=no
                   8519:     fi
                   8520:     ;;
                   8521:   openbsd*)
                   8522:     with_gnu_ld=no
                   8523:     ;;
                   8524:   esac
1.23      millert  8525:
1.25      millert  8526:   ld_shlibs=yes
                   8527:   if test "$with_gnu_ld" = yes; then
                   8528:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   8529:     wlarc='${wl}'
1.23      millert  8530:
1.25      millert  8531:     # See if GNU ld supports shared libraries.
                   8532:     case $host_os in
                   8533:     aix3* | aix4* | aix5*)
                   8534:       # On AIX/PPC, the GNU linker is very broken
                   8535:       if test "$host_cpu" != ia64; then
                   8536:        ld_shlibs=no
                   8537:        cat <<_LT_EOF 1>&2
1.23      millert  8538:
1.25      millert  8539: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   8540: *** to be unable to reliably create shared libraries on AIX.
                   8541: *** Therefore, libtool is disabling shared libraries support.  If you
                   8542: *** really care for shared libraries, you may want to modify your PATH
                   8543: *** so that a non-GNU linker is found, and then restart.
1.23      millert  8544:
1.25      millert  8545: _LT_EOF
                   8546:       fi
                   8547:       ;;
1.23      millert  8548:
1.25      millert  8549:     amigaos*)
                   8550:       if test "$host_cpu" = m68k; then
                   8551:         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
                   8552:         hardcode_libdir_flag_spec='-L$libdir'
                   8553:         hardcode_minus_L=yes
                   8554:       fi
1.23      millert  8555:
1.25      millert  8556:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   8557:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   8558:       # to version 4, is to share data among multiple programs linked
                   8559:       # with the same dynamic library.  Since this doesn't match the
                   8560:       # behavior of shared libraries on other platforms, we can't use
                   8561:       # them.
                   8562:       ld_shlibs=no
                   8563:       ;;
1.23      millert  8564:
1.25      millert  8565:     beos*)
                   8566:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   8567:        allow_undefined_flag=unsupported
                   8568:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   8569:        # support --undefined.  This deserves some investigation.  FIXME
                   8570:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8571:       else
                   8572:        ld_shlibs=no
                   8573:       fi
                   8574:       ;;
1.23      millert  8575:
1.25      millert  8576:     cygwin* | mingw* | pw32*)
                   8577:       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   8578:       # as there is no search path for DLLs.
                   8579:       hardcode_libdir_flag_spec='-L$libdir'
                   8580:       allow_undefined_flag=unsupported
                   8581:       always_export_symbols=no
                   8582:       enable_shared_with_static_runtimes=yes
                   8583:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.23      millert  8584:
1.25      millert  8585:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
                   8586:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
                   8587:        # If the export-symbols file already is a .def file (1st line
                   8588:        # is EXPORTS), use it as is; otherwise, prepend...
                   8589:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   8590:          cp $export_symbols $output_objdir/$soname.def;
                   8591:        else
                   8592:          $ECHO EXPORTS > $output_objdir/$soname.def;
                   8593:          cat $export_symbols >> $output_objdir/$soname.def;
                   8594:        fi~
                   8595:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
                   8596:       else
                   8597:        ld_shlibs=no
                   8598:       fi
                   8599:       ;;
1.23      millert  8600:
1.25      millert  8601:     linux*|tpf*)
                   8602:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
                   8603:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8604:         case `$LD -v 2>&1` in
                   8605:           *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   8606:           *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   8607:           *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   8608:           *\ 2.11.*) ;; # other 2.11 versions
                   8609:           *) supports_anon_versioning=yes ;;
                   8610:         esac
                   8611:         if test "x$supports_anon_versioning" = xyes; then
                   8612:           archive_expsym_cmds='$ECHO "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$ECHO "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   8613:         else
                   8614:           archive_expsym_cmds=$archive_cmds
                   8615:         fi
                   8616:       else
                   8617:         ld_shlibs=no
                   8618:       fi
                   8619:       ;;
1.23      millert  8620:
1.25      millert  8621:     netbsd*)
                   8622:       if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   8623:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   8624:        wlarc=
                   8625:       else
                   8626:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8627:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8628:       fi
                   8629:       ;;
1.23      millert  8630:
1.25      millert  8631:     solaris* | sysv5*)
                   8632:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
                   8633:        ld_shlibs=no
                   8634:        cat <<_LT_EOF 1>&2
1.23      millert  8635:
1.25      millert  8636: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   8637: *** create shared libraries on Solaris systems.  Therefore, libtool
                   8638: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8639: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   8640: *** your PATH or compiler configuration so that the native linker is
                   8641: *** used, and then restart.
1.23      millert  8642:
1.25      millert  8643: _LT_EOF
                   8644:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   8645:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8646:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8647:       else
                   8648:        ld_shlibs=no
                   8649:       fi
                   8650:       ;;
1.23      millert  8651:
1.25      millert  8652:     sunos4*)
                   8653:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8654:       wlarc=
                   8655:       hardcode_direct=yes
                   8656:       hardcode_shlibpath_var=no
                   8657:       ;;
1.23      millert  8658:
1.25      millert  8659:     *)
                   8660:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   8661:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8662:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8663:       else
                   8664:        ld_shlibs=no
                   8665:       fi
                   8666:       ;;
                   8667:     esac
                   8668:
                   8669:     if test "$ld_shlibs" = yes; then
                   8670:       runpath_var=LD_RUN_PATH
                   8671:       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   8672:       export_dynamic_flag_spec='${wl}--export-dynamic'
                   8673:       # ancient GNU ld didn't support --whole-archive et. al.
                   8674:       if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
                   8675:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   8676:       else
                   8677:        whole_archive_flag_spec=
                   8678:       fi
                   8679:     fi
                   8680:   else
                   8681:     # PORTME fill in a description of your system's linker (not GNU ld)
                   8682:     case $host_os in
                   8683:     aix3*)
                   8684:       allow_undefined_flag=unsupported
                   8685:       always_export_symbols=yes
                   8686:       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
                   8687:       # Note: this linker hardcodes the directories in LIBPATH if there
                   8688:       # are no directories specified by -L.
                   8689:       hardcode_minus_L=yes
                   8690:       if test "$GCC" = yes && test -z "$link_static_flag"; then
                   8691:        # Neither direct hardcoding nor static linking is supported with a
                   8692:        # broken collect2.
                   8693:        hardcode_direct=unsupported
                   8694:       fi
                   8695:       ;;
                   8696:
                   8697:     aix4* | aix5*)
                   8698:       if test "$host_cpu" = ia64; then
                   8699:        # On IA64, the linker does run time linking by default, so we don't
                   8700:        # have to do anything special.
                   8701:        aix_use_runtimelinking=no
                   8702:        exp_sym_flag='-Bexport'
                   8703:        no_entry_flag=""
                   8704:       else
                   8705:        # If we're using GNU nm, then we don't want the "-C" option.
                   8706:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   8707:        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
                   8708:          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   8709:        else
                   8710:          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   8711:        fi
                   8712:        aix_use_runtimelinking=no
                   8713:
                   8714:        # Test if we are trying to use run time linking or normal
                   8715:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   8716:        # need to do runtime linking.
                   8717:        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
                   8718:          for ld_flag in $LDFLAGS; do
                   8719:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   8720:            aix_use_runtimelinking=yes
                   8721:            break
                   8722:          fi
                   8723:          done
                   8724:        esac
                   8725:
                   8726:        exp_sym_flag='-bexport'
                   8727:        no_entry_flag='-bnoentry'
                   8728:       fi
                   8729:
                   8730:       # When large executables or shared objects are built, AIX ld can
                   8731:       # have problems creating the table of contents.  If linking a library
                   8732:       # or program results in "error TOC overflow" add -mminimal-toc to
                   8733:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   8734:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   8735:
                   8736:       archive_cmds=''
                   8737:       hardcode_direct=yes
                   8738:       hardcode_libdir_separator=':'
                   8739:       link_all_deplibs=yes
                   8740:
                   8741:       if test "$GCC" = yes; then
                   8742:        case $host_os in aix4.012|aix4.012.*)
                   8743:        # We only want to do this on AIX 4.2 and lower, the check
                   8744:        # below for broken collect2 doesn't work under 4.3+
                   8745:          collect2name=`${CC} -print-prog-name=collect2`
                   8746:          if test -f "$collect2name" &&
                   8747:           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
                   8748:          then
                   8749:          # We have reworked collect2
                   8750:          hardcode_direct=yes
                   8751:          else
                   8752:          # We have old collect2
                   8753:          hardcode_direct=unsupported
                   8754:          # It fails to find uninstalled libraries when the uninstalled
                   8755:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   8756:          # to unsupported forces relinking
                   8757:          hardcode_minus_L=yes
                   8758:          hardcode_libdir_flag_spec='-L$libdir'
                   8759:          hardcode_libdir_separator=
                   8760:          fi
                   8761:        esac
                   8762:        shared_flag='-shared'
                   8763:       else
                   8764:        # not using gcc
                   8765:        if test "$host_cpu" = ia64; then
                   8766:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   8767:        # chokes on -Wl,-G. The following line is correct:
                   8768:          shared_flag='-G'
                   8769:        else
                   8770:        if test "$aix_use_runtimelinking" = yes; then
                   8771:            shared_flag='${wl}-G'
                   8772:          else
                   8773:            shared_flag='${wl}-bM:SRE'
                   8774:        fi
                   8775:        fi
                   8776:       fi
                   8777:
                   8778:       # It seems that -bexpall does not export symbols beginning with
                   8779:       # underscore (_), so it is better to generate a list of symbols to export.
                   8780:       always_export_symbols=yes
                   8781:       if test "$aix_use_runtimelinking" = yes; then
                   8782:        # Warning - without using the other runtime loading flags (-brtl),
                   8783:        # -berok will link without error, but may produce a broken library.
                   8784:        allow_undefined_flag='-berok'
                   8785:         # Determine the default libpath from the value encoded in an
                   8786:         # empty executable.
                   8787:         cat >conftest.$ac_ext <<_ACEOF
1.23      millert  8788: /* confdefs.h.  */
                   8789: _ACEOF
                   8790: cat confdefs.h >>conftest.$ac_ext
                   8791: cat >>conftest.$ac_ext <<_ACEOF
                   8792: /* end confdefs.h.  */
                   8793:
                   8794: int
                   8795: main ()
                   8796: {
1.25      millert  8797:
1.23      millert  8798:   ;
                   8799:   return 0;
                   8800: }
                   8801: _ACEOF
                   8802: rm -f conftest.$ac_objext conftest$ac_exeext
                   8803: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  8804:   (eval $ac_link) 2>conftest.er1
1.23      millert  8805:   ac_status=$?
1.25      millert  8806:   grep -v '^ *+' conftest.er1 >conftest.err
                   8807:   rm -f conftest.er1
                   8808:   cat conftest.err >&5
1.23      millert  8809:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8810:   (exit $ac_status); } &&
1.25      millert  8811:         { ac_try='test -z "$ac_c_werror_flag"
                   8812:                         || test ! -s conftest.err'
                   8813:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   8814:   (eval $ac_try) 2>&5
                   8815:   ac_status=$?
                   8816:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8817:   (exit $ac_status); }; } &&
                   8818:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  8819:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   8820:   (eval $ac_try) 2>&5
                   8821:   ac_status=$?
                   8822:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8823:   (exit $ac_status); }; }; then
1.25      millert  8824:
                   8825: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
                   8826: }'`
                   8827: # Check for a 64-bit object if we didn't find anything.
                   8828: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
                   8829: }'`; fi
1.23      millert  8830: else
                   8831:   echo "$as_me: failed program was:" >&5
                   8832: sed 's/^/| /' conftest.$ac_ext >&5
                   8833:
                   8834: fi
1.25      millert  8835: rm -f conftest.err conftest.$ac_objext \
                   8836:       conftest$ac_exeext conftest.$ac_ext
                   8837: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   8838:
                   8839:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   8840:         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   8841:       else
                   8842:        if test "$host_cpu" = ia64; then
                   8843:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   8844:          allow_undefined_flag="-z nodefs"
                   8845:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
                   8846:        else
                   8847:         # Determine the default libpath from the value encoded in an
                   8848:         # empty executable.
                   8849:         cat >conftest.$ac_ext <<_ACEOF
1.23      millert  8850: /* confdefs.h.  */
                   8851: _ACEOF
                   8852: cat confdefs.h >>conftest.$ac_ext
                   8853: cat >>conftest.$ac_ext <<_ACEOF
                   8854: /* end confdefs.h.  */
                   8855:
                   8856: int
                   8857: main ()
                   8858: {
1.25      millert  8859:
1.23      millert  8860:   ;
                   8861:   return 0;
                   8862: }
                   8863: _ACEOF
                   8864: rm -f conftest.$ac_objext conftest$ac_exeext
                   8865: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  8866:   (eval $ac_link) 2>conftest.er1
1.23      millert  8867:   ac_status=$?
1.25      millert  8868:   grep -v '^ *+' conftest.er1 >conftest.err
                   8869:   rm -f conftest.er1
                   8870:   cat conftest.err >&5
1.23      millert  8871:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8872:   (exit $ac_status); } &&
1.25      millert  8873:         { ac_try='test -z "$ac_c_werror_flag"
                   8874:                         || test ! -s conftest.err'
                   8875:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   8876:   (eval $ac_try) 2>&5
                   8877:   ac_status=$?
                   8878:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8879:   (exit $ac_status); }; } &&
                   8880:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  8881:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   8882:   (eval $ac_try) 2>&5
                   8883:   ac_status=$?
                   8884:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8885:   (exit $ac_status); }; }; then
1.25      millert  8886:
                   8887: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
                   8888: }'`
                   8889: # Check for a 64-bit object if we didn't find anything.
                   8890: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
                   8891: }'`; fi
1.23      millert  8892: else
                   8893:   echo "$as_me: failed program was:" >&5
                   8894: sed 's/^/| /' conftest.$ac_ext >&5
                   8895:
                   8896: fi
1.25      millert  8897: rm -f conftest.err conftest.$ac_objext \
                   8898:       conftest$ac_exeext conftest.$ac_ext
                   8899: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   8900:
                   8901:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   8902:          # Warning - without using the other run time loading flags,
                   8903:          # -berok will link without error, but may produce a broken library.
                   8904:          no_undefined_flag=' ${wl}-bernotok'
                   8905:          allow_undefined_flag=' ${wl}-berok'
                   8906:          # -bexpall does not export symbols beginning with underscore (_)
                   8907:          always_export_symbols=yes
                   8908:          # Exported symbols can be pulled into shared objects from archives
                   8909:          whole_archive_flag_spec=' '
                   8910:          archive_cmds_need_lc=yes
                   8911:          # This is similar to how AIX traditionally builds it's shared libraries.
                   8912:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
                   8913:        fi
                   8914:       fi
                   8915:       ;;
                   8916:
                   8917:     amigaos*)
                   8918:       if test "$host_cpu" = m68k; then
                   8919:         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
                   8920:         hardcode_libdir_flag_spec='-L$libdir'
                   8921:         hardcode_minus_L=yes
                   8922:       fi
                   8923:       # see comment about different semantics on the GNU ld section
                   8924:       ld_shlibs=no
                   8925:       ;;
                   8926:
                   8927:     bsdi[45]*)
                   8928:       export_dynamic_flag_spec=-rdynamic
                   8929:       ;;
                   8930:
                   8931:     cygwin* | mingw* | pw32*)
                   8932:       # When not using gcc, we currently assume that we are using
                   8933:       # Microsoft Visual C++.
                   8934:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   8935:       # no search path for DLLs.
                   8936:       hardcode_libdir_flag_spec=' '
                   8937:       allow_undefined_flag=unsupported
                   8938:       # Tell ltmain to make .lib files, not .a files.
                   8939:       libext=lib
1.23      millert  8940:       # Tell ltmain to make .dll files, not .so files.
1.25      millert  8941:       shrext_cmds=".dll"
1.23      millert  8942:       # FIXME: Setting linknames here is a bad hack.
1.25      millert  8943:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.23      millert  8944:       # The linker will automatically build a .lib file if we build a DLL.
1.25      millert  8945:       old_archive_from_new_cmds='true'
1.23      millert  8946:       # FIXME: Should let the user specify the lib program.
1.25      millert  8947:       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.23      millert  8948:       fix_srcfile_path='`cygpath -w "$srcfile"`'
1.25      millert  8949:       enable_shared_with_static_runtimes=yes
1.23      millert  8950:       ;;
                   8951:
                   8952:     darwin* | rhapsody*)
                   8953:       case "$host_os" in
1.25      millert  8954:         rhapsody* | darwin1.[012])
                   8955:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   8956:          ;;
                   8957:        *) # Darwin 1.3 on
                   8958:          case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
                   8959:            10.[012])
                   8960:              allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   8961:              ;;
                   8962:            10.*)
                   8963:              allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   8964:              ;;
                   8965:          esac
                   8966:          ;;
1.23      millert  8967:       esac
1.25      millert  8968:       archive_cmds_need_lc=no
                   8969:       hardcode_direct=no
                   8970:       hardcode_automatic=yes
                   8971:       hardcode_shlibpath_var=unsupported
                   8972:       whole_archive_flag_spec=''
                   8973:       link_all_deplibs=yes
                   8974:     if test "$GCC" = yes ; then
                   8975:        output_verbose_link_cmd=echo
                   8976:         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
                   8977:       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.23      millert  8978:       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1.25      millert  8979:       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8980:       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8981:     else
                   8982:       case "$cc_basename" in
                   8983:         xlc*)
                   8984:          output_verbose_link_cmd=echo
                   8985:           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
                   8986:           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   8987:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
                   8988:           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8989:           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8990:           ;;
                   8991:        *)
                   8992:          ld_shlibs=no
                   8993:           ;;
                   8994:       esac
1.23      millert  8995:     fi
                   8996:       ;;
                   8997:     dgux*)
1.25      millert  8998:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   8999:       hardcode_libdir_flag_spec='-L$libdir'
                   9000:       hardcode_shlibpath_var=no
1.23      millert  9001:       ;;
                   9002:
                   9003:     freebsd1*)
1.25      millert  9004:       ld_shlibs=no
1.23      millert  9005:       ;;
                   9006:
                   9007:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   9008:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   9009:     # does not break anything, and helps significantly (at the cost of a little
                   9010:     # extra space).
                   9011:     freebsd2.2*)
1.25      millert  9012:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   9013:       hardcode_libdir_flag_spec='-R$libdir'
                   9014:       hardcode_direct=yes
                   9015:       hardcode_shlibpath_var=no
1.23      millert  9016:       ;;
                   9017:
                   9018:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   9019:     freebsd2*)
1.25      millert  9020:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9021:       hardcode_direct=yes
                   9022:       hardcode_minus_L=yes
                   9023:       hardcode_shlibpath_var=no
1.23      millert  9024:       ;;
                   9025:
                   9026:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.25      millert  9027:     freebsd* | kfreebsd*-gnu)
                   9028:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   9029:       hardcode_libdir_flag_spec='-R$libdir'
                   9030:       hardcode_direct=yes
                   9031:       hardcode_shlibpath_var=no
1.23      millert  9032:       ;;
                   9033:
                   9034:     hpux9*)
                   9035:       if test "$GCC" = yes; then
1.25      millert  9036:        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.23      millert  9037:       else
1.25      millert  9038:        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.23      millert  9039:       fi
1.25      millert  9040:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9041:       hardcode_libdir_separator=:
                   9042:       hardcode_direct=yes
1.23      millert  9043:
                   9044:       # hardcode_minus_L: Not really in the search PATH,
                   9045:       # but as the default location of the library.
1.25      millert  9046:       hardcode_minus_L=yes
                   9047:       export_dynamic_flag_spec='${wl}-E'
1.23      millert  9048:       ;;
                   9049:
1.25      millert  9050:     hpux10*)
                   9051:      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9052:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9053:      else
                   9054:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   9055:      fi
                   9056:      if test "$with_gnu_ld" = no; then
                   9057:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9058:        hardcode_libdir_flag_spec_ld='+b $libdir'
                   9059:        hardcode_libdir_separator=:
                   9060:        hardcode_direct=yes
                   9061:        export_dynamic_flag_spec='${wl}-E'
                   9062:        # hardcode_minus_L: Not really in the search PATH,
                   9063:        # but as the default location of the library.
                   9064:        hardcode_minus_L=yes
                   9065:      fi
                   9066:      ;;
                   9067:
                   9068:      hpux11*)
1.23      millert  9069:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9070:        case "$host_cpu" in
                   9071:        hppa*64*|ia64*)
1.25      millert  9072:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9073:          ;;
                   9074:        *)
1.25      millert  9075:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9076:          ;;
                   9077:        esac
                   9078:       else
                   9079:        case "$host_cpu" in
                   9080:        hppa*64*|ia64*)
1.25      millert  9081:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9082:          ;;
                   9083:        *)
1.25      millert  9084:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9085:          ;;
                   9086:        esac
                   9087:       fi
                   9088:       if test "$with_gnu_ld" = no; then
                   9089:        case "$host_cpu" in
                   9090:        hppa*64*)
1.25      millert  9091:          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9092:          hardcode_libdir_separator=:
                   9093:          hardcode_direct=no
                   9094:          hardcode_shlibpath_var=no
1.23      millert  9095:          ;;
                   9096:        ia64*)
1.25      millert  9097:          hardcode_libdir_flag_spec='-L$libdir'
                   9098:          hardcode_direct=no
                   9099:          hardcode_shlibpath_var=no
1.23      millert  9100:
                   9101:          # hardcode_minus_L: Not really in the search PATH,
                   9102:          # but as the default location of the library.
1.25      millert  9103:          hardcode_minus_L=yes
1.23      millert  9104:          ;;
                   9105:        *)
1.25      millert  9106:          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9107:          hardcode_libdir_separator=:
                   9108:          hardcode_direct=yes
                   9109:          export_dynamic_flag_spec='${wl}-E'
1.23      millert  9110:
                   9111:          # hardcode_minus_L: Not really in the search PATH,
                   9112:          # but as the default location of the library.
1.25      millert  9113:          hardcode_minus_L=yes
1.23      millert  9114:          ;;
                   9115:        esac
                   9116:       fi
                   9117:       ;;
                   9118:
                   9119:     irix5* | irix6* | nonstopux*)
                   9120:       if test "$GCC" = yes; then
1.25      millert  9121:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9122:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1.23      millert  9123:       else
1.25      millert  9124:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9125:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.23      millert  9126:       fi
1.25      millert  9127:       archive_cmds_need_lc='no'
                   9128:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9129:       hardcode_libdir_separator=:
                   9130:       inherit_rpath=yes
                   9131:       link_all_deplibs=yes
1.23      millert  9132:       ;;
                   9133:
                   9134:     netbsd*)
1.25      millert  9135:       if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   9136:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1.23      millert  9137:       else
1.25      millert  9138:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   9139:       fi
                   9140:       hardcode_libdir_flag_spec='-R$libdir'
                   9141:       hardcode_direct=yes
                   9142:       hardcode_shlibpath_var=no
                   9143:       ;;
                   9144:
                   9145:     newsos6)
                   9146:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9147:       hardcode_direct=yes
                   9148:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9149:       hardcode_libdir_separator=:
                   9150:       hardcode_shlibpath_var=no
1.23      millert  9151:       ;;
                   9152:
1.25      millert  9153:     *nto* | *qnx*)
1.23      millert  9154:       ;;
                   9155:
                   9156:     openbsd*)
1.25      millert  9157:       hardcode_direct=yes
                   9158:       hardcode_shlibpath_var=no
                   9159:       if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   9160:        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9161:        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   9162:        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9163:        export_dynamic_flag_spec='${wl}-E'
                   9164:       else
                   9165:        case $host_os in
                   9166:         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   9167:           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9168:           hardcode_libdir_flag_spec='-R$libdir'
                   9169:           ;;
                   9170:         *)
                   9171:           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9172:           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9173:           ;;
                   9174:        esac
                   9175:       fi
1.23      millert  9176:       ;;
                   9177:
                   9178:     os2*)
1.25      millert  9179:       hardcode_libdir_flag_spec='-L$libdir'
                   9180:       hardcode_minus_L=yes
                   9181:       allow_undefined_flag=unsupported
                   9182:       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
                   9183:       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.23      millert  9184:       ;;
                   9185:
                   9186:     osf3*)
                   9187:       if test "$GCC" = yes; then
1.25      millert  9188:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9189:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.23      millert  9190:       else
1.25      millert  9191:        allow_undefined_flag=' -expect_unresolved \*'
                   9192:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.23      millert  9193:       fi
1.25      millert  9194:       archive_cmds_need_lc='no'
                   9195:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9196:       hardcode_libdir_separator=:
1.23      millert  9197:       ;;
                   9198:
                   9199:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   9200:       if test "$GCC" = yes; then
1.25      millert  9201:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9202:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9203:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.23      millert  9204:       else
1.25      millert  9205:        allow_undefined_flag=' -expect_unresolved \*'
                   9206:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9207:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; $ECHO "-hidden">> $lib.exp~
                   9208:        $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$RM $lib.exp'
1.23      millert  9209:
                   9210:        # Both c and cxx compiler support -rpath directly
1.25      millert  9211:        hardcode_libdir_flag_spec='-rpath $libdir'
1.23      millert  9212:       fi
1.25      millert  9213:       archive_cmds_need_lc='no'
                   9214:       hardcode_libdir_separator=:
1.23      millert  9215:       ;;
                   9216:
                   9217:     sco3.2v5*)
1.25      millert  9218:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9219:       hardcode_shlibpath_var=no
                   9220:       export_dynamic_flag_spec='${wl}-Bexport'
1.23      millert  9221:       runpath_var=LD_RUN_PATH
                   9222:       hardcode_runpath_var=yes
                   9223:       ;;
                   9224:
                   9225:     solaris*)
1.25      millert  9226:       no_undefined_flag=' -z text'
1.23      millert  9227:       if test "$GCC" = yes; then
1.25      millert  9228:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9229:        archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
                   9230:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.23      millert  9231:       else
1.25      millert  9232:        case `$CC -V 2>&1` in
                   9233:        *"Compilers 5.0"*)
                   9234:          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9235:          archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
                   9236:          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
                   9237:          ;;
                   9238:        *)
                   9239:          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   9240:          archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
                   9241:          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
                   9242:          ;;
                   9243:        esac
1.23      millert  9244:       fi
1.25      millert  9245:       hardcode_libdir_flag_spec='-R$libdir'
                   9246:       hardcode_shlibpath_var=no
1.23      millert  9247:       case $host_os in
                   9248:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   9249:       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
1.25      millert  9250:        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
1.23      millert  9251:       esac
1.25      millert  9252:       link_all_deplibs=yes
1.23      millert  9253:       ;;
                   9254:
                   9255:     sunos4*)
                   9256:       if test "x$host_vendor" = xsequent; then
                   9257:        # Use $CC to link under sequent, because it throws in some extra .o
                   9258:        # files that make .init and .fini sections work.
1.25      millert  9259:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9260:       else
1.25      millert  9261:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.23      millert  9262:       fi
1.25      millert  9263:       hardcode_libdir_flag_spec='-L$libdir'
                   9264:       hardcode_direct=yes
                   9265:       hardcode_minus_L=yes
                   9266:       hardcode_shlibpath_var=no
1.23      millert  9267:       ;;
                   9268:
                   9269:     sysv4)
                   9270:       case $host_vendor in
                   9271:        sni)
1.25      millert  9272:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9273:          hardcode_direct=yes # is this really true???
1.23      millert  9274:        ;;
                   9275:        siemens)
                   9276:          ## LD is ld it makes a PLAMLIB
                   9277:          ## CC just makes a GrossModule.
1.25      millert  9278:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   9279:          reload_cmds='$CC -r -o $output$reload_objs'
                   9280:          hardcode_direct=no
1.23      millert  9281:         ;;
                   9282:        motorola)
1.25      millert  9283:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9284:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1.23      millert  9285:        ;;
                   9286:       esac
                   9287:       runpath_var='LD_RUN_PATH'
1.25      millert  9288:       hardcode_shlibpath_var=no
1.23      millert  9289:       ;;
                   9290:
                   9291:     sysv4.3*)
1.25      millert  9292:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9293:       hardcode_shlibpath_var=no
                   9294:       export_dynamic_flag_spec='-Bexport'
1.23      millert  9295:       ;;
                   9296:
                   9297:     sysv4*MP*)
                   9298:       if test -d /usr/nec; then
1.25      millert  9299:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9300:        hardcode_shlibpath_var=no
1.23      millert  9301:        runpath_var=LD_RUN_PATH
                   9302:        hardcode_runpath_var=yes
1.25      millert  9303:        ld_shlibs=yes
1.23      millert  9304:       fi
                   9305:       ;;
                   9306:
                   9307:     sysv4.2uw2*)
1.25      millert  9308:       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   9309:       hardcode_direct=yes
                   9310:       hardcode_minus_L=no
                   9311:       hardcode_shlibpath_var=no
1.23      millert  9312:       hardcode_runpath_var=yes
                   9313:       runpath_var=LD_RUN_PATH
                   9314:       ;;
                   9315:
                   9316:    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
1.25      millert  9317:       no_undefined_flag='${wl}-z ${wl}text'
1.23      millert  9318:       if test "$GCC" = yes; then
1.25      millert  9319:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9320:       else
1.25      millert  9321:        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23      millert  9322:       fi
                   9323:       runpath_var='LD_RUN_PATH'
1.25      millert  9324:       hardcode_shlibpath_var=no
1.23      millert  9325:       ;;
                   9326:
                   9327:     sysv5*)
1.25      millert  9328:       no_undefined_flag=' -z text'
1.23      millert  9329:       # $CC -shared without GNU ld will not create a library from C++
                   9330:       # object files and a static libstdc++, better avoid it by now
1.25      millert  9331:       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9332:       archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
                   9333:                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
                   9334:       hardcode_libdir_flag_spec=
                   9335:       hardcode_shlibpath_var=no
1.23      millert  9336:       runpath_var='LD_RUN_PATH'
                   9337:       ;;
                   9338:
                   9339:     uts4*)
1.25      millert  9340:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9341:       hardcode_libdir_flag_spec='-L$libdir'
                   9342:       hardcode_shlibpath_var=no
1.23      millert  9343:       ;;
                   9344:
                   9345:     *)
1.25      millert  9346:       ld_shlibs=no
1.23      millert  9347:       ;;
                   9348:     esac
1.25      millert  9349:
                   9350:     if test x$host_vendor = xsni; then
                   9351:       case $host in
                   9352:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   9353:        export_dynamic_flag_spec='${wl}-Blargedynsym'
                   9354:        ;;
                   9355:       esac
                   9356:     fi
1.23      millert  9357:   fi
                   9358:
1.25      millert  9359: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
                   9360: echo "${ECHO_T}$ld_shlibs" >&6
                   9361: test "$ld_shlibs" = no && can_build_shared=no
                   9362:
                   9363: with_gnu_ld=$with_gnu_ld
                   9364:
                   9365:
                   9366:
                   9367:
                   9368:
                   9369:
                   9370:
                   9371:
                   9372:
                   9373:
                   9374:
                   9375:
                   9376:
                   9377:
1.23      millert  9378:
                   9379: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   9380: if test "$GCC" = yes; then
                   9381:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   9382: fi
                   9383:
1.25      millert  9384:
                   9385:
                   9386:
                   9387:
                   9388:
1.23      millert  9389: #
                   9390: # Do we need to explicitly link libc?
                   9391: #
1.25      millert  9392: case "x$archive_cmds_need_lc" in
1.23      millert  9393: x|xyes)
                   9394:   # Assume -lc should be added
1.25      millert  9395:   archive_cmds_need_lc=yes
1.23      millert  9396:
                   9397:   if test "$enable_shared" = yes && test "$GCC" = yes; then
1.25      millert  9398:     case $archive_cmds in
1.23      millert  9399:     *'~'*)
                   9400:       # FIXME: we may have to deal with multi-command sequences.
                   9401:       ;;
                   9402:     '$CC '*)
                   9403:       # Test whether the compiler implicitly links with -lc since on some
                   9404:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   9405:       # to ld, don't add -lc before -lgcc.
                   9406:       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
                   9407: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.25      millert  9408:       $RM conftest*
1.23      millert  9409:       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
                   9410:
                   9411:       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   9412:   (eval $ac_compile) 2>&5
                   9413:   ac_status=$?
                   9414:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9415:   (exit $ac_status); } 2>conftest.err; then
                   9416:         soname=conftest
                   9417:         lib=conftest
                   9418:         libobjs=conftest.$ac_objext
                   9419:         deplibs=
1.25      millert  9420:         wl=$lt_prog_compiler_wl
1.23      millert  9421:         compiler_flags=-v
                   9422:         linker_flags=-v
                   9423:         verstring=
                   9424:         output_objdir=.
                   9425:         libname=conftest
1.25      millert  9426:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   9427:         allow_undefined_flag=
                   9428:         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
                   9429:   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.23      millert  9430:   ac_status=$?
                   9431:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9432:   (exit $ac_status); }
                   9433:         then
1.25      millert  9434:          archive_cmds_need_lc=no
1.23      millert  9435:         else
1.25      millert  9436:          archive_cmds_need_lc=yes
1.23      millert  9437:         fi
1.25      millert  9438:         allow_undefined_flag=$lt_save_allow_undefined_flag
1.23      millert  9439:       else
                   9440:         cat conftest.err 1>&5
                   9441:       fi
1.25      millert  9442:       $RM conftest*
                   9443:       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
                   9444: echo "${ECHO_T}$archive_cmds_need_lc" >&6
1.23      millert  9445:       ;;
                   9446:     esac
                   9447:   fi
                   9448:   ;;
                   9449: esac
                   9450:
                   9451:
                   9452:
                   9453:
1.25      millert  9454:
                   9455:
                   9456:
                   9457:
                   9458:
                   9459:
                   9460:
                   9461:
                   9462:
                   9463:
                   9464:
                   9465:
                   9466:
                   9467:
                   9468:
                   9469:
                   9470:
                   9471:
                   9472:
                   9473:
                   9474:
                   9475:
                   9476:
                   9477:
                   9478:
                   9479:
                   9480:
                   9481:
                   9482:
                   9483:
                   9484:
                   9485:
                   9486:
                   9487:
                   9488:
                   9489:
                   9490:
                   9491:
                   9492:
                   9493:
                   9494:
                   9495:
                   9496:
                   9497:
                   9498:
                   9499:
                   9500:
                   9501:
                   9502:
                   9503:
                   9504:
                   9505:
                   9506:
                   9507:
                   9508:
                   9509:
                   9510:
                   9511:
                   9512:
                   9513:
                   9514:
                   9515:
                   9516:
                   9517:
                   9518:
                   9519:
                   9520:
                   9521:
                   9522:
                   9523:
                   9524:
                   9525:
                   9526:
                   9527:
                   9528:
                   9529:
                   9530:
                   9531:
                   9532:
                   9533:
                   9534:
                   9535:
                   9536:
                   9537:
                   9538:
                   9539:
                   9540:
                   9541:
                   9542:
                   9543:
                   9544:
                   9545:
                   9546:
                   9547:
                   9548:
                   9549:
                   9550:
                   9551:
                   9552:
                   9553:
                   9554:
                   9555:
                   9556:
                   9557:
                   9558:
                   9559:
                   9560:
                   9561:
                   9562:
                   9563:
                   9564:
                   9565:
                   9566:
                   9567:
                   9568:
                   9569:
                   9570:
                   9571:
                   9572:
                   9573:
                   9574:
                   9575:
                   9576:
                   9577:
                   9578:
                   9579:
                   9580:
                   9581:
                   9582:
                   9583:
                   9584:
                   9585:
                   9586:
1.23      millert  9587:
                   9588: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
                   9589: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.25      millert  9590: withGCC=$GCC
1.23      millert  9591: library_names_spec=
                   9592: libname_spec='lib$name'
                   9593: soname_spec=
1.25      millert  9594: shrext_cmds=".so"
1.23      millert  9595: postinstall_cmds=
                   9596: postuninstall_cmds=
                   9597: finish_cmds=
                   9598: finish_eval=
                   9599: shlibpath_var=
                   9600: shlibpath_overrides_runpath=unknown
                   9601: version_type=none
                   9602: dynamic_linker="$host_os ld.so"
                   9603: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.25      millert  9604: if test "$withGCC" = yes; then
                   9605:   sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9606:   if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
1.23      millert  9607:     # if the path contains ";" then we assume it to be the separator
                   9608:     # otherwise default to the standard path separator (i.e. ":") - it is
                   9609:     # assumed that no part of a normal pathname contains ";" but that should
                   9610:     # okay in the real world where ";" in dirpaths is itself problematic.
1.25      millert  9611:     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.23      millert  9612:   else
1.25      millert  9613:     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1.23      millert  9614:   fi
                   9615: else
                   9616:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   9617: fi
                   9618: need_lib_prefix=no
                   9619: hardcode_into_libs=no
                   9620:
                   9621: # when you set need_version to no, make sure it does not cause -set_version
                   9622: # flags to be left without arguments
                   9623: need_version=no
                   9624:
                   9625: case $host_os in
                   9626: aix3*)
                   9627:   version_type=linux
                   9628:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   9629:   shlibpath_var=LIBPATH
                   9630:
                   9631:   # AIX 3 has no versioning support, so we append a major version to the name.
                   9632:   soname_spec='${libname}${release}${shared_ext}$major'
                   9633:   ;;
                   9634:
                   9635: aix4* | aix5*)
                   9636:   version_type=linux
1.25      millert  9637:   need_lib_prefix=no
                   9638:   need_version=no
1.23      millert  9639:   hardcode_into_libs=yes
                   9640:   if test "$host_cpu" = ia64; then
                   9641:     # AIX 5 supports IA64
                   9642:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   9643:     shlibpath_var=LD_LIBRARY_PATH
                   9644:   else
                   9645:     # With GCC up to 2.95.x, collect2 would create an import file
                   9646:     # for dependence libraries.  The import file would start with
                   9647:     # the line `#! .'.  This would cause the generated library to
                   9648:     # depend on `.', always an invalid library.  This was fixed in
                   9649:     # development snapshots of GCC prior to 3.0.
                   9650:     case $host_os in
                   9651:       aix4 | aix4.[01] | aix4.[01].*)
1.25      millert  9652:       if { $ECHO '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   9653:           $ECHO ' yes '
                   9654:           $ECHO '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1.23      millert  9655:        :
                   9656:       else
                   9657:        can_build_shared=no
                   9658:       fi
                   9659:       ;;
                   9660:     esac
                   9661:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   9662:     # soname into executable. Probably we can add versioning support to
                   9663:     # collect2, so additional links can be useful in future.
                   9664:     if test "$aix_use_runtimelinking" = yes; then
                   9665:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   9666:       # instead of lib<name>.a to let people know that these are not
                   9667:       # typical AIX shared libraries.
                   9668:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9669:     else
                   9670:       # We preserve .a as extension for shared libraries through AIX4.2
                   9671:       # and later when we are not doing run time linking.
                   9672:       library_names_spec='${libname}${release}.a $libname.a'
                   9673:       soname_spec='${libname}${release}${shared_ext}$major'
                   9674:     fi
                   9675:     shlibpath_var=LIBPATH
                   9676:   fi
                   9677:   ;;
                   9678:
                   9679: amigaos*)
1.25      millert  9680:   if test "$host_cpu" = m68k; then
                   9681:     library_names_spec='$libname.ixlibrary $libname.a'
                   9682:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   9683:     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   9684:   else
                   9685:     dynamic_linker=no
                   9686:   fi
1.23      millert  9687:   ;;
                   9688:
                   9689: beos*)
                   9690:   library_names_spec='${libname}${shared_ext}'
                   9691:   dynamic_linker="$host_os ld.so"
                   9692:   shlibpath_var=LIBRARY_PATH
                   9693:   ;;
                   9694:
1.25      millert  9695: bsdi[45]*)
1.23      millert  9696:   version_type=linux
1.25      millert  9697:   need_version=no
1.23      millert  9698:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9699:   soname_spec='${libname}${release}${shared_ext}$major'
1.25      millert  9700:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.23      millert  9701:   shlibpath_var=LD_LIBRARY_PATH
                   9702:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   9703:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   9704:   # the default ld.so.conf also contains /usr/contrib/lib and
                   9705:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   9706:   # libtool to hard-code these into programs
                   9707:   ;;
                   9708:
                   9709: cygwin* | mingw* | pw32*)
                   9710:   version_type=windows
1.25      millert  9711:   shrext_cmds=".dll"
                   9712:   need_version=no
                   9713:   need_lib_prefix=no
1.23      millert  9714:
1.25      millert  9715:   case $withGCC,$host_os in
1.23      millert  9716:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   9717:     library_names_spec='$libname.dll.a'
                   9718:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   9719:     postinstall_cmds='base_file=`basename \${file}`~
1.25      millert  9720:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;$ECHO \$dlname'\''`~
1.23      millert  9721:       dldir=$destdir/`dirname \$dlpath`~
                   9722:       test -d \$dldir || mkdir -p \$dldir~
                   9723:       $install_prog $dir/$dlname \$dldir/$dlname'
1.25      millert  9724:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
1.23      millert  9725:       dlpath=$dir/\$dldll~
1.25      millert  9726:        $RM \$dlpath'
1.23      millert  9727:     shlibpath_overrides_runpath=yes
                   9728:
                   9729:     case $host_os in
                   9730:     cygwin*)
                   9731:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.25      millert  9732:       soname_spec='`$ECHO ${libname} | sed -e 's/^lib/cyg/'``$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9733:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.23      millert  9734:       ;;
                   9735:     mingw*)
                   9736:       # MinGW DLLs use traditional 'lib' prefix
1.25      millert  9737:       soname_spec='${libname}`$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9738:       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9739:       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1.23      millert  9740:         # It is most probably a Windows format PATH printed by
                   9741:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   9742:         # path with ; separators, and with drive letters. We can handle the
                   9743:         # drive letters (cygwin fileutils understands them), so leave them,
                   9744:         # especially as we might pass files found there to a mingw objdump,
                   9745:         # which wouldn't understand a cygwinified path. Ahh.
1.25      millert  9746:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.23      millert  9747:       else
1.25      millert  9748:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1.23      millert  9749:       fi
                   9750:       ;;
                   9751:     pw32*)
                   9752:       # pw32 DLLs use 'pw' prefix rather than 'lib'
1.25      millert  9753:       library_names_spec='`$ECHO ${libname} | sed -e 's/^lib/pw/'``$ECHO ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
1.23      millert  9754:       ;;
                   9755:     esac
                   9756:     ;;
                   9757:
                   9758:   *)
1.25      millert  9759:     library_names_spec='${libname}`$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.23      millert  9760:     ;;
                   9761:   esac
                   9762:   dynamic_linker='Win32 ld.exe'
                   9763:   # FIXME: first we should search . and the directory the executable is in
                   9764:   shlibpath_var=PATH
                   9765:   ;;
                   9766:
                   9767: darwin* | rhapsody*)
                   9768:   dynamic_linker="$host_os dyld"
                   9769:   version_type=darwin
1.25      millert  9770:   need_lib_prefix=no
                   9771:   need_version=no
                   9772:   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.23      millert  9773:   soname_spec='${libname}${release}${major}$shared_ext'
                   9774:   shlibpath_overrides_runpath=yes
                   9775:   shlibpath_var=DYLD_LIBRARY_PATH
1.25      millert  9776:   shrext_cmds='$(test .$module = .yes && $ECHO .so || $ECHO .dylib)'
1.23      millert  9777:   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.25      millert  9778:   if test "$withGCC" = yes; then
                   9779:     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
                   9780:   else
                   9781:     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.23      millert  9782:   fi
                   9783:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   9784:   ;;
                   9785:
                   9786: dgux*)
                   9787:   version_type=linux
1.25      millert  9788:   need_lib_prefix=no
                   9789:   need_version=no
1.23      millert  9790:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   9791:   soname_spec='${libname}${release}${shared_ext}$major'
                   9792:   shlibpath_var=LD_LIBRARY_PATH
                   9793:   ;;
                   9794:
                   9795: freebsd1*)
                   9796:   dynamic_linker=no
                   9797:   ;;
                   9798:
1.25      millert  9799: kfreebsd*-gnu)
                   9800:   version_type=linux
                   9801:   need_lib_prefix=no
                   9802:   need_version=no
                   9803:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9804:   soname_spec='${libname}${release}${shared_ext}$major'
                   9805:   shlibpath_var=LD_LIBRARY_PATH
                   9806:   shlibpath_overrides_runpath=no
                   9807:   hardcode_into_libs=yes
                   9808:   dynamic_linker='GNU ld.so'
                   9809:   ;;
                   9810:
1.23      millert  9811: freebsd*)
1.25      millert  9812:   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || $ECHO aout`
1.23      millert  9813:   version_type=freebsd-$objformat
                   9814:   case $version_type in
                   9815:     freebsd-elf*)
                   9816:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.25      millert  9817:       need_version=no
                   9818:       need_lib_prefix=no
1.23      millert  9819:       ;;
                   9820:     freebsd-*)
                   9821:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.25      millert  9822:       need_version=no
1.23      millert  9823:       ;;
                   9824:   esac
                   9825:   shlibpath_var=LD_LIBRARY_PATH
                   9826:   case $host_os in
                   9827:   freebsd2*)
                   9828:     shlibpath_overrides_runpath=yes
                   9829:     ;;
                   9830:   freebsd3.01* | freebsdelf3.01*)
                   9831:     shlibpath_overrides_runpath=yes
                   9832:     hardcode_into_libs=yes
                   9833:     ;;
                   9834:   *) # from 3.2 on
                   9835:     shlibpath_overrides_runpath=no
                   9836:     hardcode_into_libs=yes
                   9837:     ;;
                   9838:   esac
                   9839:   ;;
                   9840:
                   9841: gnu*)
                   9842:   version_type=linux
1.25      millert  9843:   need_lib_prefix=no
                   9844:   need_version=no
1.23      millert  9845:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   9846:   soname_spec='${libname}${release}${shared_ext}$major'
                   9847:   shlibpath_var=LD_LIBRARY_PATH
                   9848:   hardcode_into_libs=yes
                   9849:   ;;
                   9850:
                   9851: hpux9* | hpux10* | hpux11*)
                   9852:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   9853:   # link against other versions.
                   9854:   version_type=sunos
1.25      millert  9855:   need_lib_prefix=no
                   9856:   need_version=no
1.23      millert  9857:   case "$host_cpu" in
                   9858:   ia64*)
1.25      millert  9859:     shrext_cmds='.so'
1.23      millert  9860:     hardcode_into_libs=yes
                   9861:     dynamic_linker="$host_os dld.so"
                   9862:     shlibpath_var=LD_LIBRARY_PATH
                   9863:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9864:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9865:     soname_spec='${libname}${release}${shared_ext}$major'
                   9866:     if test "X$HPUX_IA64_MODE" = X32; then
                   9867:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   9868:     else
                   9869:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   9870:     fi
                   9871:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9872:     ;;
                   9873:    hppa*64*)
1.25      millert  9874:      shrext_cmds='.sl'
1.23      millert  9875:      hardcode_into_libs=yes
                   9876:      dynamic_linker="$host_os dld.sl"
                   9877:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   9878:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9879:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9880:      soname_spec='${libname}${release}${shared_ext}$major'
                   9881:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   9882:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9883:      ;;
                   9884:    *)
1.25      millert  9885:     shrext_cmds='.sl'
1.23      millert  9886:     dynamic_linker="$host_os dld.sl"
                   9887:     shlibpath_var=SHLIB_PATH
                   9888:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   9889:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9890:     soname_spec='${libname}${release}${shared_ext}$major'
                   9891:     ;;
                   9892:   esac
                   9893:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   9894:   postinstall_cmds='chmod 555 $lib'
                   9895:   ;;
                   9896:
                   9897: irix5* | irix6* | nonstopux*)
                   9898:   case $host_os in
                   9899:     nonstopux*) version_type=nonstopux ;;
                   9900:     *)
                   9901:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   9902:                version_type=linux
                   9903:        else
                   9904:                version_type=irix
                   9905:        fi ;;
                   9906:   esac
1.25      millert  9907:   need_lib_prefix=no
                   9908:   need_version=no
1.23      millert  9909:   soname_spec='${libname}${release}${shared_ext}$major'
                   9910:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9911:   case $host_os in
                   9912:   irix5* | nonstopux*)
                   9913:     libsuff= shlibsuff=
                   9914:     ;;
                   9915:   *)
                   9916:     case $LD in # libtool.m4 will add one of these switches to LD
                   9917:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   9918:       libsuff= shlibsuff= libmagic=32-bit;;
                   9919:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   9920:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   9921:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   9922:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   9923:     *) libsuff= shlibsuff= libmagic=never-match;;
                   9924:     esac
                   9925:     ;;
                   9926:   esac
                   9927:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   9928:   shlibpath_overrides_runpath=no
                   9929:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   9930:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   9931:   hardcode_into_libs=yes
                   9932:   ;;
                   9933:
                   9934: # No shared lib support for Linux oldld, aout, or coff.
                   9935: linux*oldld* | linux*aout* | linux*coff*)
                   9936:   dynamic_linker=no
                   9937:   ;;
                   9938:
                   9939: # This must be Linux ELF.
                   9940: linux*)
                   9941:   version_type=linux
1.25      millert  9942:   need_lib_prefix=no
                   9943:   need_version=no
1.23      millert  9944:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9945:   soname_spec='${libname}${release}${shared_ext}$major'
1.25      millert  9946:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.23      millert  9947:   shlibpath_var=LD_LIBRARY_PATH
                   9948:   shlibpath_overrides_runpath=no
                   9949:   # This implies no fast_install, which is unacceptable.
                   9950:   # Some rework will be needed to allow for fast_install
                   9951:   # before this can be enabled.
                   9952:   hardcode_into_libs=yes
                   9953:
1.25      millert  9954:   # Append ld.so.conf contents to the search path
                   9955:   if test -f /etc/ld.so.conf; then
                   9956:     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
                   9957:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   9958:   fi
                   9959:
1.23      millert  9960:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   9961:   # powerpc, because MkLinux only supported shared libraries with the
                   9962:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   9963:   # most powerpc-linux boxes support dynamic linking these days and
                   9964:   # people can always --disable-shared, the test was removed, and we
                   9965:   # assume the GNU/Linux dynamic linker is in use.
                   9966:   dynamic_linker='GNU/Linux ld.so'
                   9967:   ;;
                   9968:
1.25      millert  9969: knetbsd*-gnu)
                   9970:   version_type=linux
                   9971:   need_lib_prefix=no
                   9972:   need_version=no
                   9973:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9974:   soname_spec='${libname}${release}${shared_ext}$major'
                   9975:   shlibpath_var=LD_LIBRARY_PATH
                   9976:   shlibpath_overrides_runpath=no
                   9977:   hardcode_into_libs=yes
                   9978:   dynamic_linker='GNU ld.so'
                   9979:   ;;
                   9980:
1.23      millert  9981: netbsd*)
                   9982:   version_type=sunos
1.25      millert  9983:   need_lib_prefix=no
                   9984:   need_version=no
                   9985:   if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.23      millert  9986:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25      millert  9987:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.23      millert  9988:     dynamic_linker='NetBSD (a.out) ld.so'
                   9989:   else
1.25      millert  9990:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.23      millert  9991:     soname_spec='${libname}${release}${shared_ext}$major'
                   9992:     dynamic_linker='NetBSD ld.elf_so'
                   9993:   fi
                   9994:   shlibpath_var=LD_LIBRARY_PATH
                   9995:   shlibpath_overrides_runpath=yes
                   9996:   hardcode_into_libs=yes
                   9997:   ;;
                   9998:
                   9999: newsos6)
                   10000:   version_type=linux
                   10001:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10002:   shlibpath_var=LD_LIBRARY_PATH
                   10003:   shlibpath_overrides_runpath=yes
                   10004:   ;;
                   10005:
1.25      millert  10006: *nto* | *qnx*)
                   10007:   version_type=qnx
                   10008:   need_lib_prefix=no
                   10009:   need_version=no
1.23      millert  10010:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10011:   soname_spec='${libname}${release}${shared_ext}$major'
                   10012:   shlibpath_var=LD_LIBRARY_PATH
1.25      millert  10013:   shlibpath_overrides_runpath=no
                   10014:   hardcode_into_libs=yes
                   10015:   dynamic_linker='ldqnx.so'
1.23      millert  10016:   ;;
                   10017:
                   10018: openbsd*)
                   10019:   version_type=sunos
1.25      millert  10020:   need_lib_prefix=no
                   10021:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
                   10022:   case $host_os in
                   10023:     openbsd3.3 | openbsd3.3.*) need_version=no ;;
                   10024:     *)                         need_version=no  ;;
                   10025:   esac
1.23      millert  10026:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25      millert  10027:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.23      millert  10028:   shlibpath_var=LD_LIBRARY_PATH
1.25      millert  10029:   if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.23      millert  10030:     case $host_os in
                   10031:       openbsd2.[89] | openbsd2.[89].*)
                   10032:        shlibpath_overrides_runpath=no
                   10033:        ;;
                   10034:       *)
                   10035:        shlibpath_overrides_runpath=yes
                   10036:        ;;
                   10037:       esac
                   10038:   else
                   10039:     shlibpath_overrides_runpath=yes
                   10040:   fi
                   10041:   ;;
                   10042:
                   10043: os2*)
                   10044:   libname_spec='$name'
1.25      millert  10045:   shrext_cmds=".dll"
                   10046:   need_lib_prefix=no
1.23      millert  10047:   library_names_spec='$libname${shared_ext} $libname.a'
                   10048:   dynamic_linker='OS/2 ld.exe'
                   10049:   shlibpath_var=LIBPATH
                   10050:   ;;
                   10051:
                   10052: osf3* | osf4* | osf5*)
                   10053:   version_type=osf
1.25      millert  10054:   need_lib_prefix=no
                   10055:   need_version=no
1.23      millert  10056:   soname_spec='${libname}${release}${shared_ext}$major'
                   10057:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10058:   shlibpath_var=LD_LIBRARY_PATH
                   10059:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   10060:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   10061:   ;;
                   10062:
                   10063: sco3.2v5*)
                   10064:   version_type=osf
                   10065:   soname_spec='${libname}${release}${shared_ext}$major'
                   10066:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10067:   shlibpath_var=LD_LIBRARY_PATH
                   10068:   ;;
                   10069:
                   10070: solaris*)
                   10071:   version_type=linux
1.25      millert  10072:   need_lib_prefix=no
                   10073:   need_version=no
1.23      millert  10074:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10075:   soname_spec='${libname}${release}${shared_ext}$major'
                   10076:   shlibpath_var=LD_LIBRARY_PATH
                   10077:   shlibpath_overrides_runpath=yes
                   10078:   hardcode_into_libs=yes
                   10079:   # ldd complains unless libraries are executable
                   10080:   postinstall_cmds='chmod +x $lib'
                   10081:   ;;
                   10082:
                   10083: sunos4*)
                   10084:   version_type=sunos
                   10085:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25      millert  10086:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.23      millert  10087:   shlibpath_var=LD_LIBRARY_PATH
                   10088:   shlibpath_overrides_runpath=yes
1.25      millert  10089:   if test "$with_gnu_ld" = yes; then
                   10090:     need_lib_prefix=no
                   10091:   fi
                   10092:   need_version=no
1.23      millert  10093:   ;;
                   10094:
                   10095: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   10096:   version_type=linux
                   10097:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10098:   soname_spec='${libname}${release}${shared_ext}$major'
                   10099:   shlibpath_var=LD_LIBRARY_PATH
                   10100:   case $host_vendor in
                   10101:     sni)
                   10102:       shlibpath_overrides_runpath=no
1.25      millert  10103:       need_lib_prefix=no
1.23      millert  10104:       runpath_var=LD_RUN_PATH
                   10105:       ;;
1.25      millert  10106:     siemens)
                   10107:       need_lib_prefix=no
                   10108:       ;;
1.23      millert  10109:     motorola)
1.25      millert  10110:       need_lib_prefix=no
                   10111:       need_version=no
1.23      millert  10112:       shlibpath_overrides_runpath=no
                   10113:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   10114:       ;;
                   10115:   esac
                   10116:   ;;
                   10117:
                   10118: sysv4*MP*)
                   10119:   if test -d /usr/nec ;then
                   10120:     version_type=linux
                   10121:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   10122:     soname_spec='$libname${shared_ext}.$major'
                   10123:     shlibpath_var=LD_LIBRARY_PATH
                   10124:   fi
                   10125:   ;;
                   10126:
1.25      millert  10127: tpf*)
                   10128:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
                   10129:   version_type=linux
                   10130:   need_lib_prefix=no
                   10131:   need_version=no
                   10132:   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10133:   shlibpath_var=LD_LIBRARY_PATH
                   10134:   shlibpath_overrides_runpath=no
                   10135:   hardcode_into_libs=yes
                   10136:   ;;
                   10137:
1.23      millert  10138: uts4*)
                   10139:   version_type=linux
                   10140:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10141:   soname_spec='${libname}${release}${shared_ext}$major'
                   10142:   shlibpath_var=LD_LIBRARY_PATH
                   10143:   ;;
                   10144:
                   10145: *)
                   10146:   dynamic_linker=no
                   10147:   ;;
                   10148: esac
                   10149: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
                   10150: echo "${ECHO_T}$dynamic_linker" >&6
                   10151: test "$dynamic_linker" = no && can_build_shared=no
                   10152:
                   10153:
                   10154:
                   10155:
                   10156:
                   10157:
                   10158:
                   10159:
                   10160:
                   10161:
                   10162:
                   10163:
                   10164:
                   10165:
                   10166:
                   10167:
                   10168:
                   10169:
                   10170:
                   10171:
                   10172:
                   10173:
                   10174:
                   10175:
                   10176:
                   10177:
                   10178:
                   10179:
                   10180:
                   10181:
                   10182:
                   10183:
                   10184:
                   10185:
                   10186:
                   10187:
                   10188:
                   10189:
                   10190:
                   10191:
                   10192:
                   10193:
                   10194:
                   10195:
                   10196:
                   10197:
                   10198:
                   10199:
                   10200:
                   10201:
                   10202:
                   10203:
                   10204:
                   10205:
                   10206:
                   10207:
                   10208:
                   10209:
1.25      millert  10210:
                   10211:
                   10212:
                   10213:
                   10214:
                   10215:
                   10216:
                   10217:
                   10218:
                   10219:
                   10220:
                   10221:
                   10222:
                   10223:
                   10224:
                   10225:
                   10226:
                   10227:
                   10228:
                   10229:
                   10230:
                   10231:
                   10232:
                   10233:   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
                   10234: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
                   10235: hardcode_action=
                   10236: if test -n "$hardcode_libdir_flag_spec" ||
                   10237:    test -n "$runpath_var" ||
                   10238:    test "X$hardcode_automatic" = "Xyes" ; then
                   10239:
                   10240:   # We can hardcode non-existant directories.
                   10241:   if test "$hardcode_direct" != no &&
                   10242:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   10243:      # have to relink, otherwise we might link with an installed library
                   10244:      # when we should be linking with a yet-to-be-installed one
                   10245:      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   10246:      test "$hardcode_minus_L" != no; then
                   10247:     # Linking always hardcodes the temporary library directory.
                   10248:     hardcode_action=relink
                   10249:   else
                   10250:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   10251:     hardcode_action=immediate
1.23      millert  10252:   fi
1.25      millert  10253: else
                   10254:   # We cannot hardcode anything, or else we can only hardcode existing
                   10255:   # directories.
                   10256:   hardcode_action=unsupported
                   10257: fi
                   10258: echo "$as_me:$LINENO: result: $hardcode_action" >&5
                   10259: echo "${ECHO_T}$hardcode_action" >&6
                   10260:
                   10261: if test "$hardcode_action" = relink ||
                   10262:    test "$inherit_rpath" = yes; then
                   10263:   # Fast installation is not supported
                   10264:   enable_fast_install=no
                   10265: elif test "$shlibpath_overrides_runpath" = yes ||
                   10266:      test "$enable_shared" = no; then
                   10267:   # Fast installation is not necessary
                   10268:   enable_fast_install=needless
1.23      millert  10269: fi
                   10270:
                   10271:
1.25      millert  10272:
                   10273:
                   10274:
                   10275:
                   10276:
                   10277: striplib=
                   10278: old_striplib=
                   10279: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
                   10280: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
                   10281: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
                   10282:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   10283:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   10284:   echo "$as_me:$LINENO: result: yes" >&5
                   10285: echo "${ECHO_T}yes" >&6
                   10286: else
                   10287: # FIXME - insert some real tests, host_os isn't really good enough
                   10288:   case $host_os in
                   10289:    darwin*)
                   10290:        if test -n "$STRIP" ; then
                   10291:          striplib="$STRIP -x"
                   10292:          old_striplib="$STRIP -S"
                   10293:          echo "$as_me:$LINENO: result: yes" >&5
                   10294: echo "${ECHO_T}yes" >&6
                   10295:        else
                   10296:          echo "$as_me:$LINENO: result: no" >&5
                   10297: echo "${ECHO_T}no" >&6
                   10298:        fi
                   10299:        ;;
                   10300:    *)
                   10301:   echo "$as_me:$LINENO: result: no" >&5
                   10302: echo "${ECHO_T}no" >&6
1.23      millert  10303:     ;;
                   10304:   esac
                   10305: fi
                   10306:
                   10307:
                   10308:
                   10309:
                   10310:
                   10311:
                   10312:
                   10313:
                   10314:
                   10315:
                   10316:
                   10317:
1.25      millert  10318:   # Report which library types will actually be built
                   10319:   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
                   10320: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
                   10321:   echo "$as_me:$LINENO: result: $can_build_shared" >&5
                   10322: echo "${ECHO_T}$can_build_shared" >&6
1.23      millert  10323:
1.25      millert  10324:   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
                   10325: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
                   10326:   test "$can_build_shared" = "no" && enable_shared=no
1.23      millert  10327:
1.25      millert  10328:   # On AIX, shared libraries and static libraries use the same namespace, and
                   10329:   # are all built from PIC.
                   10330:   case "$host_os" in
                   10331:   aix3*)
                   10332:     test "$enable_shared" = yes && enable_static=no
                   10333:     if test -n "$RANLIB"; then
                   10334:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   10335:       postinstall_cmds='$RANLIB $lib'
                   10336:     fi
                   10337:     ;;
1.23      millert  10338:
1.25      millert  10339:   aix4* | aix5*)
                   10340:     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   10341:       test "$enable_shared" = yes && enable_static=no
                   10342:     fi
                   10343:     ;;
                   10344:   esac
                   10345:   echo "$as_me:$LINENO: result: $enable_shared" >&5
                   10346: echo "${ECHO_T}$enable_shared" >&6
1.23      millert  10347:
1.25      millert  10348:   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
                   10349: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
                   10350:   # Make sure either enable_shared or enable_static is yes.
                   10351:   test "$enable_shared" = yes || enable_static=yes
                   10352:   echo "$as_me:$LINENO: result: $enable_static" >&5
                   10353: echo "${ECHO_T}$enable_static" >&6
1.23      millert  10354:
                   10355:
                   10356:
                   10357:
1.25      millert  10358: fi
                   10359: ac_ext=c
                   10360: ac_cpp='$CPP $CPPFLAGS'
                   10361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   10362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   10363: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  10364:
1.25      millert  10365: CC="$lt_save_CC"
1.23      millert  10366:
                   10367:
                   10368:
                   10369:
                   10370:
                   10371:
                   10372:
                   10373:
                   10374:
                   10375:
                   10376:
1.25      millert  10377:           ac_config_commands="$ac_config_commands libtool"
1.23      millert  10378:
                   10379:
                   10380:
                   10381:
1.25      millert  10382: # Only expand once:
1.23      millert  10383:
                   10384:
                   10385:
1.25      millert  10386: if test "$enable_shared" = "no"; then
                   10387:     with_noexec=no
                   10388: else
1.26    ! millert  10389:     eval _shrext="$shrext_cmds"
1.25      millert  10390: fi
                   10391: echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
                   10392: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
1.23      millert  10393:
1.25      millert  10394: # Check whether --with-noexec or --without-noexec was given.
                   10395: if test "${with_noexec+set}" = set; then
                   10396:   withval="$with_noexec"
                   10397:   case $with_noexec in
                   10398:     yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                   10399:                ;;
                   10400:     no)                ;;
                   10401:     *)         ;;
                   10402: esac
                   10403: else
                   10404:   with_noexec="$libexecdir/sudo_noexec$_shrext"
                   10405: fi;
                   10406: echo "$as_me:$LINENO: result: $with_noexec" >&5
                   10407: echo "${ECHO_T}$with_noexec" >&6
                   10408: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23      millert  10409:
1.25      millert  10410: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   10411:     CFLAGS="${CFLAGS} -Wall"
                   10412: fi
1.23      millert  10413:
1.25      millert  10414: # Extract the first word of "uname", so it can be a program name with args.
                   10415: set dummy uname; ac_word=$2
                   10416: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   10417: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   10418: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   10419:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10420: else
                   10421:   if test -n "$UNAMEPROG"; then
                   10422:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   10423: else
                   10424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   10425: for as_dir in $PATH
                   10426: do
                   10427:   IFS=$as_save_IFS
                   10428:   test -z "$as_dir" && as_dir=.
                   10429:   for ac_exec_ext in '' $ac_executable_extensions; do
                   10430:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   10431:     ac_cv_prog_UNAMEPROG="uname"
                   10432:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   10433:     break 2
                   10434:   fi
                   10435: done
                   10436: done
1.23      millert  10437:
1.25      millert  10438: fi
                   10439: fi
                   10440: UNAMEPROG=$ac_cv_prog_UNAMEPROG
                   10441: if test -n "$UNAMEPROG"; then
                   10442:   echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
                   10443: echo "${ECHO_T}$UNAMEPROG" >&6
                   10444: else
                   10445:   echo "$as_me:$LINENO: result: no" >&5
                   10446: echo "${ECHO_T}no" >&6
                   10447: fi
1.23      millert  10448:
1.25      millert  10449: # Extract the first word of "tr", so it can be a program name with args.
                   10450: set dummy tr; ac_word=$2
                   10451: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   10452: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   10453: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   10454:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10455: else
                   10456:   if test -n "$TRPROG"; then
                   10457:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   10458: else
                   10459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   10460: for as_dir in $PATH
                   10461: do
                   10462:   IFS=$as_save_IFS
                   10463:   test -z "$as_dir" && as_dir=.
                   10464:   for ac_exec_ext in '' $ac_executable_extensions; do
                   10465:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   10466:     ac_cv_prog_TRPROG="tr"
                   10467:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   10468:     break 2
                   10469:   fi
                   10470: done
                   10471: done
1.23      millert  10472:
1.25      millert  10473: fi
                   10474: fi
                   10475: TRPROG=$ac_cv_prog_TRPROG
                   10476: if test -n "$TRPROG"; then
                   10477:   echo "$as_me:$LINENO: result: $TRPROG" >&5
                   10478: echo "${ECHO_T}$TRPROG" >&6
                   10479: else
                   10480:   echo "$as_me:$LINENO: result: no" >&5
                   10481: echo "${ECHO_T}no" >&6
                   10482: fi
1.23      millert  10483:
1.25      millert  10484: # Extract the first word of "nroff", so it can be a program name with args.
                   10485: set dummy nroff; ac_word=$2
                   10486: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   10487: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   10488: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   10489:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10490: else
                   10491:   if test -n "$NROFFPROG"; then
                   10492:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   10493: else
                   10494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   10495: for as_dir in $PATH
                   10496: do
                   10497:   IFS=$as_save_IFS
                   10498:   test -z "$as_dir" && as_dir=.
                   10499:   for ac_exec_ext in '' $ac_executable_extensions; do
                   10500:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   10501:     ac_cv_prog_NROFFPROG="nroff"
                   10502:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   10503:     break 2
                   10504:   fi
                   10505: done
                   10506: done
1.23      millert  10507:
1.25      millert  10508: fi
                   10509: fi
                   10510: NROFFPROG=$ac_cv_prog_NROFFPROG
                   10511: if test -n "$NROFFPROG"; then
                   10512:   echo "$as_me:$LINENO: result: $NROFFPROG" >&5
                   10513: echo "${ECHO_T}$NROFFPROG" >&6
                   10514: else
                   10515:   echo "$as_me:$LINENO: result: no" >&5
                   10516: echo "${ECHO_T}no" >&6
                   10517: fi
1.23      millert  10518:
1.25      millert  10519: if test -z "$NROFFPROG"; then
                   10520:     MANTYPE="cat"
                   10521:     mansrcdir='$(srcdir)'
                   10522: fi
1.23      millert  10523:
1.25      millert  10524: if test -n "$sudo_cv_prev_host"; then
                   10525:     if test "$sudo_cv_prev_host" != "$host"; then
                   10526:        { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
                   10527: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
                   10528:    { (exit 1); exit 1; }; }
                   10529:     else
                   10530:        echo "$as_me:$LINENO: checking previous host type" >&5
                   10531: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
                   10532:        if test "${sudo_cv_prev_host+set}" = set; then
                   10533:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10534: else
                   10535:   sudo_cv_prev_host="$host"
                   10536: fi
1.23      millert  10537:
1.25      millert  10538:        echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
                   10539: echo "${ECHO_T}$sudo_cv_prev_host" >&6
                   10540:     fi
                   10541: else
                   10542:     # this will produce no output since there is no cached value
                   10543:     if test "${sudo_cv_prev_host+set}" = set; then
                   10544:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10545: else
                   10546:   sudo_cv_prev_host="$host"
                   10547: fi
1.23      millert  10548:
1.25      millert  10549: fi
1.23      millert  10550:
1.25      millert  10551: if test -n "$host_os"; then
                   10552:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   10553:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   10554:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   10555: else
                   10556:     OS="unknown"
                   10557:     OSREV=0
                   10558:     OSMAJOR=0
                   10559: fi
1.23      millert  10560:
1.25      millert  10561: case "$host" in
                   10562:     *-*-sunos4*)
                   10563:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   10564:                BROKEN_GETCWD=1
1.23      millert  10565:
1.25      millert  10566:                # system headers lack prototypes but gcc helps...
                   10567:                if test -n "$GCC"; then
                   10568:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   10569:                fi
1.23      millert  10570:
1.25      millert  10571:                shadow_funcs="getpwanam issecure"
                   10572:                ;;
                   10573:     *-*-solaris2*)
                   10574:                # To get the crypt(3) prototype (so we pass -Wall)
                   10575:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   10576:                # AFS support needs -lucb
                   10577:                if test "$with_AFS" = "yes"; then
                   10578:                    AFS_LIBS="-lc -lucb"
                   10579:                fi
                   10580:                : ${mansectsu='1m'}
                   10581:                : ${mansectform='4'}
                   10582:                : ${with_rpath='yes'}
                   10583:                : ${with_pam='maybe'}
                   10584:                ;;
                   10585:     *-*-aix*)
                   10586:                # To get all prototypes (so we pass -Wall)
                   10587:                OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
                   10588:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   10589:                if test X"$with_blibpath" != X"no"; then
                   10590:                    echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
                   10591: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
                   10592:                    O_LDFLAGS="$LDFLAGS"
                   10593:                    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
                   10594:                    cat >conftest.$ac_ext <<_ACEOF
                   10595: /* confdefs.h.  */
                   10596: _ACEOF
                   10597: cat confdefs.h >>conftest.$ac_ext
                   10598: cat >>conftest.$ac_ext <<_ACEOF
                   10599: /* end confdefs.h.  */
1.23      millert  10600:
1.25      millert  10601: int
                   10602: main ()
                   10603: {
1.23      millert  10604:
1.25      millert  10605:   ;
                   10606:   return 0;
                   10607: }
                   10608: _ACEOF
                   10609: rm -f conftest.$ac_objext conftest$ac_exeext
                   10610: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10611:   (eval $ac_link) 2>conftest.er1
                   10612:   ac_status=$?
                   10613:   grep -v '^ *+' conftest.er1 >conftest.err
                   10614:   rm -f conftest.er1
                   10615:   cat conftest.err >&5
                   10616:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10617:   (exit $ac_status); } &&
                   10618:         { ac_try='test -z "$ac_c_werror_flag"
                   10619:                         || test ! -s conftest.err'
                   10620:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10621:   (eval $ac_try) 2>&5
                   10622:   ac_status=$?
                   10623:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10624:   (exit $ac_status); }; } &&
                   10625:         { ac_try='test -s conftest$ac_exeext'
                   10626:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10627:   (eval $ac_try) 2>&5
                   10628:   ac_status=$?
                   10629:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10630:   (exit $ac_status); }; }; then
1.23      millert  10631:
1.25      millert  10632:                        if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   10633:                            blibpath="$with_blibpath"
                   10634:                        elif test -n "$GCC"; then
                   10635:                            blibpath="/usr/lib:/lib:/usr/local/lib"
                   10636:                        else
                   10637:                            blibpath="/usr/lib:/lib"
                   10638:                        fi
                   10639:                        echo "$as_me:$LINENO: result: yes" >&5
                   10640: echo "${ECHO_T}yes" >&6
1.23      millert  10641:
1.25      millert  10642: else
                   10643:   echo "$as_me: failed program was:" >&5
                   10644: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10645:
1.25      millert  10646: echo "$as_me:$LINENO: result: no" >&5
                   10647: echo "${ECHO_T}no" >&6
                   10648: fi
                   10649: rm -f conftest.err conftest.$ac_objext \
                   10650:       conftest$ac_exeext conftest.$ac_ext
                   10651:                fi
                   10652:                LDFLAGS="$O_LDFLAGS"
1.23      millert  10653:
1.25      millert  10654:                # check for authenticate(3)
                   10655:                if test X"$with_aixauth" = X""; then
1.23      millert  10656:
1.25      millert  10657: for ac_func in authenticate
                   10658: do
                   10659: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   10660: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   10661: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10662: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10663:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10664: else
                   10665:   cat >conftest.$ac_ext <<_ACEOF
                   10666: /* confdefs.h.  */
                   10667: _ACEOF
                   10668: cat confdefs.h >>conftest.$ac_ext
                   10669: cat >>conftest.$ac_ext <<_ACEOF
                   10670: /* end confdefs.h.  */
                   10671: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   10672:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10673: #define $ac_func innocuous_$ac_func
1.23      millert  10674:
1.25      millert  10675: /* System header to define __stub macros and hopefully few prototypes,
                   10676:     which can conflict with char $ac_func (); below.
                   10677:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10678:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  10679:
1.25      millert  10680: #ifdef __STDC__
                   10681: # include <limits.h>
                   10682: #else
                   10683: # include <assert.h>
                   10684: #endif
1.23      millert  10685:
1.25      millert  10686: #undef $ac_func
1.23      millert  10687:
1.25      millert  10688: /* Override any gcc2 internal prototype to avoid an error.  */
                   10689: #ifdef __cplusplus
                   10690: extern "C"
                   10691: {
                   10692: #endif
                   10693: /* We use char because int might match the return type of a gcc2
                   10694:    builtin and then its argument prototype would still apply.  */
                   10695: char $ac_func ();
                   10696: /* The GNU C library defines this for functions which it implements
                   10697:     to always fail with ENOSYS.  Some functions are actually named
                   10698:     something starting with __ and the normal name is an alias.  */
                   10699: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   10700: choke me
                   10701: #else
                   10702: char (*f) () = $ac_func;
                   10703: #endif
                   10704: #ifdef __cplusplus
                   10705: }
                   10706: #endif
1.23      millert  10707:
1.25      millert  10708: int
                   10709: main ()
                   10710: {
                   10711: return f != $ac_func;
                   10712:   ;
                   10713:   return 0;
                   10714: }
                   10715: _ACEOF
                   10716: rm -f conftest.$ac_objext conftest$ac_exeext
                   10717: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10718:   (eval $ac_link) 2>conftest.er1
                   10719:   ac_status=$?
                   10720:   grep -v '^ *+' conftest.er1 >conftest.err
                   10721:   rm -f conftest.er1
                   10722:   cat conftest.err >&5
                   10723:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10724:   (exit $ac_status); } &&
                   10725:         { ac_try='test -z "$ac_c_werror_flag"
                   10726:                         || test ! -s conftest.err'
                   10727:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10728:   (eval $ac_try) 2>&5
                   10729:   ac_status=$?
                   10730:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10731:   (exit $ac_status); }; } &&
                   10732:         { ac_try='test -s conftest$ac_exeext'
                   10733:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10734:   (eval $ac_try) 2>&5
                   10735:   ac_status=$?
                   10736:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10737:   (exit $ac_status); }; }; then
                   10738:   eval "$as_ac_var=yes"
                   10739: else
                   10740:   echo "$as_me: failed program was:" >&5
                   10741: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10742:
1.25      millert  10743: eval "$as_ac_var=no"
                   10744: fi
                   10745: rm -f conftest.err conftest.$ac_objext \
                   10746:       conftest$ac_exeext conftest.$ac_ext
                   10747: fi
                   10748: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   10749: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10750: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   10751:   cat >>confdefs.h <<_ACEOF
                   10752: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   10753: _ACEOF
                   10754:  with_aixauth=maybe
                   10755: fi
                   10756: done
1.23      millert  10757:
1.25      millert  10758:                fi
                   10759:                ;;
                   10760:     *-*-hiuxmpp*)
                   10761:                : ${mansectsu='1m'}
                   10762:                : ${mansectform='4'}
                   10763:                ;;
                   10764:     *-*-hpux*)
                   10765:                # AFS support needs -lBSD
                   10766:                if test "$with_AFS" = "yes"; then
                   10767:                    AFS_LIBS="-lc -lBSD"
                   10768:                fi
                   10769:                : ${mansectsu='1m'}
                   10770:                : ${mansectform='4'}
1.23      millert  10771:
1.25      millert  10772:                case "$host" in
                   10773:                        *-*-hpux1-8.*)
                   10774:                            cat >>confdefs.h <<\_ACEOF
                   10775: #define BROKEN_SYSLOG 1
                   10776: _ACEOF
1.23      millert  10777:
                   10778:
1.25      millert  10779:                            # Not sure if setuid binaries are safe in < 9.x
                   10780:                            if test -n "$GCC"; then
                   10781:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   10782:                            else
                   10783:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   10784:                            fi
                   10785:                        ;;
                   10786:                        *-*-hpux9.*)
                   10787:                            cat >>confdefs.h <<\_ACEOF
                   10788: #define BROKEN_SYSLOG 1
                   10789: _ACEOF
1.23      millert  10790:
                   10791:
1.25      millert  10792:                            shadow_funcs="getspwuid"
1.23      millert  10793:
1.25      millert  10794:                            # DCE support (requires ANSI C compiler)
                   10795:                            if test "$with_DCE" = "yes"; then
                   10796:                                # order of libs in 9.X is important. -lc_r must be last
                   10797:                                SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   10798:                                LIBS="${LIBS} -ldce -lM -lc_r"
                   10799:                                CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
                   10800:                            fi
                   10801:                        ;;
                   10802:                        *-*-hpux10.*)
                   10803:                            shadow_funcs="getprpwnam iscomsec"
                   10804:                            shadow_libs="-lsec"
                   10805:                        ;;
                   10806:                        *)
                   10807:                            shadow_funcs="getspnam iscomsec"
                   10808:                            shadow_libs="-lsec"
                   10809:                            : ${with_pam='maybe'}
                   10810:                        ;;
                   10811:                esac
                   10812:                ;;
                   10813:     *-dec-osf*)
                   10814:                # ignore envariables wrt dynamic lib path
                   10815:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23      millert  10816:
1.25      millert  10817:                echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
                   10818: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
                   10819:                # Check whether --enable-sia or --disable-sia was given.
                   10820: if test "${enable_sia+set}" = set; then
                   10821:   enableval="$enable_sia"
                   10822:    case "$enableval" in
                   10823:                    yes)        echo "$as_me:$LINENO: result: no" >&5
                   10824: echo "${ECHO_T}no" >&6
                   10825:                                ;;
                   10826:                    no)         echo "$as_me:$LINENO: result: yes" >&5
                   10827: echo "${ECHO_T}yes" >&6
                   10828:                                CHECKSIA=false
                   10829:                                ;;
                   10830:                    *)          echo "$as_me:$LINENO: result: no" >&5
                   10831: echo "${ECHO_T}no" >&6
                   10832:                                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   10833: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   10834:                                ;;
                   10835:                  esac
1.23      millert  10836:
1.25      millert  10837: else
                   10838:   echo "$as_me:$LINENO: result: no" >&5
                   10839: echo "${ECHO_T}no" >&6
                   10840: fi;
1.23      millert  10841:
1.25      millert  10842:                shadow_funcs="getprpwnam dispcrypt"
                   10843:                # OSF/1 4.x and higher need -ldb too
                   10844:                if test $OSMAJOR -lt 4; then
                   10845:                    shadow_libs="-lsecurity -laud -lm"
                   10846:                else
                   10847:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   10848:                fi
1.23      millert  10849:
1.25      millert  10850:                # use SIA by default, if we have it
                   10851:                if test "$CHECKSIA" = "true"; then
1.23      millert  10852:
1.25      millert  10853: for ac_func in sia_ses_init
                   10854: do
                   10855: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   10856: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   10857: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10858: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10859:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10860: else
                   10861:   cat >conftest.$ac_ext <<_ACEOF
                   10862: /* confdefs.h.  */
                   10863: _ACEOF
                   10864: cat confdefs.h >>conftest.$ac_ext
                   10865: cat >>conftest.$ac_ext <<_ACEOF
                   10866: /* end confdefs.h.  */
                   10867: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   10868:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10869: #define $ac_func innocuous_$ac_func
1.23      millert  10870:
1.25      millert  10871: /* System header to define __stub macros and hopefully few prototypes,
                   10872:     which can conflict with char $ac_func (); below.
                   10873:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10874:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  10875:
1.25      millert  10876: #ifdef __STDC__
                   10877: # include <limits.h>
                   10878: #else
                   10879: # include <assert.h>
                   10880: #endif
1.23      millert  10881:
1.25      millert  10882: #undef $ac_func
1.23      millert  10883:
1.25      millert  10884: /* Override any gcc2 internal prototype to avoid an error.  */
                   10885: #ifdef __cplusplus
                   10886: extern "C"
                   10887: {
                   10888: #endif
                   10889: /* We use char because int might match the return type of a gcc2
                   10890:    builtin and then its argument prototype would still apply.  */
                   10891: char $ac_func ();
                   10892: /* The GNU C library defines this for functions which it implements
                   10893:     to always fail with ENOSYS.  Some functions are actually named
                   10894:     something starting with __ and the normal name is an alias.  */
                   10895: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   10896: choke me
                   10897: #else
                   10898: char (*f) () = $ac_func;
                   10899: #endif
                   10900: #ifdef __cplusplus
                   10901: }
                   10902: #endif
1.23      millert  10903:
1.25      millert  10904: int
                   10905: main ()
                   10906: {
                   10907: return f != $ac_func;
                   10908:   ;
                   10909:   return 0;
                   10910: }
                   10911: _ACEOF
                   10912: rm -f conftest.$ac_objext conftest$ac_exeext
                   10913: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10914:   (eval $ac_link) 2>conftest.er1
                   10915:   ac_status=$?
                   10916:   grep -v '^ *+' conftest.er1 >conftest.err
                   10917:   rm -f conftest.er1
                   10918:   cat conftest.err >&5
                   10919:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10920:   (exit $ac_status); } &&
                   10921:         { ac_try='test -z "$ac_c_werror_flag"
                   10922:                         || test ! -s conftest.err'
                   10923:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10924:   (eval $ac_try) 2>&5
                   10925:   ac_status=$?
                   10926:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10927:   (exit $ac_status); }; } &&
                   10928:         { ac_try='test -s conftest$ac_exeext'
                   10929:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   10930:   (eval $ac_try) 2>&5
                   10931:   ac_status=$?
                   10932:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10933:   (exit $ac_status); }; }; then
                   10934:   eval "$as_ac_var=yes"
                   10935: else
                   10936:   echo "$as_me: failed program was:" >&5
                   10937: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10938:
1.25      millert  10939: eval "$as_ac_var=no"
                   10940: fi
                   10941: rm -f conftest.err conftest.$ac_objext \
                   10942:       conftest$ac_exeext conftest.$ac_ext
                   10943: fi
                   10944: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   10945: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10946: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   10947:   cat >>confdefs.h <<_ACEOF
                   10948: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   10949: _ACEOF
                   10950:  found=true
1.23      millert  10951: else
1.25      millert  10952:   found=false
1.23      millert  10953: fi
1.25      millert  10954: done
1.23      millert  10955:
1.25      millert  10956:                    if test "$found" = "true"; then
1.23      millert  10957:
1.25      millert  10958: if test X"$AUTH_EXCL" != X""; then
                   10959:     { { echo "$as_me:$LINENO: error: \"cannot mix SIA with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   10960: echo "$as_me: error: \"cannot mix SIA with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   10961:    { (exit 1); exit 1; }; }
                   10962: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   10963:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   10964:     { { echo "$as_me:$LINENO: error: \"cannot mix SIA with other authentication methods (such as $_AUTH)\"" >&5
                   10965: echo "$as_me: error: \"cannot mix SIA with other authentication methods (such as $_AUTH)\"" >&2;}
                   10966:    { (exit 1); exit 1; }; }
                   10967: fi
                   10968: if test X"true" != X""; then
                   10969:     AUTH_OBJS="sia.o"
                   10970:     AUTH_EXCL="SIA"
                   10971: elif test X"$AUTH_OBJS" = X""; then
                   10972:     AUTH_OBJS="sia.o"
                   10973: else
                   10974:     AUTH_OBJS="$AUTH_OBJS sia.o"
                   10975: fi
1.23      millert  10976:
1.25      millert  10977:                        CHECKSHADOW=false
                   10978:                    fi
                   10979:                fi
                   10980:                if test "$CHECKSHADOW" = "true"; then
                   10981:                    # prot.h is included when using shadow passwords
                   10982:                    echo "$as_me:$LINENO: checking for broken prot.h" >&5
                   10983: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6
                   10984:                    cat >conftest.$ac_ext <<_ACEOF
                   10985: /* confdefs.h.  */
                   10986: _ACEOF
                   10987: cat confdefs.h >>conftest.$ac_ext
                   10988: cat >>conftest.$ac_ext <<_ACEOF
                   10989: /* end confdefs.h.  */
1.23      millert  10990:
1.25      millert  10991: #include <sys/types.h>
                   10992: #include <sys/security.h>
                   10993: #include <prot.h>
1.23      millert  10994:
1.25      millert  10995: int
                   10996: main ()
                   10997: {
                   10998: exit(0);
                   10999:   ;
                   11000:   return 0;
                   11001: }
                   11002: _ACEOF
                   11003: rm -f conftest.$ac_objext
                   11004: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   11005:   (eval $ac_compile) 2>conftest.er1
                   11006:   ac_status=$?
                   11007:   grep -v '^ *+' conftest.er1 >conftest.err
                   11008:   rm -f conftest.er1
                   11009:   cat conftest.err >&5
                   11010:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11011:   (exit $ac_status); } &&
                   11012:         { ac_try='test -z "$ac_c_werror_flag"
                   11013:                         || test ! -s conftest.err'
                   11014:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11015:   (eval $ac_try) 2>&5
                   11016:   ac_status=$?
                   11017:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11018:   (exit $ac_status); }; } &&
                   11019:         { ac_try='test -s conftest.$ac_objext'
                   11020:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11021:   (eval $ac_try) 2>&5
                   11022:   ac_status=$?
                   11023:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11024:   (exit $ac_status); }; }; then
                   11025:   echo "$as_me:$LINENO: result: no" >&5
                   11026: echo "${ECHO_T}no" >&6
                   11027: else
                   11028:   echo "$as_me: failed program was:" >&5
                   11029: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11030:
1.25      millert  11031: echo "$as_me:$LINENO: result: yes, fixing locally" >&5
                   11032: echo "${ECHO_T}yes, fixing locally" >&6
                   11033:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23      millert  11034:
1.25      millert  11035: fi
                   11036: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   11037:                fi
                   11038:                : ${mansectsu='8'}
                   11039:                : ${mansectform='4'}
                   11040:                ;;
                   11041:     *-*-irix*)
                   11042:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   11043:                if test -z "$NROFFPROG"; then
                   11044:                    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)'
                   11045:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   11046:                        if test -d /usr/share/catman/local; then
                   11047:                            mandir="/usr/share/catman/local"
                   11048:                        else
                   11049:                            mandir="/usr/catman/local"
                   11050:                        fi
                   11051:                    fi
                   11052:                else
                   11053:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   11054:                        if test -d "/usr/share/man/local"; then
                   11055:                            mandir="/usr/share/man/local"
                   11056:                        else
                   11057:                            mandir="/usr/man/local"
                   11058:                        fi
                   11059:                    fi
                   11060:                fi
                   11061:                # IRIX <= 4 needs -lsun
                   11062:                if test "$OSMAJOR" -le 4; then
                   11063:                    echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
                   11064: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
                   11065: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   11066:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11067: else
                   11068:   ac_check_lib_save_LIBS=$LIBS
                   11069: LIBS="-lsun  $LIBS"
                   11070: cat >conftest.$ac_ext <<_ACEOF
                   11071: /* confdefs.h.  */
                   11072: _ACEOF
                   11073: cat confdefs.h >>conftest.$ac_ext
                   11074: cat >>conftest.$ac_ext <<_ACEOF
                   11075: /* end confdefs.h.  */
1.23      millert  11076:
1.25      millert  11077: /* Override any gcc2 internal prototype to avoid an error.  */
                   11078: #ifdef __cplusplus
                   11079: extern "C"
                   11080: #endif
                   11081: /* We use char because int might match the return type of a gcc2
                   11082:    builtin and then its argument prototype would still apply.  */
                   11083: char getpwnam ();
                   11084: int
                   11085: main ()
                   11086: {
                   11087: getpwnam ();
                   11088:   ;
                   11089:   return 0;
                   11090: }
                   11091: _ACEOF
                   11092: rm -f conftest.$ac_objext conftest$ac_exeext
                   11093: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11094:   (eval $ac_link) 2>conftest.er1
                   11095:   ac_status=$?
                   11096:   grep -v '^ *+' conftest.er1 >conftest.err
                   11097:   rm -f conftest.er1
                   11098:   cat conftest.err >&5
                   11099:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11100:   (exit $ac_status); } &&
                   11101:         { ac_try='test -z "$ac_c_werror_flag"
                   11102:                         || test ! -s conftest.err'
                   11103:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11104:   (eval $ac_try) 2>&5
                   11105:   ac_status=$?
                   11106:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11107:   (exit $ac_status); }; } &&
                   11108:         { ac_try='test -s conftest$ac_exeext'
                   11109:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11110:   (eval $ac_try) 2>&5
                   11111:   ac_status=$?
                   11112:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11113:   (exit $ac_status); }; }; then
                   11114:   ac_cv_lib_sun_getpwnam=yes
                   11115: else
                   11116:   echo "$as_me: failed program was:" >&5
                   11117: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11118:
1.25      millert  11119: ac_cv_lib_sun_getpwnam=no
                   11120: fi
                   11121: rm -f conftest.err conftest.$ac_objext \
                   11122:       conftest$ac_exeext conftest.$ac_ext
                   11123: LIBS=$ac_check_lib_save_LIBS
                   11124: fi
                   11125: echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
                   11126: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
                   11127: if test $ac_cv_lib_sun_getpwnam = yes; then
                   11128:   LIBS="${LIBS} -lsun"
                   11129: fi
1.23      millert  11130:
1.25      millert  11131:                fi
                   11132:                : ${mansectsu='1m'}
                   11133:                : ${mansectform='4'}
                   11134:                ;;
                   11135:     *-*-linux*)
                   11136:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   11137:                # Some Linux versions need to link with -lshadow
                   11138:                shadow_funcs="getspnam"
                   11139:                shadow_libs_optional="-lshadow"
                   11140:                : ${with_pam='maybe'}
                   11141:                ;;
                   11142:     *-convex-bsd*)
                   11143:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   11144:                if test -z "$GCC"; then
                   11145:                    CFLAGS="${CFLAGS} -D__STDC__"
                   11146:                fi
1.23      millert  11147:
1.25      millert  11148:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   11149:                shadow_funcs="getprpwnam"
                   11150:                shadow_libs="-lprot"
                   11151:                ;;
                   11152:     *-*-ultrix*)
                   11153:                OS="ultrix"
                   11154:                shadow_funcs="getauthuid"
                   11155:                shadow_libs="-lauth"
                   11156:                ;;
                   11157:     *-*-riscos*)
                   11158:                LIBS="${LIBS} -lsun -lbsd"
                   11159:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   11160:                OSDEFS="${OSDEFS} -D_MIPS"
                   11161:                : ${mansectsu='1m'}
                   11162:                : ${mansectform='4'}
                   11163:                ;;
                   11164:     *-*-isc*)
                   11165:                OSDEFS="${OSDEFS} -D_ISC"
                   11166:                LIB_CRYPT=1
                   11167:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   11168:                LIBS="${LIBS} -lcrypt"
1.23      millert  11169:
1.25      millert  11170:                shadow_funcs="getspnam"
                   11171:                shadow_libs="-lsec"
1.23      millert  11172:
1.25      millert  11173:                : ${mansectsu='1m'}
                   11174:                : ${mansectform='4'}
                   11175:                ;;
                   11176:     *-*-sco*|*-sco-*)
                   11177:                shadow_funcs="getprpwnam"
                   11178:                shadow_libs="-lprot -lx"
                   11179:                : ${mansectsu='1m'}
                   11180:                : ${mansectform='4'}
                   11181:                ;;
                   11182:     m88k-motorola-sysv*)
                   11183:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   11184:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   11185:                : ${mansectsu='1m'}
                   11186:                : ${mansectform='4'}
                   11187:                ;;
                   11188:     *-sequent-sysv*)
                   11189:                shadow_funcs="getspnam"
                   11190:                shadow_libs="-lsec"
                   11191:                : ${mansectsu='1m'}
                   11192:                : ${mansectform='4'}
                   11193:                : ${with_rpath='yes'}
                   11194:                ;;
                   11195:     *-ncr-sysv4*|*-ncr-sysvr4*)
                   11196:                echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
                   11197: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
                   11198: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   11199:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11200: else
                   11201:   ac_check_lib_save_LIBS=$LIBS
                   11202: LIBS="-lc89  $LIBS"
                   11203: cat >conftest.$ac_ext <<_ACEOF
                   11204: /* confdefs.h.  */
                   11205: _ACEOF
                   11206: cat confdefs.h >>conftest.$ac_ext
                   11207: cat >>conftest.$ac_ext <<_ACEOF
                   11208: /* end confdefs.h.  */
1.23      millert  11209:
1.25      millert  11210: /* Override any gcc2 internal prototype to avoid an error.  */
                   11211: #ifdef __cplusplus
                   11212: extern "C"
                   11213: #endif
                   11214: /* We use char because int might match the return type of a gcc2
                   11215:    builtin and then its argument prototype would still apply.  */
                   11216: char strcasecmp ();
                   11217: int
                   11218: main ()
                   11219: {
                   11220: strcasecmp ();
                   11221:   ;
                   11222:   return 0;
                   11223: }
                   11224: _ACEOF
                   11225: rm -f conftest.$ac_objext conftest$ac_exeext
                   11226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11227:   (eval $ac_link) 2>conftest.er1
                   11228:   ac_status=$?
                   11229:   grep -v '^ *+' conftest.er1 >conftest.err
                   11230:   rm -f conftest.er1
                   11231:   cat conftest.err >&5
                   11232:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11233:   (exit $ac_status); } &&
                   11234:         { ac_try='test -z "$ac_c_werror_flag"
                   11235:                         || test ! -s conftest.err'
                   11236:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11237:   (eval $ac_try) 2>&5
                   11238:   ac_status=$?
                   11239:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11240:   (exit $ac_status); }; } &&
                   11241:         { ac_try='test -s conftest$ac_exeext'
                   11242:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11243:   (eval $ac_try) 2>&5
                   11244:   ac_status=$?
                   11245:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11246:   (exit $ac_status); }; }; then
                   11247:   ac_cv_lib_c89_strcasecmp=yes
                   11248: else
                   11249:   echo "$as_me: failed program was:" >&5
                   11250: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11251:
1.25      millert  11252: ac_cv_lib_c89_strcasecmp=no
                   11253: fi
                   11254: rm -f conftest.err conftest.$ac_objext \
                   11255:       conftest$ac_exeext conftest.$ac_ext
                   11256: LIBS=$ac_check_lib_save_LIBS
                   11257: fi
                   11258: echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
                   11259: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
                   11260: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   11261:   cat >>confdefs.h <<\_ACEOF
                   11262: #define HAVE_STRCASECMP 1
                   11263: _ACEOF
                   11264:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   11265: fi
1.23      millert  11266:
1.25      millert  11267:                : ${mansectsu='1m'}
                   11268:                : ${mansectform='4'}
                   11269:                : ${with_rpath='yes'}
                   11270:                ;;
                   11271:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   11272:                LIBS="${LIBS} -lgen"
                   11273:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   11274:                : ${mansectsu='1m'}
                   11275:                : ${mansectform='4'}
                   11276:                : ${with_rpath='yes'}
                   11277:                ;;
                   11278:     *-*-bsdi*)
                   11279:                SKIP_SETREUID=yes
                   11280:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   11281:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   11282:                    case "$OSMAJOR" in
                   11283:                        2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
                   11284: echo "$as_me: using shlicc as CC" >&6;}
                   11285:                                ac_cv_prog_CC=shlicc
                   11286:                                CC="$ac_cv_prog_CC"
                   11287:                                ;;
                   11288:                    esac
                   11289:                fi
                   11290:                # Check for newer BSD auth API (just check for >= 3.0?)
                   11291:                if test -z "$with_bsdauth"; then
1.23      millert  11292:
1.25      millert  11293: for ac_func in auth_challenge
                   11294: do
                   11295: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   11296: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11297: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   11298: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   11299:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11300: else
                   11301:   cat >conftest.$ac_ext <<_ACEOF
                   11302: /* confdefs.h.  */
                   11303: _ACEOF
                   11304: cat confdefs.h >>conftest.$ac_ext
                   11305: cat >>conftest.$ac_ext <<_ACEOF
                   11306: /* end confdefs.h.  */
                   11307: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   11308:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   11309: #define $ac_func innocuous_$ac_func
1.23      millert  11310:
1.25      millert  11311: /* System header to define __stub macros and hopefully few prototypes,
                   11312:     which can conflict with char $ac_func (); below.
                   11313:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   11314:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  11315:
1.25      millert  11316: #ifdef __STDC__
                   11317: # include <limits.h>
                   11318: #else
                   11319: # include <assert.h>
                   11320: #endif
1.23      millert  11321:
1.25      millert  11322: #undef $ac_func
1.23      millert  11323:
1.25      millert  11324: /* Override any gcc2 internal prototype to avoid an error.  */
                   11325: #ifdef __cplusplus
                   11326: extern "C"
                   11327: {
                   11328: #endif
                   11329: /* We use char because int might match the return type of a gcc2
                   11330:    builtin and then its argument prototype would still apply.  */
                   11331: char $ac_func ();
                   11332: /* The GNU C library defines this for functions which it implements
                   11333:     to always fail with ENOSYS.  Some functions are actually named
                   11334:     something starting with __ and the normal name is an alias.  */
                   11335: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   11336: choke me
                   11337: #else
                   11338: char (*f) () = $ac_func;
                   11339: #endif
                   11340: #ifdef __cplusplus
                   11341: }
                   11342: #endif
1.23      millert  11343:
1.25      millert  11344: int
                   11345: main ()
                   11346: {
                   11347: return f != $ac_func;
                   11348:   ;
                   11349:   return 0;
                   11350: }
                   11351: _ACEOF
                   11352: rm -f conftest.$ac_objext conftest$ac_exeext
                   11353: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11354:   (eval $ac_link) 2>conftest.er1
                   11355:   ac_status=$?
                   11356:   grep -v '^ *+' conftest.er1 >conftest.err
                   11357:   rm -f conftest.er1
                   11358:   cat conftest.err >&5
                   11359:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11360:   (exit $ac_status); } &&
                   11361:         { ac_try='test -z "$ac_c_werror_flag"
                   11362:                         || test ! -s conftest.err'
                   11363:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11364:   (eval $ac_try) 2>&5
                   11365:   ac_status=$?
                   11366:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11367:   (exit $ac_status); }; } &&
                   11368:         { ac_try='test -s conftest$ac_exeext'
                   11369:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11370:   (eval $ac_try) 2>&5
                   11371:   ac_status=$?
                   11372:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11373:   (exit $ac_status); }; }; then
                   11374:   eval "$as_ac_var=yes"
                   11375: else
                   11376:   echo "$as_me: failed program was:" >&5
                   11377: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11378:
1.25      millert  11379: eval "$as_ac_var=no"
                   11380: fi
                   11381: rm -f conftest.err conftest.$ac_objext \
                   11382:       conftest$ac_exeext conftest.$ac_ext
                   11383: fi
                   11384: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   11385: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   11386: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   11387:   cat >>confdefs.h <<_ACEOF
                   11388: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   11389: _ACEOF
                   11390:  with_bsdauth=maybe
                   11391: fi
                   11392: done
1.23      millert  11393:
1.25      millert  11394:                fi
                   11395:                ;;
                   11396:     *-*-freebsd*)
                   11397:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   11398:                # backported to 2.0.5.  We just take 2.1 and above...
                   11399:                case "$OSREV" in
                   11400:                0.*|1.*|2.0*)
                   11401:                    SKIP_SETREUID=yes
                   11402:                    ;;
                   11403:                esac
                   11404:                if test "$with_skey" = "yes"; then
                   11405:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   11406:                fi
                   11407:                if test "$CHECKSHADOW" = "true"; then
                   11408:                    CHECKSHADOW="false"
                   11409:                fi
                   11410:                : ${with_pam='maybe'}
                   11411:                : ${with_logincap='maybe'}
                   11412:                ;;
                   11413:     *-*-*openbsd*)
                   11414:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   11415:                # we will use setreuid(2) instead.
                   11416:                SKIP_SETREUID=yes
                   11417:                if test "$CHECKSHADOW" = "true"; then
                   11418:                    CHECKSHADOW="false"
                   11419:                fi
                   11420:                # OpenBSD >= 3.0 supports BSD auth
                   11421:                if test -z "$with_bsdauth"; then
                   11422:                    case "$OSREV" in
                   11423:                    0-2.*)
                   11424:                        ;;
                   11425:                    *)
                   11426:                        with_bsdauth=maybe
                   11427:                        ;;
                   11428:                    esac
                   11429:                fi
                   11430:                : ${with_logincap='maybe'}
                   11431:                ;;
                   11432:     *-*-*netbsd*)
                   11433:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   11434:                case "$OSREV" in
                   11435:                0.9*|1.012*|1.3|1.3.1)
                   11436:                    SKIP_SETREUID=yes
                   11437:                    ;;
                   11438:                esac
                   11439:                if test "$CHECKSHADOW" = "true"; then
                   11440:                    CHECKSHADOW="false"
                   11441:                fi
                   11442:                : ${with_logincap='maybe'}
                   11443:                                : ${with_pam='maybe'}
                   11444:                ;;
                   11445:     *-*-dragonfly*)
                   11446:                if test "$with_skey" = "yes"; then
                   11447:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   11448:                fi
                   11449:                if test "$CHECKSHADOW" = "true"; then
                   11450:                    CHECKSHADOW="false"
                   11451:                fi
                   11452:                : ${with_pam='yes'}
                   11453:                : ${with_logincap='yes'}
                   11454:                ;;
                   11455:     *-*-*bsd*)
                   11456:                if test "$CHECKSHADOW" = "true"; then
                   11457:                    CHECKSHADOW="false"
                   11458:                fi
                   11459:                ;;
                   11460:     *-*-darwin*)
                   11461:                SKIP_SETREUID=yes
                   11462:                if test "$CHECKSHADOW" = "true"; then
                   11463:                    CHECKSHADOW="false"
                   11464:                fi
                   11465:                : ${with_pam='yes'}
                   11466:                : ${with_logincap='yes'}
                   11467:                ;;
                   11468:     *-*-nextstep*)
                   11469:                # lockf() on is broken on the NeXT -- use flock instead
                   11470:                ac_cv_func_lockf=no
                   11471:                ac_cv_func_flock=yes
                   11472:                ;;
                   11473:     *-*-*sysv4*)
                   11474:                : ${mansectsu='1m'}
                   11475:                : ${mansectform='4'}
                   11476:                : ${with_rpath='yes'}
                   11477:                ;;
                   11478:     *-*-sysv*)
                   11479:                : ${mansectsu='1m'}
                   11480:                : ${mansectform='4'}
                   11481:                ;;
                   11482:     *-gnu*)
                   11483:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   11484:                ;;
                   11485: esac
1.23      millert  11486:
1.25      millert  11487: : ${mansectsu='8'}
                   11488: : ${mansectform='5'}
1.23      millert  11489:
1.25      millert  11490: if test -n "$with_libpath"; then
                   11491:     for i in ${with_libpath}; do
1.23      millert  11492:
1.25      millert  11493:     if test X"$with_rpath" = X"yes"; then
                   11494:        LDFLAGS="${LDFLAGS} -L$i -R$i"
                   11495:     else
                   11496:        LDFLAGS="${LDFLAGS} -L$i"
                   11497:     fi
                   11498:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   11499:        blibpath_add="${blibpath_add}:$i"
                   11500:     fi
1.23      millert  11501:
1.25      millert  11502:     done
                   11503: fi
                   11504: if test -n "$with_libraries"; then
                   11505:     for i in ${with_libraries}; do
                   11506:        case $i in
                   11507:            -l*)        ;;
                   11508:            *.a)        ;;
                   11509:            *.o)        ;;
                   11510:            *)  i="-l${i}";;
                   11511:        esac
                   11512:        LIBS="${LIBS} ${i}"
                   11513:     done
                   11514: fi
1.23      millert  11515:
1.25      millert  11516: if test $ac_cv_c_compiler_gnu = yes; then
                   11517:     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
                   11518: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
                   11519: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   11520:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11521: else
                   11522:     ac_pattern="Autoconf.*'x'"
                   11523:   cat >conftest.$ac_ext <<_ACEOF
                   11524: /* confdefs.h.  */
                   11525: _ACEOF
                   11526: cat confdefs.h >>conftest.$ac_ext
                   11527: cat >>conftest.$ac_ext <<_ACEOF
                   11528: /* end confdefs.h.  */
                   11529: #include <sgtty.h>
                   11530: Autoconf TIOCGETP
                   11531: _ACEOF
                   11532: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   11533:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   11534:   ac_cv_prog_gcc_traditional=yes
                   11535: else
                   11536:   ac_cv_prog_gcc_traditional=no
                   11537: fi
                   11538: rm -f conftest*
1.23      millert  11539:
                   11540:
1.25      millert  11541:   if test $ac_cv_prog_gcc_traditional = no; then
                   11542:     cat >conftest.$ac_ext <<_ACEOF
                   11543: /* confdefs.h.  */
                   11544: _ACEOF
                   11545: cat confdefs.h >>conftest.$ac_ext
                   11546: cat >>conftest.$ac_ext <<_ACEOF
                   11547: /* end confdefs.h.  */
                   11548: #include <termio.h>
                   11549: Autoconf TCGETA
                   11550: _ACEOF
                   11551: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   11552:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   11553:   ac_cv_prog_gcc_traditional=yes
                   11554: fi
                   11555: rm -f conftest*
1.23      millert  11556:
1.25      millert  11557:   fi
                   11558: fi
                   11559: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
                   11560: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
                   11561:   if test $ac_cv_prog_gcc_traditional = yes; then
                   11562:     CC="$CC -traditional"
                   11563:   fi
                   11564: fi
1.23      millert  11565:
1.25      millert  11566: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   11567: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
                   11568: if test "${ac_cv_c_const+set}" = set; then
                   11569:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11570: else
                   11571:   cat >conftest.$ac_ext <<_ACEOF
                   11572: /* confdefs.h.  */
                   11573: _ACEOF
                   11574: cat confdefs.h >>conftest.$ac_ext
                   11575: cat >>conftest.$ac_ext <<_ACEOF
                   11576: /* end confdefs.h.  */
1.23      millert  11577:
1.25      millert  11578: int
                   11579: main ()
                   11580: {
                   11581: /* FIXME: Include the comments suggested by Paul. */
                   11582: #ifndef __cplusplus
                   11583:   /* Ultrix mips cc rejects this.  */
                   11584:   typedef int charset[2];
                   11585:   const charset x;
                   11586:   /* SunOS 4.1.1 cc rejects this.  */
                   11587:   char const *const *ccp;
                   11588:   char **p;
                   11589:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   11590:   struct point {int x, y;};
                   11591:   static struct point const zero = {0,0};
                   11592:   /* AIX XL C 1.02.0.0 rejects this.
                   11593:      It does not let you subtract one const X* pointer from another in
                   11594:      an arm of an if-expression whose if-part is not a constant
                   11595:      expression */
                   11596:   const char *g = "string";
                   11597:   ccp = &g + (g ? g-g : 0);
                   11598:   /* HPUX 7.0 cc rejects these. */
                   11599:   ++ccp;
                   11600:   p = (char**) ccp;
                   11601:   ccp = (char const *const *) p;
                   11602:   { /* SCO 3.2v4 cc rejects this.  */
                   11603:     char *t;
                   11604:     char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23      millert  11605:
1.25      millert  11606:     *t++ = 0;
                   11607:   }
                   11608:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   11609:     int x[] = {25, 17};
                   11610:     const int *foo = &x[0];
                   11611:     ++foo;
                   11612:   }
                   11613:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   11614:     typedef const int *iptr;
                   11615:     iptr p = 0;
                   11616:     ++p;
                   11617:   }
                   11618:   { /* AIX XL C 1.02.0.0 rejects this saying
                   11619:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   11620:     struct s { int j; const int *ap[3]; };
                   11621:     struct s *b; b->j = 5;
                   11622:   }
                   11623:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   11624:     const int foo = 10;
                   11625:   }
                   11626: #endif
1.23      millert  11627:
1.25      millert  11628:   ;
                   11629:   return 0;
                   11630: }
                   11631: _ACEOF
                   11632: rm -f conftest.$ac_objext
                   11633: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   11634:   (eval $ac_compile) 2>conftest.er1
                   11635:   ac_status=$?
                   11636:   grep -v '^ *+' conftest.er1 >conftest.err
                   11637:   rm -f conftest.er1
                   11638:   cat conftest.err >&5
                   11639:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11640:   (exit $ac_status); } &&
                   11641:         { ac_try='test -z "$ac_c_werror_flag"
                   11642:                         || test ! -s conftest.err'
                   11643:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11644:   (eval $ac_try) 2>&5
                   11645:   ac_status=$?
                   11646:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11647:   (exit $ac_status); }; } &&
                   11648:         { ac_try='test -s conftest.$ac_objext'
                   11649:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11650:   (eval $ac_try) 2>&5
                   11651:   ac_status=$?
                   11652:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11653:   (exit $ac_status); }; }; then
                   11654:   ac_cv_c_const=yes
                   11655: else
                   11656:   echo "$as_me: failed program was:" >&5
                   11657: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11658:
1.25      millert  11659: ac_cv_c_const=no
                   11660: fi
                   11661: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   11662: fi
                   11663: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   11664: echo "${ECHO_T}$ac_cv_c_const" >&6
                   11665: if test $ac_cv_c_const = no; then
1.23      millert  11666:
1.25      millert  11667: cat >>confdefs.h <<\_ACEOF
                   11668: #define const
                   11669: _ACEOF
1.23      millert  11670:
1.25      millert  11671: fi
1.23      millert  11672:
1.25      millert  11673: echo "$as_me:$LINENO: checking for working volatile" >&5
                   11674: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
                   11675: if test "${ac_cv_c_volatile+set}" = set; then
                   11676:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11677: else
                   11678:   cat >conftest.$ac_ext <<_ACEOF
                   11679: /* confdefs.h.  */
                   11680: _ACEOF
                   11681: cat confdefs.h >>conftest.$ac_ext
                   11682: cat >>conftest.$ac_ext <<_ACEOF
                   11683: /* end confdefs.h.  */
1.23      millert  11684:
1.25      millert  11685: int
                   11686: main ()
                   11687: {
1.23      millert  11688:
1.25      millert  11689: volatile int x;
                   11690: int * volatile y;
                   11691:   ;
                   11692:   return 0;
                   11693: }
                   11694: _ACEOF
                   11695: rm -f conftest.$ac_objext
                   11696: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   11697:   (eval $ac_compile) 2>conftest.er1
                   11698:   ac_status=$?
                   11699:   grep -v '^ *+' conftest.er1 >conftest.err
                   11700:   rm -f conftest.er1
                   11701:   cat conftest.err >&5
                   11702:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11703:   (exit $ac_status); } &&
                   11704:         { ac_try='test -z "$ac_c_werror_flag"
                   11705:                         || test ! -s conftest.err'
                   11706:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11707:   (eval $ac_try) 2>&5
                   11708:   ac_status=$?
                   11709:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11710:   (exit $ac_status); }; } &&
                   11711:         { ac_try='test -s conftest.$ac_objext'
                   11712:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   11713:   (eval $ac_try) 2>&5
                   11714:   ac_status=$?
                   11715:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11716:   (exit $ac_status); }; }; then
                   11717:   ac_cv_c_volatile=yes
                   11718: else
                   11719:   echo "$as_me: failed program was:" >&5
                   11720: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11721:
1.25      millert  11722: ac_cv_c_volatile=no
                   11723: fi
                   11724: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   11725: fi
                   11726: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   11727: echo "${ECHO_T}$ac_cv_c_volatile" >&6
                   11728: if test $ac_cv_c_volatile = no; then
1.23      millert  11729:
1.25      millert  11730: cat >>confdefs.h <<\_ACEOF
                   11731: #define volatile
                   11732: _ACEOF
1.23      millert  11733:
1.25      millert  11734: fi
1.23      millert  11735:
1.25      millert  11736: for ac_prog in 'bison -y' byacc
                   11737: do
                   11738:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   11739: set dummy $ac_prog; ac_word=$2
                   11740: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11741: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   11742: if test "${ac_cv_prog_YACC+set}" = set; then
                   11743:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11744: else
                   11745:   if test -n "$YACC"; then
                   11746:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   11747: else
                   11748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11749: for as_dir in $PATH
                   11750: do
                   11751:   IFS=$as_save_IFS
                   11752:   test -z "$as_dir" && as_dir=.
                   11753:   for ac_exec_ext in '' $ac_executable_extensions; do
                   11754:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   11755:     ac_cv_prog_YACC="$ac_prog"
                   11756:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11757:     break 2
                   11758:   fi
                   11759: done
                   11760: done
1.23      millert  11761:
1.25      millert  11762: fi
                   11763: fi
                   11764: YACC=$ac_cv_prog_YACC
                   11765: if test -n "$YACC"; then
                   11766:   echo "$as_me:$LINENO: result: $YACC" >&5
                   11767: echo "${ECHO_T}$YACC" >&6
                   11768: else
                   11769:   echo "$as_me:$LINENO: result: no" >&5
                   11770: echo "${ECHO_T}no" >&6
                   11771: fi
1.23      millert  11772:
1.25      millert  11773:   test -n "$YACC" && break
                   11774: done
                   11775: test -n "$YACC" || YACC="yacc"
1.23      millert  11776:
1.25      millert  11777: echo "$as_me:$LINENO: checking for mv" >&5
                   11778: echo $ECHO_N "checking for mv... $ECHO_C" >&6
                   11779: if test -f "/usr/bin/mv"; then
                   11780:     echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
                   11781: echo "${ECHO_T}/usr/bin/mv" >&6
                   11782:     cat >>confdefs.h <<\EOF
                   11783: #define _PATH_MV "/usr/bin/mv"
                   11784: EOF
1.23      millert  11785:
1.25      millert  11786: elif test -f "/bin/mv"; then
                   11787:     echo "$as_me:$LINENO: result: /bin/mv" >&5
                   11788: echo "${ECHO_T}/bin/mv" >&6
                   11789:     cat >>confdefs.h <<\EOF
                   11790: #define _PATH_MV "/bin/mv"
                   11791: EOF
1.23      millert  11792:
1.25      millert  11793: elif test -f "/usr/ucb/mv"; then
                   11794:     echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
                   11795: echo "${ECHO_T}/usr/ucb/mv" >&6
                   11796:     cat >>confdefs.h <<\EOF
                   11797: #define _PATH_MV "/usr/ucb/mv"
                   11798: EOF
1.23      millert  11799:
1.25      millert  11800: elif test -f "/usr/sbin/mv"; then
                   11801:     echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
                   11802: echo "${ECHO_T}/usr/sbin/mv" >&6
                   11803:     cat >>confdefs.h <<\EOF
                   11804: #define _PATH_MV "/usr/sbin/mv"
                   11805: EOF
1.23      millert  11806:
1.25      millert  11807: else
                   11808:     echo "$as_me:$LINENO: result: not found" >&5
                   11809: echo "${ECHO_T}not found" >&6
                   11810: fi
1.23      millert  11811:
1.25      millert  11812: echo "$as_me:$LINENO: checking for bourne shell" >&5
                   11813: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
                   11814: if test -f "/bin/sh"; then
                   11815:     echo "$as_me:$LINENO: result: /bin/sh" >&5
                   11816: echo "${ECHO_T}/bin/sh" >&6
                   11817:     cat >>confdefs.h <<\EOF
                   11818: #define _PATH_BSHELL "/bin/sh"
                   11819: EOF
1.23      millert  11820:
1.25      millert  11821: elif test -f "/usr/bin/sh"; then
                   11822:     echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
                   11823: echo "${ECHO_T}/usr/bin/sh" >&6
                   11824:     cat >>confdefs.h <<\EOF
                   11825: #define _PATH_BSHELL "/usr/bin/sh"
                   11826: EOF
1.23      millert  11827:
1.25      millert  11828: elif test -f "/sbin/sh"; then
                   11829:     echo "$as_me:$LINENO: result: /sbin/sh" >&5
                   11830: echo "${ECHO_T}/sbin/sh" >&6
                   11831:     cat >>confdefs.h <<\EOF
                   11832: #define _PATH_BSHELL "/sbin/sh"
                   11833: EOF
1.23      millert  11834:
1.25      millert  11835: elif test -f "/usr/sbin/sh"; then
                   11836:     echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
                   11837: echo "${ECHO_T}/usr/sbin/sh" >&6
                   11838:     cat >>confdefs.h <<\EOF
                   11839: #define _PATH_BSHELL "/usr/sbin/sh"
                   11840: EOF
1.23      millert  11841:
1.25      millert  11842: elif test -f "/bin/ksh"; then
                   11843:     echo "$as_me:$LINENO: result: /bin/ksh" >&5
                   11844: echo "${ECHO_T}/bin/ksh" >&6
                   11845:     cat >>confdefs.h <<\EOF
                   11846: #define _PATH_BSHELL "/bin/ksh"
                   11847: EOF
1.23      millert  11848:
1.25      millert  11849: elif test -f "/usr/bin/ksh"; then
                   11850:     echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
                   11851: echo "${ECHO_T}/usr/bin/ksh" >&6
                   11852:     cat >>confdefs.h <<\EOF
                   11853: #define _PATH_BSHELL "/usr/bin/ksh"
                   11854: EOF
1.23      millert  11855:
1.25      millert  11856: elif test -f "/bin/bash"; then
                   11857:     echo "$as_me:$LINENO: result: /bin/bash" >&5
                   11858: echo "${ECHO_T}/bin/bash" >&6
                   11859:     cat >>confdefs.h <<\EOF
                   11860: #define _PATH_BSHELL "/bin/bash"
                   11861: EOF
1.23      millert  11862:
1.25      millert  11863: elif test -f "/usr/bin/bash"; then
                   11864:     echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
                   11865: echo "${ECHO_T}/usr/bin/bash" >&6
                   11866:     cat >>confdefs.h <<\EOF
                   11867: #define _PATH_BSHELL "/usr/bin/bash"
                   11868: EOF
1.23      millert  11869:
1.25      millert  11870: else
                   11871:     echo "$as_me:$LINENO: result: not found" >&5
                   11872: echo "${ECHO_T}not found" >&6
                   11873: fi
1.23      millert  11874:
1.25      millert  11875: if test -z "$with_sendmail"; then
                   11876:     echo "$as_me:$LINENO: checking for sendmail" >&5
                   11877: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
                   11878: if test -f "/usr/sbin/sendmail"; then
                   11879:     echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
                   11880: echo "${ECHO_T}/usr/sbin/sendmail" >&6
                   11881:     cat >>confdefs.h <<\EOF
                   11882: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   11883: EOF
1.23      millert  11884:
1.25      millert  11885: elif test -f "/usr/lib/sendmail"; then
                   11886:     echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
                   11887: echo "${ECHO_T}/usr/lib/sendmail" >&6
                   11888:     cat >>confdefs.h <<\EOF
                   11889: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   11890: EOF
1.23      millert  11891:
1.25      millert  11892: elif test -f "/usr/etc/sendmail"; then
                   11893:     echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
                   11894: echo "${ECHO_T}/usr/etc/sendmail" >&6
                   11895:     cat >>confdefs.h <<\EOF
                   11896: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   11897: EOF
1.23      millert  11898:
1.25      millert  11899: elif test -f "/usr/ucblib/sendmail"; then
                   11900:     echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
                   11901: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
                   11902:     cat >>confdefs.h <<\EOF
                   11903: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   11904: EOF
1.23      millert  11905:
1.25      millert  11906: elif test -f "/usr/local/lib/sendmail"; then
                   11907:     echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
                   11908: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
                   11909:     cat >>confdefs.h <<\EOF
                   11910: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   11911: EOF
1.23      millert  11912:
1.25      millert  11913: elif test -f "/usr/local/bin/sendmail"; then
                   11914:     echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
                   11915: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
                   11916:     cat >>confdefs.h <<\EOF
                   11917: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   11918: EOF
1.23      millert  11919:
1.25      millert  11920: else
                   11921:     echo "$as_me:$LINENO: result: not found" >&5
                   11922: echo "${ECHO_T}not found" >&6
                   11923: fi
1.23      millert  11924:
1.25      millert  11925: fi
                   11926: if test -z "$with_editor"; then
                   11927:     echo "$as_me:$LINENO: checking for vi" >&5
                   11928: echo $ECHO_N "checking for vi... $ECHO_C" >&6
                   11929: if test -f "/usr/bin/vi"; then
                   11930:     echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
                   11931: echo "${ECHO_T}/usr/bin/vi" >&6
                   11932:     cat >>confdefs.h <<\EOF
                   11933: #define _PATH_VI "/usr/bin/vi"
                   11934: EOF
1.23      millert  11935:
1.25      millert  11936: elif test -f "/usr/ucb/vi"; then
                   11937:     echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
                   11938: echo "${ECHO_T}/usr/ucb/vi" >&6
                   11939:     cat >>confdefs.h <<\EOF
                   11940: #define _PATH_VI "/usr/ucb/vi"
                   11941: EOF
1.23      millert  11942:
1.25      millert  11943: elif test -f "/usr/bsd/vi"; then
                   11944:     echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
                   11945: echo "${ECHO_T}/usr/bsd/vi" >&6
                   11946:     cat >>confdefs.h <<\EOF
                   11947: #define _PATH_VI "/usr/bsd/vi"
                   11948: EOF
1.23      millert  11949:
1.25      millert  11950: elif test -f "/bin/vi"; then
                   11951:     echo "$as_me:$LINENO: result: /bin/vi" >&5
                   11952: echo "${ECHO_T}/bin/vi" >&6
                   11953:     cat >>confdefs.h <<\EOF
                   11954: #define _PATH_VI "/bin/vi"
                   11955: EOF
1.23      millert  11956:
1.25      millert  11957: elif test -f "/usr/local/bin/vi"; then
                   11958:     echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
                   11959: echo "${ECHO_T}/usr/local/bin/vi" >&6
                   11960:     cat >>confdefs.h <<\EOF
                   11961: #define _PATH_VI "/usr/local/bin/vi"
                   11962: EOF
1.23      millert  11963:
                   11964: else
1.25      millert  11965:     echo "$as_me:$LINENO: result: not found" >&5
                   11966: echo "${ECHO_T}not found" >&6
1.23      millert  11967: fi
                   11968:
1.25      millert  11969: fi
                   11970: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   11971: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
                   11972: if test "${ac_cv_header_stdc+set}" = set; then
                   11973:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11974: else
                   11975:   cat >conftest.$ac_ext <<_ACEOF
                   11976: /* confdefs.h.  */
                   11977: _ACEOF
                   11978: cat confdefs.h >>conftest.$ac_ext
                   11979: cat >>conftest.$ac_ext <<_ACEOF
                   11980: /* end confdefs.h.  */
                   11981: #include <stdlib.h>
                   11982: #include <stdarg.h>
                   11983: #include <string.h>
                   11984: #include <float.h>
1.23      millert  11985:
1.25      millert  11986: int
                   11987: main ()
                   11988: {
1.23      millert  11989:
1.25      millert  11990:   ;
                   11991:   return 0;
                   11992: }
                   11993: _ACEOF
                   11994: rm -f conftest.$ac_objext
                   11995: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   11996:   (eval $ac_compile) 2>conftest.er1
                   11997:   ac_status=$?
                   11998:   grep -v '^ *+' conftest.er1 >conftest.err
                   11999:   rm -f conftest.er1
                   12000:   cat conftest.err >&5
                   12001:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12002:   (exit $ac_status); } &&
                   12003:         { ac_try='test -z "$ac_c_werror_flag"
                   12004:                         || test ! -s conftest.err'
                   12005:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12006:   (eval $ac_try) 2>&5
                   12007:   ac_status=$?
                   12008:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12009:   (exit $ac_status); }; } &&
                   12010:         { ac_try='test -s conftest.$ac_objext'
                   12011:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12012:   (eval $ac_try) 2>&5
                   12013:   ac_status=$?
                   12014:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12015:   (exit $ac_status); }; }; then
                   12016:   ac_cv_header_stdc=yes
                   12017: else
                   12018:   echo "$as_me: failed program was:" >&5
                   12019: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12020:
1.25      millert  12021: ac_cv_header_stdc=no
                   12022: fi
                   12023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  12024:
1.25      millert  12025: if test $ac_cv_header_stdc = yes; then
                   12026:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   12027:   cat >conftest.$ac_ext <<_ACEOF
                   12028: /* confdefs.h.  */
                   12029: _ACEOF
                   12030: cat confdefs.h >>conftest.$ac_ext
                   12031: cat >>conftest.$ac_ext <<_ACEOF
                   12032: /* end confdefs.h.  */
                   12033: #include <string.h>
1.23      millert  12034:
1.25      millert  12035: _ACEOF
                   12036: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12037:   $EGREP "memchr" >/dev/null 2>&1; then
                   12038:   :
                   12039: else
                   12040:   ac_cv_header_stdc=no
                   12041: fi
                   12042: rm -f conftest*
1.23      millert  12043:
                   12044: fi
                   12045:
1.25      millert  12046: if test $ac_cv_header_stdc = yes; then
                   12047:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   12048:   cat >conftest.$ac_ext <<_ACEOF
                   12049: /* confdefs.h.  */
                   12050: _ACEOF
                   12051: cat confdefs.h >>conftest.$ac_ext
                   12052: cat >>conftest.$ac_ext <<_ACEOF
                   12053: /* end confdefs.h.  */
                   12054: #include <stdlib.h>
1.23      millert  12055:
1.25      millert  12056: _ACEOF
                   12057: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12058:   $EGREP "free" >/dev/null 2>&1; then
                   12059:   :
1.23      millert  12060: else
1.25      millert  12061:   ac_cv_header_stdc=no
1.23      millert  12062: fi
1.25      millert  12063: rm -f conftest*
1.23      millert  12064:
                   12065: fi
                   12066:
1.25      millert  12067: if test $ac_cv_header_stdc = yes; then
                   12068:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   12069:   if test "$cross_compiling" = yes; then
                   12070:   :
1.1       millert  12071: else
1.25      millert  12072:   cat >conftest.$ac_ext <<_ACEOF
                   12073: /* confdefs.h.  */
                   12074: _ACEOF
                   12075: cat confdefs.h >>conftest.$ac_ext
                   12076: cat >>conftest.$ac_ext <<_ACEOF
                   12077: /* end confdefs.h.  */
                   12078: #include <ctype.h>
                   12079: #if ((' ' & 0x0FF) == 0x020)
                   12080: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   12081: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   12082: #else
                   12083: # define ISLOWER(c) \
                   12084:                   (('a' <= (c) && (c) <= 'i') \
                   12085:                     || ('j' <= (c) && (c) <= 'r') \
                   12086:                     || ('s' <= (c) && (c) <= 'z'))
                   12087: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   12088: #endif
                   12089:
                   12090: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   12091: int
                   12092: main ()
                   12093: {
                   12094:   int i;
                   12095:   for (i = 0; i < 256; i++)
                   12096:     if (XOR (islower (i), ISLOWER (i))
                   12097:        || toupper (i) != TOUPPER (i))
                   12098:       exit(2);
                   12099:   exit (0);
                   12100: }
                   12101: _ACEOF
                   12102: rm -f conftest$ac_exeext
                   12103: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   12104:   (eval $ac_link) 2>&5
                   12105:   ac_status=$?
                   12106:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12107:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   12108:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12109:   (eval $ac_try) 2>&5
                   12110:   ac_status=$?
                   12111:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12112:   (exit $ac_status); }; }; then
                   12113:   :
1.1       millert  12114: else
1.25      millert  12115:   echo "$as_me: program exited with status $ac_status" >&5
                   12116: echo "$as_me: failed program was:" >&5
                   12117: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  12118:
1.25      millert  12119: ( exit $ac_status )
                   12120: ac_cv_header_stdc=no
                   12121: fi
                   12122: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  12123: fi
                   12124: fi
                   12125: fi
1.25      millert  12126: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   12127: echo "${ECHO_T}$ac_cv_header_stdc" >&6
                   12128: if test $ac_cv_header_stdc = yes; then
1.1       millert  12129:
1.25      millert  12130: cat >>confdefs.h <<\_ACEOF
                   12131: #define STDC_HEADERS 1
                   12132: _ACEOF
1.9       millert  12133:
1.1       millert  12134: fi
                   12135:
1.25      millert  12136:
                   12137:
                   12138:
                   12139:
                   12140:
                   12141: ac_header_dirent=no
                   12142: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   12143:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   12144: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   12145: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
                   12146: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9       millert  12147:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12148: else
1.25      millert  12149:   cat >conftest.$ac_ext <<_ACEOF
                   12150: /* confdefs.h.  */
                   12151: _ACEOF
                   12152: cat confdefs.h >>conftest.$ac_ext
                   12153: cat >>conftest.$ac_ext <<_ACEOF
                   12154: /* end confdefs.h.  */
                   12155: #include <sys/types.h>
                   12156: #include <$ac_hdr>
                   12157:
                   12158: int
                   12159: main ()
                   12160: {
                   12161: if ((DIR *) 0)
                   12162: return 0;
                   12163:   ;
                   12164:   return 0;
                   12165: }
                   12166: _ACEOF
                   12167: rm -f conftest.$ac_objext
                   12168: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   12169:   (eval $ac_compile) 2>conftest.er1
                   12170:   ac_status=$?
                   12171:   grep -v '^ *+' conftest.er1 >conftest.err
                   12172:   rm -f conftest.er1
                   12173:   cat conftest.err >&5
                   12174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12175:   (exit $ac_status); } &&
                   12176:         { ac_try='test -z "$ac_c_werror_flag"
                   12177:                         || test ! -s conftest.err'
                   12178:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12179:   (eval $ac_try) 2>&5
                   12180:   ac_status=$?
                   12181:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12182:   (exit $ac_status); }; } &&
                   12183:         { ac_try='test -s conftest.$ac_objext'
                   12184:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12185:   (eval $ac_try) 2>&5
                   12186:   ac_status=$?
                   12187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12188:   (exit $ac_status); }; }; then
                   12189:   eval "$as_ac_Header=yes"
1.1       millert  12190: else
1.25      millert  12191:   echo "$as_me: failed program was:" >&5
                   12192: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  12193:
1.25      millert  12194: eval "$as_ac_Header=no"
1.1       millert  12195: fi
1.25      millert  12196: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  12197: fi
1.25      millert  12198: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12199: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   12200: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   12201:   cat >>confdefs.h <<_ACEOF
                   12202: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   12203: _ACEOF
1.9       millert  12204:
1.25      millert  12205: ac_header_dirent=$ac_hdr; break
1.9       millert  12206: fi
1.16      millert  12207:
1.25      millert  12208: done
                   12209: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   12210: if test $ac_header_dirent = dirent.h; then
                   12211:   echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   12212: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
                   12213: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  12214:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12215: else
1.25      millert  12216:   ac_func_search_save_LIBS=$LIBS
                   12217: ac_cv_search_opendir=no
                   12218: cat >conftest.$ac_ext <<_ACEOF
                   12219: /* confdefs.h.  */
                   12220: _ACEOF
                   12221: cat confdefs.h >>conftest.$ac_ext
                   12222: cat >>conftest.$ac_ext <<_ACEOF
                   12223: /* end confdefs.h.  */
1.1       millert  12224:
1.25      millert  12225: /* Override any gcc2 internal prototype to avoid an error.  */
                   12226: #ifdef __cplusplus
                   12227: extern "C"
                   12228: #endif
                   12229: /* We use char because int might match the return type of a gcc2
                   12230:    builtin and then its argument prototype would still apply.  */
                   12231: char opendir ();
                   12232: int
                   12233: main ()
                   12234: {
                   12235: opendir ();
                   12236:   ;
                   12237:   return 0;
                   12238: }
                   12239: _ACEOF
                   12240: rm -f conftest.$ac_objext conftest$ac_exeext
                   12241: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   12242:   (eval $ac_link) 2>conftest.er1
                   12243:   ac_status=$?
                   12244:   grep -v '^ *+' conftest.er1 >conftest.err
                   12245:   rm -f conftest.er1
                   12246:   cat conftest.err >&5
                   12247:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12248:   (exit $ac_status); } &&
                   12249:         { ac_try='test -z "$ac_c_werror_flag"
                   12250:                         || test ! -s conftest.err'
                   12251:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12252:   (eval $ac_try) 2>&5
                   12253:   ac_status=$?
                   12254:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12255:   (exit $ac_status); }; } &&
                   12256:         { ac_try='test -s conftest$ac_exeext'
                   12257:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12258:   (eval $ac_try) 2>&5
                   12259:   ac_status=$?
                   12260:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12261:   (exit $ac_status); }; }; then
                   12262:   ac_cv_search_opendir="none required"
1.1       millert  12263: else
1.25      millert  12264:   echo "$as_me: failed program was:" >&5
                   12265: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  12266:
                   12267: fi
1.25      millert  12268: rm -f conftest.err conftest.$ac_objext \
                   12269:       conftest$ac_exeext conftest.$ac_ext
                   12270: if test "$ac_cv_search_opendir" = no; then
                   12271:   for ac_lib in dir; do
                   12272:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   12273:     cat >conftest.$ac_ext <<_ACEOF
                   12274: /* confdefs.h.  */
                   12275: _ACEOF
                   12276: cat confdefs.h >>conftest.$ac_ext
                   12277: cat >>conftest.$ac_ext <<_ACEOF
                   12278: /* end confdefs.h.  */
1.1       millert  12279:
1.25      millert  12280: /* Override any gcc2 internal prototype to avoid an error.  */
                   12281: #ifdef __cplusplus
                   12282: extern "C"
                   12283: #endif
                   12284: /* We use char because int might match the return type of a gcc2
                   12285:    builtin and then its argument prototype would still apply.  */
                   12286: char opendir ();
                   12287: int
                   12288: main ()
                   12289: {
                   12290: opendir ();
                   12291:   ;
                   12292:   return 0;
                   12293: }
                   12294: _ACEOF
                   12295: rm -f conftest.$ac_objext conftest$ac_exeext
                   12296: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   12297:   (eval $ac_link) 2>conftest.er1
                   12298:   ac_status=$?
                   12299:   grep -v '^ *+' conftest.er1 >conftest.err
                   12300:   rm -f conftest.er1
                   12301:   cat conftest.err >&5
                   12302:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12303:   (exit $ac_status); } &&
                   12304:         { ac_try='test -z "$ac_c_werror_flag"
                   12305:                         || test ! -s conftest.err'
                   12306:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12307:   (eval $ac_try) 2>&5
                   12308:   ac_status=$?
                   12309:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12310:   (exit $ac_status); }; } &&
                   12311:         { ac_try='test -s conftest$ac_exeext'
                   12312:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12313:   (eval $ac_try) 2>&5
                   12314:   ac_status=$?
                   12315:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12316:   (exit $ac_status); }; }; then
                   12317:   ac_cv_search_opendir="-l$ac_lib"
                   12318: break
1.1       millert  12319: else
1.25      millert  12320:   echo "$as_me: failed program was:" >&5
                   12321: sed 's/^/| /' conftest.$ac_ext >&5
                   12322:
                   12323: fi
                   12324: rm -f conftest.err conftest.$ac_objext \
                   12325:       conftest$ac_exeext conftest.$ac_ext
                   12326:   done
                   12327: fi
                   12328: LIBS=$ac_func_search_save_LIBS
1.1       millert  12329: fi
1.25      millert  12330: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   12331: echo "${ECHO_T}$ac_cv_search_opendir" >&6
                   12332: if test "$ac_cv_search_opendir" != no; then
                   12333:   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
1.1       millert  12334:
1.25      millert  12335: fi
1.1       millert  12336:
1.25      millert  12337: else
                   12338:   echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   12339: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
                   12340: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  12341:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12342: else
1.25      millert  12343:   ac_func_search_save_LIBS=$LIBS
                   12344: ac_cv_search_opendir=no
                   12345: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12346: /* confdefs.h.  */
                   12347: _ACEOF
                   12348: cat confdefs.h >>conftest.$ac_ext
                   12349: cat >>conftest.$ac_ext <<_ACEOF
                   12350: /* end confdefs.h.  */
1.25      millert  12351:
1.1       millert  12352: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  12353: #ifdef __cplusplus
                   12354: extern "C"
                   12355: #endif
1.1       millert  12356: /* We use char because int might match the return type of a gcc2
1.9       millert  12357:    builtin and then its argument prototype would still apply.  */
1.25      millert  12358: char opendir ();
1.16      millert  12359: int
                   12360: main ()
                   12361: {
1.25      millert  12362: opendir ();
1.9       millert  12363:   ;
                   12364:   return 0;
                   12365: }
                   12366: _ACEOF
                   12367: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  12368: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  12369:   (eval $ac_link) 2>conftest.er1
1.9       millert  12370:   ac_status=$?
1.25      millert  12371:   grep -v '^ *+' conftest.er1 >conftest.err
                   12372:   rm -f conftest.er1
                   12373:   cat conftest.err >&5
1.16      millert  12374:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12375:   (exit $ac_status); } &&
1.25      millert  12376:         { ac_try='test -z "$ac_c_werror_flag"
                   12377:                         || test ! -s conftest.err'
                   12378:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12379:   (eval $ac_try) 2>&5
                   12380:   ac_status=$?
                   12381:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12382:   (exit $ac_status); }; } &&
                   12383:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  12384:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12385:   (eval $ac_try) 2>&5
                   12386:   ac_status=$?
1.16      millert  12387:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12388:   (exit $ac_status); }; }; then
1.25      millert  12389:   ac_cv_search_opendir="none required"
1.9       millert  12390: else
                   12391:   echo "$as_me: failed program was:" >&5
1.16      millert  12392: sed 's/^/| /' conftest.$ac_ext >&5
                   12393:
1.1       millert  12394: fi
1.25      millert  12395: rm -f conftest.err conftest.$ac_objext \
                   12396:       conftest$ac_exeext conftest.$ac_ext
                   12397: if test "$ac_cv_search_opendir" = no; then
                   12398:   for ac_lib in x; do
                   12399:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   12400:     cat >conftest.$ac_ext <<_ACEOF
1.17      millert  12401: /* confdefs.h.  */
                   12402: _ACEOF
                   12403: cat confdefs.h >>conftest.$ac_ext
                   12404: cat >>conftest.$ac_ext <<_ACEOF
                   12405: /* end confdefs.h.  */
                   12406:
1.25      millert  12407: /* Override any gcc2 internal prototype to avoid an error.  */
                   12408: #ifdef __cplusplus
                   12409: extern "C"
                   12410: #endif
                   12411: /* We use char because int might match the return type of a gcc2
                   12412:    builtin and then its argument prototype would still apply.  */
                   12413: char opendir ();
1.17      millert  12414: int
                   12415: main ()
                   12416: {
1.25      millert  12417: opendir ();
1.17      millert  12418:   ;
                   12419:   return 0;
                   12420: }
                   12421: _ACEOF
                   12422: rm -f conftest.$ac_objext conftest$ac_exeext
                   12423: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  12424:   (eval $ac_link) 2>conftest.er1
1.17      millert  12425:   ac_status=$?
1.25      millert  12426:   grep -v '^ *+' conftest.er1 >conftest.err
                   12427:   rm -f conftest.er1
                   12428:   cat conftest.err >&5
1.17      millert  12429:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12430:   (exit $ac_status); } &&
1.25      millert  12431:         { ac_try='test -z "$ac_c_werror_flag"
                   12432:                         || test ! -s conftest.err'
                   12433:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12434:   (eval $ac_try) 2>&5
                   12435:   ac_status=$?
                   12436:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12437:   (exit $ac_status); }; } &&
                   12438:         { ac_try='test -s conftest$ac_exeext'
1.17      millert  12439:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12440:   (eval $ac_try) 2>&5
                   12441:   ac_status=$?
                   12442:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12443:   (exit $ac_status); }; }; then
1.25      millert  12444:   ac_cv_search_opendir="-l$ac_lib"
                   12445: break
1.17      millert  12446: else
                   12447:   echo "$as_me: failed program was:" >&5
                   12448: sed 's/^/| /' conftest.$ac_ext >&5
                   12449:
                   12450: fi
1.25      millert  12451: rm -f conftest.err conftest.$ac_objext \
                   12452:       conftest$ac_exeext conftest.$ac_ext
                   12453:   done
                   12454: fi
                   12455: LIBS=$ac_func_search_save_LIBS
                   12456: fi
                   12457: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   12458: echo "${ECHO_T}$ac_cv_search_opendir" >&6
                   12459: if test "$ac_cv_search_opendir" != no; then
                   12460:   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
                   12461:
                   12462: fi
                   12463:
                   12464: fi
                   12465:
                   12466: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
                   12467: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
                   12468: if test "${ac_cv_header_time+set}" = set; then
1.9       millert  12469:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12470: else
1.25      millert  12471:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12472: /* confdefs.h.  */
                   12473: _ACEOF
                   12474: cat confdefs.h >>conftest.$ac_ext
                   12475: cat >>conftest.$ac_ext <<_ACEOF
                   12476: /* end confdefs.h.  */
1.25      millert  12477: #include <sys/types.h>
                   12478: #include <sys/time.h>
                   12479: #include <time.h>
1.9       millert  12480:
                   12481: int
                   12482: main ()
                   12483: {
1.25      millert  12484: if ((struct tm *) 0)
                   12485: return 0;
1.9       millert  12486:   ;
                   12487:   return 0;
                   12488: }
                   12489: _ACEOF
1.25      millert  12490: rm -f conftest.$ac_objext
                   12491: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   12492:   (eval $ac_compile) 2>conftest.er1
1.9       millert  12493:   ac_status=$?
1.25      millert  12494:   grep -v '^ *+' conftest.er1 >conftest.err
                   12495:   rm -f conftest.er1
                   12496:   cat conftest.err >&5
1.16      millert  12497:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12498:   (exit $ac_status); } &&
1.25      millert  12499:         { ac_try='test -z "$ac_c_werror_flag"
                   12500:                         || test ! -s conftest.err'
                   12501:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12502:   (eval $ac_try) 2>&5
                   12503:   ac_status=$?
                   12504:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12505:   (exit $ac_status); }; } &&
                   12506:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  12507:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12508:   (eval $ac_try) 2>&5
                   12509:   ac_status=$?
1.16      millert  12510:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12511:   (exit $ac_status); }; }; then
1.25      millert  12512:   ac_cv_header_time=yes
1.9       millert  12513: else
                   12514:   echo "$as_me: failed program was:" >&5
1.16      millert  12515: sed 's/^/| /' conftest.$ac_ext >&5
                   12516:
1.25      millert  12517: ac_cv_header_time=no
1.9       millert  12518: fi
1.25      millert  12519: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  12520: fi
1.25      millert  12521: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
                   12522: echo "${ECHO_T}$ac_cv_header_time" >&6
                   12523: if test $ac_cv_header_time = yes; then
                   12524:
                   12525: cat >>confdefs.h <<\_ACEOF
                   12526: #define TIME_WITH_SYS_TIME 1
1.16      millert  12527: _ACEOF
1.25      millert  12528:
                   12529: fi
                   12530:
                   12531:
                   12532:
                   12533:
                   12534:
                   12535:
                   12536:
                   12537:
                   12538: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
                   12539: do
                   12540: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   12541: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   12542:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   12543: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   12544: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9       millert  12545:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  12546: fi
                   12547: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12548: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       millert  12549: else
1.25      millert  12550:   # Is the header compilable?
                   12551: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   12552: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.9       millert  12553: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12554: /* confdefs.h.  */
                   12555: _ACEOF
                   12556: cat confdefs.h >>conftest.$ac_ext
                   12557: cat >>conftest.$ac_ext <<_ACEOF
                   12558: /* end confdefs.h.  */
1.25      millert  12559: $ac_includes_default
                   12560: #include <$ac_header>
1.9       millert  12561: _ACEOF
1.25      millert  12562: rm -f conftest.$ac_objext
                   12563: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   12564:   (eval $ac_compile) 2>conftest.er1
1.9       millert  12565:   ac_status=$?
1.25      millert  12566:   grep -v '^ *+' conftest.er1 >conftest.err
                   12567:   rm -f conftest.er1
                   12568:   cat conftest.err >&5
1.16      millert  12569:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12570:   (exit $ac_status); } &&
1.25      millert  12571:         { ac_try='test -z "$ac_c_werror_flag"
                   12572:                         || test ! -s conftest.err'
                   12573:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12574:   (eval $ac_try) 2>&5
                   12575:   ac_status=$?
                   12576:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12577:   (exit $ac_status); }; } &&
                   12578:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  12579:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12580:   (eval $ac_try) 2>&5
                   12581:   ac_status=$?
1.16      millert  12582:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12583:   (exit $ac_status); }; }; then
1.25      millert  12584:   ac_header_compiler=yes
1.9       millert  12585: else
                   12586:   echo "$as_me: failed program was:" >&5
1.16      millert  12587: sed 's/^/| /' conftest.$ac_ext >&5
                   12588:
1.25      millert  12589: ac_header_compiler=no
1.9       millert  12590: fi
1.25      millert  12591: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   12592: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   12593: echo "${ECHO_T}$ac_header_compiler" >&6
                   12594:
                   12595: # Is the header present?
                   12596: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   12597: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
                   12598: cat >conftest.$ac_ext <<_ACEOF
                   12599: /* confdefs.h.  */
                   12600: _ACEOF
                   12601: cat confdefs.h >>conftest.$ac_ext
                   12602: cat >>conftest.$ac_ext <<_ACEOF
                   12603: /* end confdefs.h.  */
                   12604: #include <$ac_header>
1.16      millert  12605: _ACEOF
1.25      millert  12606: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   12607:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   12608:   ac_status=$?
                   12609:   grep -v '^ *+' conftest.er1 >conftest.err
                   12610:   rm -f conftest.er1
                   12611:   cat conftest.err >&5
                   12612:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12613:   (exit $ac_status); } >/dev/null; then
                   12614:   if test -s conftest.err; then
                   12615:     ac_cpp_err=$ac_c_preproc_warn_flag
                   12616:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   12617:   else
                   12618:     ac_cpp_err=
                   12619:   fi
                   12620: else
                   12621:   ac_cpp_err=yes
1.1       millert  12622: fi
1.25      millert  12623: if test -z "$ac_cpp_err"; then
                   12624:   ac_header_preproc=yes
                   12625: else
                   12626:   echo "$as_me: failed program was:" >&5
                   12627: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  12628:
1.25      millert  12629:   ac_header_preproc=no
1.1       millert  12630: fi
1.25      millert  12631: rm -f conftest.err conftest.$ac_ext
                   12632: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   12633: echo "${ECHO_T}$ac_header_preproc" >&6
1.1       millert  12634:
1.25      millert  12635: # So?  What about this header?
                   12636: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   12637:   yes:no: )
                   12638:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   12639: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   12640:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   12641: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   12642:     ac_header_preproc=yes
                   12643:     ;;
                   12644:   no:yes:* )
                   12645:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   12646: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   12647:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   12648: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   12649:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   12650: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   12651:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   12652: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   12653:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   12654: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   12655:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   12656: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   12657:     (
                   12658:       cat <<\_ASBOX
                   12659: ## ------------------------------- ##
                   12660: ## Report this to the sudo lists.  ##
                   12661: ## ------------------------------- ##
                   12662: _ASBOX
                   12663:     ) |
                   12664:       sed "s/^/$as_me: WARNING:     /" >&2
                   12665:     ;;
                   12666: esac
                   12667: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   12668: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   12669: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   12670:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12671: else
                   12672:   eval "$as_ac_Header=\$ac_header_preproc"
                   12673: fi
                   12674: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12675: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23      millert  12676:
1.25      millert  12677: fi
                   12678: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   12679:   cat >>confdefs.h <<_ACEOF
                   12680: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23      millert  12681: _ACEOF
                   12682:
1.25      millert  12683: fi
1.23      millert  12684:
1.25      millert  12685: done
1.23      millert  12686:
                   12687:
1.25      millert  12688: for ac_header in err.h
1.23      millert  12689: do
1.25      millert  12690: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   12691: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   12692:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   12693: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   12694: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.23      millert  12695:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  12696: fi
                   12697: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12698: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23      millert  12699: else
1.25      millert  12700:   # Is the header compilable?
                   12701: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   12702: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
                   12703: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  12704: /* confdefs.h.  */
                   12705: _ACEOF
                   12706: cat confdefs.h >>conftest.$ac_ext
                   12707: cat >>conftest.$ac_ext <<_ACEOF
                   12708: /* end confdefs.h.  */
1.25      millert  12709: $ac_includes_default
                   12710: #include <$ac_header>
1.23      millert  12711: _ACEOF
1.25      millert  12712: rm -f conftest.$ac_objext
                   12713: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   12714:   (eval $ac_compile) 2>conftest.er1
1.23      millert  12715:   ac_status=$?
1.25      millert  12716:   grep -v '^ *+' conftest.er1 >conftest.err
                   12717:   rm -f conftest.er1
                   12718:   cat conftest.err >&5
1.23      millert  12719:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12720:   (exit $ac_status); } &&
1.25      millert  12721:         { ac_try='test -z "$ac_c_werror_flag"
                   12722:                         || test ! -s conftest.err'
                   12723:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12724:   (eval $ac_try) 2>&5
                   12725:   ac_status=$?
                   12726:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12727:   (exit $ac_status); }; } &&
                   12728:         { ac_try='test -s conftest.$ac_objext'
1.23      millert  12729:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12730:   (eval $ac_try) 2>&5
                   12731:   ac_status=$?
                   12732:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12733:   (exit $ac_status); }; }; then
1.25      millert  12734:   ac_header_compiler=yes
1.23      millert  12735: else
                   12736:   echo "$as_me: failed program was:" >&5
                   12737: sed 's/^/| /' conftest.$ac_ext >&5
                   12738:
1.25      millert  12739: ac_header_compiler=no
1.23      millert  12740: fi
1.25      millert  12741: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   12742: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   12743: echo "${ECHO_T}$ac_header_compiler" >&6
1.23      millert  12744:
1.25      millert  12745: # Is the header present?
                   12746: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   12747: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9       millert  12748: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12749: /* confdefs.h.  */
                   12750: _ACEOF
                   12751: cat confdefs.h >>conftest.$ac_ext
                   12752: cat >>conftest.$ac_ext <<_ACEOF
                   12753: /* end confdefs.h.  */
1.25      millert  12754: #include <$ac_header>
1.9       millert  12755: _ACEOF
1.25      millert  12756: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   12757:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  12758:   ac_status=$?
1.25      millert  12759:   grep -v '^ *+' conftest.er1 >conftest.err
                   12760:   rm -f conftest.er1
                   12761:   cat conftest.err >&5
1.16      millert  12762:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  12763:   (exit $ac_status); } >/dev/null; then
                   12764:   if test -s conftest.err; then
                   12765:     ac_cpp_err=$ac_c_preproc_warn_flag
                   12766:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   12767:   else
                   12768:     ac_cpp_err=
                   12769:   fi
                   12770: else
                   12771:   ac_cpp_err=yes
                   12772: fi
                   12773: if test -z "$ac_cpp_err"; then
                   12774:   ac_header_preproc=yes
1.9       millert  12775: else
                   12776:   echo "$as_me: failed program was:" >&5
1.16      millert  12777: sed 's/^/| /' conftest.$ac_ext >&5
                   12778:
1.25      millert  12779:   ac_header_preproc=no
                   12780: fi
                   12781: rm -f conftest.err conftest.$ac_ext
                   12782: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   12783: echo "${ECHO_T}$ac_header_preproc" >&6
                   12784:
                   12785: # So?  What about this header?
                   12786: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   12787:   yes:no: )
                   12788:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   12789: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   12790:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   12791: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   12792:     ac_header_preproc=yes
                   12793:     ;;
                   12794:   no:yes:* )
                   12795:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   12796: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   12797:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   12798: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   12799:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   12800: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   12801:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   12802: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   12803:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   12804: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   12805:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   12806: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   12807:     (
                   12808:       cat <<\_ASBOX
                   12809: ## ------------------------------- ##
                   12810: ## Report this to the sudo lists.  ##
                   12811: ## ------------------------------- ##
                   12812: _ASBOX
                   12813:     ) |
                   12814:       sed "s/^/$as_me: WARNING:     /" >&2
                   12815:     ;;
                   12816: esac
                   12817: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   12818: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   12819: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   12820:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12821: else
                   12822:   eval "$as_ac_Header=\$ac_header_preproc"
                   12823: fi
                   12824: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12825: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   12826:
1.9       millert  12827: fi
1.25      millert  12828: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   12829:   cat >>confdefs.h <<_ACEOF
                   12830: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   12831: _ACEOF
                   12832:
                   12833: else
                   12834:   case $LIBOBJS in
                   12835:     "err.$ac_objext"   | \
                   12836:   *" err.$ac_objext"   | \
                   12837:     "err.$ac_objext "* | \
                   12838:   *" err.$ac_objext "* ) ;;
                   12839:   *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
                   12840: esac
                   12841:
1.9       millert  12842: fi
1.25      millert  12843:
                   12844: done
                   12845:
                   12846: if test "$OS" != "ultrix"; then
                   12847:     echo "$as_me:$LINENO: checking POSIX termios" >&5
                   12848: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
                   12849: if test "${ac_cv_sys_posix_termios+set}" = set; then
1.9       millert  12850:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  12851: else
1.25      millert  12852:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12853: /* confdefs.h.  */
                   12854: _ACEOF
                   12855: cat confdefs.h >>conftest.$ac_ext
                   12856: cat >>conftest.$ac_ext <<_ACEOF
                   12857: /* end confdefs.h.  */
1.25      millert  12858: #include <sys/types.h>
                   12859: #include <unistd.h>
                   12860: #include <termios.h>
1.9       millert  12861:
                   12862: int
                   12863: main ()
                   12864: {
1.25      millert  12865: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   12866:    tcgetattr(0, 0);
1.9       millert  12867:   ;
                   12868:   return 0;
                   12869: }
                   12870: _ACEOF
                   12871: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  12872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  12873:   (eval $ac_link) 2>conftest.er1
1.9       millert  12874:   ac_status=$?
1.25      millert  12875:   grep -v '^ *+' conftest.er1 >conftest.err
                   12876:   rm -f conftest.er1
                   12877:   cat conftest.err >&5
1.16      millert  12878:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12879:   (exit $ac_status); } &&
1.25      millert  12880:         { ac_try='test -z "$ac_c_werror_flag"
                   12881:                         || test ! -s conftest.err'
                   12882:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12883:   (eval $ac_try) 2>&5
                   12884:   ac_status=$?
                   12885:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12886:   (exit $ac_status); }; } &&
                   12887:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  12888:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12889:   (eval $ac_try) 2>&5
                   12890:   ac_status=$?
1.16      millert  12891:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12892:   (exit $ac_status); }; }; then
1.25      millert  12893:   ac_cv_sys_posix_termios=yes
1.9       millert  12894: else
                   12895:   echo "$as_me: failed program was:" >&5
1.16      millert  12896: sed 's/^/| /' conftest.$ac_ext >&5
                   12897:
1.25      millert  12898: ac_cv_sys_posix_termios=no
1.9       millert  12899: fi
1.25      millert  12900: rm -f conftest.err conftest.$ac_objext \
                   12901:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  12902: fi
1.25      millert  12903: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
                   12904: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
                   12905:
                   12906:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   12907:        cat >>confdefs.h <<\_ACEOF
                   12908: #define HAVE_TERMIOS_H 1
1.16      millert  12909: _ACEOF
1.1       millert  12910:
1.25      millert  12911:     else
1.1       millert  12912:
1.25      millert  12913: for ac_header in termio.h
                   12914: do
                   12915: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   12916: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   12917:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   12918: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   12919: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9       millert  12920:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  12921: fi
                   12922: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   12923: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       millert  12924: else
1.25      millert  12925:   # Is the header compilable?
                   12926: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   12927: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.23      millert  12928: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  12929: /* confdefs.h.  */
                   12930: _ACEOF
                   12931: cat confdefs.h >>conftest.$ac_ext
                   12932: cat >>conftest.$ac_ext <<_ACEOF
                   12933: /* end confdefs.h.  */
1.25      millert  12934: $ac_includes_default
                   12935: #include <$ac_header>
1.9       millert  12936: _ACEOF
1.25      millert  12937: rm -f conftest.$ac_objext
                   12938: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   12939:   (eval $ac_compile) 2>conftest.er1
1.9       millert  12940:   ac_status=$?
1.25      millert  12941:   grep -v '^ *+' conftest.er1 >conftest.err
                   12942:   rm -f conftest.er1
                   12943:   cat conftest.err >&5
1.16      millert  12944:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12945:   (exit $ac_status); } &&
1.25      millert  12946:         { ac_try='test -z "$ac_c_werror_flag"
                   12947:                         || test ! -s conftest.err'
                   12948:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   12949:   (eval $ac_try) 2>&5
                   12950:   ac_status=$?
                   12951:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12952:   (exit $ac_status); }; } &&
                   12953:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  12954:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  12955:   (eval $ac_try) 2>&5
                   12956:   ac_status=$?
1.16      millert  12957:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  12958:   (exit $ac_status); }; }; then
1.25      millert  12959:   ac_header_compiler=yes
                   12960: else
                   12961:   echo "$as_me: failed program was:" >&5
                   12962: sed 's/^/| /' conftest.$ac_ext >&5
                   12963:
                   12964: ac_header_compiler=no
                   12965: fi
                   12966: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   12967: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   12968: echo "${ECHO_T}$ac_header_compiler" >&6
                   12969:
                   12970: # Is the header present?
                   12971: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   12972: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
                   12973: cat >conftest.$ac_ext <<_ACEOF
                   12974: /* confdefs.h.  */
                   12975: _ACEOF
                   12976: cat confdefs.h >>conftest.$ac_ext
                   12977: cat >>conftest.$ac_ext <<_ACEOF
                   12978: /* end confdefs.h.  */
                   12979: #include <$ac_header>
                   12980: _ACEOF
                   12981: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   12982:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   12983:   ac_status=$?
                   12984:   grep -v '^ *+' conftest.er1 >conftest.err
                   12985:   rm -f conftest.er1
                   12986:   cat conftest.err >&5
                   12987:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12988:   (exit $ac_status); } >/dev/null; then
                   12989:   if test -s conftest.err; then
                   12990:     ac_cpp_err=$ac_c_preproc_warn_flag
                   12991:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   12992:   else
                   12993:     ac_cpp_err=
                   12994:   fi
                   12995: else
                   12996:   ac_cpp_err=yes
                   12997: fi
                   12998: if test -z "$ac_cpp_err"; then
                   12999:   ac_header_preproc=yes
1.9       millert  13000: else
                   13001:   echo "$as_me: failed program was:" >&5
1.16      millert  13002: sed 's/^/| /' conftest.$ac_ext >&5
                   13003:
1.25      millert  13004:   ac_header_preproc=no
                   13005: fi
                   13006: rm -f conftest.err conftest.$ac_ext
                   13007: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13008: echo "${ECHO_T}$ac_header_preproc" >&6
                   13009:
                   13010: # So?  What about this header?
                   13011: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13012:   yes:no: )
                   13013:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13014: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13015:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13016: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13017:     ac_header_preproc=yes
                   13018:     ;;
                   13019:   no:yes:* )
                   13020:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13021: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13022:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13023: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13024:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13025: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13026:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13027: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13028:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13029: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13030:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13031: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   13032:     (
                   13033:       cat <<\_ASBOX
                   13034: ## ------------------------------- ##
                   13035: ## Report this to the sudo lists.  ##
                   13036: ## ------------------------------- ##
                   13037: _ASBOX
                   13038:     ) |
                   13039:       sed "s/^/$as_me: WARNING:     /" >&2
                   13040:     ;;
                   13041: esac
                   13042: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13043: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   13044: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   13045:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13046: else
                   13047:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  13048: fi
1.25      millert  13049: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   13050: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   13051:
1.9       millert  13052: fi
1.25      millert  13053: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13054:   cat >>confdefs.h <<_ACEOF
                   13055: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16      millert  13056: _ACEOF
1.25      millert  13057:
1.1       millert  13058: fi
                   13059:
1.25      millert  13060: done
1.1       millert  13061:
1.25      millert  13062:     fi
                   13063: fi
                   13064: if test ${with_logincap-'no'} != "no"; then
1.9       millert  13065:
1.25      millert  13066: for ac_header in login_cap.h
                   13067: do
                   13068: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   13069: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   13070:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13071: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   13072: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9       millert  13073:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13074: fi
                   13075: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   13076: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       millert  13077: else
1.25      millert  13078:   # Is the header compilable?
                   13079: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13080: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
                   13081: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13082: /* confdefs.h.  */
                   13083: _ACEOF
                   13084: cat confdefs.h >>conftest.$ac_ext
                   13085: cat >>conftest.$ac_ext <<_ACEOF
                   13086: /* end confdefs.h.  */
1.25      millert  13087: $ac_includes_default
                   13088: #include <$ac_header>
                   13089: _ACEOF
                   13090: rm -f conftest.$ac_objext
                   13091: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13092:   (eval $ac_compile) 2>conftest.er1
                   13093:   ac_status=$?
                   13094:   grep -v '^ *+' conftest.er1 >conftest.err
                   13095:   rm -f conftest.er1
                   13096:   cat conftest.err >&5
                   13097:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13098:   (exit $ac_status); } &&
                   13099:         { ac_try='test -z "$ac_c_werror_flag"
                   13100:                         || test ! -s conftest.err'
                   13101:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13102:   (eval $ac_try) 2>&5
1.9       millert  13103:   ac_status=$?
1.16      millert  13104:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  13105:   (exit $ac_status); }; } &&
                   13106:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13107:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13108:   (eval $ac_try) 2>&5
                   13109:   ac_status=$?
1.16      millert  13110:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13111:   (exit $ac_status); }; }; then
1.25      millert  13112:   ac_header_compiler=yes
1.9       millert  13113: else
                   13114:   echo "$as_me: failed program was:" >&5
1.16      millert  13115: sed 's/^/| /' conftest.$ac_ext >&5
                   13116:
1.25      millert  13117: ac_header_compiler=no
1.9       millert  13118: fi
1.25      millert  13119: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   13120: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13121: echo "${ECHO_T}$ac_header_compiler" >&6
1.9       millert  13122:
1.25      millert  13123: # Is the header present?
                   13124: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13125: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9       millert  13126: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13127: /* confdefs.h.  */
                   13128: _ACEOF
                   13129: cat confdefs.h >>conftest.$ac_ext
                   13130: cat >>conftest.$ac_ext <<_ACEOF
                   13131: /* end confdefs.h.  */
1.25      millert  13132: #include <$ac_header>
1.9       millert  13133: _ACEOF
1.25      millert  13134: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   13135:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  13136:   ac_status=$?
1.25      millert  13137:   grep -v '^ *+' conftest.er1 >conftest.err
                   13138:   rm -f conftest.er1
                   13139:   cat conftest.err >&5
1.16      millert  13140:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  13141:   (exit $ac_status); } >/dev/null; then
                   13142:   if test -s conftest.err; then
                   13143:     ac_cpp_err=$ac_c_preproc_warn_flag
                   13144:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   13145:   else
                   13146:     ac_cpp_err=
                   13147:   fi
                   13148: else
                   13149:   ac_cpp_err=yes
                   13150: fi
                   13151: if test -z "$ac_cpp_err"; then
                   13152:   ac_header_preproc=yes
1.9       millert  13153: else
                   13154:   echo "$as_me: failed program was:" >&5
1.16      millert  13155: sed 's/^/| /' conftest.$ac_ext >&5
                   13156:
1.25      millert  13157:   ac_header_preproc=no
1.9       millert  13158: fi
1.25      millert  13159: rm -f conftest.err conftest.$ac_ext
                   13160: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13161: echo "${ECHO_T}$ac_header_preproc" >&6
                   13162:
                   13163: # So?  What about this header?
                   13164: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13165:   yes:no: )
                   13166:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13167: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13168:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13169: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13170:     ac_header_preproc=yes
                   13171:     ;;
                   13172:   no:yes:* )
                   13173:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13174: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13175:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13176: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13177:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13178: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13179:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13180: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13181:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13182: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13183:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13184: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   13185:     (
                   13186:       cat <<\_ASBOX
                   13187: ## ------------------------------- ##
                   13188: ## Report this to the sudo lists.  ##
                   13189: ## ------------------------------- ##
                   13190: _ASBOX
                   13191:     ) |
                   13192:       sed "s/^/$as_me: WARNING:     /" >&2
                   13193:     ;;
                   13194: esac
                   13195: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13196: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   13197: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   13198:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13199: else
                   13200:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  13201: fi
1.25      millert  13202: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   13203: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   13204:
1.1       millert  13205: fi
1.25      millert  13206: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13207:   cat >>confdefs.h <<_ACEOF
                   13208: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13209: _ACEOF
1.1       millert  13210:
1.25      millert  13211: fi
1.1       millert  13212:
1.25      millert  13213: done
1.1       millert  13214:
1.25      millert  13215: fi
                   13216: if test ${with_project-'no'} != "no"; then
                   13217:     if test "${ac_cv_header_project_h+set}" = set; then
                   13218:   echo "$as_me:$LINENO: checking for project.h" >&5
                   13219: echo $ECHO_N "checking for project.h... $ECHO_C" >&6
                   13220: if test "${ac_cv_header_project_h+set}" = set; then
1.9       millert  13221:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13222: fi
                   13223: echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   13224: echo "${ECHO_T}$ac_cv_header_project_h" >&6
1.1       millert  13225: else
1.25      millert  13226:   # Is the header compilable?
                   13227: echo "$as_me:$LINENO: checking project.h usability" >&5
                   13228: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6
                   13229: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13230: /* confdefs.h.  */
                   13231: _ACEOF
                   13232: cat confdefs.h >>conftest.$ac_ext
                   13233: cat >>conftest.$ac_ext <<_ACEOF
                   13234: /* end confdefs.h.  */
1.25      millert  13235: $ac_includes_default
                   13236: #include <project.h>
1.9       millert  13237: _ACEOF
1.25      millert  13238: rm -f conftest.$ac_objext
                   13239: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13240:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13241:   ac_status=$?
1.25      millert  13242:   grep -v '^ *+' conftest.er1 >conftest.err
                   13243:   rm -f conftest.er1
                   13244:   cat conftest.err >&5
1.16      millert  13245:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13246:   (exit $ac_status); } &&
1.25      millert  13247:         { ac_try='test -z "$ac_c_werror_flag"
                   13248:                         || test ! -s conftest.err'
                   13249:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13250:   (eval $ac_try) 2>&5
                   13251:   ac_status=$?
                   13252:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13253:   (exit $ac_status); }; } &&
                   13254:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13255:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13256:   (eval $ac_try) 2>&5
                   13257:   ac_status=$?
1.16      millert  13258:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13259:   (exit $ac_status); }; }; then
1.25      millert  13260:   ac_header_compiler=yes
1.9       millert  13261: else
                   13262:   echo "$as_me: failed program was:" >&5
1.16      millert  13263: sed 's/^/| /' conftest.$ac_ext >&5
                   13264:
1.25      millert  13265: ac_header_compiler=no
1.9       millert  13266: fi
1.25      millert  13267: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   13268: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13269: echo "${ECHO_T}$ac_header_compiler" >&6
1.1       millert  13270:
1.25      millert  13271: # Is the header present?
                   13272: echo "$as_me:$LINENO: checking project.h presence" >&5
                   13273: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6
                   13274: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13275: /* confdefs.h.  */
                   13276: _ACEOF
                   13277: cat confdefs.h >>conftest.$ac_ext
                   13278: cat >>conftest.$ac_ext <<_ACEOF
                   13279: /* end confdefs.h.  */
1.25      millert  13280: #include <project.h>
1.9       millert  13281: _ACEOF
1.25      millert  13282: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   13283:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  13284:   ac_status=$?
1.25      millert  13285:   grep -v '^ *+' conftest.er1 >conftest.err
                   13286:   rm -f conftest.er1
                   13287:   cat conftest.err >&5
1.16      millert  13288:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  13289:   (exit $ac_status); } >/dev/null; then
                   13290:   if test -s conftest.err; then
                   13291:     ac_cpp_err=$ac_c_preproc_warn_flag
                   13292:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   13293:   else
                   13294:     ac_cpp_err=
                   13295:   fi
                   13296: else
                   13297:   ac_cpp_err=yes
                   13298: fi
                   13299: if test -z "$ac_cpp_err"; then
                   13300:   ac_header_preproc=yes
1.9       millert  13301: else
                   13302:   echo "$as_me: failed program was:" >&5
1.16      millert  13303: sed 's/^/| /' conftest.$ac_ext >&5
                   13304:
1.25      millert  13305:   ac_header_preproc=no
                   13306: fi
                   13307: rm -f conftest.err conftest.$ac_ext
                   13308: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13309: echo "${ECHO_T}$ac_header_preproc" >&6
                   13310:
                   13311: # So?  What about this header?
                   13312: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13313:   yes:no: )
                   13314:     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   13315: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13316:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
                   13317: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
                   13318:     ac_header_preproc=yes
                   13319:     ;;
                   13320:   no:yes:* )
                   13321:     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
                   13322: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
                   13323:     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
                   13324: echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
                   13325:     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
                   13326: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
                   13327:     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
                   13328: echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13329:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
                   13330: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
                   13331:     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
                   13332: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
                   13333:     (
                   13334:       cat <<\_ASBOX
                   13335: ## ------------------------------- ##
                   13336: ## Report this to the sudo lists.  ##
                   13337: ## ------------------------------- ##
                   13338: _ASBOX
                   13339:     ) |
                   13340:       sed "s/^/$as_me: WARNING:     /" >&2
                   13341:     ;;
                   13342: esac
                   13343: echo "$as_me:$LINENO: checking for project.h" >&5
                   13344: echo $ECHO_N "checking for project.h... $ECHO_C" >&6
                   13345: if test "${ac_cv_header_project_h+set}" = set; then
                   13346:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13347: else
                   13348:   ac_cv_header_project_h=$ac_header_preproc
1.9       millert  13349: fi
1.25      millert  13350: echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   13351: echo "${ECHO_T}$ac_cv_header_project_h" >&6
                   13352:
1.9       millert  13353: fi
1.25      millert  13354: if test $ac_cv_header_project_h = yes; then
                   13355:   cat >>confdefs.h <<\_ACEOF
                   13356: #define HAVE_PROJECT_H 1
1.16      millert  13357: _ACEOF
1.1       millert  13358:
1.25      millert  13359:        SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1       millert  13360: else
1.25      millert  13361:   -
1.1       millert  13362: fi
                   13363:
1.25      millert  13364:
                   13365: fi
                   13366: echo "$as_me:$LINENO: checking for mode_t" >&5
                   13367: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
                   13368: if test "${ac_cv_type_mode_t+set}" = set; then
1.9       millert  13369:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13370: else
1.25      millert  13371:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13372: /* confdefs.h.  */
                   13373: _ACEOF
                   13374: cat confdefs.h >>conftest.$ac_ext
                   13375: cat >>conftest.$ac_ext <<_ACEOF
                   13376: /* end confdefs.h.  */
1.25      millert  13377: $ac_includes_default
1.9       millert  13378: int
                   13379: main ()
                   13380: {
1.25      millert  13381: if ((mode_t *) 0)
                   13382:   return 0;
                   13383: if (sizeof (mode_t))
                   13384:   return 0;
1.9       millert  13385:   ;
                   13386:   return 0;
                   13387: }
                   13388: _ACEOF
1.25      millert  13389: rm -f conftest.$ac_objext
                   13390: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13391:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13392:   ac_status=$?
1.25      millert  13393:   grep -v '^ *+' conftest.er1 >conftest.err
                   13394:   rm -f conftest.er1
                   13395:   cat conftest.err >&5
1.16      millert  13396:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13397:   (exit $ac_status); } &&
1.25      millert  13398:         { ac_try='test -z "$ac_c_werror_flag"
                   13399:                         || test ! -s conftest.err'
                   13400:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13401:   (eval $ac_try) 2>&5
                   13402:   ac_status=$?
                   13403:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13404:   (exit $ac_status); }; } &&
                   13405:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13406:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13407:   (eval $ac_try) 2>&5
                   13408:   ac_status=$?
1.16      millert  13409:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13410:   (exit $ac_status); }; }; then
1.25      millert  13411:   ac_cv_type_mode_t=yes
1.9       millert  13412: else
                   13413:   echo "$as_me: failed program was:" >&5
1.16      millert  13414: sed 's/^/| /' conftest.$ac_ext >&5
                   13415:
1.25      millert  13416: ac_cv_type_mode_t=no
1.9       millert  13417: fi
1.25      millert  13418: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13419: fi
1.25      millert  13420: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   13421: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
                   13422: if test $ac_cv_type_mode_t = yes; then
                   13423:   :
1.1       millert  13424: else
1.25      millert  13425:
                   13426: cat >>confdefs.h <<_ACEOF
                   13427: #define mode_t int
                   13428: _ACEOF
                   13429:
1.1       millert  13430: fi
                   13431:
1.25      millert  13432: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
                   13433: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
                   13434: if test "${ac_cv_type_uid_t+set}" = set; then
1.9       millert  13435:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13436: else
1.9       millert  13437:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13438: /* confdefs.h.  */
                   13439: _ACEOF
                   13440: cat confdefs.h >>conftest.$ac_ext
                   13441: cat >>conftest.$ac_ext <<_ACEOF
                   13442: /* end confdefs.h.  */
1.25      millert  13443: #include <sys/types.h>
1.1       millert  13444:
1.9       millert  13445: _ACEOF
1.25      millert  13446: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13447:   $EGREP "uid_t" >/dev/null 2>&1; then
                   13448:   ac_cv_type_uid_t=yes
1.9       millert  13449: else
1.25      millert  13450:   ac_cv_type_uid_t=no
                   13451: fi
                   13452: rm -f conftest*
1.16      millert  13453:
1.9       millert  13454: fi
1.25      millert  13455: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
                   13456: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
                   13457: if test $ac_cv_type_uid_t = no; then
                   13458:
                   13459: cat >>confdefs.h <<\_ACEOF
                   13460: #define uid_t int
                   13461: _ACEOF
                   13462:
                   13463:
                   13464: cat >>confdefs.h <<\_ACEOF
                   13465: #define gid_t int
1.16      millert  13466: _ACEOF
1.1       millert  13467:
                   13468: fi
                   13469:
1.25      millert  13470: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
                   13471: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
                   13472: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   13473:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13474: else
                   13475:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13476: /* confdefs.h.  */
                   13477: _ACEOF
                   13478: cat confdefs.h >>conftest.$ac_ext
                   13479: cat >>conftest.$ac_ext <<_ACEOF
                   13480: /* end confdefs.h.  */
1.1       millert  13481: #include <sys/types.h>
1.25      millert  13482: #include <signal.h>
1.9       millert  13483:
                   13484: int
                   13485: main ()
                   13486: {
1.25      millert  13487: if ((sig_atomic_t *) 0)
                   13488:   return 0;
                   13489: if (sizeof (sig_atomic_t))
                   13490:   return 0;
1.9       millert  13491:   ;
                   13492:   return 0;
                   13493: }
                   13494: _ACEOF
                   13495: rm -f conftest.$ac_objext
1.16      millert  13496: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  13497:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13498:   ac_status=$?
1.25      millert  13499:   grep -v '^ *+' conftest.er1 >conftest.err
                   13500:   rm -f conftest.er1
                   13501:   cat conftest.err >&5
1.16      millert  13502:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13503:   (exit $ac_status); } &&
1.25      millert  13504:         { ac_try='test -z "$ac_c_werror_flag"
                   13505:                         || test ! -s conftest.err'
                   13506:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13507:   (eval $ac_try) 2>&5
                   13508:   ac_status=$?
                   13509:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13510:   (exit $ac_status); }; } &&
                   13511:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13512:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13513:   (eval $ac_try) 2>&5
                   13514:   ac_status=$?
1.16      millert  13515:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13516:   (exit $ac_status); }; }; then
1.25      millert  13517:   ac_cv_type_sig_atomic_t=yes
1.9       millert  13518: else
                   13519:   echo "$as_me: failed program was:" >&5
1.16      millert  13520: sed 's/^/| /' conftest.$ac_ext >&5
                   13521:
1.25      millert  13522: ac_cv_type_sig_atomic_t=no
                   13523: fi
                   13524: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   13525: fi
                   13526: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
                   13527: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
                   13528: if test $ac_cv_type_sig_atomic_t = yes; then
                   13529:
                   13530: cat >>confdefs.h <<_ACEOF
                   13531: #define HAVE_SIG_ATOMIC_T 1
                   13532: _ACEOF
                   13533:
                   13534:
                   13535: else
                   13536:   cat >>confdefs.h <<\_ACEOF
                   13537: #define sig_atomic_t int
                   13538: _ACEOF
1.9       millert  13539:
1.1       millert  13540: fi
1.25      millert  13541:
                   13542: echo "$as_me:$LINENO: checking for sigaction_t" >&5
                   13543: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
                   13544: if test "${ac_cv_type_sigaction_t+set}" = set; then
1.9       millert  13545:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13546: else
1.25      millert  13547:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13548: /* confdefs.h.  */
                   13549: _ACEOF
                   13550: cat confdefs.h >>conftest.$ac_ext
                   13551: cat >>conftest.$ac_ext <<_ACEOF
                   13552: /* end confdefs.h.  */
1.25      millert  13553: #include <sys/types.h>
                   13554: #include <signal.h>
1.9       millert  13555:
                   13556: int
1.25      millert  13557: main ()
                   13558: {
                   13559: if ((sigaction_t *) 0)
                   13560:   return 0;
                   13561: if (sizeof (sigaction_t))
                   13562:   return 0;
1.9       millert  13563:   ;
                   13564:   return 0;
                   13565: }
                   13566: _ACEOF
1.25      millert  13567: rm -f conftest.$ac_objext
                   13568: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13569:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13570:   ac_status=$?
1.25      millert  13571:   grep -v '^ *+' conftest.er1 >conftest.err
                   13572:   rm -f conftest.er1
                   13573:   cat conftest.err >&5
1.16      millert  13574:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13575:   (exit $ac_status); } &&
1.25      millert  13576:         { ac_try='test -z "$ac_c_werror_flag"
                   13577:                         || test ! -s conftest.err'
                   13578:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13579:   (eval $ac_try) 2>&5
                   13580:   ac_status=$?
                   13581:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13582:   (exit $ac_status); }; } &&
                   13583:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13584:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13585:   (eval $ac_try) 2>&5
                   13586:   ac_status=$?
1.16      millert  13587:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13588:   (exit $ac_status); }; }; then
1.25      millert  13589:   ac_cv_type_sigaction_t=yes
1.9       millert  13590: else
                   13591:   echo "$as_me: failed program was:" >&5
1.16      millert  13592: sed 's/^/| /' conftest.$ac_ext >&5
                   13593:
1.25      millert  13594: ac_cv_type_sigaction_t=no
1.9       millert  13595: fi
1.25      millert  13596: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13597: fi
1.25      millert  13598: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
                   13599: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
                   13600: if test $ac_cv_type_sigaction_t = yes; then
                   13601:
                   13602: cat >>confdefs.h <<_ACEOF
                   13603: #define HAVE_SIGACTION_T 1
                   13604: _ACEOF
                   13605:
                   13606: cat >>confdefs.h <<\_ACEOF
                   13607: #define HAVE_SIGACTION_T 1
                   13608: _ACEOF
                   13609:
1.1       millert  13610: fi
                   13611:
1.25      millert  13612: echo "$as_me:$LINENO: checking for struct timespec" >&5
                   13613: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
                   13614: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9       millert  13615:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13616: else
1.9       millert  13617:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13618: /* confdefs.h.  */
                   13619: _ACEOF
                   13620: cat confdefs.h >>conftest.$ac_ext
                   13621: cat >>conftest.$ac_ext <<_ACEOF
                   13622: /* end confdefs.h.  */
1.25      millert  13623: #include <sys/types.h>
                   13624: #if TIME_WITH_SYS_TIME
                   13625: # include <sys/time.h>
                   13626: # include <time.h>
1.1       millert  13627: #else
1.25      millert  13628: # include <sys/time.h>
1.1       millert  13629: #endif
                   13630:
1.16      millert  13631: int
                   13632: main ()
                   13633: {
1.25      millert  13634: if ((struct timespec *) 0)
                   13635:   return 0;
                   13636: if (sizeof (struct timespec))
                   13637:   return 0;
1.9       millert  13638:   ;
                   13639:   return 0;
                   13640: }
                   13641: _ACEOF
1.25      millert  13642: rm -f conftest.$ac_objext
                   13643: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13644:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13645:   ac_status=$?
1.25      millert  13646:   grep -v '^ *+' conftest.er1 >conftest.err
                   13647:   rm -f conftest.er1
                   13648:   cat conftest.err >&5
1.16      millert  13649:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13650:   (exit $ac_status); } &&
1.25      millert  13651:         { ac_try='test -z "$ac_c_werror_flag"
                   13652:                         || test ! -s conftest.err'
                   13653:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13654:   (eval $ac_try) 2>&5
                   13655:   ac_status=$?
                   13656:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13657:   (exit $ac_status); }; } &&
                   13658:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13659:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13660:   (eval $ac_try) 2>&5
                   13661:   ac_status=$?
1.16      millert  13662:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13663:   (exit $ac_status); }; }; then
1.25      millert  13664:   ac_cv_type_struct_timespec=yes
1.9       millert  13665: else
                   13666:   echo "$as_me: failed program was:" >&5
1.16      millert  13667: sed 's/^/| /' conftest.$ac_ext >&5
                   13668:
1.25      millert  13669: ac_cv_type_struct_timespec=no
1.9       millert  13670: fi
1.25      millert  13671: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13672: fi
1.25      millert  13673: echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
                   13674: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
                   13675: if test $ac_cv_type_struct_timespec = yes; then
                   13676:   cat >>confdefs.h <<\_ACEOF
                   13677: #define HAVE_TIMESPEC 1
1.16      millert  13678: _ACEOF
1.1       millert  13679:
1.25      millert  13680: fi
                   13681:
                   13682: echo "$as_me:$LINENO: checking for size_t" >&5
                   13683: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
                   13684: if test "${sudo_cv_type_size_t+set}" = set; then
                   13685:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13686: else
                   13687:   cat >conftest.$ac_ext <<_ACEOF
                   13688: /* confdefs.h.  */
                   13689: _ACEOF
                   13690: cat confdefs.h >>conftest.$ac_ext
                   13691: cat >>conftest.$ac_ext <<_ACEOF
                   13692: /* end confdefs.h.  */
                   13693: #include <sys/types.h>
                   13694: #include <stdio.h>
                   13695: #if STDC_HEADERS
                   13696: #include <stdlib.h>
                   13697: #endif
                   13698: #if HAVE_UNISTD_H
                   13699: #include <unistd.h>
                   13700: #endif
                   13701: _ACEOF
                   13702: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13703:   $EGREP "size_t" >/dev/null 2>&1; then
                   13704:   sudo_cv_type_size_t=yes
1.1       millert  13705: else
1.25      millert  13706:   sudo_cv_type_size_t=no
                   13707: fi
                   13708: rm -f conftest*
                   13709:
                   13710: fi
                   13711: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
                   13712: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
                   13713: if test $sudo_cv_type_size_t = no; then
                   13714:
                   13715: cat >>confdefs.h <<\_ACEOF
                   13716: #define size_t int
                   13717: _ACEOF
                   13718:
                   13719: fi
                   13720:
                   13721: echo "$as_me:$LINENO: checking for ssize_t" >&5
                   13722: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
                   13723: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9       millert  13724:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13725: else
1.25      millert  13726:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13727: /* confdefs.h.  */
                   13728: _ACEOF
                   13729: cat confdefs.h >>conftest.$ac_ext
                   13730: cat >>conftest.$ac_ext <<_ACEOF
                   13731: /* end confdefs.h.  */
1.25      millert  13732: #include <sys/types.h>
                   13733: #include <stdio.h>
                   13734: #if STDC_HEADERS
                   13735: #include <stdlib.h>
                   13736: #endif
                   13737: #if HAVE_UNISTD_H
                   13738: #include <unistd.h>
1.9       millert  13739: #endif
                   13740: _ACEOF
1.25      millert  13741: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13742:   $EGREP "ssize_t" >/dev/null 2>&1; then
                   13743:   sudo_cv_type_ssize_t=yes
1.9       millert  13744: else
1.25      millert  13745:   sudo_cv_type_ssize_t=no
                   13746: fi
                   13747: rm -f conftest*
1.16      millert  13748:
1.9       millert  13749: fi
1.25      millert  13750: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
                   13751: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
                   13752: if test $sudo_cv_type_ssize_t = no; then
                   13753:
                   13754: cat >>confdefs.h <<\_ACEOF
                   13755: #define ssize_t int
                   13756: _ACEOF
                   13757:
1.9       millert  13758: fi
1.25      millert  13759:
                   13760: echo "$as_me:$LINENO: checking for dev_t" >&5
                   13761: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
                   13762: if test "${sudo_cv_type_dev_t+set}" = set; then
                   13763:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13764: else
                   13765:   cat >conftest.$ac_ext <<_ACEOF
                   13766: /* confdefs.h.  */
                   13767: _ACEOF
                   13768: cat confdefs.h >>conftest.$ac_ext
                   13769: cat >>conftest.$ac_ext <<_ACEOF
                   13770: /* end confdefs.h.  */
                   13771: #include <sys/types.h>
                   13772: #include <stdio.h>
                   13773: #if STDC_HEADERS
                   13774: #include <stdlib.h>
                   13775: #endif
                   13776: #if HAVE_UNISTD_H
                   13777: #include <unistd.h>
                   13778: #endif
1.16      millert  13779: _ACEOF
1.25      millert  13780: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13781:   $EGREP "dev_t" >/dev/null 2>&1; then
                   13782:   sudo_cv_type_dev_t=yes
                   13783: else
                   13784:   sudo_cv_type_dev_t=no
1.1       millert  13785: fi
1.25      millert  13786: rm -f conftest*
1.1       millert  13787:
                   13788: fi
1.25      millert  13789: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
                   13790: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
                   13791: if test $sudo_cv_type_dev_t = no; then
1.1       millert  13792:
1.25      millert  13793: cat >>confdefs.h <<\_ACEOF
                   13794: #define dev_t int
                   13795: _ACEOF
1.1       millert  13796:
1.25      millert  13797: fi
1.1       millert  13798:
1.25      millert  13799: echo "$as_me:$LINENO: checking for ino_t" >&5
                   13800: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
                   13801: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9       millert  13802:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13803: else
1.25      millert  13804:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13805: /* confdefs.h.  */
                   13806: _ACEOF
                   13807: cat confdefs.h >>conftest.$ac_ext
                   13808: cat >>conftest.$ac_ext <<_ACEOF
                   13809: /* end confdefs.h.  */
1.25      millert  13810: #include <sys/types.h>
                   13811: #include <stdio.h>
                   13812: #if STDC_HEADERS
                   13813: #include <stdlib.h>
                   13814: #endif
                   13815: #if HAVE_UNISTD_H
                   13816: #include <unistd.h>
1.9       millert  13817: #endif
                   13818: _ACEOF
1.25      millert  13819: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13820:   $EGREP "ino_t" >/dev/null 2>&1; then
                   13821:   sudo_cv_type_ino_t=yes
1.9       millert  13822: else
1.25      millert  13823:   sudo_cv_type_ino_t=no
                   13824: fi
                   13825: rm -f conftest*
1.16      millert  13826:
1.9       millert  13827: fi
1.25      millert  13828: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
                   13829: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
                   13830: if test $sudo_cv_type_ino_t = no; then
                   13831:
                   13832: cat >>confdefs.h <<\_ACEOF
                   13833: #define ino_t unsigned int
1.16      millert  13834: _ACEOF
1.25      millert  13835:
1.1       millert  13836: fi
                   13837:
1.25      millert  13838: echo "$as_me:$LINENO: checking for full void implementation" >&5
                   13839: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
1.9       millert  13840: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13841: /* confdefs.h.  */
                   13842: _ACEOF
                   13843: cat confdefs.h >>conftest.$ac_ext
                   13844: cat >>conftest.$ac_ext <<_ACEOF
                   13845: /* end confdefs.h.  */
1.9       millert  13846:
                   13847: int
                   13848: main ()
                   13849: {
1.25      millert  13850: void *foo;
                   13851: foo = (void *)0; (void *)"test";
1.9       millert  13852:   ;
                   13853:   return 0;
                   13854: }
                   13855: _ACEOF
1.25      millert  13856: rm -f conftest.$ac_objext
                   13857: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13858:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13859:   ac_status=$?
1.25      millert  13860:   grep -v '^ *+' conftest.er1 >conftest.err
                   13861:   rm -f conftest.er1
                   13862:   cat conftest.err >&5
1.16      millert  13863:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13864:   (exit $ac_status); } &&
1.25      millert  13865:         { ac_try='test -z "$ac_c_werror_flag"
                   13866:                         || test ! -s conftest.err'
                   13867:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   13868:   (eval $ac_try) 2>&5
                   13869:   ac_status=$?
                   13870:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13871:   (exit $ac_status); }; } &&
                   13872:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  13873:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13874:   (eval $ac_try) 2>&5
                   13875:   ac_status=$?
1.16      millert  13876:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13877:   (exit $ac_status); }; }; then
1.25      millert  13878:
                   13879: cat >>confdefs.h <<\_ACEOF
                   13880: #define VOID void
                   13881: _ACEOF
                   13882:
                   13883: echo "$as_me:$LINENO: result: yes" >&5
                   13884: echo "${ECHO_T}yes" >&6
1.9       millert  13885: else
                   13886:   echo "$as_me: failed program was:" >&5
1.16      millert  13887: sed 's/^/| /' conftest.$ac_ext >&5
                   13888:
1.25      millert  13889: cat >>confdefs.h <<\_ACEOF
                   13890: #define VOID char
1.16      millert  13891: _ACEOF
1.25      millert  13892:
                   13893: echo "$as_me:$LINENO: result: no" >&5
                   13894: echo "${ECHO_T}no" >&6
1.1       millert  13895: fi
1.25      millert  13896: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  13897:
1.25      millert  13898: echo "$as_me:$LINENO: checking max length of uid_t" >&5
                   13899: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
                   13900: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9       millert  13901:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13902: else
1.25      millert  13903:   rm -f conftestdata
                   13904: if test "$cross_compiling" = yes; then
                   13905:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
                   13906: See \`config.log' for more details." >&5
                   13907: echo "$as_me: error: cannot run test program while cross compiling
                   13908: See \`config.log' for more details." >&2;}
                   13909:    { (exit 1); exit 1; }; }
                   13910: else
                   13911:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13912: /* confdefs.h.  */
                   13913: _ACEOF
                   13914: cat confdefs.h >>conftest.$ac_ext
                   13915: cat >>conftest.$ac_ext <<_ACEOF
                   13916: /* end confdefs.h.  */
1.25      millert  13917: #include <stdio.h>
                   13918: #include <pwd.h>
                   13919: #include <limits.h>
                   13920: #include <sys/types.h>
                   13921: #include <sys/param.h>
                   13922: main() {
                   13923:   FILE *f;
                   13924:   char b[1024];
                   13925:   uid_t u = (uid_t) -1;
1.9       millert  13926:
1.25      millert  13927:   if ((f = fopen("conftestdata", "w")) == NULL)
                   13928:     exit(1);
                   13929:
                   13930:   (void) sprintf(b, "%lu", (unsigned long) u);
                   13931:   (void) fprintf(f, "%d\n", strlen(b));
                   13932:   (void) fclose(f);
                   13933:   exit(0);
1.9       millert  13934: }
                   13935: _ACEOF
1.25      millert  13936: rm -f conftest$ac_exeext
1.16      millert  13937: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  13938:   (eval $ac_link) 2>&5
                   13939:   ac_status=$?
1.16      millert  13940:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  13941:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16      millert  13942:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  13943:   (eval $ac_try) 2>&5
                   13944:   ac_status=$?
1.16      millert  13945:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  13946:   (exit $ac_status); }; }; then
1.25      millert  13947:   sudo_cv_uid_t_len=`cat conftestdata`
1.9       millert  13948: else
1.25      millert  13949:   echo "$as_me: program exited with status $ac_status" >&5
                   13950: echo "$as_me: failed program was:" >&5
1.16      millert  13951: sed 's/^/| /' conftest.$ac_ext >&5
                   13952:
1.25      millert  13953: ( exit $ac_status )
                   13954: sudo_cv_uid_t_len=10
1.9       millert  13955: fi
1.25      millert  13956: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   13957: fi
                   13958:
1.9       millert  13959: fi
1.25      millert  13960:
                   13961: rm -f conftestdata
                   13962: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
                   13963: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
                   13964:
                   13965: cat >>confdefs.h <<_ACEOF
                   13966: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16      millert  13967: _ACEOF
1.1       millert  13968:
1.25      millert  13969:
                   13970: echo "$as_me:$LINENO: checking for long long" >&5
                   13971: echo $ECHO_N "checking for long long... $ECHO_C" >&6
                   13972: if test "${ac_cv_type_long_long+set}" = set; then
1.9       millert  13973:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13974: else
1.25      millert  13975:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13976: /* confdefs.h.  */
                   13977: _ACEOF
                   13978: cat confdefs.h >>conftest.$ac_ext
                   13979: cat >>conftest.$ac_ext <<_ACEOF
                   13980: /* end confdefs.h.  */
1.25      millert  13981: $ac_includes_default
1.9       millert  13982: int
                   13983: main ()
                   13984: {
1.25      millert  13985: if ((long long *) 0)
                   13986:   return 0;
                   13987: if (sizeof (long long))
                   13988:   return 0;
1.9       millert  13989:   ;
                   13990:   return 0;
                   13991: }
                   13992: _ACEOF
1.25      millert  13993: rm -f conftest.$ac_objext
                   13994: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   13995:   (eval $ac_compile) 2>conftest.er1
1.9       millert  13996:   ac_status=$?
1.25      millert  13997:   grep -v '^ *+' conftest.er1 >conftest.err
                   13998:   rm -f conftest.er1
                   13999:   cat conftest.err >&5
1.16      millert  14000:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14001:   (exit $ac_status); } &&
1.25      millert  14002:         { ac_try='test -z "$ac_c_werror_flag"
                   14003:                         || test ! -s conftest.err'
                   14004:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14005:   (eval $ac_try) 2>&5
                   14006:   ac_status=$?
                   14007:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14008:   (exit $ac_status); }; } &&
                   14009:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  14010:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14011:   (eval $ac_try) 2>&5
                   14012:   ac_status=$?
1.16      millert  14013:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14014:   (exit $ac_status); }; }; then
1.25      millert  14015:   ac_cv_type_long_long=yes
1.9       millert  14016: else
                   14017:   echo "$as_me: failed program was:" >&5
1.16      millert  14018: sed 's/^/| /' conftest.$ac_ext >&5
                   14019:
1.25      millert  14020: ac_cv_type_long_long=no
1.9       millert  14021: fi
1.25      millert  14022: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14023: fi
1.25      millert  14024: echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
                   14025: echo "${ECHO_T}$ac_cv_type_long_long" >&6
                   14026: if test $ac_cv_type_long_long = yes; then
                   14027:
                   14028: cat >>confdefs.h <<_ACEOF
                   14029: #define HAVE_LONG_LONG 1
                   14030: _ACEOF
                   14031:
                   14032:
                   14033: cat >>confdefs.h <<\_ACEOF
                   14034: #define HAVE_LONG_LONG 1
1.16      millert  14035: _ACEOF
1.1       millert  14036:
1.25      millert  14037: echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
                   14038: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6
                   14039: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9       millert  14040:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14041: else
1.25      millert  14042:   if test "$cross_compiling" = yes; then
                   14043:   sudo_cv_type_long_is_quad=no
                   14044: else
                   14045:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14046: /* confdefs.h.  */
                   14047: _ACEOF
                   14048: cat confdefs.h >>conftest.$ac_ext
                   14049: cat >>conftest.$ac_ext <<_ACEOF
                   14050: /* end confdefs.h.  */
1.9       millert  14051:
1.25      millert  14052: main() {
                   14053: if (sizeof(long long) == sizeof(long)) exit(0);
                   14054: else exit(1);
1.9       millert  14055: }
                   14056: _ACEOF
1.25      millert  14057: rm -f conftest$ac_exeext
1.16      millert  14058: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  14059:   (eval $ac_link) 2>&5
                   14060:   ac_status=$?
1.16      millert  14061:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  14062:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16      millert  14063:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14064:   (eval $ac_try) 2>&5
                   14065:   ac_status=$?
1.16      millert  14066:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14067:   (exit $ac_status); }; }; then
1.25      millert  14068:   sudo_cv_type_long_is_quad=yes
1.9       millert  14069: else
1.25      millert  14070:   echo "$as_me: program exited with status $ac_status" >&5
                   14071: echo "$as_me: failed program was:" >&5
1.16      millert  14072: sed 's/^/| /' conftest.$ac_ext >&5
                   14073:
1.25      millert  14074: ( exit $ac_status )
                   14075: sudo_cv_type_long_is_quad=no
                   14076: fi
                   14077: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14078: fi
1.25      millert  14079: rm -f core core.* *.core
1.9       millert  14080: fi
1.25      millert  14081: echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
                   14082: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6
                   14083: if test $sudo_cv_type_long_is_quad = yes; then
                   14084:
                   14085: cat >>confdefs.h <<\_ACEOF
                   14086: #define LONG_IS_QUAD 1
1.16      millert  14087: _ACEOF
1.25      millert  14088:
                   14089: fi
                   14090:
1.1       millert  14091: fi
                   14092:
1.25      millert  14093: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
                   14094: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
                   14095: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9       millert  14096:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14097: else
1.25      millert  14098:   if test "$cross_compiling" = yes; then
                   14099:   sudo_cv_sock_sa_len=no
                   14100: else
                   14101:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14102: /* confdefs.h.  */
                   14103: _ACEOF
                   14104: cat confdefs.h >>conftest.$ac_ext
                   14105: cat >>conftest.$ac_ext <<_ACEOF
                   14106: /* end confdefs.h.  */
1.25      millert  14107: #include <sys/types.h>
                   14108: #include <sys/socket.h>
                   14109: main() {
                   14110: struct sockaddr s;
                   14111: s.sa_len = 0;
                   14112: exit(0);
1.9       millert  14113: }
                   14114: _ACEOF
1.25      millert  14115: rm -f conftest$ac_exeext
1.16      millert  14116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9       millert  14117:   (eval $ac_link) 2>&5
                   14118:   ac_status=$?
1.16      millert  14119:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  14120:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16      millert  14121:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14122:   (eval $ac_try) 2>&5
                   14123:   ac_status=$?
1.16      millert  14124:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14125:   (exit $ac_status); }; }; then
1.25      millert  14126:   sudo_cv_sock_sa_len=yes
1.9       millert  14127: else
1.25      millert  14128:   echo "$as_me: program exited with status $ac_status" >&5
                   14129: echo "$as_me: failed program was:" >&5
1.16      millert  14130: sed 's/^/| /' conftest.$ac_ext >&5
                   14131:
1.25      millert  14132: ( exit $ac_status )
                   14133: sudo_cv_sock_sa_len=no
                   14134: fi
                   14135: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  14136: fi
1.25      millert  14137: rm -f core core.* *.core
1.9       millert  14138: fi
1.25      millert  14139: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
                   14140: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
                   14141: if test $sudo_cv_sock_sa_len = yes; then
                   14142:
                   14143: cat >>confdefs.h <<\_ACEOF
                   14144: #define HAVE_SA_LEN 1
1.16      millert  14145: _ACEOF
1.25      millert  14146:
1.1       millert  14147: fi
                   14148:
1.25      millert  14149: case "$DEFS" in
                   14150:     *"RETSIGTYPE"*)    ;;
                   14151:     *)                 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
                   14152: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
                   14153: if test "${ac_cv_type_signal+set}" = set; then
1.9       millert  14154:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14155: else
1.25      millert  14156:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14157: /* confdefs.h.  */
                   14158: _ACEOF
                   14159: cat confdefs.h >>conftest.$ac_ext
                   14160: cat >>conftest.$ac_ext <<_ACEOF
                   14161: /* end confdefs.h.  */
1.25      millert  14162: #include <sys/types.h>
                   14163: #include <signal.h>
                   14164: #ifdef signal
                   14165: # undef signal
                   14166: #endif
1.9       millert  14167: #ifdef __cplusplus
1.25      millert  14168: extern "C" void (*signal (int, void (*)(int)))(int);
                   14169: #else
                   14170: void (*signal ()) ();
1.9       millert  14171: #endif
1.25      millert  14172:
1.9       millert  14173: int
                   14174: main ()
                   14175: {
1.25      millert  14176: int i;
1.9       millert  14177:   ;
                   14178:   return 0;
                   14179: }
                   14180: _ACEOF
1.25      millert  14181: rm -f conftest.$ac_objext
                   14182: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   14183:   (eval $ac_compile) 2>conftest.er1
1.9       millert  14184:   ac_status=$?
1.25      millert  14185:   grep -v '^ *+' conftest.er1 >conftest.err
                   14186:   rm -f conftest.er1
                   14187:   cat conftest.err >&5
1.16      millert  14188:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14189:   (exit $ac_status); } &&
1.25      millert  14190:         { ac_try='test -z "$ac_c_werror_flag"
                   14191:                         || test ! -s conftest.err'
                   14192:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14193:   (eval $ac_try) 2>&5
                   14194:   ac_status=$?
                   14195:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14196:   (exit $ac_status); }; } &&
                   14197:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  14198:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14199:   (eval $ac_try) 2>&5
                   14200:   ac_status=$?
1.16      millert  14201:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14202:   (exit $ac_status); }; }; then
1.25      millert  14203:   ac_cv_type_signal=void
1.9       millert  14204: else
                   14205:   echo "$as_me: failed program was:" >&5
1.16      millert  14206: sed 's/^/| /' conftest.$ac_ext >&5
                   14207:
1.25      millert  14208: ac_cv_type_signal=int
1.9       millert  14209: fi
1.25      millert  14210: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14211: fi
1.25      millert  14212: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
                   14213: echo "${ECHO_T}$ac_cv_type_signal" >&6
                   14214:
                   14215: cat >>confdefs.h <<_ACEOF
                   14216: #define RETSIGTYPE $ac_cv_type_signal
1.16      millert  14217: _ACEOF
1.9       millert  14218:
1.25      millert  14219: ;;
1.1       millert  14220: esac
                   14221:
1.6       millert  14222:
1.17      millert  14223:
                   14224:
                   14225:
1.9       millert  14226:
1.25      millert  14227:
                   14228:
                   14229:
                   14230:
                   14231:
                   14232:
                   14233:
                   14234:
1.26    ! millert  14235:
1.25      millert  14236: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   14237:               strftime setrlimit initgroups getgroups fstat gettimeofday \
1.26    ! millert  14238:               setlocale getaddrinfo
1.9       millert  14239: do
                   14240: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16      millert  14241: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  14242: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14243: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   14244:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14245: else
1.9       millert  14246:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14247: /* confdefs.h.  */
                   14248: _ACEOF
                   14249: cat confdefs.h >>conftest.$ac_ext
                   14250: cat >>conftest.$ac_ext <<_ACEOF
                   14251: /* end confdefs.h.  */
1.25      millert  14252: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14253:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14254: #define $ac_func innocuous_$ac_func
                   14255:
1.1       millert  14256: /* System header to define __stub macros and hopefully few prototypes,
1.16      millert  14257:     which can conflict with char $ac_func (); below.
                   14258:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14259:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  14260:
1.16      millert  14261: #ifdef __STDC__
                   14262: # include <limits.h>
                   14263: #else
                   14264: # include <assert.h>
1.25      millert  14265: #endif
                   14266:
                   14267: #undef $ac_func
                   14268:
1.1       millert  14269: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  14270: #ifdef __cplusplus
                   14271: extern "C"
1.16      millert  14272: {
1.9       millert  14273: #endif
1.1       millert  14274: /* We use char because int might match the return type of a gcc2
1.9       millert  14275:    builtin and then its argument prototype would still apply.  */
                   14276: char $ac_func ();
1.1       millert  14277: /* The GNU C library defines this for functions which it implements
                   14278:     to always fail with ENOSYS.  Some functions are actually named
                   14279:     something starting with __ and the normal name is an alias.  */
1.9       millert  14280: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  14281: choke me
                   14282: #else
1.16      millert  14283: char (*f) () = $ac_func;
                   14284: #endif
                   14285: #ifdef __cplusplus
                   14286: }
1.1       millert  14287: #endif
                   14288:
1.16      millert  14289: int
                   14290: main ()
                   14291: {
                   14292: return f != $ac_func;
1.9       millert  14293:   ;
                   14294:   return 0;
                   14295: }
                   14296: _ACEOF
                   14297: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  14298: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  14299:   (eval $ac_link) 2>conftest.er1
1.9       millert  14300:   ac_status=$?
1.25      millert  14301:   grep -v '^ *+' conftest.er1 >conftest.err
                   14302:   rm -f conftest.er1
                   14303:   cat conftest.err >&5
1.16      millert  14304:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14305:   (exit $ac_status); } &&
1.25      millert  14306:         { ac_try='test -z "$ac_c_werror_flag"
                   14307:                         || test ! -s conftest.err'
                   14308:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14309:   (eval $ac_try) 2>&5
                   14310:   ac_status=$?
                   14311:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14312:   (exit $ac_status); }; } &&
                   14313:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14314:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14315:   (eval $ac_try) 2>&5
                   14316:   ac_status=$?
1.16      millert  14317:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14318:   (exit $ac_status); }; }; then
                   14319:   eval "$as_ac_var=yes"
                   14320: else
                   14321:   echo "$as_me: failed program was:" >&5
1.16      millert  14322: sed 's/^/| /' conftest.$ac_ext >&5
                   14323:
1.9       millert  14324: eval "$as_ac_var=no"
                   14325: fi
1.25      millert  14326: rm -f conftest.err conftest.$ac_objext \
                   14327:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14328: fi
1.16      millert  14329: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  14330: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14331: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16      millert  14332:   cat >>confdefs.h <<_ACEOF
1.9       millert  14333: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  14334: _ACEOF
1.25      millert  14335:
                   14336: fi
                   14337: done
                   14338:
                   14339: if test -z "$SKIP_SETRESUID"; then
                   14340:
                   14341: for ac_func in setresuid
                   14342: do
                   14343: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14344: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14345: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14346: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  14347:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14348: else
1.25      millert  14349:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14350: /* confdefs.h.  */
                   14351: _ACEOF
                   14352: cat confdefs.h >>conftest.$ac_ext
                   14353: cat >>conftest.$ac_ext <<_ACEOF
                   14354: /* end confdefs.h.  */
1.25      millert  14355: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14356:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14357: #define $ac_func innocuous_$ac_func
                   14358:
                   14359: /* System header to define __stub macros and hopefully few prototypes,
                   14360:     which can conflict with char $ac_func (); below.
                   14361:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14362:     <limits.h> exists even on freestanding compilers.  */
                   14363:
                   14364: #ifdef __STDC__
                   14365: # include <limits.h>
                   14366: #else
                   14367: # include <assert.h>
                   14368: #endif
                   14369:
                   14370: #undef $ac_func
1.9       millert  14371:
                   14372: /* Override any gcc2 internal prototype to avoid an error.  */
                   14373: #ifdef __cplusplus
                   14374: extern "C"
1.25      millert  14375: {
1.9       millert  14376: #endif
                   14377: /* We use char because int might match the return type of a gcc2
                   14378:    builtin and then its argument prototype would still apply.  */
1.25      millert  14379: char $ac_func ();
                   14380: /* The GNU C library defines this for functions which it implements
                   14381:     to always fail with ENOSYS.  Some functions are actually named
                   14382:     something starting with __ and the normal name is an alias.  */
                   14383: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   14384: choke me
                   14385: #else
                   14386: char (*f) () = $ac_func;
                   14387: #endif
                   14388: #ifdef __cplusplus
                   14389: }
                   14390: #endif
                   14391:
1.9       millert  14392: int
                   14393: main ()
                   14394: {
1.25      millert  14395: return f != $ac_func;
1.9       millert  14396:   ;
                   14397:   return 0;
                   14398: }
                   14399: _ACEOF
                   14400: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  14401: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  14402:   (eval $ac_link) 2>conftest.er1
1.9       millert  14403:   ac_status=$?
1.25      millert  14404:   grep -v '^ *+' conftest.er1 >conftest.err
                   14405:   rm -f conftest.er1
                   14406:   cat conftest.err >&5
1.16      millert  14407:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14408:   (exit $ac_status); } &&
1.25      millert  14409:         { ac_try='test -z "$ac_c_werror_flag"
                   14410:                         || test ! -s conftest.err'
                   14411:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14412:   (eval $ac_try) 2>&5
                   14413:   ac_status=$?
                   14414:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14415:   (exit $ac_status); }; } &&
                   14416:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14417:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14418:   (eval $ac_try) 2>&5
                   14419:   ac_status=$?
1.16      millert  14420:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14421:   (exit $ac_status); }; }; then
1.25      millert  14422:   eval "$as_ac_var=yes"
1.9       millert  14423: else
                   14424:   echo "$as_me: failed program was:" >&5
1.16      millert  14425: sed 's/^/| /' conftest.$ac_ext >&5
                   14426:
1.25      millert  14427: eval "$as_ac_var=no"
1.9       millert  14428: fi
1.25      millert  14429: rm -f conftest.err conftest.$ac_objext \
                   14430:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14431: fi
1.25      millert  14432: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14433: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14434: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14435:   cat >>confdefs.h <<_ACEOF
                   14436: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  14437: _ACEOF
1.25      millert  14438:  SKIP_SETREUID=yes
1.9       millert  14439: fi
1.25      millert  14440: done
1.9       millert  14441:
1.1       millert  14442: fi
1.25      millert  14443: if test -z "$SKIP_SETREUID"; then
1.1       millert  14444:
1.25      millert  14445: for ac_func in setreuid
                   14446: do
                   14447: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14448: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14449: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14450: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  14451:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14452: else
1.9       millert  14453:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14454: /* confdefs.h.  */
                   14455: _ACEOF
                   14456: cat confdefs.h >>conftest.$ac_ext
                   14457: cat >>conftest.$ac_ext <<_ACEOF
                   14458: /* end confdefs.h.  */
1.25      millert  14459: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14460:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14461: #define $ac_func innocuous_$ac_func
                   14462:
1.1       millert  14463: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  14464:     which can conflict with char $ac_func (); below.
1.16      millert  14465:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14466:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  14467:
1.16      millert  14468: #ifdef __STDC__
                   14469: # include <limits.h>
                   14470: #else
                   14471: # include <assert.h>
                   14472: #endif
1.25      millert  14473:
                   14474: #undef $ac_func
                   14475:
1.1       millert  14476: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  14477: #ifdef __cplusplus
                   14478: extern "C"
1.16      millert  14479: {
1.9       millert  14480: #endif
1.1       millert  14481: /* We use char because int might match the return type of a gcc2
1.9       millert  14482:    builtin and then its argument prototype would still apply.  */
1.25      millert  14483: char $ac_func ();
1.1       millert  14484: /* The GNU C library defines this for functions which it implements
                   14485:     to always fail with ENOSYS.  Some functions are actually named
                   14486:     something starting with __ and the normal name is an alias.  */
1.25      millert  14487: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  14488: choke me
                   14489: #else
1.25      millert  14490: char (*f) () = $ac_func;
1.16      millert  14491: #endif
                   14492: #ifdef __cplusplus
                   14493: }
1.1       millert  14494: #endif
                   14495:
1.16      millert  14496: int
                   14497: main ()
                   14498: {
1.25      millert  14499: return f != $ac_func;
1.9       millert  14500:   ;
                   14501:   return 0;
                   14502: }
                   14503: _ACEOF
                   14504: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  14505: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  14506:   (eval $ac_link) 2>conftest.er1
1.9       millert  14507:   ac_status=$?
1.25      millert  14508:   grep -v '^ *+' conftest.er1 >conftest.err
                   14509:   rm -f conftest.er1
                   14510:   cat conftest.err >&5
1.16      millert  14511:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14512:   (exit $ac_status); } &&
1.25      millert  14513:         { ac_try='test -z "$ac_c_werror_flag"
                   14514:                         || test ! -s conftest.err'
1.16      millert  14515:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14516:   (eval $ac_try) 2>&5
                   14517:   ac_status=$?
1.16      millert  14518:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  14519:   (exit $ac_status); }; } &&
                   14520:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14521:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14522:   (eval $ac_try) 2>&5
                   14523:   ac_status=$?
1.16      millert  14524:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14525:   (exit $ac_status); }; }; then
1.25      millert  14526:   eval "$as_ac_var=yes"
1.9       millert  14527: else
                   14528:   echo "$as_me: failed program was:" >&5
1.16      millert  14529: sed 's/^/| /' conftest.$ac_ext >&5
                   14530:
1.25      millert  14531: eval "$as_ac_var=no"
1.9       millert  14532: fi
1.25      millert  14533: rm -f conftest.err conftest.$ac_objext \
                   14534:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14535: fi
1.25      millert  14536: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14537: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14538: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14539:   cat >>confdefs.h <<_ACEOF
                   14540: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  14541: _ACEOF
1.25      millert  14542:  SKIP_SETEUID=yes
                   14543: fi
                   14544: done
                   14545:
                   14546: fi
                   14547: if test -z "$SKIP_SETEUID"; then
                   14548:
                   14549: for ac_func in seteuid
                   14550: do
                   14551: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14552: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14553: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14554: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  14555:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14556: else
1.25      millert  14557:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14558: /* confdefs.h.  */
                   14559: _ACEOF
                   14560: cat confdefs.h >>conftest.$ac_ext
                   14561: cat >>conftest.$ac_ext <<_ACEOF
                   14562: /* end confdefs.h.  */
1.25      millert  14563: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14564:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14565: #define $ac_func innocuous_$ac_func
                   14566:
                   14567: /* System header to define __stub macros and hopefully few prototypes,
                   14568:     which can conflict with char $ac_func (); below.
                   14569:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14570:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  14571:
1.25      millert  14572: #ifdef __STDC__
                   14573: # include <limits.h>
                   14574: #else
                   14575: # include <assert.h>
1.9       millert  14576: #endif
1.16      millert  14577:
1.25      millert  14578: #undef $ac_func
1.9       millert  14579:
1.1       millert  14580: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  14581: #ifdef __cplusplus
                   14582: extern "C"
1.25      millert  14583: {
1.9       millert  14584: #endif
1.1       millert  14585: /* We use char because int might match the return type of a gcc2
1.9       millert  14586:    builtin and then its argument prototype would still apply.  */
1.25      millert  14587: char $ac_func ();
                   14588: /* The GNU C library defines this for functions which it implements
                   14589:     to always fail with ENOSYS.  Some functions are actually named
                   14590:     something starting with __ and the normal name is an alias.  */
                   14591: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   14592: choke me
                   14593: #else
                   14594: char (*f) () = $ac_func;
                   14595: #endif
                   14596: #ifdef __cplusplus
                   14597: }
                   14598: #endif
                   14599:
1.9       millert  14600: int
                   14601: main ()
                   14602: {
1.25      millert  14603: return f != $ac_func;
1.9       millert  14604:   ;
                   14605:   return 0;
                   14606: }
                   14607: _ACEOF
                   14608: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  14609: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  14610:   (eval $ac_link) 2>conftest.er1
1.9       millert  14611:   ac_status=$?
1.25      millert  14612:   grep -v '^ *+' conftest.er1 >conftest.err
                   14613:   rm -f conftest.er1
                   14614:   cat conftest.err >&5
1.16      millert  14615:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14616:   (exit $ac_status); } &&
1.25      millert  14617:         { ac_try='test -z "$ac_c_werror_flag"
                   14618:                         || test ! -s conftest.err'
                   14619:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14620:   (eval $ac_try) 2>&5
                   14621:   ac_status=$?
                   14622:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14623:   (exit $ac_status); }; } &&
                   14624:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14625:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14626:   (eval $ac_try) 2>&5
                   14627:   ac_status=$?
1.16      millert  14628:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14629:   (exit $ac_status); }; }; then
1.25      millert  14630:   eval "$as_ac_var=yes"
1.9       millert  14631: else
                   14632:   echo "$as_me: failed program was:" >&5
1.16      millert  14633: sed 's/^/| /' conftest.$ac_ext >&5
                   14634:
1.25      millert  14635: eval "$as_ac_var=no"
1.9       millert  14636: fi
1.25      millert  14637: rm -f conftest.err conftest.$ac_objext \
                   14638:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14639: fi
1.25      millert  14640: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14641: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14642: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14643:   cat >>confdefs.h <<_ACEOF
                   14644: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  14645: _ACEOF
1.1       millert  14646:
                   14647: fi
1.25      millert  14648: done
1.1       millert  14649:
                   14650: fi
1.25      millert  14651: if test X"$with_interfaces" != X"no"; then
1.1       millert  14652:
1.25      millert  14653: for ac_func in getifaddrs
                   14654: do
                   14655: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14656: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14657: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14658: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  14659:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14660: else
1.9       millert  14661:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14662: /* confdefs.h.  */
                   14663: _ACEOF
                   14664: cat confdefs.h >>conftest.$ac_ext
                   14665: cat >>conftest.$ac_ext <<_ACEOF
                   14666: /* end confdefs.h.  */
1.25      millert  14667: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14668:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14669: #define $ac_func innocuous_$ac_func
1.1       millert  14670:
1.25      millert  14671: /* System header to define __stub macros and hopefully few prototypes,
                   14672:     which can conflict with char $ac_func (); below.
                   14673:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14674:     <limits.h> exists even on freestanding compilers.  */
1.16      millert  14675:
1.25      millert  14676: #ifdef __STDC__
                   14677: # include <limits.h>
                   14678: #else
                   14679: # include <assert.h>
                   14680: #endif
1.1       millert  14681:
1.25      millert  14682: #undef $ac_func
1.1       millert  14683:
1.25      millert  14684: /* Override any gcc2 internal prototype to avoid an error.  */
                   14685: #ifdef __cplusplus
                   14686: extern "C"
                   14687: {
                   14688: #endif
                   14689: /* We use char because int might match the return type of a gcc2
                   14690:    builtin and then its argument prototype would still apply.  */
                   14691: char $ac_func ();
                   14692: /* The GNU C library defines this for functions which it implements
                   14693:     to always fail with ENOSYS.  Some functions are actually named
                   14694:     something starting with __ and the normal name is an alias.  */
                   14695: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   14696: choke me
                   14697: #else
                   14698: char (*f) () = $ac_func;
                   14699: #endif
                   14700: #ifdef __cplusplus
                   14701: }
                   14702: #endif
1.9       millert  14703:
                   14704: int
                   14705: main ()
                   14706: {
1.25      millert  14707: return f != $ac_func;
1.9       millert  14708:   ;
                   14709:   return 0;
1.1       millert  14710: }
1.9       millert  14711: _ACEOF
1.25      millert  14712: rm -f conftest.$ac_objext conftest$ac_exeext
                   14713: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   14714:   (eval $ac_link) 2>conftest.er1
1.9       millert  14715:   ac_status=$?
1.25      millert  14716:   grep -v '^ *+' conftest.er1 >conftest.err
                   14717:   rm -f conftest.er1
                   14718:   cat conftest.err >&5
1.16      millert  14719:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14720:   (exit $ac_status); } &&
1.25      millert  14721:         { ac_try='test -z "$ac_c_werror_flag"
                   14722:                         || test ! -s conftest.err'
                   14723:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14724:   (eval $ac_try) 2>&5
                   14725:   ac_status=$?
                   14726:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14727:   (exit $ac_status); }; } &&
                   14728:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14729:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14730:   (eval $ac_try) 2>&5
                   14731:   ac_status=$?
1.16      millert  14732:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14733:   (exit $ac_status); }; }; then
1.25      millert  14734:   eval "$as_ac_var=yes"
1.1       millert  14735: else
1.9       millert  14736:   echo "$as_me: failed program was:" >&5
1.16      millert  14737: sed 's/^/| /' conftest.$ac_ext >&5
                   14738:
1.25      millert  14739: eval "$as_ac_var=no"
1.9       millert  14740: fi
1.25      millert  14741: rm -f conftest.err conftest.$ac_objext \
                   14742:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  14743: fi
1.25      millert  14744: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14745: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14746: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14747:   cat >>confdefs.h <<_ACEOF
                   14748: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   14749: _ACEOF
                   14750:
                   14751: for ac_func in freeifaddrs
                   14752: do
                   14753: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14754: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14755: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14756: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   14757:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14758: else
                   14759:   cat >conftest.$ac_ext <<_ACEOF
                   14760: /* confdefs.h.  */
                   14761: _ACEOF
                   14762: cat confdefs.h >>conftest.$ac_ext
                   14763: cat >>conftest.$ac_ext <<_ACEOF
                   14764: /* end confdefs.h.  */
                   14765: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14766:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14767: #define $ac_func innocuous_$ac_func
                   14768:
                   14769: /* System header to define __stub macros and hopefully few prototypes,
                   14770:     which can conflict with char $ac_func (); below.
                   14771:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14772:     <limits.h> exists even on freestanding compilers.  */
                   14773:
                   14774: #ifdef __STDC__
                   14775: # include <limits.h>
                   14776: #else
                   14777: # include <assert.h>
                   14778: #endif
                   14779:
                   14780: #undef $ac_func
                   14781:
                   14782: /* Override any gcc2 internal prototype to avoid an error.  */
                   14783: #ifdef __cplusplus
                   14784: extern "C"
                   14785: {
                   14786: #endif
                   14787: /* We use char because int might match the return type of a gcc2
                   14788:    builtin and then its argument prototype would still apply.  */
                   14789: char $ac_func ();
                   14790: /* The GNU C library defines this for functions which it implements
                   14791:     to always fail with ENOSYS.  Some functions are actually named
                   14792:     something starting with __ and the normal name is an alias.  */
                   14793: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   14794: choke me
                   14795: #else
                   14796: char (*f) () = $ac_func;
                   14797: #endif
                   14798: #ifdef __cplusplus
                   14799: }
                   14800: #endif
1.9       millert  14801:
                   14802: int
                   14803: main ()
                   14804: {
1.25      millert  14805: return f != $ac_func;
1.9       millert  14806:   ;
                   14807:   return 0;
                   14808: }
                   14809: _ACEOF
1.25      millert  14810: rm -f conftest.$ac_objext conftest$ac_exeext
                   14811: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   14812:   (eval $ac_link) 2>conftest.er1
1.9       millert  14813:   ac_status=$?
1.25      millert  14814:   grep -v '^ *+' conftest.er1 >conftest.err
                   14815:   rm -f conftest.er1
                   14816:   cat conftest.err >&5
1.16      millert  14817:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14818:   (exit $ac_status); } &&
1.25      millert  14819:         { ac_try='test -z "$ac_c_werror_flag"
                   14820:                         || test ! -s conftest.err'
                   14821:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14822:   (eval $ac_try) 2>&5
                   14823:   ac_status=$?
                   14824:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14825:   (exit $ac_status); }; } &&
                   14826:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  14827:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  14828:   (eval $ac_try) 2>&5
                   14829:   ac_status=$?
1.16      millert  14830:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  14831:   (exit $ac_status); }; }; then
1.25      millert  14832:   eval "$as_ac_var=yes"
1.9       millert  14833: else
                   14834:   echo "$as_me: failed program was:" >&5
1.16      millert  14835: sed 's/^/| /' conftest.$ac_ext >&5
                   14836:
1.25      millert  14837: eval "$as_ac_var=no"
1.9       millert  14838: fi
1.25      millert  14839: rm -f conftest.err conftest.$ac_objext \
                   14840:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14841: fi
1.25      millert  14842: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14844: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14845:   cat >>confdefs.h <<_ACEOF
                   14846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  14847: _ACEOF
1.1       millert  14848:
                   14849: fi
1.9       millert  14850: done
                   14851:
1.1       millert  14852: fi
                   14853: done
                   14854:
                   14855: fi
1.25      millert  14856: if test -z "$BROKEN_GETCWD"; then
1.1       millert  14857:
1.25      millert  14858: for ac_func in getcwd
                   14859: do
                   14860: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14861: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14862: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14863: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   14864:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14865: else
1.25      millert  14866:   cat >conftest.$ac_ext <<_ACEOF
                   14867: /* confdefs.h.  */
                   14868: _ACEOF
                   14869: cat confdefs.h >>conftest.$ac_ext
                   14870: cat >>conftest.$ac_ext <<_ACEOF
                   14871: /* end confdefs.h.  */
                   14872: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14873:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14874: #define $ac_func innocuous_$ac_func
1.9       millert  14875:
1.25      millert  14876: /* System header to define __stub macros and hopefully few prototypes,
                   14877:     which can conflict with char $ac_func (); below.
                   14878:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14879:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  14880:
1.25      millert  14881: #ifdef __STDC__
                   14882: # include <limits.h>
                   14883: #else
                   14884: # include <assert.h>
                   14885: #endif
1.9       millert  14886:
1.25      millert  14887: #undef $ac_func
1.9       millert  14888:
1.25      millert  14889: /* Override any gcc2 internal prototype to avoid an error.  */
                   14890: #ifdef __cplusplus
                   14891: extern "C"
                   14892: {
                   14893: #endif
                   14894: /* We use char because int might match the return type of a gcc2
                   14895:    builtin and then its argument prototype would still apply.  */
                   14896: char $ac_func ();
                   14897: /* The GNU C library defines this for functions which it implements
                   14898:     to always fail with ENOSYS.  Some functions are actually named
                   14899:     something starting with __ and the normal name is an alias.  */
                   14900: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   14901: choke me
                   14902: #else
                   14903: char (*f) () = $ac_func;
                   14904: #endif
                   14905: #ifdef __cplusplus
                   14906: }
                   14907: #endif
1.9       millert  14908:
1.25      millert  14909: int
                   14910: main ()
                   14911: {
                   14912: return f != $ac_func;
                   14913:   ;
                   14914:   return 0;
                   14915: }
                   14916: _ACEOF
                   14917: rm -f conftest.$ac_objext conftest$ac_exeext
                   14918: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   14919:   (eval $ac_link) 2>conftest.er1
                   14920:   ac_status=$?
                   14921:   grep -v '^ *+' conftest.er1 >conftest.err
                   14922:   rm -f conftest.er1
                   14923:   cat conftest.err >&5
                   14924:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14925:   (exit $ac_status); } &&
                   14926:         { ac_try='test -z "$ac_c_werror_flag"
                   14927:                         || test ! -s conftest.err'
                   14928:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14929:   (eval $ac_try) 2>&5
                   14930:   ac_status=$?
                   14931:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14932:   (exit $ac_status); }; } &&
                   14933:         { ac_try='test -s conftest$ac_exeext'
                   14934:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   14935:   (eval $ac_try) 2>&5
                   14936:   ac_status=$?
                   14937:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14938:   (exit $ac_status); }; }; then
                   14939:   eval "$as_ac_var=yes"
                   14940: else
                   14941:   echo "$as_me: failed program was:" >&5
                   14942: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  14943:
1.25      millert  14944: eval "$as_ac_var=no"
1.1       millert  14945: fi
1.25      millert  14946: rm -f conftest.err conftest.$ac_objext \
                   14947:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  14948: fi
1.25      millert  14949: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   14950: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   14951: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   14952:   cat >>confdefs.h <<_ACEOF
                   14953: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   14954: _ACEOF
1.1       millert  14955:
1.25      millert  14956: else
                   14957:   case $LIBOBJS in
                   14958:     "$ac_func.$ac_objext"   | \
                   14959:   *" $ac_func.$ac_objext"   | \
                   14960:     "$ac_func.$ac_objext "* | \
                   14961:   *" $ac_func.$ac_objext "* ) ;;
                   14962:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
                   14963: esac
1.1       millert  14964:
1.25      millert  14965: fi
                   14966: done
1.23      millert  14967:
                   14968:
                   14969: fi
                   14970:
1.25      millert  14971: for ac_func in glob
                   14972: do
                   14973: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   14974: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   14975: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   14976: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23      millert  14977:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14978: else
                   14979:   cat >conftest.$ac_ext <<_ACEOF
                   14980: /* confdefs.h.  */
                   14981: _ACEOF
                   14982: cat confdefs.h >>conftest.$ac_ext
                   14983: cat >>conftest.$ac_ext <<_ACEOF
                   14984: /* end confdefs.h.  */
1.25      millert  14985: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   14986:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   14987: #define $ac_func innocuous_$ac_func
                   14988:
                   14989: /* System header to define __stub macros and hopefully few prototypes,
                   14990:     which can conflict with char $ac_func (); below.
                   14991:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   14992:     <limits.h> exists even on freestanding compilers.  */
                   14993:
                   14994: #ifdef __STDC__
                   14995: # include <limits.h>
                   14996: #else
                   14997: # include <assert.h>
                   14998: #endif
                   14999:
                   15000: #undef $ac_func
                   15001:
                   15002: /* Override any gcc2 internal prototype to avoid an error.  */
                   15003: #ifdef __cplusplus
                   15004: extern "C"
                   15005: {
                   15006: #endif
                   15007: /* We use char because int might match the return type of a gcc2
                   15008:    builtin and then its argument prototype would still apply.  */
                   15009: char $ac_func ();
                   15010: /* The GNU C library defines this for functions which it implements
                   15011:     to always fail with ENOSYS.  Some functions are actually named
                   15012:     something starting with __ and the normal name is an alias.  */
                   15013: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15014: choke me
                   15015: #else
                   15016: char (*f) () = $ac_func;
                   15017: #endif
                   15018: #ifdef __cplusplus
                   15019: }
                   15020: #endif
1.23      millert  15021:
                   15022: int
                   15023: main ()
                   15024: {
1.25      millert  15025: return f != $ac_func;
1.23      millert  15026:   ;
                   15027:   return 0;
                   15028: }
                   15029: _ACEOF
1.25      millert  15030: rm -f conftest.$ac_objext conftest$ac_exeext
                   15031: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   15032:   (eval $ac_link) 2>conftest.er1
1.23      millert  15033:   ac_status=$?
1.25      millert  15034:   grep -v '^ *+' conftest.er1 >conftest.err
                   15035:   rm -f conftest.er1
                   15036:   cat conftest.err >&5
1.23      millert  15037:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15038:   (exit $ac_status); } &&
1.25      millert  15039:         { ac_try='test -z "$ac_c_werror_flag"
                   15040:                         || test ! -s conftest.err'
                   15041:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15042:   (eval $ac_try) 2>&5
                   15043:   ac_status=$?
                   15044:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15045:   (exit $ac_status); }; } &&
                   15046:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  15047:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15048:   (eval $ac_try) 2>&5
                   15049:   ac_status=$?
                   15050:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15051:   (exit $ac_status); }; }; then
1.25      millert  15052:   eval "$as_ac_var=yes"
1.23      millert  15053: else
                   15054:   echo "$as_me: failed program was:" >&5
                   15055: sed 's/^/| /' conftest.$ac_ext >&5
                   15056:
1.25      millert  15057: eval "$as_ac_var=no"
                   15058: fi
                   15059: rm -f conftest.err conftest.$ac_objext \
                   15060:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15061: fi
1.25      millert  15062: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15063: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15064: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15065:   cat >>confdefs.h <<_ACEOF
                   15066: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15067: _ACEOF
                   15068:  echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
                   15069: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6
                   15070: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  15071: /* confdefs.h.  */
                   15072: _ACEOF
                   15073: cat confdefs.h >>conftest.$ac_ext
                   15074: cat >>conftest.$ac_ext <<_ACEOF
                   15075: /* end confdefs.h.  */
1.25      millert  15076: #include <glob.h>
                   15077: int
                   15078: main ()
                   15079: {
                   15080: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
                   15081:   ;
                   15082:   return 0;
                   15083: }
                   15084: _ACEOF
                   15085: rm -f conftest.$ac_objext
                   15086: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   15087:   (eval $ac_compile) 2>conftest.er1
                   15088:   ac_status=$?
                   15089:   grep -v '^ *+' conftest.er1 >conftest.err
                   15090:   rm -f conftest.er1
                   15091:   cat conftest.err >&5
                   15092:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15093:   (exit $ac_status); } &&
                   15094:         { ac_try='test -z "$ac_c_werror_flag"
                   15095:                         || test ! -s conftest.err'
                   15096:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15097:   (eval $ac_try) 2>&5
                   15098:   ac_status=$?
                   15099:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15100:   (exit $ac_status); }; } &&
                   15101:         { ac_try='test -s conftest.$ac_objext'
                   15102:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15103:   (eval $ac_try) 2>&5
                   15104:   ac_status=$?
                   15105:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15106:   (exit $ac_status); }; }; then
                   15107:   cat >>confdefs.h <<\_ACEOF
                   15108: #define HAVE_EXTENDED_GLOB 1
                   15109: _ACEOF
1.23      millert  15110:
1.25      millert  15111:     echo "$as_me:$LINENO: result: yes" >&5
                   15112: echo "${ECHO_T}yes" >&6
1.23      millert  15113: else
1.25      millert  15114:   echo "$as_me: failed program was:" >&5
                   15115: sed 's/^/| /' conftest.$ac_ext >&5
                   15116:
                   15117: case $LIBOBJS in
                   15118:     "glob.$ac_objext"   | \
                   15119:   *" glob.$ac_objext"   | \
                   15120:     "glob.$ac_objext "* | \
                   15121:   *" glob.$ac_objext "* ) ;;
                   15122:   *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
                   15123: esac
                   15124:
                   15125:     echo "$as_me:$LINENO: result: no" >&5
                   15126: echo "${ECHO_T}no" >&6
1.23      millert  15127: fi
1.25      millert  15128: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   15129: else
                   15130:   case $LIBOBJS in
                   15131:     "glob.$ac_objext"   | \
                   15132:   *" glob.$ac_objext"   | \
                   15133:     "glob.$ac_objext "* | \
                   15134:   *" glob.$ac_objext "* ) ;;
                   15135:   *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
                   15136: esac
1.23      millert  15137:
                   15138: fi
1.25      millert  15139: done
                   15140:
                   15141:
1.23      millert  15142:
1.25      millert  15143: for ac_func in lockf flock
                   15144: do
                   15145: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15146: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15147: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15148: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   15149:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15150: else
1.23      millert  15151:   cat >conftest.$ac_ext <<_ACEOF
                   15152: /* confdefs.h.  */
                   15153: _ACEOF
                   15154: cat confdefs.h >>conftest.$ac_ext
                   15155: cat >>conftest.$ac_ext <<_ACEOF
                   15156: /* end confdefs.h.  */
1.25      millert  15157: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15158:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15159: #define $ac_func innocuous_$ac_func
                   15160:
                   15161: /* System header to define __stub macros and hopefully few prototypes,
                   15162:     which can conflict with char $ac_func (); below.
                   15163:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15164:     <limits.h> exists even on freestanding compilers.  */
                   15165:
                   15166: #ifdef __STDC__
                   15167: # include <limits.h>
                   15168: #else
                   15169: # include <assert.h>
                   15170: #endif
                   15171:
                   15172: #undef $ac_func
1.23      millert  15173:
1.25      millert  15174: /* Override any gcc2 internal prototype to avoid an error.  */
                   15175: #ifdef __cplusplus
                   15176: extern "C"
                   15177: {
                   15178: #endif
                   15179: /* We use char because int might match the return type of a gcc2
                   15180:    builtin and then its argument prototype would still apply.  */
                   15181: char $ac_func ();
                   15182: /* The GNU C library defines this for functions which it implements
                   15183:     to always fail with ENOSYS.  Some functions are actually named
                   15184:     something starting with __ and the normal name is an alias.  */
                   15185: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15186: choke me
1.23      millert  15187: #else
1.25      millert  15188: char (*f) () = $ac_func;
                   15189: #endif
                   15190: #ifdef __cplusplus
                   15191: }
1.23      millert  15192: #endif
                   15193:
                   15194: int
                   15195: main ()
                   15196: {
1.25      millert  15197: return f != $ac_func;
                   15198:   ;
                   15199:   return 0;
1.23      millert  15200: }
                   15201: _ACEOF
1.25      millert  15202: rm -f conftest.$ac_objext conftest$ac_exeext
1.23      millert  15203: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  15204:   (eval $ac_link) 2>conftest.er1
                   15205:   ac_status=$?
                   15206:   grep -v '^ *+' conftest.er1 >conftest.err
                   15207:   rm -f conftest.er1
                   15208:   cat conftest.err >&5
                   15209:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15210:   (exit $ac_status); } &&
                   15211:         { ac_try='test -z "$ac_c_werror_flag"
                   15212:                         || test ! -s conftest.err'
                   15213:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15214:   (eval $ac_try) 2>&5
1.23      millert  15215:   ac_status=$?
                   15216:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  15217:   (exit $ac_status); }; } &&
                   15218:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  15219:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15220:   (eval $ac_try) 2>&5
                   15221:   ac_status=$?
                   15222:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15223:   (exit $ac_status); }; }; then
1.25      millert  15224:   eval "$as_ac_var=yes"
1.23      millert  15225: else
1.25      millert  15226:   echo "$as_me: failed program was:" >&5
1.23      millert  15227: sed 's/^/| /' conftest.$ac_ext >&5
                   15228:
1.25      millert  15229: eval "$as_ac_var=no"
1.23      millert  15230: fi
1.25      millert  15231: rm -f conftest.err conftest.$ac_objext \
                   15232:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15233: fi
1.25      millert  15234: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15235: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15236: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15237:   cat >>confdefs.h <<_ACEOF
                   15238: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  15239: _ACEOF
1.25      millert  15240:  break
1.23      millert  15241: fi
1.25      millert  15242: done
1.23      millert  15243:
                   15244:
                   15245:
1.25      millert  15246: for ac_func in waitpid wait3
                   15247: do
                   15248: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15249: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15250: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15251: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23      millert  15252:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15253: else
                   15254:   cat >conftest.$ac_ext <<_ACEOF
                   15255: /* confdefs.h.  */
                   15256: _ACEOF
                   15257: cat confdefs.h >>conftest.$ac_ext
                   15258: cat >>conftest.$ac_ext <<_ACEOF
                   15259: /* end confdefs.h.  */
1.25      millert  15260: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15261:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15262: #define $ac_func innocuous_$ac_func
                   15263:
                   15264: /* System header to define __stub macros and hopefully few prototypes,
                   15265:     which can conflict with char $ac_func (); below.
                   15266:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15267:     <limits.h> exists even on freestanding compilers.  */
                   15268:
                   15269: #ifdef __STDC__
                   15270: # include <limits.h>
                   15271: #else
                   15272: # include <assert.h>
                   15273: #endif
                   15274:
                   15275: #undef $ac_func
                   15276:
                   15277: /* Override any gcc2 internal prototype to avoid an error.  */
                   15278: #ifdef __cplusplus
                   15279: extern "C"
                   15280: {
                   15281: #endif
                   15282: /* We use char because int might match the return type of a gcc2
                   15283:    builtin and then its argument prototype would still apply.  */
                   15284: char $ac_func ();
                   15285: /* The GNU C library defines this for functions which it implements
                   15286:     to always fail with ENOSYS.  Some functions are actually named
                   15287:     something starting with __ and the normal name is an alias.  */
                   15288: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15289: choke me
                   15290: #else
                   15291: char (*f) () = $ac_func;
                   15292: #endif
                   15293: #ifdef __cplusplus
                   15294: }
                   15295: #endif
1.23      millert  15296:
                   15297: int
                   15298: main ()
                   15299: {
1.25      millert  15300: return f != $ac_func;
1.23      millert  15301:   ;
                   15302:   return 0;
                   15303: }
                   15304: _ACEOF
1.25      millert  15305: rm -f conftest.$ac_objext conftest$ac_exeext
                   15306: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   15307:   (eval $ac_link) 2>conftest.er1
1.23      millert  15308:   ac_status=$?
1.25      millert  15309:   grep -v '^ *+' conftest.er1 >conftest.err
                   15310:   rm -f conftest.er1
                   15311:   cat conftest.err >&5
1.23      millert  15312:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15313:   (exit $ac_status); } &&
1.25      millert  15314:         { ac_try='test -z "$ac_c_werror_flag"
                   15315:                         || test ! -s conftest.err'
                   15316:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15317:   (eval $ac_try) 2>&5
                   15318:   ac_status=$?
                   15319:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15320:   (exit $ac_status); }; } &&
                   15321:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  15322:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15323:   (eval $ac_try) 2>&5
                   15324:   ac_status=$?
                   15325:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15326:   (exit $ac_status); }; }; then
1.25      millert  15327:   eval "$as_ac_var=yes"
1.23      millert  15328: else
                   15329:   echo "$as_me: failed program was:" >&5
                   15330: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  15331:
1.25      millert  15332: eval "$as_ac_var=no"
1.23      millert  15333: fi
1.25      millert  15334: rm -f conftest.err conftest.$ac_objext \
                   15335:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15336: fi
1.25      millert  15337: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15338: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15339: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  15340:   cat >>confdefs.h <<_ACEOF
1.25      millert  15341: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  15342: _ACEOF
1.25      millert  15343:  break
                   15344: fi
                   15345: done
                   15346:
1.1       millert  15347:
                   15348:
1.25      millert  15349: for ac_func in innetgr _innetgr
                   15350: do
                   15351: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15352: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15353: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15354: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  15355:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15356: else
1.25      millert  15357:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15358: /* confdefs.h.  */
                   15359: _ACEOF
                   15360: cat confdefs.h >>conftest.$ac_ext
                   15361: cat >>conftest.$ac_ext <<_ACEOF
                   15362: /* end confdefs.h.  */
1.25      millert  15363: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15364:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15365: #define $ac_func innocuous_$ac_func
                   15366:
                   15367: /* System header to define __stub macros and hopefully few prototypes,
                   15368:     which can conflict with char $ac_func (); below.
                   15369:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15370:     <limits.h> exists even on freestanding compilers.  */
                   15371:
                   15372: #ifdef __STDC__
                   15373: # include <limits.h>
                   15374: #else
                   15375: # include <assert.h>
                   15376: #endif
                   15377:
                   15378: #undef $ac_func
1.9       millert  15379:
1.23      millert  15380: /* Override any gcc2 internal prototype to avoid an error.  */
                   15381: #ifdef __cplusplus
                   15382: extern "C"
1.25      millert  15383: {
1.23      millert  15384: #endif
                   15385: /* We use char because int might match the return type of a gcc2
                   15386:    builtin and then its argument prototype would still apply.  */
1.25      millert  15387: char $ac_func ();
                   15388: /* The GNU C library defines this for functions which it implements
                   15389:     to always fail with ENOSYS.  Some functions are actually named
                   15390:     something starting with __ and the normal name is an alias.  */
                   15391: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15392: choke me
                   15393: #else
                   15394: char (*f) () = $ac_func;
                   15395: #endif
                   15396: #ifdef __cplusplus
                   15397: }
                   15398: #endif
                   15399:
1.16      millert  15400: int
                   15401: main ()
                   15402: {
1.25      millert  15403: return f != $ac_func;
1.16      millert  15404:   ;
                   15405:   return 0;
                   15406: }
1.9       millert  15407: _ACEOF
1.23      millert  15408: rm -f conftest.$ac_objext conftest$ac_exeext
                   15409: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  15410:   (eval $ac_link) 2>conftest.er1
1.16      millert  15411:   ac_status=$?
1.25      millert  15412:   grep -v '^ *+' conftest.er1 >conftest.err
                   15413:   rm -f conftest.er1
                   15414:   cat conftest.err >&5
1.16      millert  15415:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15416:   (exit $ac_status); } &&
1.25      millert  15417:         { ac_try='test -z "$ac_c_werror_flag"
                   15418:                         || test ! -s conftest.err'
                   15419:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15420:   (eval $ac_try) 2>&5
                   15421:   ac_status=$?
                   15422:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15423:   (exit $ac_status); }; } &&
                   15424:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  15425:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15426:   (eval $ac_try) 2>&5
1.9       millert  15427:   ac_status=$?
1.16      millert  15428:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15429:   (exit $ac_status); }; }; then
1.25      millert  15430:   eval "$as_ac_var=yes"
1.1       millert  15431: else
1.9       millert  15432:   echo "$as_me: failed program was:" >&5
1.16      millert  15433: sed 's/^/| /' conftest.$ac_ext >&5
                   15434:
1.25      millert  15435: eval "$as_ac_var=no"
                   15436: fi
                   15437: rm -f conftest.err conftest.$ac_objext \
                   15438:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  15439: fi
1.25      millert  15440: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15441: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15442: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15443:   cat >>confdefs.h <<_ACEOF
                   15444: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15445: _ACEOF
                   15446:
                   15447: for ac_func in getdomainname
                   15448: do
                   15449: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15450: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15451: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15452: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   15453:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15454: else
                   15455:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15456: /* confdefs.h.  */
                   15457: _ACEOF
                   15458: cat confdefs.h >>conftest.$ac_ext
                   15459: cat >>conftest.$ac_ext <<_ACEOF
                   15460: /* end confdefs.h.  */
1.25      millert  15461: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15462:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15463: #define $ac_func innocuous_$ac_func
                   15464:
                   15465: /* System header to define __stub macros and hopefully few prototypes,
                   15466:     which can conflict with char $ac_func (); below.
                   15467:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15468:     <limits.h> exists even on freestanding compilers.  */
                   15469:
                   15470: #ifdef __STDC__
                   15471: # include <limits.h>
                   15472: #else
                   15473: # include <assert.h>
                   15474: #endif
                   15475:
                   15476: #undef $ac_func
1.9       millert  15477:
1.23      millert  15478: /* Override any gcc2 internal prototype to avoid an error.  */
                   15479: #ifdef __cplusplus
                   15480: extern "C"
1.25      millert  15481: {
1.23      millert  15482: #endif
                   15483: /* We use char because int might match the return type of a gcc2
                   15484:    builtin and then its argument prototype would still apply.  */
1.25      millert  15485: char $ac_func ();
                   15486: /* The GNU C library defines this for functions which it implements
                   15487:     to always fail with ENOSYS.  Some functions are actually named
                   15488:     something starting with __ and the normal name is an alias.  */
                   15489: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15490: choke me
                   15491: #else
                   15492: char (*f) () = $ac_func;
                   15493: #endif
                   15494: #ifdef __cplusplus
                   15495: }
                   15496: #endif
                   15497:
1.23      millert  15498: int
                   15499: main ()
                   15500: {
1.25      millert  15501: return f != $ac_func;
1.23      millert  15502:   ;
                   15503:   return 0;
                   15504: }
1.9       millert  15505: _ACEOF
1.23      millert  15506: rm -f conftest.$ac_objext conftest$ac_exeext
                   15507: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  15508:   (eval $ac_link) 2>conftest.er1
1.23      millert  15509:   ac_status=$?
1.25      millert  15510:   grep -v '^ *+' conftest.er1 >conftest.err
                   15511:   rm -f conftest.er1
                   15512:   cat conftest.err >&5
1.23      millert  15513:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15514:   (exit $ac_status); } &&
1.25      millert  15515:         { ac_try='test -z "$ac_c_werror_flag"
                   15516:                         || test ! -s conftest.err'
                   15517:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15518:   (eval $ac_try) 2>&5
                   15519:   ac_status=$?
                   15520:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15521:   (exit $ac_status); }; } &&
                   15522:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  15523:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15524:   (eval $ac_try) 2>&5
                   15525:   ac_status=$?
                   15526:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15527:   (exit $ac_status); }; }; then
1.25      millert  15528:   eval "$as_ac_var=yes"
1.1       millert  15529: else
1.23      millert  15530:   echo "$as_me: failed program was:" >&5
                   15531: sed 's/^/| /' conftest.$ac_ext >&5
                   15532:
1.25      millert  15533: eval "$as_ac_var=no"
                   15534: fi
                   15535: rm -f conftest.err conftest.$ac_objext \
                   15536:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  15537: fi
1.25      millert  15538: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15539: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15540: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15541:   cat >>confdefs.h <<_ACEOF
                   15542: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15543: _ACEOF
                   15544:
1.23      millert  15545: fi
1.25      millert  15546: done
                   15547:  break
1.1       millert  15548: fi
1.25      millert  15549: done
1.1       millert  15550:
                   15551:
1.25      millert  15552: for ac_func in lsearch
                   15553: do
                   15554: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15555: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15556: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15557: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23      millert  15558:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15559: else
1.25      millert  15560:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15561: /* confdefs.h.  */
                   15562: _ACEOF
                   15563: cat confdefs.h >>conftest.$ac_ext
                   15564: cat >>conftest.$ac_ext <<_ACEOF
                   15565: /* end confdefs.h.  */
1.25      millert  15566: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15567:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15568: #define $ac_func innocuous_$ac_func
                   15569:
                   15570: /* System header to define __stub macros and hopefully few prototypes,
                   15571:     which can conflict with char $ac_func (); below.
                   15572:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15573:     <limits.h> exists even on freestanding compilers.  */
                   15574:
                   15575: #ifdef __STDC__
                   15576: # include <limits.h>
                   15577: #else
                   15578: # include <assert.h>
                   15579: #endif
                   15580:
                   15581: #undef $ac_func
1.9       millert  15582:
1.23      millert  15583: /* Override any gcc2 internal prototype to avoid an error.  */
                   15584: #ifdef __cplusplus
                   15585: extern "C"
1.25      millert  15586: {
1.23      millert  15587: #endif
                   15588: /* We use char because int might match the return type of a gcc2
                   15589:    builtin and then its argument prototype would still apply.  */
1.25      millert  15590: char $ac_func ();
                   15591: /* The GNU C library defines this for functions which it implements
                   15592:     to always fail with ENOSYS.  Some functions are actually named
                   15593:     something starting with __ and the normal name is an alias.  */
                   15594: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15595: choke me
                   15596: #else
                   15597: char (*f) () = $ac_func;
                   15598: #endif
                   15599: #ifdef __cplusplus
                   15600: }
                   15601: #endif
                   15602:
1.23      millert  15603: int
                   15604: main ()
                   15605: {
1.25      millert  15606: return f != $ac_func;
1.23      millert  15607:   ;
                   15608:   return 0;
                   15609: }
1.9       millert  15610: _ACEOF
1.23      millert  15611: rm -f conftest.$ac_objext conftest$ac_exeext
                   15612: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  15613:   (eval $ac_link) 2>conftest.er1
1.23      millert  15614:   ac_status=$?
1.25      millert  15615:   grep -v '^ *+' conftest.er1 >conftest.err
                   15616:   rm -f conftest.er1
                   15617:   cat conftest.err >&5
1.23      millert  15618:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15619:   (exit $ac_status); } &&
1.25      millert  15620:         { ac_try='test -z "$ac_c_werror_flag"
                   15621:                         || test ! -s conftest.err'
                   15622:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15623:   (eval $ac_try) 2>&5
                   15624:   ac_status=$?
                   15625:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15626:   (exit $ac_status); }; } &&
                   15627:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  15628:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15629:   (eval $ac_try) 2>&5
                   15630:   ac_status=$?
                   15631:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15632:   (exit $ac_status); }; }; then
1.25      millert  15633:   eval "$as_ac_var=yes"
1.1       millert  15634: else
1.23      millert  15635:   echo "$as_me: failed program was:" >&5
                   15636: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  15637:
1.25      millert  15638: eval "$as_ac_var=no"
                   15639: fi
                   15640: rm -f conftest.err conftest.$ac_objext \
                   15641:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  15642: fi
1.25      millert  15643: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15644: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15645: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15646:   cat >>confdefs.h <<_ACEOF
                   15647: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15648: _ACEOF
                   15649:
                   15650: else
                   15651:   echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
                   15652: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
                   15653: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
                   15654:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15655: else
                   15656:   ac_check_lib_save_LIBS=$LIBS
                   15657: LIBS="-lcompat  $LIBS"
                   15658: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15659: /* confdefs.h.  */
                   15660: _ACEOF
                   15661: cat confdefs.h >>conftest.$ac_ext
                   15662: cat >>conftest.$ac_ext <<_ACEOF
                   15663: /* end confdefs.h.  */
1.23      millert  15664:
                   15665: /* Override any gcc2 internal prototype to avoid an error.  */
                   15666: #ifdef __cplusplus
                   15667: extern "C"
1.9       millert  15668: #endif
1.23      millert  15669: /* We use char because int might match the return type of a gcc2
                   15670:    builtin and then its argument prototype would still apply.  */
1.25      millert  15671: char lsearch ();
1.9       millert  15672: int
                   15673: main ()
                   15674: {
1.25      millert  15675: lsearch ();
1.23      millert  15676:   ;
                   15677:   return 0;
1.9       millert  15678: }
                   15679: _ACEOF
1.23      millert  15680: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  15681: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  15682:   (eval $ac_link) 2>conftest.er1
1.9       millert  15683:   ac_status=$?
1.25      millert  15684:   grep -v '^ *+' conftest.er1 >conftest.err
                   15685:   rm -f conftest.er1
                   15686:   cat conftest.err >&5
1.16      millert  15687:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  15688:   (exit $ac_status); } &&
1.25      millert  15689:         { ac_try='test -z "$ac_c_werror_flag"
                   15690:                         || test ! -s conftest.err'
1.16      millert  15691:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  15692:   (eval $ac_try) 2>&5
                   15693:   ac_status=$?
1.16      millert  15694:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  15695:   (exit $ac_status); }; } &&
                   15696:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  15697:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  15698:   (eval $ac_try) 2>&5
                   15699:   ac_status=$?
1.16      millert  15700:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15701:   (exit $ac_status); }; }; then
1.25      millert  15702:   ac_cv_lib_compat_lsearch=yes
1.9       millert  15703: else
                   15704:   echo "$as_me: failed program was:" >&5
1.16      millert  15705: sed 's/^/| /' conftest.$ac_ext >&5
                   15706:
1.25      millert  15707: ac_cv_lib_compat_lsearch=no
                   15708: fi
                   15709: rm -f conftest.err conftest.$ac_objext \
                   15710:       conftest$ac_exeext conftest.$ac_ext
                   15711: LIBS=$ac_check_lib_save_LIBS
1.9       millert  15712: fi
1.25      millert  15713: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
                   15714: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
                   15715: if test $ac_cv_lib_compat_lsearch = yes; then
                   15716:   echo "$as_me:$LINENO: checking for search.h" >&5
                   15717: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
                   15718: if test "${ac_cv_header_search_h+set}" = set; then
                   15719:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15720: else
                   15721:   cat >conftest.$ac_ext <<_ACEOF
1.23      millert  15722: /* confdefs.h.  */
                   15723: _ACEOF
                   15724: cat confdefs.h >>conftest.$ac_ext
                   15725: cat >>conftest.$ac_ext <<_ACEOF
                   15726: /* end confdefs.h.  */
1.25      millert  15727: #include <search.h>
1.23      millert  15728: _ACEOF
                   15729: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   15730:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   15731:   ac_status=$?
                   15732:   grep -v '^ *+' conftest.er1 >conftest.err
                   15733:   rm -f conftest.er1
                   15734:   cat conftest.err >&5
                   15735:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15736:   (exit $ac_status); } >/dev/null; then
                   15737:   if test -s conftest.err; then
                   15738:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  15739:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.23      millert  15740:   else
                   15741:     ac_cpp_err=
                   15742:   fi
                   15743: else
                   15744:   ac_cpp_err=yes
                   15745: fi
                   15746: if test -z "$ac_cpp_err"; then
1.25      millert  15747:   ac_cv_header_search_h=yes
1.23      millert  15748: else
                   15749:   echo "$as_me: failed program was:" >&5
                   15750: sed 's/^/| /' conftest.$ac_ext >&5
                   15751:
1.25      millert  15752:   ac_cv_header_search_h=no
1.23      millert  15753: fi
                   15754: rm -f conftest.err conftest.$ac_ext
1.25      millert  15755: fi
                   15756: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
                   15757: echo "${ECHO_T}$ac_cv_header_search_h" >&6
                   15758: if test $ac_cv_header_search_h = yes; then
                   15759:   cat >>confdefs.h <<\_ACEOF
                   15760: #define HAVE_LSEARCH 1
                   15761: _ACEOF
                   15762:  LIBS="${LIBS} -lcompat"
                   15763: else
                   15764:   case $LIBOBJS in
                   15765:     "lsearch.$ac_objext"   | \
                   15766:   *" lsearch.$ac_objext"   | \
                   15767:     "lsearch.$ac_objext "* | \
                   15768:   *" lsearch.$ac_objext "* ) ;;
                   15769:   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext" ;;
                   15770: esac
                   15771:
                   15772: fi
                   15773:
1.23      millert  15774:
1.25      millert  15775: else
                   15776:   case $LIBOBJS in
                   15777:     "lsearch.$ac_objext"   | \
                   15778:   *" lsearch.$ac_objext"   | \
                   15779:     "lsearch.$ac_objext "* | \
                   15780:   *" lsearch.$ac_objext "* ) ;;
                   15781:   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext" ;;
1.23      millert  15782: esac
                   15783:
                   15784: fi
1.9       millert  15785:
1.1       millert  15786: fi
                   15787: done
1.23      millert  15788:
                   15789:
1.25      millert  15790: for ac_func in utimes
                   15791: do
                   15792: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15793: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15794: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15795: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  15796:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15797: else
1.25      millert  15798:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15799: /* confdefs.h.  */
                   15800: _ACEOF
                   15801: cat confdefs.h >>conftest.$ac_ext
                   15802: cat >>conftest.$ac_ext <<_ACEOF
                   15803: /* end confdefs.h.  */
1.25      millert  15804: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15805:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15806: #define $ac_func innocuous_$ac_func
                   15807:
                   15808: /* System header to define __stub macros and hopefully few prototypes,
                   15809:     which can conflict with char $ac_func (); below.
                   15810:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15811:     <limits.h> exists even on freestanding compilers.  */
                   15812:
                   15813: #ifdef __STDC__
                   15814: # include <limits.h>
                   15815: #else
                   15816: # include <assert.h>
                   15817: #endif
                   15818:
                   15819: #undef $ac_func
                   15820:
                   15821: /* Override any gcc2 internal prototype to avoid an error.  */
                   15822: #ifdef __cplusplus
                   15823: extern "C"
                   15824: {
                   15825: #endif
                   15826: /* We use char because int might match the return type of a gcc2
                   15827:    builtin and then its argument prototype would still apply.  */
                   15828: char $ac_func ();
                   15829: /* The GNU C library defines this for functions which it implements
                   15830:     to always fail with ENOSYS.  Some functions are actually named
                   15831:     something starting with __ and the normal name is an alias.  */
                   15832: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15833: choke me
                   15834: #else
                   15835: char (*f) () = $ac_func;
                   15836: #endif
                   15837: #ifdef __cplusplus
                   15838: }
                   15839: #endif
                   15840:
                   15841: int
                   15842: main ()
                   15843: {
                   15844: return f != $ac_func;
                   15845:   ;
                   15846:   return 0;
                   15847: }
1.16      millert  15848: _ACEOF
1.25      millert  15849: rm -f conftest.$ac_objext conftest$ac_exeext
                   15850: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   15851:   (eval $ac_link) 2>conftest.er1
1.16      millert  15852:   ac_status=$?
1.25      millert  15853:   grep -v '^ *+' conftest.er1 >conftest.err
                   15854:   rm -f conftest.er1
                   15855:   cat conftest.err >&5
1.16      millert  15856:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15857:   (exit $ac_status); } &&
1.25      millert  15858:         { ac_try='test -z "$ac_c_werror_flag"
                   15859:                         || test ! -s conftest.err'
                   15860:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15861:   (eval $ac_try) 2>&5
                   15862:   ac_status=$?
                   15863:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15864:   (exit $ac_status); }; } &&
                   15865:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  15866:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15867:   (eval $ac_try) 2>&5
                   15868:   ac_status=$?
                   15869:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15870:   (exit $ac_status); }; }; then
1.25      millert  15871:   eval "$as_ac_var=yes"
1.16      millert  15872: else
                   15873:   echo "$as_me: failed program was:" >&5
                   15874: sed 's/^/| /' conftest.$ac_ext >&5
                   15875:
1.25      millert  15876: eval "$as_ac_var=no"
                   15877: fi
                   15878: rm -f conftest.err conftest.$ac_objext \
                   15879:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  15880: fi
1.25      millert  15881: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15882: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15883: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15884:   cat >>confdefs.h <<_ACEOF
                   15885: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15886: _ACEOF
                   15887:
1.23      millert  15888:
1.25      millert  15889: for ac_func in futimes futimesat
                   15890: do
                   15891: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15892: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15893: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15894: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   15895:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15896: else
                   15897:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15898: /* confdefs.h.  */
                   15899: _ACEOF
                   15900: cat confdefs.h >>conftest.$ac_ext
                   15901: cat >>conftest.$ac_ext <<_ACEOF
                   15902: /* end confdefs.h.  */
1.25      millert  15903: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15904:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15905: #define $ac_func innocuous_$ac_func
                   15906:
                   15907: /* System header to define __stub macros and hopefully few prototypes,
                   15908:     which can conflict with char $ac_func (); below.
                   15909:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15910:     <limits.h> exists even on freestanding compilers.  */
                   15911:
                   15912: #ifdef __STDC__
                   15913: # include <limits.h>
                   15914: #else
                   15915: # include <assert.h>
                   15916: #endif
                   15917:
                   15918: #undef $ac_func
                   15919:
                   15920: /* Override any gcc2 internal prototype to avoid an error.  */
                   15921: #ifdef __cplusplus
                   15922: extern "C"
                   15923: {
                   15924: #endif
                   15925: /* We use char because int might match the return type of a gcc2
                   15926:    builtin and then its argument prototype would still apply.  */
                   15927: char $ac_func ();
                   15928: /* The GNU C library defines this for functions which it implements
                   15929:     to always fail with ENOSYS.  Some functions are actually named
                   15930:     something starting with __ and the normal name is an alias.  */
                   15931: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   15932: choke me
                   15933: #else
                   15934: char (*f) () = $ac_func;
                   15935: #endif
                   15936: #ifdef __cplusplus
                   15937: }
                   15938: #endif
                   15939:
                   15940: int
                   15941: main ()
                   15942: {
                   15943: return f != $ac_func;
                   15944:   ;
                   15945:   return 0;
                   15946: }
1.9       millert  15947: _ACEOF
1.25      millert  15948: rm -f conftest.$ac_objext conftest$ac_exeext
                   15949: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   15950:   (eval $ac_link) 2>conftest.er1
1.9       millert  15951:   ac_status=$?
1.23      millert  15952:   grep -v '^ *+' conftest.er1 >conftest.err
                   15953:   rm -f conftest.er1
                   15954:   cat conftest.err >&5
1.16      millert  15955:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  15956:   (exit $ac_status); } &&
                   15957:         { ac_try='test -z "$ac_c_werror_flag"
                   15958:                         || test ! -s conftest.err'
                   15959:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15960:   (eval $ac_try) 2>&5
                   15961:   ac_status=$?
                   15962:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15963:   (exit $ac_status); }; } &&
                   15964:         { ac_try='test -s conftest$ac_exeext'
                   15965:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   15966:   (eval $ac_try) 2>&5
                   15967:   ac_status=$?
                   15968:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15969:   (exit $ac_status); }; }; then
                   15970:   eval "$as_ac_var=yes"
1.23      millert  15971: else
                   15972:   echo "$as_me: failed program was:" >&5
                   15973: sed 's/^/| /' conftest.$ac_ext >&5
                   15974:
1.25      millert  15975: eval "$as_ac_var=no"
1.23      millert  15976: fi
1.25      millert  15977: rm -f conftest.err conftest.$ac_objext \
                   15978:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15979: fi
1.25      millert  15980: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   15981: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   15982: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  15983:   cat >>confdefs.h <<_ACEOF
1.25      millert  15984: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  15985: _ACEOF
1.25      millert  15986:  break
                   15987: fi
                   15988: done
1.23      millert  15989:
                   15990: else
1.16      millert  15991:
1.25      millert  15992: for ac_func in futime
                   15993: do
                   15994: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15995: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15996: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   15997: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  15998:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15999: else
1.23      millert  16000:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16001: /* confdefs.h.  */
                   16002: _ACEOF
                   16003: cat confdefs.h >>conftest.$ac_ext
                   16004: cat >>conftest.$ac_ext <<_ACEOF
                   16005: /* end confdefs.h.  */
1.25      millert  16006: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16007:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16008: #define $ac_func innocuous_$ac_func
                   16009:
                   16010: /* System header to define __stub macros and hopefully few prototypes,
                   16011:     which can conflict with char $ac_func (); below.
                   16012:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16013:     <limits.h> exists even on freestanding compilers.  */
                   16014:
                   16015: #ifdef __STDC__
                   16016: # include <limits.h>
                   16017: #else
                   16018: # include <assert.h>
                   16019: #endif
                   16020:
                   16021: #undef $ac_func
                   16022:
                   16023: /* Override any gcc2 internal prototype to avoid an error.  */
                   16024: #ifdef __cplusplus
                   16025: extern "C"
                   16026: {
                   16027: #endif
                   16028: /* We use char because int might match the return type of a gcc2
                   16029:    builtin and then its argument prototype would still apply.  */
                   16030: char $ac_func ();
                   16031: /* The GNU C library defines this for functions which it implements
                   16032:     to always fail with ENOSYS.  Some functions are actually named
                   16033:     something starting with __ and the normal name is an alias.  */
                   16034: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16035: choke me
                   16036: #else
                   16037: char (*f) () = $ac_func;
                   16038: #endif
                   16039: #ifdef __cplusplus
                   16040: }
                   16041: #endif
1.16      millert  16042:
                   16043: int
                   16044: main ()
                   16045: {
1.25      millert  16046: return f != $ac_func;
1.16      millert  16047:   ;
                   16048:   return 0;
                   16049: }
                   16050: _ACEOF
                   16051: rm -f conftest.$ac_objext conftest$ac_exeext
                   16052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  16053:   (eval $ac_link) 2>conftest.er1
1.16      millert  16054:   ac_status=$?
1.25      millert  16055:   grep -v '^ *+' conftest.er1 >conftest.err
                   16056:   rm -f conftest.er1
                   16057:   cat conftest.err >&5
1.16      millert  16058:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16059:   (exit $ac_status); } &&
1.25      millert  16060:         { ac_try='test -z "$ac_c_werror_flag"
                   16061:                         || test ! -s conftest.err'
                   16062:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16063:   (eval $ac_try) 2>&5
                   16064:   ac_status=$?
                   16065:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16066:   (exit $ac_status); }; } &&
                   16067:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  16068:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16069:   (eval $ac_try) 2>&5
                   16070:   ac_status=$?
                   16071:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16072:   (exit $ac_status); }; }; then
1.25      millert  16073:   eval "$as_ac_var=yes"
1.16      millert  16074: else
                   16075:   echo "$as_me: failed program was:" >&5
                   16076: sed 's/^/| /' conftest.$ac_ext >&5
                   16077:
1.25      millert  16078: eval "$as_ac_var=no"
1.16      millert  16079: fi
1.25      millert  16080: rm -f conftest.err conftest.$ac_objext \
                   16081:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16082: fi
1.25      millert  16083: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16084: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16085: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16086:   cat >>confdefs.h <<_ACEOF
                   16087: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16088: _ACEOF
1.9       millert  16089:
1.25      millert  16090: fi
                   16091: done
                   16092:  case $LIBOBJS in
                   16093:     "utimes.$ac_objext"   | \
                   16094:   *" utimes.$ac_objext"   | \
                   16095:     "utimes.$ac_objext "* | \
                   16096:   *" utimes.$ac_objext "* ) ;;
                   16097:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext" ;;
                   16098: esac
1.16      millert  16099:
1.25      millert  16100: fi
                   16101: done
1.16      millert  16102:
1.25      millert  16103: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
                   16104: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
                   16105: if test "${sudo_cv_func_fnmatch+set}" = set; then
1.16      millert  16106:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16107: else
1.25      millert  16108:   rm -f conftestdata; > conftestdata
                   16109: if test "$cross_compiling" = yes; then
                   16110:   sudo_cv_func_fnmatch=no
                   16111: else
                   16112:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16113: /* confdefs.h.  */
                   16114: _ACEOF
                   16115: cat confdefs.h >>conftest.$ac_ext
                   16116: cat >>conftest.$ac_ext <<_ACEOF
                   16117: /* end confdefs.h.  */
1.25      millert  16118: #include <fnmatch.h>
                   16119: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.16      millert  16120: _ACEOF
1.25      millert  16121: rm -f conftest$ac_exeext
                   16122: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16123:   (eval $ac_link) 2>&5
1.16      millert  16124:   ac_status=$?
                   16125:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16126:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16      millert  16127:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16128:   (eval $ac_try) 2>&5
                   16129:   ac_status=$?
                   16130:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16131:   (exit $ac_status); }; }; then
1.25      millert  16132:   sudo_cv_func_fnmatch=yes
1.16      millert  16133: else
1.25      millert  16134:   echo "$as_me: program exited with status $ac_status" >&5
                   16135: echo "$as_me: failed program was:" >&5
1.16      millert  16136: sed 's/^/| /' conftest.$ac_ext >&5
                   16137:
1.25      millert  16138: ( exit $ac_status )
                   16139: sudo_cv_func_fnmatch=no
                   16140: fi
                   16141: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   16142: fi
                   16143: rm -f core core.* *.core
                   16144: fi
                   16145:
                   16146: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
                   16147: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
                   16148: if test $sudo_cv_func_fnmatch = yes; then
                   16149:   cat >>confdefs.h <<\_ACEOF
                   16150: #define HAVE_FNMATCH 1
                   16151: _ACEOF
                   16152:
                   16153: else
                   16154:   case $LIBOBJS in
                   16155:     "fnmatch.$ac_objext"   | \
                   16156:   *" fnmatch.$ac_objext"   | \
                   16157:     "fnmatch.$ac_objext "* | \
                   16158:   *" fnmatch.$ac_objext "* ) ;;
                   16159:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
                   16160: esac
                   16161:
1.9       millert  16162: fi
1.23      millert  16163:
1.25      millert  16164: echo "$as_me:$LINENO: checking for isblank" >&5
                   16165: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
                   16166: if test "${sudo_cv_func_isblank+set}" = set; then
                   16167:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16168: else
                   16169:   cat >conftest.$ac_ext <<_ACEOF
1.23      millert  16170: /* confdefs.h.  */
                   16171: _ACEOF
                   16172: cat confdefs.h >>conftest.$ac_ext
                   16173: cat >>conftest.$ac_ext <<_ACEOF
                   16174: /* end confdefs.h.  */
1.25      millert  16175: #include <ctype.h>
                   16176: int
                   16177: main ()
                   16178: {
1.26    ! millert  16179: return (isblank('a'));
1.25      millert  16180:   ;
                   16181:   return 0;
                   16182: }
1.23      millert  16183: _ACEOF
1.25      millert  16184: rm -f conftest.$ac_objext conftest$ac_exeext
                   16185: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16186:   (eval $ac_link) 2>conftest.er1
1.23      millert  16187:   ac_status=$?
                   16188:   grep -v '^ *+' conftest.er1 >conftest.err
                   16189:   rm -f conftest.er1
                   16190:   cat conftest.err >&5
                   16191:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16192:   (exit $ac_status); } &&
                   16193:         { ac_try='test -z "$ac_c_werror_flag"
                   16194:                         || test ! -s conftest.err'
                   16195:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16196:   (eval $ac_try) 2>&5
                   16197:   ac_status=$?
                   16198:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16199:   (exit $ac_status); }; } &&
                   16200:         { ac_try='test -s conftest$ac_exeext'
                   16201:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16202:   (eval $ac_try) 2>&5
                   16203:   ac_status=$?
                   16204:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16205:   (exit $ac_status); }; }; then
                   16206:   sudo_cv_func_isblank=yes
1.23      millert  16207: else
                   16208:   echo "$as_me: failed program was:" >&5
                   16209: sed 's/^/| /' conftest.$ac_ext >&5
                   16210:
1.25      millert  16211: sudo_cv_func_isblank=no
                   16212: fi
                   16213: rm -f conftest.err conftest.$ac_objext \
                   16214:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16215: fi
1.25      millert  16216: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
                   16217: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.23      millert  16218:
1.25      millert  16219:   if test "$sudo_cv_func_isblank" = "yes"; then
1.23      millert  16220:
1.25      millert  16221: cat >>confdefs.h <<\_ACEOF
                   16222: #define HAVE_ISBLANK 1
1.16      millert  16223: _ACEOF
1.1       millert  16224:
1.25      millert  16225:   fi
                   16226:
                   16227:
                   16228:
                   16229:
1.1       millert  16230:
1.16      millert  16231:
                   16232:
1.25      millert  16233: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.1       millert  16234: do
1.25      millert  16235: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16236: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16237: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   16238: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  16239:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  16240: else
1.25      millert  16241:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16242: /* confdefs.h.  */
                   16243: _ACEOF
                   16244: cat confdefs.h >>conftest.$ac_ext
                   16245: cat >>conftest.$ac_ext <<_ACEOF
                   16246: /* end confdefs.h.  */
1.25      millert  16247: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16248:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16249: #define $ac_func innocuous_$ac_func
                   16250:
                   16251: /* System header to define __stub macros and hopefully few prototypes,
                   16252:     which can conflict with char $ac_func (); below.
                   16253:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16254:     <limits.h> exists even on freestanding compilers.  */
                   16255:
                   16256: #ifdef __STDC__
                   16257: # include <limits.h>
                   16258: #else
                   16259: # include <assert.h>
                   16260: #endif
                   16261:
                   16262: #undef $ac_func
                   16263:
                   16264: /* Override any gcc2 internal prototype to avoid an error.  */
                   16265: #ifdef __cplusplus
                   16266: extern "C"
                   16267: {
                   16268: #endif
                   16269: /* We use char because int might match the return type of a gcc2
                   16270:    builtin and then its argument prototype would still apply.  */
                   16271: char $ac_func ();
                   16272: /* The GNU C library defines this for functions which it implements
                   16273:     to always fail with ENOSYS.  Some functions are actually named
                   16274:     something starting with __ and the normal name is an alias.  */
                   16275: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16276: choke me
                   16277: #else
                   16278: char (*f) () = $ac_func;
                   16279: #endif
                   16280: #ifdef __cplusplus
                   16281: }
                   16282: #endif
                   16283:
                   16284: int
                   16285: main ()
                   16286: {
                   16287: return f != $ac_func;
                   16288:   ;
                   16289:   return 0;
                   16290: }
1.16      millert  16291: _ACEOF
1.25      millert  16292: rm -f conftest.$ac_objext conftest$ac_exeext
                   16293: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16294:   (eval $ac_link) 2>conftest.er1
1.16      millert  16295:   ac_status=$?
1.25      millert  16296:   grep -v '^ *+' conftest.er1 >conftest.err
                   16297:   rm -f conftest.er1
                   16298:   cat conftest.err >&5
1.16      millert  16299:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16300:   (exit $ac_status); } &&
1.25      millert  16301:         { ac_try='test -z "$ac_c_werror_flag"
                   16302:                         || test ! -s conftest.err'
                   16303:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16304:   (eval $ac_try) 2>&5
                   16305:   ac_status=$?
                   16306:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16307:   (exit $ac_status); }; } &&
                   16308:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  16309:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16310:   (eval $ac_try) 2>&5
                   16311:   ac_status=$?
                   16312:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16313:   (exit $ac_status); }; }; then
1.25      millert  16314:   eval "$as_ac_var=yes"
1.9       millert  16315: else
1.16      millert  16316:   echo "$as_me: failed program was:" >&5
                   16317: sed 's/^/| /' conftest.$ac_ext >&5
                   16318:
1.25      millert  16319: eval "$as_ac_var=no"
                   16320: fi
                   16321: rm -f conftest.err conftest.$ac_objext \
                   16322:       conftest$ac_exeext conftest.$ac_ext
                   16323: fi
                   16324: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16325: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16326: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16327:   cat >>confdefs.h <<_ACEOF
                   16328: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16329: _ACEOF
                   16330:
                   16331: else
                   16332:   case $LIBOBJS in
                   16333:     "$ac_func.$ac_objext"   | \
                   16334:   *" $ac_func.$ac_objext"   | \
                   16335:     "$ac_func.$ac_objext "* | \
                   16336:   *" $ac_func.$ac_objext "* ) ;;
                   16337:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
                   16338: esac
                   16339:
1.16      millert  16340: fi
1.25      millert  16341: done
                   16342:
                   16343:
1.16      millert  16344:
1.25      millert  16345: for ac_func in closefrom
                   16346: do
                   16347: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16348: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16349: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   16350: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   16351:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16352: else
                   16353:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16354: /* confdefs.h.  */
                   16355: _ACEOF
                   16356: cat confdefs.h >>conftest.$ac_ext
                   16357: cat >>conftest.$ac_ext <<_ACEOF
                   16358: /* end confdefs.h.  */
1.25      millert  16359: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16360:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16361: #define $ac_func innocuous_$ac_func
                   16362:
                   16363: /* System header to define __stub macros and hopefully few prototypes,
                   16364:     which can conflict with char $ac_func (); below.
                   16365:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16366:     <limits.h> exists even on freestanding compilers.  */
                   16367:
                   16368: #ifdef __STDC__
                   16369: # include <limits.h>
                   16370: #else
                   16371: # include <assert.h>
                   16372: #endif
                   16373:
                   16374: #undef $ac_func
                   16375:
                   16376: /* Override any gcc2 internal prototype to avoid an error.  */
                   16377: #ifdef __cplusplus
                   16378: extern "C"
                   16379: {
                   16380: #endif
                   16381: /* We use char because int might match the return type of a gcc2
                   16382:    builtin and then its argument prototype would still apply.  */
                   16383: char $ac_func ();
                   16384: /* The GNU C library defines this for functions which it implements
                   16385:     to always fail with ENOSYS.  Some functions are actually named
                   16386:     something starting with __ and the normal name is an alias.  */
                   16387: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16388: choke me
                   16389: #else
                   16390: char (*f) () = $ac_func;
                   16391: #endif
                   16392: #ifdef __cplusplus
                   16393: }
                   16394: #endif
                   16395:
                   16396: int
                   16397: main ()
                   16398: {
                   16399: return f != $ac_func;
                   16400:   ;
                   16401:   return 0;
                   16402: }
1.9       millert  16403: _ACEOF
1.25      millert  16404: rm -f conftest.$ac_objext conftest$ac_exeext
                   16405: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16406:   (eval $ac_link) 2>conftest.er1
1.9       millert  16407:   ac_status=$?
1.16      millert  16408:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  16409:   rm -f conftest.er1
                   16410:   cat conftest.err >&5
1.16      millert  16411:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16412:   (exit $ac_status); } &&
                   16413:         { ac_try='test -z "$ac_c_werror_flag"
                   16414:                         || test ! -s conftest.err'
                   16415:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16416:   (eval $ac_try) 2>&5
                   16417:   ac_status=$?
                   16418:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16419:   (exit $ac_status); }; } &&
                   16420:         { ac_try='test -s conftest$ac_exeext'
                   16421:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16422:   (eval $ac_try) 2>&5
                   16423:   ac_status=$?
                   16424:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16425:   (exit $ac_status); }; }; then
                   16426:   eval "$as_ac_var=yes"
1.1       millert  16427: else
1.9       millert  16428:   echo "$as_me: failed program was:" >&5
1.16      millert  16429: sed 's/^/| /' conftest.$ac_ext >&5
                   16430:
1.25      millert  16431: eval "$as_ac_var=no"
1.1       millert  16432: fi
1.25      millert  16433: rm -f conftest.err conftest.$ac_objext \
                   16434:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  16435: fi
1.25      millert  16436: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16437: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16438: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16      millert  16439:   cat >>confdefs.h <<_ACEOF
1.25      millert  16440: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  16441: _ACEOF
1.9       millert  16442:
1.25      millert  16443: else
                   16444:   case $LIBOBJS in
                   16445:     "closefrom.$ac_objext"   | \
                   16446:   *" closefrom.$ac_objext"   | \
                   16447:     "closefrom.$ac_objext "* | \
                   16448:   *" closefrom.$ac_objext "* ) ;;
                   16449:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" ;;
                   16450: esac
1.1       millert  16451:
1.25      millert  16452:     echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
                   16453: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6
                   16454: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.18      millert  16455:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16456: else
1.25      millert  16457:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  16458: /* confdefs.h.  */
                   16459: _ACEOF
                   16460: cat confdefs.h >>conftest.$ac_ext
                   16461: cat >>conftest.$ac_ext <<_ACEOF
                   16462: /* end confdefs.h.  */
1.25      millert  16463:  #include <limits.h>
                   16464:          #include <fcntl.h>
                   16465:
                   16466: int
                   16467: main ()
                   16468: {
                   16469: #ifndef F_CLOSEM
                   16470:   char *p = (char *) F_CLOSEM;
                   16471: #endif
                   16472:
                   16473:   ;
                   16474:   return 0;
                   16475: }
1.18      millert  16476: _ACEOF
                   16477: rm -f conftest.$ac_objext
                   16478: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  16479:   (eval $ac_compile) 2>conftest.er1
1.18      millert  16480:   ac_status=$?
1.25      millert  16481:   grep -v '^ *+' conftest.er1 >conftest.err
                   16482:   rm -f conftest.er1
                   16483:   cat conftest.err >&5
1.18      millert  16484:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16485:   (exit $ac_status); } &&
1.25      millert  16486:         { ac_try='test -z "$ac_c_werror_flag"
                   16487:                         || test ! -s conftest.err'
1.18      millert  16488:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16489:   (eval $ac_try) 2>&5
                   16490:   ac_status=$?
                   16491:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16492:   (exit $ac_status); }; } &&
                   16493:         { ac_try='test -s conftest.$ac_objext'
                   16494:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16495:   (eval $ac_try) 2>&5
1.18      millert  16496:   ac_status=$?
                   16497:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16498:   (exit $ac_status); }; }; then
                   16499:   ac_cv_have_decl_F_CLOSEM=yes
1.23      millert  16500: else
1.25      millert  16501:   echo "$as_me: failed program was:" >&5
                   16502: sed 's/^/| /' conftest.$ac_ext >&5
                   16503:
                   16504: ac_cv_have_decl_F_CLOSEM=no
1.23      millert  16505: fi
1.25      millert  16506: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  16507: fi
1.25      millert  16508: echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
                   16509: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6
                   16510: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.23      millert  16511:   cat >>confdefs.h <<\_ACEOF
1.25      millert  16512: #define HAVE_FCNTL_CLOSEM 1
1.23      millert  16513: _ACEOF
1.25      millert  16514:
1.23      millert  16515: fi
                   16516:
                   16517:
                   16518: fi
1.25      millert  16519: done
                   16520:
                   16521:
                   16522: for ac_func in mkstemp
                   16523: do
                   16524: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16525: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16526: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   16527: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23      millert  16528:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16529: else
                   16530:   cat >conftest.$ac_ext <<_ACEOF
                   16531: /* confdefs.h.  */
                   16532: _ACEOF
                   16533: cat confdefs.h >>conftest.$ac_ext
                   16534: cat >>conftest.$ac_ext <<_ACEOF
                   16535: /* end confdefs.h.  */
1.25      millert  16536: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16537:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16538: #define $ac_func innocuous_$ac_func
                   16539:
                   16540: /* System header to define __stub macros and hopefully few prototypes,
                   16541:     which can conflict with char $ac_func (); below.
                   16542:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16543:     <limits.h> exists even on freestanding compilers.  */
                   16544:
                   16545: #ifdef __STDC__
                   16546: # include <limits.h>
                   16547: #else
                   16548: # include <assert.h>
                   16549: #endif
                   16550:
                   16551: #undef $ac_func
                   16552:
                   16553: /* Override any gcc2 internal prototype to avoid an error.  */
                   16554: #ifdef __cplusplus
                   16555: extern "C"
                   16556: {
                   16557: #endif
                   16558: /* We use char because int might match the return type of a gcc2
                   16559:    builtin and then its argument prototype would still apply.  */
                   16560: char $ac_func ();
                   16561: /* The GNU C library defines this for functions which it implements
                   16562:     to always fail with ENOSYS.  Some functions are actually named
                   16563:     something starting with __ and the normal name is an alias.  */
                   16564: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16565: choke me
                   16566: #else
                   16567: char (*f) () = $ac_func;
                   16568: #endif
                   16569: #ifdef __cplusplus
                   16570: }
                   16571: #endif
                   16572:
1.23      millert  16573: int
                   16574: main ()
                   16575: {
1.25      millert  16576: return f != $ac_func;
1.23      millert  16577:   ;
                   16578:   return 0;
                   16579: }
                   16580: _ACEOF
1.25      millert  16581: rm -f conftest.$ac_objext conftest$ac_exeext
                   16582: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16583:   (eval $ac_link) 2>conftest.er1
1.23      millert  16584:   ac_status=$?
1.25      millert  16585:   grep -v '^ *+' conftest.er1 >conftest.err
                   16586:   rm -f conftest.er1
                   16587:   cat conftest.err >&5
1.23      millert  16588:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16589:   (exit $ac_status); } &&
1.25      millert  16590:         { ac_try='test -z "$ac_c_werror_flag"
                   16591:                         || test ! -s conftest.err'
                   16592:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16593:   (eval $ac_try) 2>&5
                   16594:   ac_status=$?
                   16595:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16596:   (exit $ac_status); }; } &&
                   16597:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  16598:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16599:   (eval $ac_try) 2>&5
                   16600:   ac_status=$?
                   16601:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16602:   (exit $ac_status); }; }; then
1.25      millert  16603:   eval "$as_ac_var=yes"
1.23      millert  16604: else
                   16605:   echo "$as_me: failed program was:" >&5
                   16606: sed 's/^/| /' conftest.$ac_ext >&5
                   16607:
1.25      millert  16608: eval "$as_ac_var=no"
1.23      millert  16609: fi
1.25      millert  16610: rm -f conftest.err conftest.$ac_objext \
                   16611:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16612: fi
1.25      millert  16613: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16614: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16615: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16616:   cat >>confdefs.h <<_ACEOF
                   16617: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16618: _ACEOF
                   16619:
1.23      millert  16620: else
1.25      millert  16621:   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.23      millert  16622:
                   16623:
1.25      millert  16624: for ac_func in random lrand48
                   16625: do
                   16626: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16627: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16628: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   16629: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.18      millert  16630:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16631: else
1.23      millert  16632:   cat >conftest.$ac_ext <<_ACEOF
                   16633: /* confdefs.h.  */
                   16634: _ACEOF
                   16635: cat confdefs.h >>conftest.$ac_ext
                   16636: cat >>conftest.$ac_ext <<_ACEOF
                   16637: /* end confdefs.h.  */
1.25      millert  16638: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16639:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16640: #define $ac_func innocuous_$ac_func
                   16641:
                   16642: /* System header to define __stub macros and hopefully few prototypes,
                   16643:     which can conflict with char $ac_func (); below.
                   16644:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16645:     <limits.h> exists even on freestanding compilers.  */
                   16646:
                   16647: #ifdef __STDC__
                   16648: # include <limits.h>
                   16649: #else
                   16650: # include <assert.h>
                   16651: #endif
                   16652:
                   16653: #undef $ac_func
                   16654:
                   16655: /* Override any gcc2 internal prototype to avoid an error.  */
                   16656: #ifdef __cplusplus
                   16657: extern "C"
                   16658: {
                   16659: #endif
                   16660: /* We use char because int might match the return type of a gcc2
                   16661:    builtin and then its argument prototype would still apply.  */
                   16662: char $ac_func ();
                   16663: /* The GNU C library defines this for functions which it implements
                   16664:     to always fail with ENOSYS.  Some functions are actually named
                   16665:     something starting with __ and the normal name is an alias.  */
                   16666: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16667: choke me
                   16668: #else
                   16669: char (*f) () = $ac_func;
                   16670: #endif
                   16671: #ifdef __cplusplus
                   16672: }
                   16673: #endif
1.23      millert  16674:
1.25      millert  16675: int
                   16676: main ()
                   16677: {
                   16678: return f != $ac_func;
                   16679:   ;
                   16680:   return 0;
                   16681: }
1.23      millert  16682: _ACEOF
1.25      millert  16683: rm -f conftest.$ac_objext conftest$ac_exeext
                   16684: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16685:   (eval $ac_link) 2>conftest.er1
                   16686:   ac_status=$?
                   16687:   grep -v '^ *+' conftest.er1 >conftest.err
                   16688:   rm -f conftest.er1
                   16689:   cat conftest.err >&5
                   16690:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16691:   (exit $ac_status); } &&
                   16692:         { ac_try='test -z "$ac_c_werror_flag"
                   16693:                         || test ! -s conftest.err'
                   16694:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16695:   (eval $ac_try) 2>&5
                   16696:   ac_status=$?
                   16697:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16698:   (exit $ac_status); }; } &&
                   16699:         { ac_try='test -s conftest$ac_exeext'
                   16700:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16701:   (eval $ac_try) 2>&5
                   16702:   ac_status=$?
                   16703:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16704:   (exit $ac_status); }; }; then
                   16705:   eval "$as_ac_var=yes"
1.23      millert  16706: else
1.25      millert  16707:   echo "$as_me: failed program was:" >&5
                   16708: sed 's/^/| /' conftest.$ac_ext >&5
                   16709:
                   16710: eval "$as_ac_var=no"
                   16711: fi
                   16712: rm -f conftest.err conftest.$ac_objext \
                   16713:       conftest$ac_exeext conftest.$ac_ext
                   16714: fi
                   16715: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16716: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16717: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16718:   cat >>confdefs.h <<_ACEOF
                   16719: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16720: _ACEOF
                   16721:  break
1.23      millert  16722: fi
1.25      millert  16723: done
                   16724:
1.23      millert  16725:
1.18      millert  16726: fi
1.25      millert  16727: done
1.23      millert  16728:
                   16729:
                   16730:
1.18      millert  16731:
1.23      millert  16732:
1.25      millert  16733: for ac_func in snprintf vsnprintf asprintf vasprintf
                   16734: do
                   16735: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16736: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16737: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   16738: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23      millert  16739:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16740: else
                   16741:   cat >conftest.$ac_ext <<_ACEOF
                   16742: /* confdefs.h.  */
1.18      millert  16743: _ACEOF
1.23      millert  16744: cat confdefs.h >>conftest.$ac_ext
                   16745: cat >>conftest.$ac_ext <<_ACEOF
                   16746: /* end confdefs.h.  */
1.25      millert  16747: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16748:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16749: #define $ac_func innocuous_$ac_func
                   16750:
                   16751: /* System header to define __stub macros and hopefully few prototypes,
                   16752:     which can conflict with char $ac_func (); below.
                   16753:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16754:     <limits.h> exists even on freestanding compilers.  */
                   16755:
                   16756: #ifdef __STDC__
                   16757: # include <limits.h>
                   16758: #else
                   16759: # include <assert.h>
                   16760: #endif
                   16761:
                   16762: #undef $ac_func
                   16763:
                   16764: /* Override any gcc2 internal prototype to avoid an error.  */
                   16765: #ifdef __cplusplus
                   16766: extern "C"
                   16767: {
                   16768: #endif
                   16769: /* We use char because int might match the return type of a gcc2
                   16770:    builtin and then its argument prototype would still apply.  */
                   16771: char $ac_func ();
                   16772: /* The GNU C library defines this for functions which it implements
                   16773:     to always fail with ENOSYS.  Some functions are actually named
                   16774:     something starting with __ and the normal name is an alias.  */
                   16775: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   16776: choke me
                   16777: #else
                   16778: char (*f) () = $ac_func;
                   16779: #endif
                   16780: #ifdef __cplusplus
                   16781: }
                   16782: #endif
1.18      millert  16783:
1.23      millert  16784: int
                   16785: main ()
                   16786: {
1.25      millert  16787: return f != $ac_func;
1.23      millert  16788:   ;
                   16789:   return 0;
                   16790: }
                   16791: _ACEOF
1.25      millert  16792: rm -f conftest.$ac_objext conftest$ac_exeext
                   16793: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   16794:   (eval $ac_link) 2>conftest.er1
                   16795:   ac_status=$?
                   16796:   grep -v '^ *+' conftest.er1 >conftest.err
                   16797:   rm -f conftest.er1
                   16798:   cat conftest.err >&5
                   16799:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16800:   (exit $ac_status); } &&
                   16801:         { ac_try='test -z "$ac_c_werror_flag"
                   16802:                         || test ! -s conftest.err'
                   16803:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16804:   (eval $ac_try) 2>&5
1.23      millert  16805:   ac_status=$?
                   16806:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  16807:   (exit $ac_status); }; } &&
                   16808:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  16809:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16810:   (eval $ac_try) 2>&5
                   16811:   ac_status=$?
                   16812:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16813:   (exit $ac_status); }; }; then
1.25      millert  16814:   eval "$as_ac_var=yes"
1.18      millert  16815: else
1.23      millert  16816:   echo "$as_me: failed program was:" >&5
                   16817: sed 's/^/| /' conftest.$ac_ext >&5
                   16818:
1.25      millert  16819: eval "$as_ac_var=no"
1.23      millert  16820: fi
1.25      millert  16821: rm -f conftest.err conftest.$ac_objext \
                   16822:       conftest$ac_exeext conftest.$ac_ext
1.18      millert  16823: fi
1.25      millert  16824: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   16825: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   16826: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16827:   cat >>confdefs.h <<_ACEOF
                   16828: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16829: _ACEOF
                   16830:
                   16831: else
1.25      millert  16832:   NEED_SNPRINTF=1
1.23      millert  16833: fi
1.25      millert  16834: done
1.18      millert  16835:
1.25      millert  16836: if test X"$ac_cv_type_struct_timespec" != X"no"; then
                   16837:     echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
                   16838: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
                   16839: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9       millert  16840:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16841: else
1.9       millert  16842:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16843: /* confdefs.h.  */
                   16844: _ACEOF
                   16845: cat confdefs.h >>conftest.$ac_ext
                   16846: cat >>conftest.$ac_ext <<_ACEOF
                   16847: /* end confdefs.h.  */
1.25      millert  16848: $ac_includes_default
1.9       millert  16849: int
                   16850: main ()
                   16851: {
1.25      millert  16852: static struct stat ac_aggr;
                   16853: if (ac_aggr.st_mtim)
                   16854: return 0;
1.9       millert  16855:   ;
                   16856:   return 0;
                   16857: }
                   16858: _ACEOF
1.23      millert  16859: rm -f conftest.$ac_objext
                   16860: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  16861:   (eval $ac_compile) 2>conftest.er1
1.9       millert  16862:   ac_status=$?
1.25      millert  16863:   grep -v '^ *+' conftest.er1 >conftest.err
                   16864:   rm -f conftest.er1
                   16865:   cat conftest.err >&5
1.16      millert  16866:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  16867:   (exit $ac_status); } &&
1.25      millert  16868:         { ac_try='test -z "$ac_c_werror_flag"
                   16869:                         || test ! -s conftest.err'
                   16870:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16871:   (eval $ac_try) 2>&5
                   16872:   ac_status=$?
                   16873:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16874:   (exit $ac_status); }; } &&
                   16875:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  16876:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  16877:   (eval $ac_try) 2>&5
                   16878:   ac_status=$?
1.16      millert  16879:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  16880:   (exit $ac_status); }; }; then
1.25      millert  16881:   ac_cv_member_struct_stat_st_mtim=yes
1.9       millert  16882: else
                   16883:   echo "$as_me: failed program was:" >&5
1.16      millert  16884: sed 's/^/| /' conftest.$ac_ext >&5
                   16885:
1.25      millert  16886: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16887: /* confdefs.h.  */
                   16888: _ACEOF
                   16889: cat confdefs.h >>conftest.$ac_ext
                   16890: cat >>conftest.$ac_ext <<_ACEOF
                   16891: /* end confdefs.h.  */
1.25      millert  16892: $ac_includes_default
1.23      millert  16893: int
                   16894: main ()
                   16895: {
1.25      millert  16896: static struct stat ac_aggr;
                   16897: if (sizeof ac_aggr.st_mtim)
                   16898: return 0;
1.23      millert  16899:   ;
                   16900:   return 0;
                   16901: }
1.16      millert  16902: _ACEOF
                   16903: rm -f conftest.$ac_objext
                   16904: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  16905:   (eval $ac_compile) 2>conftest.er1
1.16      millert  16906:   ac_status=$?
1.25      millert  16907:   grep -v '^ *+' conftest.er1 >conftest.err
                   16908:   rm -f conftest.er1
                   16909:   cat conftest.err >&5
1.16      millert  16910:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16911:   (exit $ac_status); } &&
1.25      millert  16912:         { ac_try='test -z "$ac_c_werror_flag"
                   16913:                         || test ! -s conftest.err'
                   16914:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16915:   (eval $ac_try) 2>&5
                   16916:   ac_status=$?
                   16917:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16918:   (exit $ac_status); }; } &&
                   16919:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  16920:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16921:   (eval $ac_try) 2>&5
                   16922:   ac_status=$?
                   16923:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16924:   (exit $ac_status); }; }; then
1.25      millert  16925:   ac_cv_member_struct_stat_st_mtim=yes
1.16      millert  16926: else
                   16927:   echo "$as_me: failed program was:" >&5
                   16928: sed 's/^/| /' conftest.$ac_ext >&5
                   16929:
1.25      millert  16930: ac_cv_member_struct_stat_st_mtim=no
                   16931: fi
                   16932: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.16      millert  16933: fi
1.25      millert  16934: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  16935: fi
1.25      millert  16936: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
                   16937: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
                   16938: if test $ac_cv_member_struct_stat_st_mtim = yes; then
1.23      millert  16939:   cat >>confdefs.h <<\_ACEOF
1.25      millert  16940: #define HAVE_ST_MTIM 1
1.23      millert  16941: _ACEOF
                   16942:
                   16943: else
1.25      millert  16944:   echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
                   16945: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
                   16946: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9       millert  16947:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  16948: else
1.23      millert  16949:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16950: /* confdefs.h.  */
                   16951: _ACEOF
                   16952: cat confdefs.h >>conftest.$ac_ext
                   16953: cat >>conftest.$ac_ext <<_ACEOF
                   16954: /* end confdefs.h.  */
1.25      millert  16955: $ac_includes_default
                   16956: int
                   16957: main ()
                   16958: {
                   16959: static struct stat ac_aggr;
                   16960: if (ac_aggr.st_mtimespec)
                   16961: return 0;
                   16962:   ;
                   16963:   return 0;
                   16964: }
1.16      millert  16965: _ACEOF
1.25      millert  16966: rm -f conftest.$ac_objext
                   16967: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   16968:   (eval $ac_compile) 2>conftest.er1
                   16969:   ac_status=$?
                   16970:   grep -v '^ *+' conftest.er1 >conftest.err
                   16971:   rm -f conftest.er1
                   16972:   cat conftest.err >&5
                   16973:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16974:   (exit $ac_status); } &&
                   16975:         { ac_try='test -z "$ac_c_werror_flag"
                   16976:                         || test ! -s conftest.err'
                   16977:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16978:   (eval $ac_try) 2>&5
                   16979:   ac_status=$?
                   16980:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16981:   (exit $ac_status); }; } &&
                   16982:         { ac_try='test -s conftest.$ac_objext'
                   16983:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   16984:   (eval $ac_try) 2>&5
                   16985:   ac_status=$?
                   16986:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16987:   (exit $ac_status); }; }; then
                   16988:   ac_cv_member_struct_stat_st_mtimespec=yes
1.9       millert  16989: else
1.25      millert  16990:   echo "$as_me: failed program was:" >&5
                   16991: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  16992:
1.25      millert  16993: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16994: /* confdefs.h.  */
                   16995: _ACEOF
                   16996: cat confdefs.h >>conftest.$ac_ext
                   16997: cat >>conftest.$ac_ext <<_ACEOF
                   16998: /* end confdefs.h.  */
1.25      millert  16999: $ac_includes_default
                   17000: int
                   17001: main ()
                   17002: {
                   17003: static struct stat ac_aggr;
                   17004: if (sizeof ac_aggr.st_mtimespec)
                   17005: return 0;
                   17006:   ;
                   17007:   return 0;
                   17008: }
1.9       millert  17009: _ACEOF
1.25      millert  17010: rm -f conftest.$ac_objext
                   17011: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   17012:   (eval $ac_compile) 2>conftest.er1
                   17013:   ac_status=$?
                   17014:   grep -v '^ *+' conftest.er1 >conftest.err
                   17015:   rm -f conftest.er1
                   17016:   cat conftest.err >&5
                   17017:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17018:   (exit $ac_status); } &&
                   17019:         { ac_try='test -z "$ac_c_werror_flag"
                   17020:                         || test ! -s conftest.err'
                   17021:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17022:   (eval $ac_try) 2>&5
                   17023:   ac_status=$?
                   17024:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17025:   (exit $ac_status); }; } &&
                   17026:         { ac_try='test -s conftest.$ac_objext'
                   17027:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17028:   (eval $ac_try) 2>&5
                   17029:   ac_status=$?
                   17030:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17031:   (exit $ac_status); }; }; then
                   17032:   ac_cv_member_struct_stat_st_mtimespec=yes
1.1       millert  17033: else
1.25      millert  17034:   echo "$as_me: failed program was:" >&5
                   17035: sed 's/^/| /' conftest.$ac_ext >&5
                   17036:
                   17037: ac_cv_member_struct_stat_st_mtimespec=no
1.23      millert  17038: fi
1.25      millert  17039: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  17040: fi
1.25      millert  17041: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  17042: fi
1.25      millert  17043: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
                   17044: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
                   17045: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
                   17046:   cat >>confdefs.h <<\_ACEOF
                   17047: #define HAVE_ST_MTIMESPEC 1
1.23      millert  17048: _ACEOF
1.16      millert  17049:
                   17050: fi
1.9       millert  17051:
                   17052: fi
1.16      millert  17053:
1.25      millert  17054:     echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
                   17055: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
                   17056:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17057: /* confdefs.h.  */
                   17058: _ACEOF
                   17059: cat confdefs.h >>conftest.$ac_ext
                   17060: cat >>conftest.$ac_ext <<_ACEOF
                   17061: /* end confdefs.h.  */
1.25      millert  17062: #include <sys/types.h>
                   17063: #include <sys/time.h>
1.23      millert  17064: int
                   17065: main ()
                   17066: {
1.25      millert  17067: struct timespec ts1, ts2;
                   17068: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
                   17069: #ifndef timespecsub
                   17070: #error missing timespecsub
                   17071: #endif
                   17072: timespecsub(&ts1, &ts2);
1.23      millert  17073:   ;
                   17074:   return 0;
                   17075: }
1.16      millert  17076: _ACEOF
                   17077: rm -f conftest.$ac_objext
                   17078: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  17079:   (eval $ac_compile) 2>conftest.er1
1.16      millert  17080:   ac_status=$?
1.25      millert  17081:   grep -v '^ *+' conftest.er1 >conftest.err
                   17082:   rm -f conftest.er1
                   17083:   cat conftest.err >&5
1.16      millert  17084:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17085:   (exit $ac_status); } &&
1.25      millert  17086:         { ac_try='test -z "$ac_c_werror_flag"
                   17087:                         || test ! -s conftest.err'
                   17088:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17089:   (eval $ac_try) 2>&5
                   17090:   ac_status=$?
                   17091:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17092:   (exit $ac_status); }; } &&
                   17093:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  17094:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17095:   (eval $ac_try) 2>&5
                   17096:   ac_status=$?
                   17097:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17098:   (exit $ac_status); }; }; then
1.25      millert  17099:   cat >>confdefs.h <<\_ACEOF
                   17100: #define HAVE_TIMESPECSUB2 1
1.23      millert  17101: _ACEOF
                   17102:
1.25      millert  17103:     echo "$as_me:$LINENO: result: yes" >&5
1.23      millert  17104: echo "${ECHO_T}yes" >&6
1.1       millert  17105: else
1.16      millert  17106:   echo "$as_me: failed program was:" >&5
                   17107: sed 's/^/| /' conftest.$ac_ext >&5
                   17108:
1.23      millert  17109: echo "$as_me:$LINENO: result: no" >&5
                   17110: echo "${ECHO_T}no" >&6
1.16      millert  17111: fi
1.25      millert  17112: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   17113: fi
                   17114: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17115: /* confdefs.h.  */
                   17116: _ACEOF
                   17117: cat confdefs.h >>conftest.$ac_ext
                   17118: cat >>conftest.$ac_ext <<_ACEOF
                   17119: /* end confdefs.h.  */
1.23      millert  17120: #include <sys/types.h>
1.25      millert  17121: #include <$ac_header_dirent>
                   17122: int
                   17123: main ()
                   17124: {
                   17125: DIR d; (void)dirfd(&d);
                   17126:   ;
                   17127:   return 0;
1.23      millert  17128: }
1.9       millert  17129: _ACEOF
1.25      millert  17130: rm -f conftest.$ac_objext conftest$ac_exeext
1.23      millert  17131: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17132:   (eval $ac_link) 2>conftest.er1
                   17133:   ac_status=$?
                   17134:   grep -v '^ *+' conftest.er1 >conftest.err
                   17135:   rm -f conftest.er1
                   17136:   cat conftest.err >&5
                   17137:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17138:   (exit $ac_status); } &&
                   17139:         { ac_try='test -z "$ac_c_werror_flag"
                   17140:                         || test ! -s conftest.err'
                   17141:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17142:   (eval $ac_try) 2>&5
1.23      millert  17143:   ac_status=$?
                   17144:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  17145:   (exit $ac_status); }; } &&
                   17146:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  17147:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17148:   (eval $ac_try) 2>&5
1.9       millert  17149:   ac_status=$?
1.16      millert  17150:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  17151:   (exit $ac_status); }; }; then
1.25      millert  17152:   cat >>confdefs.h <<\_ACEOF
                   17153: #define HAVE_DIRFD 1
                   17154: _ACEOF
                   17155:
1.9       millert  17156: else
1.25      millert  17157:   echo "$as_me: failed program was:" >&5
1.16      millert  17158: sed 's/^/| /' conftest.$ac_ext >&5
                   17159:
1.23      millert  17160: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17161: /* confdefs.h.  */
                   17162: _ACEOF
                   17163: cat confdefs.h >>conftest.$ac_ext
                   17164: cat >>conftest.$ac_ext <<_ACEOF
                   17165: /* end confdefs.h.  */
1.25      millert  17166: #include <sys/types.h>
                   17167: #include <$ac_header_dirent>
1.9       millert  17168: int
                   17169: main ()
                   17170: {
1.26    ! millert  17171: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9       millert  17172:   ;
                   17173:   return 0;
                   17174: }
                   17175: _ACEOF
1.23      millert  17176: rm -f conftest.$ac_objext conftest$ac_exeext
                   17177: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17178:   (eval $ac_link) 2>conftest.er1
1.9       millert  17179:   ac_status=$?
1.25      millert  17180:   grep -v '^ *+' conftest.er1 >conftest.err
                   17181:   rm -f conftest.er1
                   17182:   cat conftest.err >&5
1.16      millert  17183:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17184:   (exit $ac_status); } &&
1.25      millert  17185:         { ac_try='test -z "$ac_c_werror_flag"
                   17186:                         || test ! -s conftest.err'
                   17187:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17188:   (eval $ac_try) 2>&5
                   17189:   ac_status=$?
                   17190:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17191:   (exit $ac_status); }; } &&
                   17192:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17193:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17194:   (eval $ac_try) 2>&5
                   17195:   ac_status=$?
1.16      millert  17196:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17197:   (exit $ac_status); }; }; then
1.25      millert  17198:   cat >>confdefs.h <<\_ACEOF
                   17199: #define HAVE_DD_FD 1
                   17200: _ACEOF
                   17201:
                   17202: else
                   17203:   echo "$as_me: failed program was:" >&5
                   17204: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  17205:
1.25      millert  17206: fi
                   17207: rm -f conftest.err conftest.$ac_objext \
                   17208:       conftest$ac_exeext conftest.$ac_ext
                   17209: fi
                   17210: rm -f conftest.err conftest.$ac_objext \
                   17211:       conftest$ac_exeext conftest.$ac_ext
                   17212: if test -n "$NEED_SNPRINTF"; then
                   17213:     case $LIBOBJS in
                   17214:     "snprintf.$ac_objext"   | \
                   17215:   *" snprintf.$ac_objext"   | \
                   17216:     "snprintf.$ac_objext "* | \
                   17217:   *" snprintf.$ac_objext "* ) ;;
                   17218:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
                   17219: esac
1.9       millert  17220:
1.25      millert  17221: fi
                   17222: if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
                   17223:     echo "$as_me:$LINENO: checking for crypt" >&5
                   17224: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
                   17225: if test "${ac_cv_func_crypt+set}" = set; then
                   17226:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  17227: else
1.9       millert  17228:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17229: /* confdefs.h.  */
                   17230: _ACEOF
                   17231: cat confdefs.h >>conftest.$ac_ext
                   17232: cat >>conftest.$ac_ext <<_ACEOF
1.25      millert  17233: /* end confdefs.h.  */
                   17234: /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
                   17235:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17236: #define crypt innocuous_crypt
                   17237:
                   17238: /* System header to define __stub macros and hopefully few prototypes,
                   17239:     which can conflict with char crypt (); below.
                   17240:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17241:     <limits.h> exists even on freestanding compilers.  */
                   17242:
                   17243: #ifdef __STDC__
                   17244: # include <limits.h>
                   17245: #else
                   17246: # include <assert.h>
                   17247: #endif
                   17248:
                   17249: #undef crypt
                   17250:
                   17251: /* Override any gcc2 internal prototype to avoid an error.  */
                   17252: #ifdef __cplusplus
                   17253: extern "C"
                   17254: {
                   17255: #endif
                   17256: /* We use char because int might match the return type of a gcc2
                   17257:    builtin and then its argument prototype would still apply.  */
                   17258: char crypt ();
                   17259: /* The GNU C library defines this for functions which it implements
                   17260:     to always fail with ENOSYS.  Some functions are actually named
                   17261:     something starting with __ and the normal name is an alias.  */
                   17262: #if defined (__stub_crypt) || defined (__stub___crypt)
                   17263: choke me
                   17264: #else
                   17265: char (*f) () = crypt;
                   17266: #endif
                   17267: #ifdef __cplusplus
                   17268: }
                   17269: #endif
                   17270:
                   17271: int
                   17272: main ()
                   17273: {
                   17274: return f != crypt;
                   17275:   ;
                   17276:   return 0;
                   17277: }
                   17278: _ACEOF
                   17279: rm -f conftest.$ac_objext conftest$ac_exeext
                   17280: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   17281:   (eval $ac_link) 2>conftest.er1
                   17282:   ac_status=$?
                   17283:   grep -v '^ *+' conftest.er1 >conftest.err
                   17284:   rm -f conftest.er1
                   17285:   cat conftest.err >&5
                   17286:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17287:   (exit $ac_status); } &&
                   17288:         { ac_try='test -z "$ac_c_werror_flag"
                   17289:                         || test ! -s conftest.err'
                   17290:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17291:   (eval $ac_try) 2>&5
1.23      millert  17292:   ac_status=$?
                   17293:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  17294:   (exit $ac_status); }; } &&
                   17295:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  17296:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17297:   (eval $ac_try) 2>&5
                   17298:   ac_status=$?
                   17299:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17300:   (exit $ac_status); }; }; then
1.25      millert  17301:   ac_cv_func_crypt=yes
1.23      millert  17302: else
1.25      millert  17303:   echo "$as_me: failed program was:" >&5
1.23      millert  17304: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17305:
1.25      millert  17306: ac_cv_func_crypt=no
1.23      millert  17307: fi
1.25      millert  17308: rm -f conftest.err conftest.$ac_objext \
                   17309:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17310: fi
1.25      millert  17311: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
                   17312: echo "${ECHO_T}$ac_cv_func_crypt" >&6
                   17313: if test $ac_cv_func_crypt = yes; then
                   17314:   :
1.23      millert  17315: else
1.25      millert  17316:   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
                   17317: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
                   17318: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.9       millert  17319:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17320: else
1.25      millert  17321:   ac_check_lib_save_LIBS=$LIBS
                   17322: LIBS="-lcrypt  $LIBS"
                   17323: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17324: /* confdefs.h.  */
                   17325: _ACEOF
                   17326: cat confdefs.h >>conftest.$ac_ext
                   17327: cat >>conftest.$ac_ext <<_ACEOF
                   17328: /* end confdefs.h.  */
1.25      millert  17329:
                   17330: /* Override any gcc2 internal prototype to avoid an error.  */
                   17331: #ifdef __cplusplus
                   17332: extern "C"
                   17333: #endif
                   17334: /* We use char because int might match the return type of a gcc2
                   17335:    builtin and then its argument prototype would still apply.  */
                   17336: char crypt ();
                   17337: int
                   17338: main ()
                   17339: {
                   17340: crypt ();
                   17341:   ;
                   17342:   return 0;
1.9       millert  17343: }
                   17344: _ACEOF
1.25      millert  17345: rm -f conftest.$ac_objext conftest$ac_exeext
1.23      millert  17346: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17347:   (eval $ac_link) 2>conftest.er1
                   17348:   ac_status=$?
                   17349:   grep -v '^ *+' conftest.er1 >conftest.err
                   17350:   rm -f conftest.er1
                   17351:   cat conftest.err >&5
                   17352:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17353:   (exit $ac_status); } &&
                   17354:         { ac_try='test -z "$ac_c_werror_flag"
                   17355:                         || test ! -s conftest.err'
                   17356:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17357:   (eval $ac_try) 2>&5
1.9       millert  17358:   ac_status=$?
1.16      millert  17359:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  17360:   (exit $ac_status); }; } &&
                   17361:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17362:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17363:   (eval $ac_try) 2>&5
                   17364:   ac_status=$?
1.16      millert  17365:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17366:   (exit $ac_status); }; }; then
1.25      millert  17367:   ac_cv_lib_crypt_crypt=yes
1.7       millert  17368: else
1.25      millert  17369:   echo "$as_me: failed program was:" >&5
1.16      millert  17370: sed 's/^/| /' conftest.$ac_ext >&5
                   17371:
1.25      millert  17372: ac_cv_lib_crypt_crypt=no
1.23      millert  17373: fi
1.25      millert  17374: rm -f conftest.err conftest.$ac_objext \
                   17375:       conftest$ac_exeext conftest.$ac_ext
                   17376: LIBS=$ac_check_lib_save_LIBS
1.7       millert  17377: fi
1.25      millert  17378: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
                   17379: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
                   17380: if test $ac_cv_lib_crypt_crypt = yes; then
                   17381:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   17382: else
                   17383:   echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
                   17384: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
                   17385: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
1.9       millert  17386:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17387: else
1.25      millert  17388:   ac_check_lib_save_LIBS=$LIBS
                   17389: LIBS="-lcrypt_d  $LIBS"
                   17390: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17391: /* confdefs.h.  */
                   17392: _ACEOF
                   17393: cat confdefs.h >>conftest.$ac_ext
                   17394: cat >>conftest.$ac_ext <<_ACEOF
                   17395: /* end confdefs.h.  */
1.25      millert  17396:
                   17397: /* Override any gcc2 internal prototype to avoid an error.  */
1.23      millert  17398: #ifdef __cplusplus
1.25      millert  17399: extern "C"
1.23      millert  17400: #endif
1.25      millert  17401: /* We use char because int might match the return type of a gcc2
                   17402:    builtin and then its argument prototype would still apply.  */
                   17403: char crypt ();
1.9       millert  17404: int
                   17405: main ()
                   17406: {
1.25      millert  17407: crypt ();
1.9       millert  17408:   ;
                   17409:   return 0;
                   17410: }
                   17411: _ACEOF
1.25      millert  17412: rm -f conftest.$ac_objext conftest$ac_exeext
                   17413: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   17414:   (eval $ac_link) 2>conftest.er1
1.9       millert  17415:   ac_status=$?
1.25      millert  17416:   grep -v '^ *+' conftest.er1 >conftest.err
                   17417:   rm -f conftest.er1
                   17418:   cat conftest.err >&5
1.16      millert  17419:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17420:   (exit $ac_status); } &&
1.25      millert  17421:         { ac_try='test -z "$ac_c_werror_flag"
                   17422:                         || test ! -s conftest.err'
                   17423:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17424:   (eval $ac_try) 2>&5
                   17425:   ac_status=$?
                   17426:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17427:   (exit $ac_status); }; } &&
                   17428:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17429:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17430:   (eval $ac_try) 2>&5
                   17431:   ac_status=$?
1.16      millert  17432:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17433:   (exit $ac_status); }; }; then
1.25      millert  17434:   ac_cv_lib_crypt_d_crypt=yes
1.1       millert  17435: else
1.9       millert  17436:   echo "$as_me: failed program was:" >&5
1.16      millert  17437: sed 's/^/| /' conftest.$ac_ext >&5
                   17438:
1.25      millert  17439: ac_cv_lib_crypt_d_crypt=no
1.1       millert  17440: fi
1.25      millert  17441: rm -f conftest.err conftest.$ac_objext \
                   17442:       conftest$ac_exeext conftest.$ac_ext
                   17443: LIBS=$ac_check_lib_save_LIBS
1.1       millert  17444: fi
1.25      millert  17445: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
                   17446: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
                   17447: if test $ac_cv_lib_crypt_d_crypt = yes; then
                   17448:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   17449: else
                   17450:   echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
                   17451: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
                   17452: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
1.9       millert  17453:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17454: else
1.25      millert  17455:   ac_check_lib_save_LIBS=$LIBS
                   17456: LIBS="-lufc  $LIBS"
                   17457: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17458: /* confdefs.h.  */
                   17459: _ACEOF
                   17460: cat confdefs.h >>conftest.$ac_ext
                   17461: cat >>conftest.$ac_ext <<_ACEOF
                   17462: /* end confdefs.h.  */
1.25      millert  17463:
1.23      millert  17464: /* Override any gcc2 internal prototype to avoid an error.  */
                   17465: #ifdef __cplusplus
                   17466: extern "C"
                   17467: #endif
                   17468: /* We use char because int might match the return type of a gcc2
                   17469:    builtin and then its argument prototype would still apply.  */
1.25      millert  17470: char crypt ();
1.23      millert  17471: int
                   17472: main ()
                   17473: {
1.25      millert  17474: crypt ();
1.23      millert  17475:   ;
                   17476:   return 0;
                   17477: }
1.9       millert  17478: _ACEOF
1.23      millert  17479: rm -f conftest.$ac_objext conftest$ac_exeext
                   17480: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17481:   (eval $ac_link) 2>conftest.er1
1.23      millert  17482:   ac_status=$?
1.25      millert  17483:   grep -v '^ *+' conftest.er1 >conftest.err
                   17484:   rm -f conftest.er1
                   17485:   cat conftest.err >&5
1.23      millert  17486:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17487:   (exit $ac_status); } &&
1.25      millert  17488:         { ac_try='test -z "$ac_c_werror_flag"
                   17489:                         || test ! -s conftest.err'
                   17490:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17491:   (eval $ac_try) 2>&5
                   17492:   ac_status=$?
                   17493:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17494:   (exit $ac_status); }; } &&
                   17495:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  17496:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17497:   (eval $ac_try) 2>&5
                   17498:   ac_status=$?
                   17499:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17500:   (exit $ac_status); }; }; then
1.25      millert  17501:   ac_cv_lib_ufc_crypt=yes
1.1       millert  17502: else
1.23      millert  17503:   echo "$as_me: failed program was:" >&5
                   17504: sed 's/^/| /' conftest.$ac_ext >&5
                   17505:
1.25      millert  17506: ac_cv_lib_ufc_crypt=no
                   17507: fi
                   17508: rm -f conftest.err conftest.$ac_objext \
                   17509:       conftest$ac_exeext conftest.$ac_ext
                   17510: LIBS=$ac_check_lib_save_LIBS
                   17511: fi
                   17512: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
                   17513: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
                   17514: if test $ac_cv_lib_ufc_crypt = yes; then
                   17515:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
1.1       millert  17516: fi
1.25      millert  17517:
1.1       millert  17518: fi
                   17519:
                   17520: fi
                   17521:
1.25      millert  17522: fi
1.23      millert  17523:
1.25      millert  17524: fi
                   17525: echo "$as_me:$LINENO: checking for socket" >&5
                   17526: echo $ECHO_N "checking for socket... $ECHO_C" >&6
                   17527: if test "${ac_cv_func_socket+set}" = set; then
1.9       millert  17528:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17529: else
1.9       millert  17530:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17531: /* confdefs.h.  */
                   17532: _ACEOF
                   17533: cat confdefs.h >>conftest.$ac_ext
                   17534: cat >>conftest.$ac_ext <<_ACEOF
                   17535: /* end confdefs.h.  */
1.25      millert  17536: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
                   17537:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17538: #define socket innocuous_socket
                   17539:
1.23      millert  17540: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  17541:     which can conflict with char socket (); below.
1.23      millert  17542:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17543:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17544:
1.23      millert  17545: #ifdef __STDC__
                   17546: # include <limits.h>
                   17547: #else
                   17548: # include <assert.h>
                   17549: #endif
1.25      millert  17550:
                   17551: #undef socket
                   17552:
1.23      millert  17553: /* Override any gcc2 internal prototype to avoid an error.  */
                   17554: #ifdef __cplusplus
                   17555: extern "C"
                   17556: {
                   17557: #endif
                   17558: /* We use char because int might match the return type of a gcc2
                   17559:    builtin and then its argument prototype would still apply.  */
1.25      millert  17560: char socket ();
1.23      millert  17561: /* The GNU C library defines this for functions which it implements
                   17562:     to always fail with ENOSYS.  Some functions are actually named
                   17563:     something starting with __ and the normal name is an alias.  */
1.25      millert  17564: #if defined (__stub_socket) || defined (__stub___socket)
1.23      millert  17565: choke me
                   17566: #else
1.25      millert  17567: char (*f) () = socket;
1.1       millert  17568: #endif
1.23      millert  17569: #ifdef __cplusplus
                   17570: }
1.1       millert  17571: #endif
                   17572:
1.9       millert  17573: int
                   17574: main ()
                   17575: {
1.25      millert  17576: return f != socket;
1.9       millert  17577:   ;
                   17578:   return 0;
                   17579: }
                   17580: _ACEOF
1.23      millert  17581: rm -f conftest.$ac_objext conftest$ac_exeext
                   17582: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17583:   (eval $ac_link) 2>conftest.er1
1.9       millert  17584:   ac_status=$?
1.25      millert  17585:   grep -v '^ *+' conftest.er1 >conftest.err
                   17586:   rm -f conftest.er1
                   17587:   cat conftest.err >&5
1.16      millert  17588:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17589:   (exit $ac_status); } &&
1.25      millert  17590:         { ac_try='test -z "$ac_c_werror_flag"
                   17591:                         || test ! -s conftest.err'
                   17592:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17593:   (eval $ac_try) 2>&5
                   17594:   ac_status=$?
                   17595:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17596:   (exit $ac_status); }; } &&
                   17597:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17598:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17599:   (eval $ac_try) 2>&5
                   17600:   ac_status=$?
1.16      millert  17601:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17602:   (exit $ac_status); }; }; then
1.25      millert  17603:   ac_cv_func_socket=yes
1.23      millert  17604: else
                   17605:   echo "$as_me: failed program was:" >&5
                   17606: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17607:
1.25      millert  17608: ac_cv_func_socket=no
1.23      millert  17609: fi
1.25      millert  17610: rm -f conftest.err conftest.$ac_objext \
                   17611:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17612: fi
1.25      millert  17613: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   17614: echo "${ECHO_T}$ac_cv_func_socket" >&6
                   17615: if test $ac_cv_func_socket = yes; then
                   17616:   :
1.1       millert  17617: else
1.25      millert  17618:   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   17619: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   17620: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.9       millert  17621:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17622: else
1.25      millert  17623:   ac_check_lib_save_LIBS=$LIBS
                   17624: LIBS="-lsocket  $LIBS"
                   17625: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17626: /* confdefs.h.  */
                   17627: _ACEOF
                   17628: cat confdefs.h >>conftest.$ac_ext
1.23      millert  17629: cat >>conftest.$ac_ext <<_ACEOF
                   17630: /* end confdefs.h.  */
1.25      millert  17631:
1.23      millert  17632: /* Override any gcc2 internal prototype to avoid an error.  */
                   17633: #ifdef __cplusplus
                   17634: extern "C"
                   17635: #endif
                   17636: /* We use char because int might match the return type of a gcc2
                   17637:    builtin and then its argument prototype would still apply.  */
1.25      millert  17638: char socket ();
1.23      millert  17639: int
                   17640: main ()
                   17641: {
1.25      millert  17642: socket ();
1.23      millert  17643:   ;
                   17644:   return 0;
1.1       millert  17645: }
1.9       millert  17646: _ACEOF
1.23      millert  17647: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  17648: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17649:   (eval $ac_link) 2>conftest.er1
1.9       millert  17650:   ac_status=$?
1.25      millert  17651:   grep -v '^ *+' conftest.er1 >conftest.err
                   17652:   rm -f conftest.er1
                   17653:   cat conftest.err >&5
1.16      millert  17654:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  17655:   (exit $ac_status); } &&
1.25      millert  17656:         { ac_try='test -z "$ac_c_werror_flag"
                   17657:                         || test ! -s conftest.err'
                   17658:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17659:   (eval $ac_try) 2>&5
                   17660:   ac_status=$?
                   17661:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17662:   (exit $ac_status); }; } &&
                   17663:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17664:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17665:   (eval $ac_try) 2>&5
                   17666:   ac_status=$?
1.16      millert  17667:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17668:   (exit $ac_status); }; }; then
1.25      millert  17669:   ac_cv_lib_socket_socket=yes
1.1       millert  17670: else
1.23      millert  17671:   echo "$as_me: failed program was:" >&5
1.16      millert  17672: sed 's/^/| /' conftest.$ac_ext >&5
                   17673:
1.25      millert  17674: ac_cv_lib_socket_socket=no
1.23      millert  17675: fi
1.25      millert  17676: rm -f conftest.err conftest.$ac_objext \
                   17677:       conftest$ac_exeext conftest.$ac_ext
                   17678: LIBS=$ac_check_lib_save_LIBS
1.1       millert  17679: fi
1.25      millert  17680: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   17681: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
                   17682: if test $ac_cv_lib_socket_socket = yes; then
                   17683:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   17684: else
                   17685:   echo "$as_me:$LINENO: checking for socket in -linet" >&5
                   17686: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
                   17687: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.23      millert  17688:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17689: else
1.25      millert  17690:   ac_check_lib_save_LIBS=$LIBS
                   17691: LIBS="-linet  $LIBS"
                   17692: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17693: /* confdefs.h.  */
                   17694: _ACEOF
                   17695: cat confdefs.h >>conftest.$ac_ext
                   17696: cat >>conftest.$ac_ext <<_ACEOF
                   17697: /* end confdefs.h.  */
1.25      millert  17698:
1.23      millert  17699: /* Override any gcc2 internal prototype to avoid an error.  */
                   17700: #ifdef __cplusplus
                   17701: extern "C"
                   17702: #endif
                   17703: /* We use char because int might match the return type of a gcc2
                   17704:    builtin and then its argument prototype would still apply.  */
1.25      millert  17705: char socket ();
1.9       millert  17706: int
                   17707: main ()
                   17708: {
1.25      millert  17709: socket ();
1.9       millert  17710:   ;
                   17711:   return 0;
                   17712: }
                   17713: _ACEOF
                   17714: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  17715: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17716:   (eval $ac_link) 2>conftest.er1
1.9       millert  17717:   ac_status=$?
1.25      millert  17718:   grep -v '^ *+' conftest.er1 >conftest.err
                   17719:   rm -f conftest.er1
                   17720:   cat conftest.err >&5
1.16      millert  17721:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17722:   (exit $ac_status); } &&
1.25      millert  17723:         { ac_try='test -z "$ac_c_werror_flag"
                   17724:                         || test ! -s conftest.err'
                   17725:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17726:   (eval $ac_try) 2>&5
                   17727:   ac_status=$?
                   17728:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17729:   (exit $ac_status); }; } &&
                   17730:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17731:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17732:   (eval $ac_try) 2>&5
                   17733:   ac_status=$?
1.16      millert  17734:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17735:   (exit $ac_status); }; }; then
1.25      millert  17736:   ac_cv_lib_inet_socket=yes
1.23      millert  17737: else
                   17738:   echo "$as_me: failed program was:" >&5
                   17739: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  17740:
1.25      millert  17741: ac_cv_lib_inet_socket=no
1.23      millert  17742: fi
1.25      millert  17743: rm -f conftest.err conftest.$ac_objext \
                   17744:       conftest$ac_exeext conftest.$ac_ext
                   17745: LIBS=$ac_check_lib_save_LIBS
1.23      millert  17746: fi
1.25      millert  17747: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
                   17748: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
                   17749: if test $ac_cv_lib_inet_socket = yes; then
                   17750:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   17751: else
                   17752:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
                   17753: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
                   17754: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   17755: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   17756: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23      millert  17757:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17758: else
1.25      millert  17759:   ac_check_lib_save_LIBS=$LIBS
                   17760: LIBS="-lsocket -lnsl $LIBS"
                   17761: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17762: /* confdefs.h.  */
                   17763: _ACEOF
                   17764: cat confdefs.h >>conftest.$ac_ext
                   17765: cat >>conftest.$ac_ext <<_ACEOF
                   17766: /* end confdefs.h.  */
1.25      millert  17767:
1.23      millert  17768: /* Override any gcc2 internal prototype to avoid an error.  */
                   17769: #ifdef __cplusplus
                   17770: extern "C"
                   17771: #endif
                   17772: /* We use char because int might match the return type of a gcc2
                   17773:    builtin and then its argument prototype would still apply.  */
1.25      millert  17774: char socket ();
1.23      millert  17775: int
                   17776: main ()
                   17777: {
1.25      millert  17778: socket ();
1.23      millert  17779:   ;
                   17780:   return 0;
                   17781: }
1.9       millert  17782: _ACEOF
1.23      millert  17783: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  17784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17785:   (eval $ac_link) 2>conftest.er1
1.9       millert  17786:   ac_status=$?
1.25      millert  17787:   grep -v '^ *+' conftest.er1 >conftest.err
                   17788:   rm -f conftest.er1
                   17789:   cat conftest.err >&5
1.16      millert  17790:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  17791:   (exit $ac_status); } &&
1.25      millert  17792:         { ac_try='test -z "$ac_c_werror_flag"
                   17793:                         || test ! -s conftest.err'
                   17794:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17795:   (eval $ac_try) 2>&5
                   17796:   ac_status=$?
                   17797:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17798:   (exit $ac_status); }; } &&
                   17799:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17800:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17801:   (eval $ac_try) 2>&5
                   17802:   ac_status=$?
1.16      millert  17803:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17804:   (exit $ac_status); }; }; then
1.25      millert  17805:   ac_cv_lib_socket_socket_lnsl=yes
1.1       millert  17806: else
1.23      millert  17807:   echo "$as_me: failed program was:" >&5
1.16      millert  17808: sed 's/^/| /' conftest.$ac_ext >&5
                   17809:
1.25      millert  17810: ac_cv_lib_socket_socket_lnsl=no
                   17811: fi
                   17812: rm -f conftest.err conftest.$ac_objext \
                   17813:       conftest$ac_exeext conftest.$ac_ext
                   17814: LIBS=$ac_check_lib_save_LIBS
                   17815: fi
                   17816: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
                   17817: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
                   17818: if test $ac_cv_lib_socket_socket_lnsl = yes; then
                   17819:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   17820: fi
                   17821:
                   17822: fi
                   17823:
1.9       millert  17824: fi
1.25      millert  17825:
1.9       millert  17826: fi
1.16      millert  17827:
1.25      millert  17828: echo "$as_me:$LINENO: checking for inet_addr" >&5
                   17829: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
                   17830: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9       millert  17831:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17832: else
1.9       millert  17833:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17834: /* confdefs.h.  */
                   17835: _ACEOF
                   17836: cat confdefs.h >>conftest.$ac_ext
                   17837: cat >>conftest.$ac_ext <<_ACEOF
                   17838: /* end confdefs.h.  */
1.25      millert  17839: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
                   17840:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17841: #define inet_addr innocuous_inet_addr
                   17842:
1.23      millert  17843: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  17844:     which can conflict with char inet_addr (); below.
1.23      millert  17845:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17846:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17847:
1.23      millert  17848: #ifdef __STDC__
                   17849: # include <limits.h>
                   17850: #else
                   17851: # include <assert.h>
                   17852: #endif
1.25      millert  17853:
                   17854: #undef inet_addr
                   17855:
1.23      millert  17856: /* Override any gcc2 internal prototype to avoid an error.  */
                   17857: #ifdef __cplusplus
                   17858: extern "C"
                   17859: {
                   17860: #endif
                   17861: /* We use char because int might match the return type of a gcc2
                   17862:    builtin and then its argument prototype would still apply.  */
1.25      millert  17863: char inet_addr ();
1.23      millert  17864: /* The GNU C library defines this for functions which it implements
                   17865:     to always fail with ENOSYS.  Some functions are actually named
                   17866:     something starting with __ and the normal name is an alias.  */
1.25      millert  17867: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
1.23      millert  17868: choke me
                   17869: #else
1.25      millert  17870: char (*f) () = inet_addr;
1.23      millert  17871: #endif
                   17872: #ifdef __cplusplus
                   17873: }
                   17874: #endif
                   17875:
                   17876: int
                   17877: main ()
                   17878: {
1.25      millert  17879: return f != inet_addr;
1.23      millert  17880:   ;
                   17881:   return 0;
1.1       millert  17882: }
1.9       millert  17883: _ACEOF
1.23      millert  17884: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  17885: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17886:   (eval $ac_link) 2>conftest.er1
1.9       millert  17887:   ac_status=$?
1.25      millert  17888:   grep -v '^ *+' conftest.er1 >conftest.err
                   17889:   rm -f conftest.er1
                   17890:   cat conftest.err >&5
1.16      millert  17891:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  17892:   (exit $ac_status); } &&
1.25      millert  17893:         { ac_try='test -z "$ac_c_werror_flag"
                   17894:                         || test ! -s conftest.err'
                   17895:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17896:   (eval $ac_try) 2>&5
                   17897:   ac_status=$?
                   17898:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17899:   (exit $ac_status); }; } &&
                   17900:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17901:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  17902:   (eval $ac_try) 2>&5
                   17903:   ac_status=$?
1.16      millert  17904:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  17905:   (exit $ac_status); }; }; then
1.25      millert  17906:   ac_cv_func_inet_addr=yes
1.1       millert  17907: else
1.23      millert  17908:   echo "$as_me: failed program was:" >&5
1.16      millert  17909: sed 's/^/| /' conftest.$ac_ext >&5
                   17910:
1.25      millert  17911: ac_cv_func_inet_addr=no
1.1       millert  17912: fi
1.25      millert  17913: rm -f conftest.err conftest.$ac_objext \
                   17914:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  17915: fi
1.25      millert  17916: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
                   17917: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
                   17918: if test $ac_cv_func_inet_addr = yes; then
                   17919:   :
                   17920: else
                   17921:   echo "$as_me:$LINENO: checking for __inet_addr" >&5
                   17922: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
                   17923: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9       millert  17924:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17925: else
1.9       millert  17926:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17927: /* confdefs.h.  */
                   17928: _ACEOF
                   17929: cat confdefs.h >>conftest.$ac_ext
                   17930: cat >>conftest.$ac_ext <<_ACEOF
                   17931: /* end confdefs.h.  */
1.25      millert  17932: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
                   17933:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17934: #define __inet_addr innocuous___inet_addr
                   17935:
1.23      millert  17936: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  17937:     which can conflict with char __inet_addr (); below.
1.23      millert  17938:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17939:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17940:
1.23      millert  17941: #ifdef __STDC__
                   17942: # include <limits.h>
                   17943: #else
                   17944: # include <assert.h>
1.1       millert  17945: #endif
1.25      millert  17946:
                   17947: #undef __inet_addr
                   17948:
1.23      millert  17949: /* Override any gcc2 internal prototype to avoid an error.  */
1.1       millert  17950: #ifdef __cplusplus
1.23      millert  17951: extern "C"
                   17952: {
                   17953: #endif
                   17954: /* We use char because int might match the return type of a gcc2
                   17955:    builtin and then its argument prototype would still apply.  */
1.25      millert  17956: char __inet_addr ();
1.23      millert  17957: /* The GNU C library defines this for functions which it implements
                   17958:     to always fail with ENOSYS.  Some functions are actually named
                   17959:     something starting with __ and the normal name is an alias.  */
1.25      millert  17960: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
1.23      millert  17961: choke me
1.1       millert  17962: #else
1.25      millert  17963: char (*f) () = __inet_addr;
1.23      millert  17964: #endif
                   17965: #ifdef __cplusplus
                   17966: }
1.1       millert  17967: #endif
                   17968:
1.9       millert  17969: int
                   17970: main ()
                   17971: {
1.25      millert  17972: return f != __inet_addr;
1.9       millert  17973:   ;
                   17974:   return 0;
                   17975: }
                   17976: _ACEOF
1.23      millert  17977: rm -f conftest.$ac_objext conftest$ac_exeext
                   17978: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  17979:   (eval $ac_link) 2>conftest.er1
1.9       millert  17980:   ac_status=$?
1.25      millert  17981:   grep -v '^ *+' conftest.er1 >conftest.err
                   17982:   rm -f conftest.er1
                   17983:   cat conftest.err >&5
1.16      millert  17984:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17985:   (exit $ac_status); } &&
1.25      millert  17986:         { ac_try='test -z "$ac_c_werror_flag"
                   17987:                         || test ! -s conftest.err'
                   17988:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17989:   (eval $ac_try) 2>&5
                   17990:   ac_status=$?
                   17991:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17992:   (exit $ac_status); }; } &&
                   17993:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  17994:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   17995:   (eval $ac_try) 2>&5
                   17996:   ac_status=$?
                   17997:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17998:   (exit $ac_status); }; }; then
1.25      millert  17999:   ac_cv_func___inet_addr=yes
1.16      millert  18000: else
                   18001:   echo "$as_me: failed program was:" >&5
                   18002: sed 's/^/| /' conftest.$ac_ext >&5
                   18003:
1.25      millert  18004: ac_cv_func___inet_addr=no
1.16      millert  18005: fi
1.25      millert  18006: rm -f conftest.err conftest.$ac_objext \
                   18007:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  18008: fi
1.25      millert  18009: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
                   18010: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
                   18011: if test $ac_cv_func___inet_addr = yes; then
                   18012:   :
                   18013: else
                   18014:   echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
                   18015: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
                   18016: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.16      millert  18017:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18018: else
1.25      millert  18019:   ac_check_lib_save_LIBS=$LIBS
                   18020: LIBS="-lnsl  $LIBS"
                   18021: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18022: /* confdefs.h.  */
                   18023: _ACEOF
                   18024: cat confdefs.h >>conftest.$ac_ext
                   18025: cat >>conftest.$ac_ext <<_ACEOF
                   18026: /* end confdefs.h.  */
1.25      millert  18027:
1.16      millert  18028: /* Override any gcc2 internal prototype to avoid an error.  */
                   18029: #ifdef __cplusplus
                   18030: extern "C"
                   18031: #endif
                   18032: /* We use char because int might match the return type of a gcc2
                   18033:    builtin and then its argument prototype would still apply.  */
1.25      millert  18034: char inet_addr ();
1.16      millert  18035: int
                   18036: main ()
                   18037: {
1.25      millert  18038: inet_addr ();
1.16      millert  18039:   ;
                   18040:   return 0;
                   18041: }
                   18042: _ACEOF
                   18043: rm -f conftest.$ac_objext conftest$ac_exeext
                   18044: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18045:   (eval $ac_link) 2>conftest.er1
1.16      millert  18046:   ac_status=$?
1.25      millert  18047:   grep -v '^ *+' conftest.er1 >conftest.err
                   18048:   rm -f conftest.er1
                   18049:   cat conftest.err >&5
1.16      millert  18050:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18051:   (exit $ac_status); } &&
1.25      millert  18052:         { ac_try='test -z "$ac_c_werror_flag"
                   18053:                         || test ! -s conftest.err'
                   18054:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18055:   (eval $ac_try) 2>&5
                   18056:   ac_status=$?
                   18057:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18058:   (exit $ac_status); }; } &&
                   18059:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18060:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18061:   (eval $ac_try) 2>&5
                   18062:   ac_status=$?
1.16      millert  18063:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18064:   (exit $ac_status); }; }; then
1.25      millert  18065:   ac_cv_lib_nsl_inet_addr=yes
1.1       millert  18066: else
1.9       millert  18067:   echo "$as_me: failed program was:" >&5
1.16      millert  18068: sed 's/^/| /' conftest.$ac_ext >&5
                   18069:
1.25      millert  18070: ac_cv_lib_nsl_inet_addr=no
1.1       millert  18071: fi
1.25      millert  18072: rm -f conftest.err conftest.$ac_objext \
                   18073:       conftest$ac_exeext conftest.$ac_ext
                   18074: LIBS=$ac_check_lib_save_LIBS
1.1       millert  18075: fi
1.25      millert  18076: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
                   18077: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
                   18078: if test $ac_cv_lib_nsl_inet_addr = yes; then
                   18079:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
1.23      millert  18080: else
1.25      millert  18081:   echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
                   18082: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
                   18083: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9       millert  18084:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18085: else
1.25      millert  18086:   ac_check_lib_save_LIBS=$LIBS
                   18087: LIBS="-linet  $LIBS"
                   18088: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18089: /* confdefs.h.  */
                   18090: _ACEOF
                   18091: cat confdefs.h >>conftest.$ac_ext
                   18092: cat >>conftest.$ac_ext <<_ACEOF
                   18093: /* end confdefs.h.  */
1.25      millert  18094:
1.1       millert  18095: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18096: #ifdef __cplusplus
                   18097: extern "C"
                   18098: #endif
1.1       millert  18099: /* We use char because int might match the return type of a gcc2
1.9       millert  18100:    builtin and then its argument prototype would still apply.  */
1.25      millert  18101: char inet_addr ();
1.16      millert  18102: int
                   18103: main ()
                   18104: {
1.25      millert  18105: inet_addr ();
1.9       millert  18106:   ;
                   18107:   return 0;
                   18108: }
                   18109: _ACEOF
                   18110: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18111: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18112:   (eval $ac_link) 2>conftest.er1
1.9       millert  18113:   ac_status=$?
1.25      millert  18114:   grep -v '^ *+' conftest.er1 >conftest.err
                   18115:   rm -f conftest.er1
                   18116:   cat conftest.err >&5
1.16      millert  18117:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18118:   (exit $ac_status); } &&
1.25      millert  18119:         { ac_try='test -z "$ac_c_werror_flag"
                   18120:                         || test ! -s conftest.err'
                   18121:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18122:   (eval $ac_try) 2>&5
                   18123:   ac_status=$?
                   18124:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18125:   (exit $ac_status); }; } &&
                   18126:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18127:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18128:   (eval $ac_try) 2>&5
                   18129:   ac_status=$?
1.16      millert  18130:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18131:   (exit $ac_status); }; }; then
1.25      millert  18132:   ac_cv_lib_inet_inet_addr=yes
1.9       millert  18133: else
                   18134:   echo "$as_me: failed program was:" >&5
1.16      millert  18135: sed 's/^/| /' conftest.$ac_ext >&5
                   18136:
1.25      millert  18137: ac_cv_lib_inet_inet_addr=no
1.9       millert  18138: fi
1.25      millert  18139: rm -f conftest.err conftest.$ac_objext \
                   18140:       conftest$ac_exeext conftest.$ac_ext
                   18141: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18142: fi
1.25      millert  18143: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
                   18144: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
                   18145: if test $ac_cv_lib_inet_inet_addr = yes; then
                   18146:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   18147: else
                   18148:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
                   18149: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
                   18150: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
                   18151: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
                   18152: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.9       millert  18153:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18154: else
1.25      millert  18155:   ac_check_lib_save_LIBS=$LIBS
                   18156: LIBS="-lsocket -lnsl $LIBS"
                   18157: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18158: /* confdefs.h.  */
                   18159: _ACEOF
                   18160: cat confdefs.h >>conftest.$ac_ext
                   18161: cat >>conftest.$ac_ext <<_ACEOF
                   18162: /* end confdefs.h.  */
1.25      millert  18163:
1.1       millert  18164: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18165: #ifdef __cplusplus
                   18166: extern "C"
                   18167: #endif
1.1       millert  18168: /* We use char because int might match the return type of a gcc2
1.9       millert  18169:    builtin and then its argument prototype would still apply.  */
1.25      millert  18170: char inet_addr ();
1.16      millert  18171: int
                   18172: main ()
                   18173: {
1.25      millert  18174: inet_addr ();
1.9       millert  18175:   ;
                   18176:   return 0;
                   18177: }
                   18178: _ACEOF
                   18179: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18180: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18181:   (eval $ac_link) 2>conftest.er1
1.9       millert  18182:   ac_status=$?
1.25      millert  18183:   grep -v '^ *+' conftest.er1 >conftest.err
                   18184:   rm -f conftest.er1
                   18185:   cat conftest.err >&5
1.16      millert  18186:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18187:   (exit $ac_status); } &&
1.25      millert  18188:         { ac_try='test -z "$ac_c_werror_flag"
                   18189:                         || test ! -s conftest.err'
                   18190:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18191:   (eval $ac_try) 2>&5
                   18192:   ac_status=$?
                   18193:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18194:   (exit $ac_status); }; } &&
                   18195:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18196:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18197:   (eval $ac_try) 2>&5
                   18198:   ac_status=$?
1.16      millert  18199:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18200:   (exit $ac_status); }; }; then
1.25      millert  18201:   ac_cv_lib_socket_inet_addr_lnsl=yes
1.9       millert  18202: else
                   18203:   echo "$as_me: failed program was:" >&5
1.16      millert  18204: sed 's/^/| /' conftest.$ac_ext >&5
                   18205:
1.25      millert  18206: ac_cv_lib_socket_inet_addr_lnsl=no
                   18207: fi
                   18208: rm -f conftest.err conftest.$ac_objext \
                   18209:       conftest$ac_exeext conftest.$ac_ext
                   18210: LIBS=$ac_check_lib_save_LIBS
                   18211: fi
                   18212: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
                   18213: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
                   18214: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
                   18215:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.9       millert  18216: fi
1.25      millert  18217:
1.9       millert  18218: fi
1.25      millert  18219:
1.1       millert  18220: fi
                   18221:
1.25      millert  18222: fi
1.1       millert  18223:
1.25      millert  18224: fi
1.23      millert  18225:
1.25      millert  18226: echo "$as_me:$LINENO: checking for syslog" >&5
                   18227: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
                   18228: if test "${ac_cv_func_syslog+set}" = set; then
1.9       millert  18229:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18230: else
1.9       millert  18231:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18232: /* confdefs.h.  */
                   18233: _ACEOF
                   18234: cat confdefs.h >>conftest.$ac_ext
                   18235: cat >>conftest.$ac_ext <<_ACEOF
                   18236: /* end confdefs.h.  */
1.25      millert  18237: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
                   18238:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18239: #define syslog innocuous_syslog
                   18240:
1.1       millert  18241: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  18242:     which can conflict with char syslog (); below.
1.16      millert  18243:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18244:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18245:
1.16      millert  18246: #ifdef __STDC__
                   18247: # include <limits.h>
                   18248: #else
                   18249: # include <assert.h>
                   18250: #endif
1.25      millert  18251:
                   18252: #undef syslog
                   18253:
1.1       millert  18254: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18255: #ifdef __cplusplus
                   18256: extern "C"
1.16      millert  18257: {
1.9       millert  18258: #endif
1.1       millert  18259: /* We use char because int might match the return type of a gcc2
1.9       millert  18260:    builtin and then its argument prototype would still apply.  */
1.25      millert  18261: char syslog ();
1.1       millert  18262: /* The GNU C library defines this for functions which it implements
                   18263:     to always fail with ENOSYS.  Some functions are actually named
                   18264:     something starting with __ and the normal name is an alias.  */
1.25      millert  18265: #if defined (__stub_syslog) || defined (__stub___syslog)
1.1       millert  18266: choke me
                   18267: #else
1.25      millert  18268: char (*f) () = syslog;
1.16      millert  18269: #endif
                   18270: #ifdef __cplusplus
                   18271: }
1.1       millert  18272: #endif
                   18273:
1.16      millert  18274: int
                   18275: main ()
                   18276: {
1.25      millert  18277: return f != syslog;
1.9       millert  18278:   ;
                   18279:   return 0;
                   18280: }
                   18281: _ACEOF
                   18282: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18283: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18284:   (eval $ac_link) 2>conftest.er1
1.13      millert  18285:   ac_status=$?
1.25      millert  18286:   grep -v '^ *+' conftest.er1 >conftest.err
                   18287:   rm -f conftest.er1
                   18288:   cat conftest.err >&5
1.16      millert  18289:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13      millert  18290:   (exit $ac_status); } &&
1.25      millert  18291:         { ac_try='test -z "$ac_c_werror_flag"
                   18292:                         || test ! -s conftest.err'
                   18293:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18294:   (eval $ac_try) 2>&5
                   18295:   ac_status=$?
                   18296:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18297:   (exit $ac_status); }; } &&
                   18298:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18299:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13      millert  18300:   (eval $ac_try) 2>&5
                   18301:   ac_status=$?
1.16      millert  18302:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13      millert  18303:   (exit $ac_status); }; }; then
1.25      millert  18304:   ac_cv_func_syslog=yes
1.13      millert  18305: else
                   18306:   echo "$as_me: failed program was:" >&5
1.16      millert  18307: sed 's/^/| /' conftest.$ac_ext >&5
                   18308:
1.25      millert  18309: ac_cv_func_syslog=no
1.13      millert  18310: fi
1.25      millert  18311: rm -f conftest.err conftest.$ac_objext \
                   18312:       conftest$ac_exeext conftest.$ac_ext
1.13      millert  18313: fi
1.25      millert  18314: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
                   18315: echo "${ECHO_T}$ac_cv_func_syslog" >&6
                   18316: if test $ac_cv_func_syslog = yes; then
                   18317:   :
                   18318: else
                   18319:   echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
                   18320: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
                   18321: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.13      millert  18322:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18323: else
1.25      millert  18324:   ac_check_lib_save_LIBS=$LIBS
                   18325: LIBS="-lsocket  $LIBS"
                   18326: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18327: /* confdefs.h.  */
                   18328: _ACEOF
                   18329: cat confdefs.h >>conftest.$ac_ext
                   18330: cat >>conftest.$ac_ext <<_ACEOF
                   18331: /* end confdefs.h.  */
1.25      millert  18332:
1.13      millert  18333: /* Override any gcc2 internal prototype to avoid an error.  */
                   18334: #ifdef __cplusplus
                   18335: extern "C"
                   18336: #endif
                   18337: /* We use char because int might match the return type of a gcc2
                   18338:    builtin and then its argument prototype would still apply.  */
1.25      millert  18339: char syslog ();
1.16      millert  18340: int
                   18341: main ()
                   18342: {
1.25      millert  18343: syslog ();
1.13      millert  18344:   ;
                   18345:   return 0;
                   18346: }
                   18347: _ACEOF
                   18348: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18349: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18350:   (eval $ac_link) 2>conftest.er1
1.9       millert  18351:   ac_status=$?
1.25      millert  18352:   grep -v '^ *+' conftest.er1 >conftest.err
                   18353:   rm -f conftest.er1
                   18354:   cat conftest.err >&5
1.16      millert  18355:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18356:   (exit $ac_status); } &&
1.25      millert  18357:         { ac_try='test -z "$ac_c_werror_flag"
                   18358:                         || test ! -s conftest.err'
                   18359:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18360:   (eval $ac_try) 2>&5
                   18361:   ac_status=$?
                   18362:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18363:   (exit $ac_status); }; } &&
                   18364:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18365:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18366:   (eval $ac_try) 2>&5
                   18367:   ac_status=$?
1.16      millert  18368:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18369:   (exit $ac_status); }; }; then
1.25      millert  18370:   ac_cv_lib_socket_syslog=yes
1.9       millert  18371: else
                   18372:   echo "$as_me: failed program was:" >&5
1.16      millert  18373: sed 's/^/| /' conftest.$ac_ext >&5
                   18374:
1.25      millert  18375: ac_cv_lib_socket_syslog=no
1.9       millert  18376: fi
1.25      millert  18377: rm -f conftest.err conftest.$ac_objext \
                   18378:       conftest$ac_exeext conftest.$ac_ext
                   18379: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18380: fi
1.25      millert  18381: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
                   18382: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
                   18383: if test $ac_cv_lib_socket_syslog = yes; then
                   18384:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18385: else
                   18386:   echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
                   18387: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
                   18388: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
1.9       millert  18389:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18390: else
1.25      millert  18391:   ac_check_lib_save_LIBS=$LIBS
                   18392: LIBS="-lnsl  $LIBS"
                   18393: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18394: /* confdefs.h.  */
                   18395: _ACEOF
                   18396: cat confdefs.h >>conftest.$ac_ext
                   18397: cat >>conftest.$ac_ext <<_ACEOF
                   18398: /* end confdefs.h.  */
1.25      millert  18399:
1.1       millert  18400: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18401: #ifdef __cplusplus
                   18402: extern "C"
1.1       millert  18403: #endif
                   18404: /* We use char because int might match the return type of a gcc2
1.9       millert  18405:    builtin and then its argument prototype would still apply.  */
1.25      millert  18406: char syslog ();
1.16      millert  18407: int
                   18408: main ()
                   18409: {
1.25      millert  18410: syslog ();
1.9       millert  18411:   ;
                   18412:   return 0;
                   18413: }
                   18414: _ACEOF
                   18415: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18417:   (eval $ac_link) 2>conftest.er1
1.9       millert  18418:   ac_status=$?
1.25      millert  18419:   grep -v '^ *+' conftest.er1 >conftest.err
                   18420:   rm -f conftest.er1
                   18421:   cat conftest.err >&5
1.16      millert  18422:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18423:   (exit $ac_status); } &&
1.25      millert  18424:         { ac_try='test -z "$ac_c_werror_flag"
                   18425:                         || test ! -s conftest.err'
                   18426:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18427:   (eval $ac_try) 2>&5
                   18428:   ac_status=$?
                   18429:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18430:   (exit $ac_status); }; } &&
                   18431:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18432:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18433:   (eval $ac_try) 2>&5
                   18434:   ac_status=$?
1.16      millert  18435:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18436:   (exit $ac_status); }; }; then
1.25      millert  18437:   ac_cv_lib_nsl_syslog=yes
1.23      millert  18438: else
                   18439:   echo "$as_me: failed program was:" >&5
                   18440: sed 's/^/| /' conftest.$ac_ext >&5
                   18441:
1.25      millert  18442: ac_cv_lib_nsl_syslog=no
1.23      millert  18443: fi
1.25      millert  18444: rm -f conftest.err conftest.$ac_objext \
                   18445:       conftest$ac_exeext conftest.$ac_ext
                   18446: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18447: fi
1.25      millert  18448: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
                   18449: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
                   18450: if test $ac_cv_lib_nsl_syslog = yes; then
                   18451:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
1.23      millert  18452: else
1.25      millert  18453:   echo "$as_me:$LINENO: checking for syslog in -linet" >&5
                   18454: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
                   18455: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.23      millert  18456:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18457: else
                   18458:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  18459: LIBS="-linet  $LIBS"
1.23      millert  18460: cat >conftest.$ac_ext <<_ACEOF
                   18461: /* confdefs.h.  */
                   18462: _ACEOF
                   18463: cat confdefs.h >>conftest.$ac_ext
                   18464: cat >>conftest.$ac_ext <<_ACEOF
                   18465: /* end confdefs.h.  */
                   18466:
                   18467: /* Override any gcc2 internal prototype to avoid an error.  */
                   18468: #ifdef __cplusplus
                   18469: extern "C"
                   18470: #endif
                   18471: /* We use char because int might match the return type of a gcc2
                   18472:    builtin and then its argument prototype would still apply.  */
1.25      millert  18473: char syslog ();
1.23      millert  18474: int
                   18475: main ()
                   18476: {
1.25      millert  18477: syslog ();
1.23      millert  18478:   ;
                   18479:   return 0;
                   18480: }
                   18481: _ACEOF
                   18482: rm -f conftest.$ac_objext conftest$ac_exeext
                   18483: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18484:   (eval $ac_link) 2>conftest.er1
1.23      millert  18485:   ac_status=$?
1.25      millert  18486:   grep -v '^ *+' conftest.er1 >conftest.err
                   18487:   rm -f conftest.er1
                   18488:   cat conftest.err >&5
1.23      millert  18489:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18490:   (exit $ac_status); } &&
1.25      millert  18491:         { ac_try='test -z "$ac_c_werror_flag"
                   18492:                         || test ! -s conftest.err'
                   18493:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18494:   (eval $ac_try) 2>&5
                   18495:   ac_status=$?
                   18496:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18497:   (exit $ac_status); }; } &&
                   18498:         { ac_try='test -s conftest$ac_exeext'
1.23      millert  18499:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18500:   (eval $ac_try) 2>&5
                   18501:   ac_status=$?
                   18502:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18503:   (exit $ac_status); }; }; then
1.25      millert  18504:   ac_cv_lib_inet_syslog=yes
1.23      millert  18505: else
                   18506:   echo "$as_me: failed program was:" >&5
                   18507: sed 's/^/| /' conftest.$ac_ext >&5
                   18508:
1.25      millert  18509: ac_cv_lib_inet_syslog=no
1.23      millert  18510: fi
1.25      millert  18511: rm -f conftest.err conftest.$ac_objext \
                   18512:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18513: LIBS=$ac_check_lib_save_LIBS
                   18514: fi
1.25      millert  18515: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
                   18516: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
                   18517: if test $ac_cv_lib_inet_syslog = yes; then
                   18518:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23      millert  18519: fi
1.16      millert  18520:
1.23      millert  18521: fi
                   18522:
                   18523: fi
1.1       millert  18524:
                   18525: fi
                   18526:
1.25      millert  18527: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   18528:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   18529: # for constant arguments.  Useless!
                   18530: echo "$as_me:$LINENO: checking for working alloca.h" >&5
                   18531: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
                   18532: if test "${ac_cv_working_alloca_h+set}" = set; then
1.9       millert  18533:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18534: else
1.9       millert  18535:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18536: /* confdefs.h.  */
                   18537: _ACEOF
                   18538: cat confdefs.h >>conftest.$ac_ext
                   18539: cat >>conftest.$ac_ext <<_ACEOF
                   18540: /* end confdefs.h.  */
1.25      millert  18541: #include <alloca.h>
1.16      millert  18542: int
                   18543: main ()
                   18544: {
1.25      millert  18545: char *p = (char *) alloca (2 * sizeof (int));
1.9       millert  18546:   ;
                   18547:   return 0;
                   18548: }
                   18549: _ACEOF
                   18550: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18551: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18552:   (eval $ac_link) 2>conftest.er1
1.9       millert  18553:   ac_status=$?
1.25      millert  18554:   grep -v '^ *+' conftest.er1 >conftest.err
                   18555:   rm -f conftest.er1
                   18556:   cat conftest.err >&5
1.16      millert  18557:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18558:   (exit $ac_status); } &&
1.25      millert  18559:         { ac_try='test -z "$ac_c_werror_flag"
                   18560:                         || test ! -s conftest.err'
                   18561:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18562:   (eval $ac_try) 2>&5
                   18563:   ac_status=$?
                   18564:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18565:   (exit $ac_status); }; } &&
                   18566:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18567:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18568:   (eval $ac_try) 2>&5
                   18569:   ac_status=$?
1.16      millert  18570:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18571:   (exit $ac_status); }; }; then
1.25      millert  18572:   ac_cv_working_alloca_h=yes
1.9       millert  18573: else
                   18574:   echo "$as_me: failed program was:" >&5
1.16      millert  18575: sed 's/^/| /' conftest.$ac_ext >&5
                   18576:
1.25      millert  18577: ac_cv_working_alloca_h=no
1.9       millert  18578: fi
1.25      millert  18579: rm -f conftest.err conftest.$ac_objext \
                   18580:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18581: fi
1.25      millert  18582: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
                   18583: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
                   18584: if test $ac_cv_working_alloca_h = yes; then
                   18585:
                   18586: cat >>confdefs.h <<\_ACEOF
                   18587: #define HAVE_ALLOCA_H 1
1.16      millert  18588: _ACEOF
1.1       millert  18589:
1.25      millert  18590: fi
1.16      millert  18591:
1.25      millert  18592: echo "$as_me:$LINENO: checking for alloca" >&5
                   18593: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
                   18594: if test "${ac_cv_func_alloca_works+set}" = set; then
1.9       millert  18595:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18596: else
1.9       millert  18597:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18598: /* confdefs.h.  */
                   18599: _ACEOF
                   18600: cat confdefs.h >>conftest.$ac_ext
                   18601: cat >>conftest.$ac_ext <<_ACEOF
                   18602: /* end confdefs.h.  */
1.25      millert  18603: #ifdef __GNUC__
                   18604: # define alloca __builtin_alloca
1.16      millert  18605: #else
1.25      millert  18606: # ifdef _MSC_VER
                   18607: #  include <malloc.h>
                   18608: #  define alloca _alloca
                   18609: # else
                   18610: #  if HAVE_ALLOCA_H
                   18611: #   include <alloca.h>
                   18612: #  else
                   18613: #   ifdef _AIX
                   18614:  #pragma alloca
                   18615: #   else
                   18616: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   18617: char *alloca ();
                   18618: #    endif
                   18619: #   endif
                   18620: #  endif
                   18621: # endif
1.1       millert  18622: #endif
                   18623:
1.16      millert  18624: int
                   18625: main ()
                   18626: {
1.25      millert  18627: char *p = (char *) alloca (1);
1.9       millert  18628:   ;
                   18629:   return 0;
                   18630: }
                   18631: _ACEOF
                   18632: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18633: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18634:   (eval $ac_link) 2>conftest.er1
1.9       millert  18635:   ac_status=$?
1.25      millert  18636:   grep -v '^ *+' conftest.er1 >conftest.err
                   18637:   rm -f conftest.er1
                   18638:   cat conftest.err >&5
1.16      millert  18639:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18640:   (exit $ac_status); } &&
1.25      millert  18641:         { ac_try='test -z "$ac_c_werror_flag"
                   18642:                         || test ! -s conftest.err'
                   18643:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18644:   (eval $ac_try) 2>&5
                   18645:   ac_status=$?
                   18646:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18647:   (exit $ac_status); }; } &&
                   18648:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18649:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18650:   (eval $ac_try) 2>&5
                   18651:   ac_status=$?
1.16      millert  18652:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18653:   (exit $ac_status); }; }; then
1.25      millert  18654:   ac_cv_func_alloca_works=yes
1.9       millert  18655: else
                   18656:   echo "$as_me: failed program was:" >&5
1.16      millert  18657: sed 's/^/| /' conftest.$ac_ext >&5
                   18658:
1.25      millert  18659: ac_cv_func_alloca_works=no
1.9       millert  18660: fi
1.25      millert  18661: rm -f conftest.err conftest.$ac_objext \
                   18662:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18663: fi
1.25      millert  18664: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
                   18665: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
                   18666:
                   18667: if test $ac_cv_func_alloca_works = yes; then
                   18668:
                   18669: cat >>confdefs.h <<\_ACEOF
                   18670: #define HAVE_ALLOCA 1
                   18671: _ACEOF
                   18672:
                   18673: else
                   18674:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   18675: # that cause trouble.  Some versions do not even contain alloca or
                   18676: # contain a buggy version.  If you still want to use their alloca,
                   18677: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   18678:
                   18679: ALLOCA=alloca.$ac_objext
                   18680:
                   18681: cat >>confdefs.h <<\_ACEOF
                   18682: #define C_ALLOCA 1
                   18683: _ACEOF
                   18684:
                   18685:
                   18686: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
                   18687: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
                   18688: if test "${ac_cv_os_cray+set}" = set; then
                   18689:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18690: else
                   18691:   cat >conftest.$ac_ext <<_ACEOF
                   18692: /* confdefs.h.  */
                   18693: _ACEOF
                   18694: cat confdefs.h >>conftest.$ac_ext
                   18695: cat >>conftest.$ac_ext <<_ACEOF
                   18696: /* end confdefs.h.  */
                   18697: #if defined(CRAY) && ! defined(CRAY2)
                   18698: webecray
                   18699: #else
                   18700: wenotbecray
                   18701: #endif
                   18702:
1.16      millert  18703: _ACEOF
1.25      millert  18704: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   18705:   $EGREP "webecray" >/dev/null 2>&1; then
                   18706:   ac_cv_os_cray=yes
                   18707: else
                   18708:   ac_cv_os_cray=no
1.1       millert  18709: fi
1.25      millert  18710: rm -f conftest*
1.1       millert  18711:
1.25      millert  18712: fi
                   18713: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
                   18714: echo "${ECHO_T}$ac_cv_os_cray" >&6
                   18715: if test $ac_cv_os_cray = yes; then
                   18716:   for ac_func in _getb67 GETB67 getb67; do
                   18717:     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16      millert  18718: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  18719: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   18720: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   18721:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18722: else
1.9       millert  18723:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18724: /* confdefs.h.  */
                   18725: _ACEOF
                   18726: cat confdefs.h >>conftest.$ac_ext
                   18727: cat >>conftest.$ac_ext <<_ACEOF
                   18728: /* end confdefs.h.  */
1.25      millert  18729: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18730:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18731: #define $ac_func innocuous_$ac_func
                   18732:
1.1       millert  18733: /* System header to define __stub macros and hopefully few prototypes,
1.16      millert  18734:     which can conflict with char $ac_func (); below.
                   18735:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18736:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18737:
1.16      millert  18738: #ifdef __STDC__
                   18739: # include <limits.h>
                   18740: #else
                   18741: # include <assert.h>
                   18742: #endif
1.25      millert  18743:
                   18744: #undef $ac_func
                   18745:
1.1       millert  18746: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18747: #ifdef __cplusplus
                   18748: extern "C"
1.16      millert  18749: {
1.9       millert  18750: #endif
1.1       millert  18751: /* We use char because int might match the return type of a gcc2
1.9       millert  18752:    builtin and then its argument prototype would still apply.  */
                   18753: char $ac_func ();
1.1       millert  18754: /* The GNU C library defines this for functions which it implements
                   18755:     to always fail with ENOSYS.  Some functions are actually named
                   18756:     something starting with __ and the normal name is an alias.  */
                   18757: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   18758: choke me
                   18759: #else
1.16      millert  18760: char (*f) () = $ac_func;
                   18761: #endif
                   18762: #ifdef __cplusplus
                   18763: }
1.1       millert  18764: #endif
                   18765:
1.16      millert  18766: int
                   18767: main ()
                   18768: {
                   18769: return f != $ac_func;
1.9       millert  18770:   ;
                   18771:   return 0;
                   18772: }
                   18773: _ACEOF
                   18774: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18775: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18776:   (eval $ac_link) 2>conftest.er1
1.9       millert  18777:   ac_status=$?
1.25      millert  18778:   grep -v '^ *+' conftest.er1 >conftest.err
                   18779:   rm -f conftest.er1
                   18780:   cat conftest.err >&5
1.16      millert  18781:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18782:   (exit $ac_status); } &&
1.25      millert  18783:         { ac_try='test -z "$ac_c_werror_flag"
                   18784:                         || test ! -s conftest.err'
                   18785:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18786:   (eval $ac_try) 2>&5
                   18787:   ac_status=$?
                   18788:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18789:   (exit $ac_status); }; } &&
                   18790:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18791:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18792:   (eval $ac_try) 2>&5
                   18793:   ac_status=$?
1.16      millert  18794:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18795:   (exit $ac_status); }; }; then
                   18796:   eval "$as_ac_var=yes"
                   18797: else
                   18798:   echo "$as_me: failed program was:" >&5
1.16      millert  18799: sed 's/^/| /' conftest.$ac_ext >&5
                   18800:
1.9       millert  18801: eval "$as_ac_var=no"
                   18802: fi
1.25      millert  18803: rm -f conftest.err conftest.$ac_objext \
                   18804:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18805: fi
1.16      millert  18806: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  18807: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   18808: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.25      millert  18809:
                   18810: cat >>confdefs.h <<_ACEOF
                   18811: #define CRAY_STACKSEG_END $ac_func
1.16      millert  18812: _ACEOF
1.23      millert  18813:
1.25      millert  18814:     break
1.23      millert  18815: fi
1.25      millert  18816:
                   18817:   done
1.1       millert  18818: fi
                   18819:
1.25      millert  18820: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
                   18821: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
                   18822: if test "${ac_cv_c_stack_direction+set}" = set; then
1.23      millert  18823:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18824: else
1.25      millert  18825:   if test "$cross_compiling" = yes; then
                   18826:   ac_cv_c_stack_direction=0
1.23      millert  18827: else
                   18828:   cat >conftest.$ac_ext <<_ACEOF
                   18829: /* confdefs.h.  */
                   18830: _ACEOF
                   18831: cat confdefs.h >>conftest.$ac_ext
                   18832: cat >>conftest.$ac_ext <<_ACEOF
                   18833: /* end confdefs.h.  */
1.25      millert  18834: int
                   18835: find_stack_direction ()
                   18836: {
                   18837:   static char *addr = 0;
                   18838:   auto char dummy;
                   18839:   if (addr == 0)
                   18840:     {
                   18841:       addr = &dummy;
                   18842:       return find_stack_direction ();
                   18843:     }
                   18844:   else
                   18845:     return (&dummy > addr) ? 1 : -1;
                   18846: }
1.23      millert  18847:
1.25      millert  18848: int
                   18849: main ()
                   18850: {
                   18851:   exit (find_stack_direction () < 0);
                   18852: }
1.23      millert  18853: _ACEOF
                   18854: rm -f conftest$ac_exeext
                   18855: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   18856:   (eval $ac_link) 2>&5
                   18857:   ac_status=$?
                   18858:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18859:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   18860:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18861:   (eval $ac_try) 2>&5
                   18862:   ac_status=$?
                   18863:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18864:   (exit $ac_status); }; }; then
1.25      millert  18865:   ac_cv_c_stack_direction=1
1.23      millert  18866: else
                   18867:   echo "$as_me: program exited with status $ac_status" >&5
                   18868: echo "$as_me: failed program was:" >&5
                   18869: sed 's/^/| /' conftest.$ac_ext >&5
                   18870:
                   18871: ( exit $ac_status )
1.25      millert  18872: ac_cv_c_stack_direction=-1
1.23      millert  18873: fi
1.25      millert  18874: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23      millert  18875: fi
                   18876: fi
1.25      millert  18877: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
                   18878: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
                   18879:
                   18880: cat >>confdefs.h <<_ACEOF
                   18881: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.23      millert  18882: _ACEOF
1.16      millert  18883:
1.25      millert  18884:
1.23      millert  18885: fi
1.16      millert  18886:
1.9       millert  18887: fi
1.23      millert  18888:
1.25      millert  18889: for ac_func in getprogname
1.9       millert  18890: do
                   18891: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16      millert  18892: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9       millert  18893: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   18894: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   18895:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18896: else
1.9       millert  18897:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18898: /* confdefs.h.  */
                   18899: _ACEOF
                   18900: cat confdefs.h >>conftest.$ac_ext
                   18901: cat >>conftest.$ac_ext <<_ACEOF
                   18902: /* end confdefs.h.  */
1.25      millert  18903: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18904:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18905: #define $ac_func innocuous_$ac_func
                   18906:
1.16      millert  18907: /* System header to define __stub macros and hopefully few prototypes,
                   18908:     which can conflict with char $ac_func (); below.
                   18909:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18910:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18911:
1.16      millert  18912: #ifdef __STDC__
                   18913: # include <limits.h>
                   18914: #else
                   18915: # include <assert.h>
                   18916: #endif
1.25      millert  18917:
                   18918: #undef $ac_func
                   18919:
1.1       millert  18920: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  18921: #ifdef __cplusplus
                   18922: extern "C"
1.16      millert  18923: {
1.9       millert  18924: #endif
1.1       millert  18925: /* We use char because int might match the return type of a gcc2
1.9       millert  18926:    builtin and then its argument prototype would still apply.  */
                   18927: char $ac_func ();
1.1       millert  18928: /* The GNU C library defines this for functions which it implements
                   18929:     to always fail with ENOSYS.  Some functions are actually named
                   18930:     something starting with __ and the normal name is an alias.  */
1.9       millert  18931: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  18932: choke me
                   18933: #else
1.16      millert  18934: char (*f) () = $ac_func;
                   18935: #endif
                   18936: #ifdef __cplusplus
                   18937: }
1.1       millert  18938: #endif
                   18939:
1.16      millert  18940: int
                   18941: main ()
                   18942: {
                   18943: return f != $ac_func;
1.9       millert  18944:   ;
                   18945:   return 0;
                   18946: }
                   18947: _ACEOF
                   18948: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  18949: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  18950:   (eval $ac_link) 2>conftest.er1
1.9       millert  18951:   ac_status=$?
1.25      millert  18952:   grep -v '^ *+' conftest.er1 >conftest.err
                   18953:   rm -f conftest.er1
                   18954:   cat conftest.err >&5
1.16      millert  18955:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18956:   (exit $ac_status); } &&
1.25      millert  18957:         { ac_try='test -z "$ac_c_werror_flag"
                   18958:                         || test ! -s conftest.err'
                   18959:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   18960:   (eval $ac_try) 2>&5
                   18961:   ac_status=$?
                   18962:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18963:   (exit $ac_status); }; } &&
                   18964:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  18965:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  18966:   (eval $ac_try) 2>&5
                   18967:   ac_status=$?
1.16      millert  18968:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  18969:   (exit $ac_status); }; }; then
                   18970:   eval "$as_ac_var=yes"
                   18971: else
                   18972:   echo "$as_me: failed program was:" >&5
1.16      millert  18973: sed 's/^/| /' conftest.$ac_ext >&5
                   18974:
1.9       millert  18975: eval "$as_ac_var=no"
                   18976: fi
1.25      millert  18977: rm -f conftest.err conftest.$ac_objext \
                   18978:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  18979: fi
1.16      millert  18980: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  18981: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   18982: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16      millert  18983:   cat >>confdefs.h <<_ACEOF
1.9       millert  18984: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  18985: _ACEOF
1.9       millert  18986:
1.23      millert  18987: else
1.1       millert  18988:
1.25      millert  18989:     echo "$as_me:$LINENO: checking for __progname" >&5
                   18990: echo $ECHO_N "checking for __progname... $ECHO_C" >&6
                   18991:     if test "${sudo_cv___progname+set}" = set; then
1.9       millert  18992:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18993: else
1.25      millert  18994:
                   18995:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18996: /* confdefs.h.  */
                   18997: _ACEOF
                   18998: cat confdefs.h >>conftest.$ac_ext
                   18999: cat >>conftest.$ac_ext <<_ACEOF
                   19000: /* end confdefs.h.  */
1.25      millert  19001:
                   19002: int
                   19003: main ()
1.16      millert  19004: {
1.25      millert  19005: extern char *__progname; (void)puts(__progname);
                   19006:   ;
                   19007:   return 0;
1.9       millert  19008: }
                   19009: _ACEOF
1.25      millert  19010: rm -f conftest.$ac_objext conftest$ac_exeext
                   19011: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   19012:   (eval $ac_link) 2>conftest.er1
                   19013:   ac_status=$?
                   19014:   grep -v '^ *+' conftest.er1 >conftest.err
                   19015:   rm -f conftest.er1
                   19016:   cat conftest.err >&5
                   19017:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19018:   (exit $ac_status); } &&
                   19019:         { ac_try='test -z "$ac_c_werror_flag"
                   19020:                         || test ! -s conftest.err'
                   19021:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19022:   (eval $ac_try) 2>&5
                   19023:   ac_status=$?
                   19024:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19025:   (exit $ac_status); }; } &&
                   19026:         { ac_try='test -s conftest$ac_exeext'
                   19027:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19028:   (eval $ac_try) 2>&5
                   19029:   ac_status=$?
                   19030:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19031:   (exit $ac_status); }; }; then
                   19032:   sudo_cv___progname=yes
                   19033: else
                   19034:   echo "$as_me: failed program was:" >&5
                   19035: sed 's/^/| /' conftest.$ac_ext >&5
                   19036:
                   19037: sudo_cv___progname=no
                   19038: fi
                   19039: rm -f conftest.err conftest.$ac_objext \
                   19040:       conftest$ac_exeext conftest.$ac_ext
                   19041: fi
                   19042:
                   19043:     if test "$sudo_cv___progname" = "yes"; then
                   19044:        cat >>confdefs.h <<\_ACEOF
                   19045: #define HAVE___PROGNAME 1
                   19046: _ACEOF
                   19047:
                   19048:     else
                   19049:        case $LIBOBJS in
                   19050:     "getprogname.$ac_objext"   | \
                   19051:   *" getprogname.$ac_objext"   | \
                   19052:     "getprogname.$ac_objext "* | \
                   19053:   *" getprogname.$ac_objext "* ) ;;
                   19054:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext" ;;
                   19055: esac
                   19056:
                   19057:     fi
                   19058:     echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
                   19059: echo "${ECHO_T}$sudo_cv___progname" >&6
                   19060:
                   19061: fi
                   19062: done
                   19063:
                   19064: if test -n "$with_kerb4"; then
                   19065:     cat >>confdefs.h <<\_ACEOF
                   19066: #define HAVE_KERB4 1
                   19067: _ACEOF
                   19068:
                   19069:                 O_LDFLAGS="$LDFLAGS"
                   19070:     if test "$with_kerb4" = "yes"; then
                   19071:        found=no
                   19072:        O_CPPFLAGS="$CPPFLAGS"
                   19073:        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
                   19074:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   19075:            cat >conftest.$ac_ext <<_ACEOF
                   19076: #include <krb.h>
                   19077: _ACEOF
                   19078: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   19079:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  19080:   ac_status=$?
1.25      millert  19081:   grep -v '^ *+' conftest.er1 >conftest.err
                   19082:   rm -f conftest.er1
                   19083:   cat conftest.err >&5
1.16      millert  19084:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  19085:   (exit $ac_status); } >/dev/null; then
                   19086:   if test -s conftest.err; then
                   19087:     ac_cpp_err=$ac_c_preproc_warn_flag
                   19088:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   19089:   else
                   19090:     ac_cpp_err=
                   19091:   fi
                   19092: else
                   19093:   ac_cpp_err=yes
                   19094: fi
                   19095: if test -z "$ac_cpp_err"; then
                   19096:   found=yes; break
1.9       millert  19097: else
                   19098:   echo "$as_me: failed program was:" >&5
1.16      millert  19099: sed 's/^/| /' conftest.$ac_ext >&5
                   19100:
1.25      millert  19101:
1.1       millert  19102: fi
1.25      millert  19103: rm -f conftest.err conftest.$ac_ext
                   19104:        done
                   19105:        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
                   19106:     else
                   19107:
                   19108:     if test X"$with_rpath" = X"yes"; then
                   19109:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   19110:     else
                   19111:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
                   19112:     fi
                   19113:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   19114:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   19115:     fi
                   19116:
1.16      millert  19117:
1.25      millert  19118:     if test X"$with_rpath" = X"yes"; then
                   19119:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   19120:     else
                   19121:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
                   19122:     fi
                   19123:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   19124:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   19125:     fi
1.1       millert  19126:
1.25      millert  19127:        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
                   19128:        if test "${ac_cv_header_krb_h+set}" = set; then
                   19129:   echo "$as_me:$LINENO: checking for krb.h" >&5
                   19130: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
                   19131: if test "${ac_cv_header_krb_h+set}" = set; then
1.9       millert  19132:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  19133: fi
                   19134: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   19135: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.1       millert  19136: else
1.25      millert  19137:   # Is the header compilable?
                   19138: echo "$as_me:$LINENO: checking krb.h usability" >&5
                   19139: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
                   19140: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19141: /* confdefs.h.  */
                   19142: _ACEOF
                   19143: cat confdefs.h >>conftest.$ac_ext
                   19144: cat >>conftest.$ac_ext <<_ACEOF
                   19145: /* end confdefs.h.  */
                   19146: $ac_includes_default
1.25      millert  19147: #include <krb.h>
1.23      millert  19148: _ACEOF
                   19149: rm -f conftest.$ac_objext
                   19150: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  19151:   (eval $ac_compile) 2>conftest.er1
1.23      millert  19152:   ac_status=$?
1.25      millert  19153:   grep -v '^ *+' conftest.er1 >conftest.err
                   19154:   rm -f conftest.er1
                   19155:   cat conftest.err >&5
1.23      millert  19156:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19157:   (exit $ac_status); } &&
1.25      millert  19158:         { ac_try='test -z "$ac_c_werror_flag"
                   19159:                         || test ! -s conftest.err'
                   19160:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19161:   (eval $ac_try) 2>&5
                   19162:   ac_status=$?
                   19163:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19164:   (exit $ac_status); }; } &&
                   19165:         { ac_try='test -s conftest.$ac_objext'
1.23      millert  19166:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19167:   (eval $ac_try) 2>&5
                   19168:   ac_status=$?
                   19169:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19170:   (exit $ac_status); }; }; then
1.25      millert  19171:   ac_header_compiler=yes
1.1       millert  19172: else
1.23      millert  19173:   echo "$as_me: failed program was:" >&5
                   19174: sed 's/^/| /' conftest.$ac_ext >&5
                   19175:
1.25      millert  19176: ac_header_compiler=no
                   19177: fi
                   19178: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   19179: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   19180: echo "${ECHO_T}$ac_header_compiler" >&6
                   19181:
                   19182: # Is the header present?
                   19183: echo "$as_me:$LINENO: checking krb.h presence" >&5
                   19184: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
1.23      millert  19185: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19186: /* confdefs.h.  */
                   19187: _ACEOF
                   19188: cat confdefs.h >>conftest.$ac_ext
                   19189: cat >>conftest.$ac_ext <<_ACEOF
                   19190: /* end confdefs.h.  */
1.25      millert  19191: #include <krb.h>
1.9       millert  19192: _ACEOF
1.25      millert  19193: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   19194:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  19195:   ac_status=$?
1.25      millert  19196:   grep -v '^ *+' conftest.er1 >conftest.err
                   19197:   rm -f conftest.er1
                   19198:   cat conftest.err >&5
1.16      millert  19199:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  19200:   (exit $ac_status); } >/dev/null; then
                   19201:   if test -s conftest.err; then
                   19202:     ac_cpp_err=$ac_c_preproc_warn_flag
                   19203:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   19204:   else
                   19205:     ac_cpp_err=
                   19206:   fi
                   19207: else
                   19208:   ac_cpp_err=yes
                   19209: fi
                   19210: if test -z "$ac_cpp_err"; then
                   19211:   ac_header_preproc=yes
1.1       millert  19212: else
1.23      millert  19213:   echo "$as_me: failed program was:" >&5
1.16      millert  19214: sed 's/^/| /' conftest.$ac_ext >&5
                   19215:
1.25      millert  19216:   ac_header_preproc=no
                   19217: fi
                   19218: rm -f conftest.err conftest.$ac_ext
                   19219: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   19220: echo "${ECHO_T}$ac_header_preproc" >&6
                   19221:
                   19222: # So?  What about this header?
                   19223: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   19224:   yes:no: )
                   19225:     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   19226: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   19227:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
                   19228: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
                   19229:     ac_header_preproc=yes
                   19230:     ;;
                   19231:   no:yes:* )
                   19232:     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
                   19233: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
                   19234:     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
                   19235: echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
                   19236:     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
                   19237: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
                   19238:     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
                   19239: echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   19240:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
                   19241: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
                   19242:     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
                   19243: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
                   19244:     (
                   19245:       cat <<\_ASBOX
                   19246: ## ------------------------------- ##
                   19247: ## Report this to the sudo lists.  ##
                   19248: ## ------------------------------- ##
                   19249: _ASBOX
                   19250:     ) |
                   19251:       sed "s/^/$as_me: WARNING:     /" >&2
                   19252:     ;;
                   19253: esac
                   19254: echo "$as_me:$LINENO: checking for krb.h" >&5
                   19255: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
                   19256: if test "${ac_cv_header_krb_h+set}" = set; then
                   19257:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19258: else
                   19259:   ac_cv_header_krb_h=$ac_header_preproc
1.1       millert  19260: fi
1.25      millert  19261: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   19262: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
                   19263:
1.1       millert  19264: fi
1.25      millert  19265: if test $ac_cv_header_krb_h = yes; then
                   19266:   found=yes
                   19267: else
                   19268:   found=no
1.1       millert  19269: fi
                   19270:
1.25      millert  19271:
                   19272:     fi
                   19273:     if test X"$found" = X"no"; then
                   19274:        { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   19275: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
                   19276:     fi
                   19277:
                   19278:                 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
                   19279: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
                   19280: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9       millert  19281:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19282: else
1.25      millert  19283:   ac_check_lib_save_LIBS=$LIBS
                   19284: LIBS="-ldes  $LIBS"
                   19285: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19286: /* confdefs.h.  */
                   19287: _ACEOF
                   19288: cat confdefs.h >>conftest.$ac_ext
                   19289: cat >>conftest.$ac_ext <<_ACEOF
                   19290: /* end confdefs.h.  */
1.25      millert  19291:
                   19292: /* Override any gcc2 internal prototype to avoid an error.  */
                   19293: #ifdef __cplusplus
                   19294: extern "C"
                   19295: #endif
                   19296: /* We use char because int might match the return type of a gcc2
                   19297:    builtin and then its argument prototype would still apply.  */
                   19298: char des_cbc_encrypt ();
1.23      millert  19299: int
                   19300: main ()
                   19301: {
1.25      millert  19302: des_cbc_encrypt ();
1.23      millert  19303:   ;
                   19304:   return 0;
                   19305: }
1.9       millert  19306: _ACEOF
1.25      millert  19307: rm -f conftest.$ac_objext conftest$ac_exeext
                   19308: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   19309:   (eval $ac_link) 2>conftest.er1
1.9       millert  19310:   ac_status=$?
1.25      millert  19311:   grep -v '^ *+' conftest.er1 >conftest.err
                   19312:   rm -f conftest.er1
                   19313:   cat conftest.err >&5
1.16      millert  19314:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  19315:   (exit $ac_status); } &&
1.25      millert  19316:         { ac_try='test -z "$ac_c_werror_flag"
                   19317:                         || test ! -s conftest.err'
                   19318:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19319:   (eval $ac_try) 2>&5
                   19320:   ac_status=$?
                   19321:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19322:   (exit $ac_status); }; } &&
                   19323:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  19324:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19325:   (eval $ac_try) 2>&5
                   19326:   ac_status=$?
1.16      millert  19327:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19328:   (exit $ac_status); }; }; then
1.25      millert  19329:   ac_cv_lib_des_des_cbc_encrypt=yes
1.1       millert  19330: else
1.23      millert  19331:   echo "$as_me: failed program was:" >&5
1.16      millert  19332: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  19333:
                   19334: ac_cv_lib_des_des_cbc_encrypt=no
                   19335: fi
                   19336: rm -f conftest.err conftest.$ac_objext \
                   19337:       conftest$ac_exeext conftest.$ac_ext
                   19338: LIBS=$ac_check_lib_save_LIBS
                   19339: fi
                   19340: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
                   19341: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
                   19342: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
                   19343:   K4LIBS="-ldes"
                   19344: else
                   19345:
                   19346:        echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
                   19347: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
                   19348: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
                   19349:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19350: else
                   19351:   ac_check_lib_save_LIBS=$LIBS
                   19352: LIBS="-ldes425  $LIBS"
1.23      millert  19353: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19354: /* confdefs.h.  */
                   19355: _ACEOF
                   19356: cat confdefs.h >>conftest.$ac_ext
                   19357: cat >>conftest.$ac_ext <<_ACEOF
                   19358: /* end confdefs.h.  */
1.25      millert  19359:
                   19360: /* Override any gcc2 internal prototype to avoid an error.  */
                   19361: #ifdef __cplusplus
                   19362: extern "C"
                   19363: #endif
                   19364: /* We use char because int might match the return type of a gcc2
                   19365:    builtin and then its argument prototype would still apply.  */
                   19366: char des_cbc_encrypt ();
1.9       millert  19367: int
                   19368: main ()
                   19369: {
1.25      millert  19370: des_cbc_encrypt ();
1.9       millert  19371:   ;
                   19372:   return 0;
                   19373: }
                   19374: _ACEOF
1.25      millert  19375: rm -f conftest.$ac_objext conftest$ac_exeext
                   19376: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   19377:   (eval $ac_link) 2>conftest.er1
1.9       millert  19378:   ac_status=$?
1.25      millert  19379:   grep -v '^ *+' conftest.er1 >conftest.err
                   19380:   rm -f conftest.er1
                   19381:   cat conftest.err >&5
1.16      millert  19382:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19383:   (exit $ac_status); } &&
1.25      millert  19384:         { ac_try='test -z "$ac_c_werror_flag"
                   19385:                         || test ! -s conftest.err'
                   19386:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19387:   (eval $ac_try) 2>&5
                   19388:   ac_status=$?
                   19389:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19390:   (exit $ac_status); }; } &&
                   19391:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  19392:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19393:   (eval $ac_try) 2>&5
                   19394:   ac_status=$?
1.16      millert  19395:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19396:   (exit $ac_status); }; }; then
1.25      millert  19397:   ac_cv_lib_des425_des_cbc_encrypt=yes
1.9       millert  19398: else
                   19399:   echo "$as_me: failed program was:" >&5
1.16      millert  19400: sed 's/^/| /' conftest.$ac_ext >&5
                   19401:
1.25      millert  19402: ac_cv_lib_des425_des_cbc_encrypt=no
1.23      millert  19403: fi
1.25      millert  19404: rm -f conftest.err conftest.$ac_objext \
                   19405:       conftest$ac_exeext conftest.$ac_ext
                   19406: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19407: fi
1.25      millert  19408: echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
                   19409: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
                   19410: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
                   19411:   K4LIBS="-ldes425"
                   19412: else
                   19413:   K4LIBS=""
1.1       millert  19414: fi
                   19415:
                   19416:
1.23      millert  19417: fi
1.16      millert  19418:
1.25      millert  19419:                 echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
                   19420: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
1.24      millert  19421:     cat >conftest.$ac_ext <<_ACEOF
                   19422: /* confdefs.h.  */
                   19423: _ACEOF
                   19424: cat confdefs.h >>conftest.$ac_ext
                   19425: cat >>conftest.$ac_ext <<_ACEOF
                   19426: /* end confdefs.h.  */
1.25      millert  19427: #include <krb.h>
1.24      millert  19428: int
                   19429: main ()
                   19430: {
1.25      millert  19431: const char *tmp = krb4_version;
1.24      millert  19432:   ;
                   19433:   return 0;
                   19434: }
                   19435: _ACEOF
                   19436: rm -f conftest.$ac_objext
                   19437: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  19438:   (eval $ac_compile) 2>conftest.er1
1.24      millert  19439:   ac_status=$?
1.25      millert  19440:   grep -v '^ *+' conftest.er1 >conftest.err
                   19441:   rm -f conftest.er1
                   19442:   cat conftest.err >&5
1.24      millert  19443:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19444:   (exit $ac_status); } &&
1.25      millert  19445:         { ac_try='test -z "$ac_c_werror_flag"
                   19446:                         || test ! -s conftest.err'
                   19447:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19448:   (eval $ac_try) 2>&5
                   19449:   ac_status=$?
                   19450:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19451:   (exit $ac_status); }; } &&
                   19452:         { ac_try='test -s conftest.$ac_objext'
1.24      millert  19453:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19454:   (eval $ac_try) 2>&5
                   19455:   ac_status=$?
                   19456:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19457:   (exit $ac_status); }; }; then
                   19458:
1.25      millert  19459:            echo "$as_me:$LINENO: result: yes" >&5
1.24      millert  19460: echo "${ECHO_T}yes" >&6
1.25      millert  19461:            K4LIBS="${K4LIBS} -lcom_err"
                   19462:            echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   19463: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
                   19464: if test "${ac_cv_lib_roken_main+set}" = set; then
                   19465:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.24      millert  19466: else
1.25      millert  19467:   ac_check_lib_save_LIBS=$LIBS
                   19468: LIBS="-lroken  $LIBS"
1.23      millert  19469: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19470: /* confdefs.h.  */
                   19471: _ACEOF
                   19472: cat confdefs.h >>conftest.$ac_ext
                   19473: cat >>conftest.$ac_ext <<_ACEOF
                   19474: /* end confdefs.h.  */
1.25      millert  19475:
                   19476:
1.16      millert  19477: int
                   19478: main ()
                   19479: {
1.25      millert  19480: main ();
1.9       millert  19481:   ;
                   19482:   return 0;
                   19483: }
                   19484: _ACEOF
                   19485: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  19486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  19487:   (eval $ac_link) 2>conftest.er1
1.9       millert  19488:   ac_status=$?
1.25      millert  19489:   grep -v '^ *+' conftest.er1 >conftest.err
                   19490:   rm -f conftest.er1
                   19491:   cat conftest.err >&5
1.16      millert  19492:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19493:   (exit $ac_status); } &&
1.25      millert  19494:         { ac_try='test -z "$ac_c_werror_flag"
                   19495:                         || test ! -s conftest.err'
                   19496:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19497:   (eval $ac_try) 2>&5
                   19498:   ac_status=$?
                   19499:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19500:   (exit $ac_status); }; } &&
                   19501:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  19502:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19503:   (eval $ac_try) 2>&5
                   19504:   ac_status=$?
1.16      millert  19505:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23      millert  19506:   (exit $ac_status); }; }; then
1.25      millert  19507:   ac_cv_lib_roken_main=yes
                   19508: else
                   19509:   echo "$as_me: failed program was:" >&5
                   19510: sed 's/^/| /' conftest.$ac_ext >&5
                   19511:
                   19512: ac_cv_lib_roken_main=no
                   19513: fi
                   19514: rm -f conftest.err conftest.$ac_objext \
                   19515:       conftest$ac_exeext conftest.$ac_ext
                   19516: LIBS=$ac_check_lib_save_LIBS
                   19517: fi
                   19518: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   19519: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
                   19520: if test $ac_cv_lib_roken_main = yes; then
                   19521:   K4LIBS="${K4LIBS} -lroken"
                   19522: fi
                   19523:
1.23      millert  19524:
1.9       millert  19525: else
                   19526:   echo "$as_me: failed program was:" >&5
1.16      millert  19527: sed 's/^/| /' conftest.$ac_ext >&5
                   19528:
1.25      millert  19529:
                   19530:            echo "$as_me:$LINENO: result: no" >&5
                   19531: echo "${ECHO_T}no" >&6
                   19532:
                   19533:
                   19534: fi
                   19535: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   19536:                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
                   19537: echo "$as_me:$LINENO: checking for main in -lkrb" >&5
                   19538: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
                   19539: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
                   19540:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19541: else
                   19542:   ac_check_lib_save_LIBS=$LIBS
                   19543: LIBS="-lkrb $K4LIBS $LIBS"
1.23      millert  19544: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19545: /* confdefs.h.  */
                   19546: _ACEOF
                   19547: cat confdefs.h >>conftest.$ac_ext
                   19548: cat >>conftest.$ac_ext <<_ACEOF
                   19549: /* end confdefs.h.  */
1.25      millert  19550:
                   19551:
1.16      millert  19552: int
                   19553: main ()
                   19554: {
1.25      millert  19555: main ();
1.9       millert  19556:   ;
                   19557:   return 0;
                   19558: }
                   19559: _ACEOF
                   19560: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  19561: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  19562:   (eval $ac_link) 2>conftest.er1
1.9       millert  19563:   ac_status=$?
1.25      millert  19564:   grep -v '^ *+' conftest.er1 >conftest.err
                   19565:   rm -f conftest.er1
                   19566:   cat conftest.err >&5
1.16      millert  19567:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19568:   (exit $ac_status); } &&
1.25      millert  19569:         { ac_try='test -z "$ac_c_werror_flag"
                   19570:                         || test ! -s conftest.err'
                   19571:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19572:   (eval $ac_try) 2>&5
                   19573:   ac_status=$?
                   19574:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19575:   (exit $ac_status); }; } &&
                   19576:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  19577:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19578:   (eval $ac_try) 2>&5
                   19579:   ac_status=$?
1.16      millert  19580:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19581:   (exit $ac_status); }; }; then
1.25      millert  19582:   eval "$as_ac_Lib=yes"
1.9       millert  19583: else
                   19584:   echo "$as_me: failed program was:" >&5
1.16      millert  19585: sed 's/^/| /' conftest.$ac_ext >&5
                   19586:
1.25      millert  19587: eval "$as_ac_Lib=no"
1.9       millert  19588: fi
1.25      millert  19589: rm -f conftest.err conftest.$ac_objext \
                   19590:       conftest$ac_exeext conftest.$ac_ext
                   19591: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19592: fi
1.25      millert  19593: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
                   19594: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
                   19595: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   19596:   K4LIBS="-lkrb $K4LIBS"
                   19597: else
                   19598:
                   19599:        as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
                   19600: echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
                   19601: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
                   19602: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
1.9       millert  19603:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19604: else
1.25      millert  19605:   ac_check_lib_save_LIBS=$LIBS
                   19606: LIBS="-lkrb4 $K4LIBS $LIBS"
                   19607: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19608: /* confdefs.h.  */
                   19609: _ACEOF
                   19610: cat confdefs.h >>conftest.$ac_ext
                   19611: cat >>conftest.$ac_ext <<_ACEOF
                   19612: /* end confdefs.h.  */
1.25      millert  19613:
1.1       millert  19614:
1.16      millert  19615: int
                   19616: main ()
                   19617: {
1.25      millert  19618: main ();
1.9       millert  19619:   ;
                   19620:   return 0;
                   19621: }
                   19622: _ACEOF
                   19623: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  19624: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  19625:   (eval $ac_link) 2>conftest.er1
1.9       millert  19626:   ac_status=$?
1.25      millert  19627:   grep -v '^ *+' conftest.er1 >conftest.err
                   19628:   rm -f conftest.er1
                   19629:   cat conftest.err >&5
1.16      millert  19630:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19631:   (exit $ac_status); } &&
1.25      millert  19632:         { ac_try='test -z "$ac_c_werror_flag"
                   19633:                         || test ! -s conftest.err'
                   19634:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19635:   (eval $ac_try) 2>&5
                   19636:   ac_status=$?
                   19637:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19638:   (exit $ac_status); }; } &&
                   19639:         { ac_try='test -s conftest$ac_exeext'
                   19640:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19641:   (eval $ac_try) 2>&5
                   19642:   ac_status=$?
                   19643:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19644:   (exit $ac_status); }; }; then
                   19645:   eval "$as_ac_Lib=yes"
                   19646: else
                   19647:   echo "$as_me: failed program was:" >&5
                   19648: sed 's/^/| /' conftest.$ac_ext >&5
                   19649:
                   19650: eval "$as_ac_Lib=no"
                   19651: fi
                   19652: rm -f conftest.err conftest.$ac_objext \
                   19653:       conftest$ac_exeext conftest.$ac_ext
                   19654: LIBS=$ac_check_lib_save_LIBS
                   19655: fi
                   19656: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
                   19657: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
                   19658: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   19659:   K4LIBS="-lkrb4 $K4LIBS"
                   19660: else
                   19661:   K4LIBS="-lkrb $K4LIBS"
                   19662:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
                   19663: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
                   19664:
                   19665: fi
                   19666:
                   19667:
                   19668: fi
                   19669:
                   19670:     LDFLAGS="$O_LDFLAGS"
                   19671:     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
                   19672:
                   19673: if test X"$AUTH_EXCL" != X""; then
                   19674:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 4 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   19675: echo "$as_me: error: \"cannot mix Kerberos 4 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   19676:    { (exit 1); exit 1; }; }
                   19677: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   19678:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   19679:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 4 with other authentication methods (such as $_AUTH)\"" >&5
                   19680: echo "$as_me: error: \"cannot mix Kerberos 4 with other authentication methods (such as $_AUTH)\"" >&2;}
                   19681:    { (exit 1); exit 1; }; }
                   19682: fi
                   19683: if test X"" != X""; then
                   19684:     AUTH_OBJS="kerb4.o"
                   19685:     AUTH_EXCL="Kerberos 4"
                   19686: elif test X"$AUTH_OBJS" = X""; then
                   19687:     AUTH_OBJS="kerb4.o"
                   19688: else
                   19689:     AUTH_OBJS="$AUTH_OBJS kerb4.o"
                   19690: fi
                   19691:
                   19692: fi
                   19693:
                   19694: if test "$with_kerb5" = "yes"; then
                   19695:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   19696: set dummy krb5-config; ac_word=$2
                   19697: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   19698: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   19699: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
                   19700:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19701: else
                   19702:   if test -n "$KRB5CONFIG"; then
                   19703:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
1.9       millert  19704: else
1.25      millert  19705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   19706: for as_dir in $PATH
                   19707: do
                   19708:   IFS=$as_save_IFS
                   19709:   test -z "$as_dir" && as_dir=.
                   19710:   for ac_exec_ext in '' $ac_executable_extensions; do
                   19711:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   19712:     ac_cv_prog_KRB5CONFIG="yes"
                   19713:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   19714:     break 2
                   19715:   fi
                   19716: done
                   19717: done
1.16      millert  19718:
1.25      millert  19719:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
1.9       millert  19720: fi
                   19721: fi
1.25      millert  19722: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
                   19723: if test -n "$KRB5CONFIG"; then
                   19724:   echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
                   19725: echo "${ECHO_T}$KRB5CONFIG" >&6
1.1       millert  19726: else
1.25      millert  19727:   echo "$as_me:$LINENO: result: no" >&5
                   19728: echo "${ECHO_T}no" >&6
                   19729: fi
                   19730:
                   19731:     if test -n "$KRB5CONFIG"; then
                   19732:        cat >>confdefs.h <<\_ACEOF
                   19733: #define HAVE_KERB5 1
                   19734: _ACEOF
                   19735:
                   19736:
                   19737: if test X"$AUTH_EXCL" != X""; then
                   19738:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   19739: echo "$as_me: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   19740:    { (exit 1); exit 1; }; }
                   19741: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   19742:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   19743:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&5
                   19744: echo "$as_me: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&2;}
                   19745:    { (exit 1); exit 1; }; }
                   19746: fi
                   19747: if test X"" != X""; then
                   19748:     AUTH_OBJS="kerb5.o"
                   19749:     AUTH_EXCL="Kerberos 5"
                   19750: elif test X"$AUTH_OBJS" = X""; then
                   19751:     AUTH_OBJS="kerb5.o"
1.1       millert  19752: else
1.25      millert  19753:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   19754: fi
                   19755:
                   19756:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
                   19757:        SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
                   19758:                                echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   19759: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
                   19760:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19761: /* confdefs.h.  */
                   19762: _ACEOF
                   19763: cat confdefs.h >>conftest.$ac_ext
                   19764: cat >>conftest.$ac_ext <<_ACEOF
                   19765: /* end confdefs.h.  */
1.25      millert  19766: #include <krb5.h>
1.9       millert  19767: int
                   19768: main ()
                   19769: {
1.25      millert  19770: const char *tmp = heimdal_version;
1.9       millert  19771:   ;
                   19772:   return 0;
                   19773: }
                   19774: _ACEOF
1.25      millert  19775: rm -f conftest.$ac_objext
                   19776: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   19777:   (eval $ac_compile) 2>conftest.er1
1.9       millert  19778:   ac_status=$?
1.25      millert  19779:   grep -v '^ *+' conftest.er1 >conftest.err
                   19780:   rm -f conftest.er1
                   19781:   cat conftest.err >&5
1.16      millert  19782:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19783:   (exit $ac_status); } &&
1.25      millert  19784:         { ac_try='test -z "$ac_c_werror_flag"
                   19785:                         || test ! -s conftest.err'
                   19786:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19787:   (eval $ac_try) 2>&5
                   19788:   ac_status=$?
                   19789:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19790:   (exit $ac_status); }; } &&
                   19791:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  19792:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19793:   (eval $ac_try) 2>&5
                   19794:   ac_status=$?
1.16      millert  19795:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19796:   (exit $ac_status); }; }; then
1.25      millert  19797:
                   19798:                echo "$as_me:$LINENO: result: yes" >&5
                   19799: echo "${ECHO_T}yes" >&6
                   19800:                cat >>confdefs.h <<\_ACEOF
                   19801: #define HAVE_HEIMDAL 1
                   19802: _ACEOF
                   19803:
                   19804:
1.9       millert  19805: else
                   19806:   echo "$as_me: failed program was:" >&5
1.16      millert  19807: sed 's/^/| /' conftest.$ac_ext >&5
                   19808:
1.25      millert  19809:
                   19810:                echo "$as_me:$LINENO: result: no" >&5
                   19811: echo "${ECHO_T}no" >&6
                   19812:
                   19813:
1.9       millert  19814: fi
1.25      millert  19815: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   19816:     fi
1.9       millert  19817: fi
1.25      millert  19818: if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
                   19819:     cat >>confdefs.h <<\_ACEOF
                   19820: #define HAVE_KERB5 1
                   19821: _ACEOF
                   19822:
                   19823:                 if test "$with_kerb5" = "yes"; then
                   19824:        found=no
                   19825:        O_CPPFLAGS="$CPPFLAGS"
                   19826:        for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
                   19827:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   19828:            cat >conftest.$ac_ext <<_ACEOF
                   19829: #include <krb5.h>
                   19830: _ACEOF
                   19831: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   19832:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   19833:   ac_status=$?
                   19834:   grep -v '^ *+' conftest.er1 >conftest.err
                   19835:   rm -f conftest.er1
                   19836:   cat conftest.err >&5
                   19837:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19838:   (exit $ac_status); } >/dev/null; then
                   19839:   if test -s conftest.err; then
                   19840:     ac_cpp_err=$ac_c_preproc_warn_flag
                   19841:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   19842:   else
                   19843:     ac_cpp_err=
                   19844:   fi
1.1       millert  19845: else
1.25      millert  19846:   ac_cpp_err=yes
                   19847: fi
                   19848: if test -z "$ac_cpp_err"; then
                   19849:   found=yes; break
1.1       millert  19850: else
1.25      millert  19851:   echo "$as_me: failed program was:" >&5
                   19852: sed 's/^/| /' conftest.$ac_ext >&5
                   19853:
                   19854:
                   19855: fi
                   19856: rm -f conftest.err conftest.$ac_ext
                   19857:        done
                   19858:        if test X"$found" = X"no"; then
                   19859:            CPPFLAGS="$O_CPPFLAGS"
                   19860:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   19861: echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
                   19862:        fi
                   19863:     else
                   19864:
                   19865:     if test X"$with_rpath" = X"yes"; then
                   19866:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
                   19867:     else
                   19868:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
                   19869:     fi
                   19870:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   19871:        blibpath_add="${blibpath_add}:${with_kerb5}/lib"
                   19872:     fi
                   19873:
                   19874:        CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
                   19875:     fi
                   19876:
                   19877:                 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   19878: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
                   19879:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19880: /* confdefs.h.  */
                   19881: _ACEOF
                   19882: cat confdefs.h >>conftest.$ac_ext
                   19883: cat >>conftest.$ac_ext <<_ACEOF
                   19884: /* end confdefs.h.  */
1.25      millert  19885: #include <krb5.h>
1.9       millert  19886: int
                   19887: main ()
                   19888: {
1.25      millert  19889: const char *tmp = heimdal_version;
1.9       millert  19890:   ;
                   19891:   return 0;
                   19892: }
                   19893: _ACEOF
1.25      millert  19894: rm -f conftest.$ac_objext
                   19895: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   19896:   (eval $ac_compile) 2>conftest.er1
1.9       millert  19897:   ac_status=$?
1.25      millert  19898:   grep -v '^ *+' conftest.er1 >conftest.err
                   19899:   rm -f conftest.er1
                   19900:   cat conftest.err >&5
1.16      millert  19901:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19902:   (exit $ac_status); } &&
1.25      millert  19903:         { ac_try='test -z "$ac_c_werror_flag"
                   19904:                         || test ! -s conftest.err'
                   19905:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19906:   (eval $ac_try) 2>&5
                   19907:   ac_status=$?
                   19908:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19909:   (exit $ac_status); }; } &&
                   19910:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  19911:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19912:   (eval $ac_try) 2>&5
                   19913:   ac_status=$?
1.16      millert  19914:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19915:   (exit $ac_status); }; }; then
1.16      millert  19916:
1.25      millert  19917:            echo "$as_me:$LINENO: result: yes" >&5
                   19918: echo "${ECHO_T}yes" >&6
                   19919:            cat >>confdefs.h <<\_ACEOF
                   19920: #define HAVE_HEIMDAL 1
                   19921: _ACEOF
                   19922:
                   19923:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
                   19924:            echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   19925: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
                   19926: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  19927:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19928: else
1.9       millert  19929:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  19930: LIBS="-lroken  $LIBS"
1.9       millert  19931: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19932: /* confdefs.h.  */
                   19933: _ACEOF
                   19934: cat confdefs.h >>conftest.$ac_ext
                   19935: cat >>conftest.$ac_ext <<_ACEOF
                   19936: /* end confdefs.h.  */
1.9       millert  19937:
1.25      millert  19938:
1.9       millert  19939: int
                   19940: main ()
                   19941: {
1.25      millert  19942: main ();
1.9       millert  19943:   ;
                   19944:   return 0;
                   19945: }
                   19946: _ACEOF
                   19947: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  19948: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  19949:   (eval $ac_link) 2>conftest.er1
1.9       millert  19950:   ac_status=$?
1.25      millert  19951:   grep -v '^ *+' conftest.er1 >conftest.err
                   19952:   rm -f conftest.er1
                   19953:   cat conftest.err >&5
1.16      millert  19954:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19955:   (exit $ac_status); } &&
1.25      millert  19956:         { ac_try='test -z "$ac_c_werror_flag"
                   19957:                         || test ! -s conftest.err'
                   19958:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   19959:   (eval $ac_try) 2>&5
                   19960:   ac_status=$?
                   19961:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19962:   (exit $ac_status); }; } &&
                   19963:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  19964:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  19965:   (eval $ac_try) 2>&5
                   19966:   ac_status=$?
1.16      millert  19967:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  19968:   (exit $ac_status); }; }; then
1.25      millert  19969:   ac_cv_lib_roken_main=yes
1.9       millert  19970: else
                   19971:   echo "$as_me: failed program was:" >&5
1.16      millert  19972: sed 's/^/| /' conftest.$ac_ext >&5
                   19973:
1.25      millert  19974: ac_cv_lib_roken_main=no
1.9       millert  19975: fi
1.25      millert  19976: rm -f conftest.err conftest.$ac_objext \
                   19977:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19978: LIBS=$ac_check_lib_save_LIBS
                   19979: fi
1.25      millert  19980: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   19981: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
                   19982: if test $ac_cv_lib_roken_main = yes; then
                   19983:   SUDO_LIBS="${SUDO_LIBS} -lroken"
                   19984: fi
                   19985:
                   19986:
                   19987: else
                   19988:   echo "$as_me: failed program was:" >&5
                   19989: sed 's/^/| /' conftest.$ac_ext >&5
                   19990:
                   19991:
                   19992:            echo "$as_me:$LINENO: result: no" >&5
                   19993: echo "${ECHO_T}no" >&6
                   19994:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   19995:
                   19996:
1.1       millert  19997: fi
1.25      millert  19998: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  19999:
1.25      millert  20000: if test X"$AUTH_EXCL" != X""; then
                   20001:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   20002: echo "$as_me: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   20003:    { (exit 1); exit 1; }; }
                   20004: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   20005:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   20006:     { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&5
                   20007: echo "$as_me: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&2;}
                   20008:    { (exit 1); exit 1; }; }
                   20009: fi
                   20010: if test X"" != X""; then
                   20011:     AUTH_OBJS="kerb5.o"
                   20012:     AUTH_EXCL="Kerberos 5"
                   20013: elif test X"$AUTH_OBJS" = X""; then
                   20014:     AUTH_OBJS="kerb5.o"
                   20015: else
                   20016:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
1.1       millert  20017: fi
                   20018:
1.25      millert  20019:     _LIBS="$LIBS"
                   20020:     LIBS="${LIBS} ${SUDO_LIBS}"
1.1       millert  20021:
                   20022:
1.25      millert  20023: for ac_func in krb5_verify_user krb5_init_secure_context
                   20024: do
                   20025: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20026: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20027: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   20028: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  20029:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20030: else
1.9       millert  20031:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20032: /* confdefs.h.  */
                   20033: _ACEOF
                   20034: cat confdefs.h >>conftest.$ac_ext
                   20035: cat >>conftest.$ac_ext <<_ACEOF
                   20036: /* end confdefs.h.  */
1.25      millert  20037: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20038:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20039: #define $ac_func innocuous_$ac_func
                   20040:
1.1       millert  20041: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  20042:     which can conflict with char $ac_func (); below.
1.16      millert  20043:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20044:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  20045:
1.16      millert  20046: #ifdef __STDC__
                   20047: # include <limits.h>
                   20048: #else
                   20049: # include <assert.h>
                   20050: #endif
1.25      millert  20051:
                   20052: #undef $ac_func
                   20053:
1.1       millert  20054: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20055: #ifdef __cplusplus
                   20056: extern "C"
1.16      millert  20057: {
1.9       millert  20058: #endif
1.1       millert  20059: /* We use char because int might match the return type of a gcc2
1.9       millert  20060:    builtin and then its argument prototype would still apply.  */
1.25      millert  20061: char $ac_func ();
1.1       millert  20062: /* The GNU C library defines this for functions which it implements
                   20063:     to always fail with ENOSYS.  Some functions are actually named
                   20064:     something starting with __ and the normal name is an alias.  */
1.25      millert  20065: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  20066: choke me
                   20067: #else
1.25      millert  20068: char (*f) () = $ac_func;
1.16      millert  20069: #endif
                   20070: #ifdef __cplusplus
                   20071: }
1.1       millert  20072: #endif
                   20073:
1.16      millert  20074: int
                   20075: main ()
                   20076: {
1.25      millert  20077: return f != $ac_func;
1.9       millert  20078:   ;
                   20079:   return 0;
                   20080: }
                   20081: _ACEOF
                   20082: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20083: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20084:   (eval $ac_link) 2>conftest.er1
1.9       millert  20085:   ac_status=$?
1.25      millert  20086:   grep -v '^ *+' conftest.er1 >conftest.err
                   20087:   rm -f conftest.er1
                   20088:   cat conftest.err >&5
1.16      millert  20089:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20090:   (exit $ac_status); } &&
1.25      millert  20091:         { ac_try='test -z "$ac_c_werror_flag"
                   20092:                         || test ! -s conftest.err'
                   20093:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20094:   (eval $ac_try) 2>&5
                   20095:   ac_status=$?
                   20096:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20097:   (exit $ac_status); }; } &&
                   20098:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20099:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20100:   (eval $ac_try) 2>&5
                   20101:   ac_status=$?
1.16      millert  20102:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20103:   (exit $ac_status); }; }; then
1.25      millert  20104:   eval "$as_ac_var=yes"
1.9       millert  20105: else
                   20106:   echo "$as_me: failed program was:" >&5
1.16      millert  20107: sed 's/^/| /' conftest.$ac_ext >&5
                   20108:
1.25      millert  20109: eval "$as_ac_var=no"
                   20110: fi
                   20111: rm -f conftest.err conftest.$ac_objext \
                   20112:       conftest$ac_exeext conftest.$ac_ext
                   20113: fi
                   20114: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   20115: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   20116: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20117:   cat >>confdefs.h <<_ACEOF
                   20118: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20119: _ACEOF
                   20120:
                   20121: fi
                   20122: done
                   20123:
                   20124:     LIBS="$_LIBS"
1.9       millert  20125: fi
1.25      millert  20126:
                   20127: if test "$with_logincap" = "yes"; then
                   20128:     case "$OS" in
                   20129:        freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
                   20130:        ;;
                   20131:     esac
1.9       millert  20132: fi
1.25      millert  20133:
                   20134: if test ${with_pam-'no'} != "no"; then
                   20135:                 echo "$as_me:$LINENO: checking for main in -ldl" >&5
                   20136: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
                   20137: if test "${ac_cv_lib_dl_main+set}" = set; then
1.9       millert  20138:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20139: else
1.9       millert  20140:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  20141: LIBS="-ldl  $LIBS"
1.9       millert  20142: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20143: /* confdefs.h.  */
                   20144: _ACEOF
                   20145: cat confdefs.h >>conftest.$ac_ext
                   20146: cat >>conftest.$ac_ext <<_ACEOF
                   20147: /* end confdefs.h.  */
1.9       millert  20148:
1.25      millert  20149:
1.9       millert  20150: int
                   20151: main ()
                   20152: {
1.25      millert  20153: main ();
1.9       millert  20154:   ;
                   20155:   return 0;
                   20156: }
                   20157: _ACEOF
                   20158: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20159: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20160:   (eval $ac_link) 2>conftest.er1
1.9       millert  20161:   ac_status=$?
1.25      millert  20162:   grep -v '^ *+' conftest.er1 >conftest.err
                   20163:   rm -f conftest.er1
                   20164:   cat conftest.err >&5
1.16      millert  20165:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20166:   (exit $ac_status); } &&
1.25      millert  20167:         { ac_try='test -z "$ac_c_werror_flag"
                   20168:                         || test ! -s conftest.err'
                   20169:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20170:   (eval $ac_try) 2>&5
                   20171:   ac_status=$?
                   20172:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20173:   (exit $ac_status); }; } &&
                   20174:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20175:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20176:   (eval $ac_try) 2>&5
                   20177:   ac_status=$?
1.16      millert  20178:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20179:   (exit $ac_status); }; }; then
1.25      millert  20180:   ac_cv_lib_dl_main=yes
1.9       millert  20181: else
                   20182:   echo "$as_me: failed program was:" >&5
1.16      millert  20183: sed 's/^/| /' conftest.$ac_ext >&5
                   20184:
1.25      millert  20185: ac_cv_lib_dl_main=no
1.9       millert  20186: fi
1.25      millert  20187: rm -f conftest.err conftest.$ac_objext \
                   20188:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20189: LIBS=$ac_check_lib_save_LIBS
                   20190: fi
1.25      millert  20191: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
                   20192: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
                   20193: if test $ac_cv_lib_dl_main = yes; then
                   20194:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
1.1       millert  20195: else
1.25      millert  20196:   SUDO_LIBS="${SUDO_LIBS} -lpam"
                   20197: fi
                   20198:
                   20199:     ac_cv_lib_dl=ac_cv_lib_dl_main
                   20200:
                   20201:
                   20202:
                   20203: for ac_header in security/pam_appl.h pam/pam_appl.h
                   20204: do
                   20205: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   20206: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   20207:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   20208: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   20209: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9       millert  20210:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20211: fi
                   20212: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   20213: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       millert  20214: else
1.25      millert  20215:   # Is the header compilable?
                   20216: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   20217: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.9       millert  20218: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20219: /* confdefs.h.  */
                   20220: _ACEOF
                   20221: cat confdefs.h >>conftest.$ac_ext
                   20222: cat >>conftest.$ac_ext <<_ACEOF
                   20223: /* end confdefs.h.  */
1.25      millert  20224: $ac_includes_default
                   20225: #include <$ac_header>
1.9       millert  20226: _ACEOF
1.25      millert  20227: rm -f conftest.$ac_objext
                   20228: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   20229:   (eval $ac_compile) 2>conftest.er1
1.9       millert  20230:   ac_status=$?
1.25      millert  20231:   grep -v '^ *+' conftest.er1 >conftest.err
                   20232:   rm -f conftest.er1
                   20233:   cat conftest.err >&5
1.16      millert  20234:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20235:   (exit $ac_status); } &&
1.25      millert  20236:         { ac_try='test -z "$ac_c_werror_flag"
                   20237:                         || test ! -s conftest.err'
                   20238:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20239:   (eval $ac_try) 2>&5
                   20240:   ac_status=$?
                   20241:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20242:   (exit $ac_status); }; } &&
                   20243:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  20244:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20245:   (eval $ac_try) 2>&5
                   20246:   ac_status=$?
1.16      millert  20247:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20248:   (exit $ac_status); }; }; then
1.25      millert  20249:   ac_header_compiler=yes
1.9       millert  20250: else
                   20251:   echo "$as_me: failed program was:" >&5
1.16      millert  20252: sed 's/^/| /' conftest.$ac_ext >&5
                   20253:
1.25      millert  20254: ac_header_compiler=no
1.9       millert  20255: fi
1.25      millert  20256: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                   20257: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20258: echo "${ECHO_T}$ac_header_compiler" >&6
                   20259:
                   20260: # Is the header present?
                   20261: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   20262: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9       millert  20263: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20264: /* confdefs.h.  */
                   20265: _ACEOF
                   20266: cat confdefs.h >>conftest.$ac_ext
                   20267: cat >>conftest.$ac_ext <<_ACEOF
                   20268: /* end confdefs.h.  */
1.25      millert  20269: #include <$ac_header>
1.9       millert  20270: _ACEOF
1.25      millert  20271: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   20272:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  20273:   ac_status=$?
1.25      millert  20274:   grep -v '^ *+' conftest.er1 >conftest.err
                   20275:   rm -f conftest.er1
                   20276:   cat conftest.err >&5
1.16      millert  20277:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  20278:   (exit $ac_status); } >/dev/null; then
                   20279:   if test -s conftest.err; then
                   20280:     ac_cpp_err=$ac_c_preproc_warn_flag
                   20281:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   20282:   else
                   20283:     ac_cpp_err=
                   20284:   fi
                   20285: else
                   20286:   ac_cpp_err=yes
                   20287: fi
                   20288: if test -z "$ac_cpp_err"; then
                   20289:   ac_header_preproc=yes
1.9       millert  20290: else
                   20291:   echo "$as_me: failed program was:" >&5
1.25      millert  20292: sed 's/^/| /' conftest.$ac_ext >&5
                   20293:
                   20294:   ac_header_preproc=no
                   20295: fi
                   20296: rm -f conftest.err conftest.$ac_ext
                   20297: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20298: echo "${ECHO_T}$ac_header_preproc" >&6
                   20299:
                   20300: # So?  What about this header?
                   20301: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20302:   yes:no: )
                   20303:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   20304: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20305:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   20306: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   20307:     ac_header_preproc=yes
                   20308:     ;;
                   20309:   no:yes:* )
                   20310:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   20311: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   20312:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   20313: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   20314:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   20315: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   20316:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   20317: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20318:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   20319: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   20320:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   20321: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   20322:     (
                   20323:       cat <<\_ASBOX
                   20324: ## ------------------------------- ##
                   20325: ## Report this to the sudo lists.  ##
                   20326: ## ------------------------------- ##
                   20327: _ASBOX
                   20328:     ) |
                   20329:       sed "s/^/$as_me: WARNING:     /" >&2
                   20330:     ;;
                   20331: esac
                   20332: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   20333: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   20334: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   20335:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20336: else
                   20337:   eval "$as_ac_Header=\$ac_header_preproc"
                   20338: fi
                   20339: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   20340: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16      millert  20341:
1.9       millert  20342: fi
1.25      millert  20343: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   20344:   cat >>confdefs.h <<_ACEOF
                   20345: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   20346: _ACEOF
                   20347:  with_pam=yes; break
1.9       millert  20348: fi
1.25      millert  20349:
                   20350: done
                   20351:
                   20352:     if test "$with_pam" = "yes"; then
                   20353:        cat >>confdefs.h <<\_ACEOF
                   20354: #define HAVE_PAM 1
                   20355: _ACEOF
                   20356:
                   20357:
                   20358: if test X"$AUTH_EXCL" != X""; then
                   20359:     { { echo "$as_me:$LINENO: error: \"cannot mix PAM with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   20360: echo "$as_me: error: \"cannot mix PAM with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   20361:    { (exit 1); exit 1; }; }
                   20362: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   20363:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   20364:     { { echo "$as_me:$LINENO: error: \"cannot mix PAM with other authentication methods (such as $_AUTH)\"" >&5
                   20365: echo "$as_me: error: \"cannot mix PAM with other authentication methods (such as $_AUTH)\"" >&2;}
                   20366:    { (exit 1); exit 1; }; }
1.1       millert  20367: fi
1.25      millert  20368: if test X"true" != X""; then
                   20369:     AUTH_OBJS="pam.o"
                   20370:     AUTH_EXCL="PAM"
                   20371: elif test X"$AUTH_OBJS" = X""; then
                   20372:     AUTH_OBJS="pam.o"
                   20373: else
                   20374:     AUTH_OBJS="$AUTH_OBJS pam.o"
1.1       millert  20375: fi
                   20376:
1.25      millert  20377:        CHECKSHADOW=false
                   20378:     fi
1.1       millert  20379: fi
                   20380:
1.25      millert  20381: if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
                   20382:     _LIBS="$LIBS"
                   20383:     LIBS="$LIBS $shadow_libs"
                   20384:     found=no
1.1       millert  20385:
1.25      millert  20386: for ac_func in $shadow_funcs
                   20387: do
                   20388: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20389: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20390: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   20391: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  20392:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20393: else
1.9       millert  20394:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20395: /* confdefs.h.  */
                   20396: _ACEOF
                   20397: cat confdefs.h >>conftest.$ac_ext
                   20398: cat >>conftest.$ac_ext <<_ACEOF
                   20399: /* end confdefs.h.  */
1.25      millert  20400: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20401:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20402: #define $ac_func innocuous_$ac_func
                   20403:
1.1       millert  20404: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  20405:     which can conflict with char $ac_func (); below.
1.16      millert  20406:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20407:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  20408:
1.16      millert  20409: #ifdef __STDC__
                   20410: # include <limits.h>
                   20411: #else
                   20412: # include <assert.h>
                   20413: #endif
1.25      millert  20414:
                   20415: #undef $ac_func
                   20416:
1.1       millert  20417: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20418: #ifdef __cplusplus
                   20419: extern "C"
1.16      millert  20420: {
1.9       millert  20421: #endif
1.1       millert  20422: /* We use char because int might match the return type of a gcc2
1.9       millert  20423:    builtin and then its argument prototype would still apply.  */
1.25      millert  20424: char $ac_func ();
1.1       millert  20425: /* The GNU C library defines this for functions which it implements
                   20426:     to always fail with ENOSYS.  Some functions are actually named
                   20427:     something starting with __ and the normal name is an alias.  */
1.25      millert  20428: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  20429: choke me
                   20430: #else
1.25      millert  20431: char (*f) () = $ac_func;
1.16      millert  20432: #endif
                   20433: #ifdef __cplusplus
                   20434: }
1.1       millert  20435: #endif
                   20436:
1.16      millert  20437: int
                   20438: main ()
                   20439: {
1.25      millert  20440: return f != $ac_func;
1.9       millert  20441:   ;
                   20442:   return 0;
                   20443: }
                   20444: _ACEOF
                   20445: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20446: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20447:   (eval $ac_link) 2>conftest.er1
1.9       millert  20448:   ac_status=$?
1.25      millert  20449:   grep -v '^ *+' conftest.er1 >conftest.err
                   20450:   rm -f conftest.er1
                   20451:   cat conftest.err >&5
1.16      millert  20452:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20453:   (exit $ac_status); } &&
1.25      millert  20454:         { ac_try='test -z "$ac_c_werror_flag"
                   20455:                         || test ! -s conftest.err'
                   20456:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20457:   (eval $ac_try) 2>&5
                   20458:   ac_status=$?
                   20459:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20460:   (exit $ac_status); }; } &&
                   20461:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20462:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20463:   (eval $ac_try) 2>&5
                   20464:   ac_status=$?
1.16      millert  20465:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20466:   (exit $ac_status); }; }; then
1.25      millert  20467:   eval "$as_ac_var=yes"
1.9       millert  20468: else
                   20469:   echo "$as_me: failed program was:" >&5
1.16      millert  20470: sed 's/^/| /' conftest.$ac_ext >&5
                   20471:
1.25      millert  20472: eval "$as_ac_var=no"
                   20473: fi
                   20474: rm -f conftest.err conftest.$ac_objext \
                   20475:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20476: fi
1.25      millert  20477: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   20478: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   20479: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20480:   cat >>confdefs.h <<_ACEOF
                   20481: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20482: _ACEOF
                   20483:  found=yes
1.9       millert  20484: fi
1.25      millert  20485: done
                   20486:
                   20487:     if test "$found" = "yes"; then
                   20488:        SUDO_LIBS="$SUDO_LIBS $shadow_libs"
                   20489:     elif test -n "$shadow_libs_optional"; then
                   20490:        LIBS="$LIBS $shadow_libs_optional"
                   20491:
                   20492: for ac_func in $shadow_funcs
                   20493: do
                   20494: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20495: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20496: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   20497: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  20498:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  20499: else
1.9       millert  20500:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20501: /* confdefs.h.  */
                   20502: _ACEOF
                   20503: cat confdefs.h >>conftest.$ac_ext
                   20504: cat >>conftest.$ac_ext <<_ACEOF
                   20505: /* end confdefs.h.  */
1.25      millert  20506: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20507:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20508: #define $ac_func innocuous_$ac_func
                   20509:
1.6       millert  20510: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  20511:     which can conflict with char $ac_func (); below.
1.16      millert  20512:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20513:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  20514:
1.16      millert  20515: #ifdef __STDC__
                   20516: # include <limits.h>
                   20517: #else
                   20518: # include <assert.h>
                   20519: #endif
1.25      millert  20520:
                   20521: #undef $ac_func
                   20522:
1.6       millert  20523: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20524: #ifdef __cplusplus
                   20525: extern "C"
1.16      millert  20526: {
1.9       millert  20527: #endif
1.6       millert  20528: /* We use char because int might match the return type of a gcc2
1.9       millert  20529:    builtin and then its argument prototype would still apply.  */
1.25      millert  20530: char $ac_func ();
1.6       millert  20531: /* The GNU C library defines this for functions which it implements
                   20532:     to always fail with ENOSYS.  Some functions are actually named
                   20533:     something starting with __ and the normal name is an alias.  */
1.25      millert  20534: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.6       millert  20535: choke me
                   20536: #else
1.25      millert  20537: char (*f) () = $ac_func;
1.16      millert  20538: #endif
                   20539: #ifdef __cplusplus
                   20540: }
1.6       millert  20541: #endif
                   20542:
1.16      millert  20543: int
                   20544: main ()
                   20545: {
1.25      millert  20546: return f != $ac_func;
1.9       millert  20547:   ;
                   20548:   return 0;
                   20549: }
                   20550: _ACEOF
                   20551: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20552: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20553:   (eval $ac_link) 2>conftest.er1
1.9       millert  20554:   ac_status=$?
1.25      millert  20555:   grep -v '^ *+' conftest.er1 >conftest.err
                   20556:   rm -f conftest.er1
                   20557:   cat conftest.err >&5
1.16      millert  20558:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20559:   (exit $ac_status); } &&
1.25      millert  20560:         { ac_try='test -z "$ac_c_werror_flag"
                   20561:                         || test ! -s conftest.err'
                   20562:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20563:   (eval $ac_try) 2>&5
                   20564:   ac_status=$?
                   20565:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20566:   (exit $ac_status); }; } &&
                   20567:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20568:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20569:   (eval $ac_try) 2>&5
                   20570:   ac_status=$?
1.16      millert  20571:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20572:   (exit $ac_status); }; }; then
1.25      millert  20573:   eval "$as_ac_var=yes"
1.9       millert  20574: else
                   20575:   echo "$as_me: failed program was:" >&5
1.16      millert  20576: sed 's/^/| /' conftest.$ac_ext >&5
                   20577:
1.25      millert  20578: eval "$as_ac_var=no"
                   20579: fi
                   20580: rm -f conftest.err conftest.$ac_objext \
                   20581:       conftest$ac_exeext conftest.$ac_ext
                   20582: fi
                   20583: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   20584: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   20585: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20586:   cat >>confdefs.h <<_ACEOF
                   20587: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20588: _ACEOF
                   20589:  found=yes
1.9       millert  20590: fi
1.25      millert  20591: done
                   20592:
                   20593:        if test "$found" = "yes"; then
                   20594:            SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
                   20595:        fi
                   20596:     fi
                   20597:     if test "$found" = "yes"; then
                   20598:        case "$shadow_funcs" in
                   20599:            *getprpwnam*) SECUREWARE=1;;
                   20600:        esac
                   20601:        test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
                   20602:     else
                   20603:        LIBS="$_LIBS"
                   20604:     fi
                   20605:     CHECKSHADOW=false
1.9       millert  20606: fi
1.25      millert  20607: if test "$CHECKSHADOW" = "true"; then
                   20608:
                   20609: for ac_func in getspnam
                   20610: do
                   20611: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20612: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20613: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   20614: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9       millert  20615:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20616: else
1.25      millert  20617:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20618: /* confdefs.h.  */
                   20619: _ACEOF
                   20620: cat confdefs.h >>conftest.$ac_ext
                   20621: cat >>conftest.$ac_ext <<_ACEOF
                   20622: /* end confdefs.h.  */
1.25      millert  20623: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20624:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20625: #define $ac_func innocuous_$ac_func
                   20626:
                   20627: /* System header to define __stub macros and hopefully few prototypes,
                   20628:     which can conflict with char $ac_func (); below.
                   20629:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20630:     <limits.h> exists even on freestanding compilers.  */
                   20631:
                   20632: #ifdef __STDC__
                   20633: # include <limits.h>
                   20634: #else
                   20635: # include <assert.h>
                   20636: #endif
                   20637:
                   20638: #undef $ac_func
1.9       millert  20639:
1.1       millert  20640: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20641: #ifdef __cplusplus
                   20642: extern "C"
1.25      millert  20643: {
1.9       millert  20644: #endif
1.1       millert  20645: /* We use char because int might match the return type of a gcc2
1.9       millert  20646:    builtin and then its argument prototype would still apply.  */
1.25      millert  20647: char $ac_func ();
                   20648: /* The GNU C library defines this for functions which it implements
                   20649:     to always fail with ENOSYS.  Some functions are actually named
                   20650:     something starting with __ and the normal name is an alias.  */
                   20651: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   20652: choke me
                   20653: #else
                   20654: char (*f) () = $ac_func;
                   20655: #endif
                   20656: #ifdef __cplusplus
                   20657: }
                   20658: #endif
                   20659:
1.9       millert  20660: int
                   20661: main ()
                   20662: {
1.25      millert  20663: return f != $ac_func;
1.9       millert  20664:   ;
                   20665:   return 0;
                   20666: }
                   20667: _ACEOF
                   20668: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20669: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20670:   (eval $ac_link) 2>conftest.er1
1.9       millert  20671:   ac_status=$?
1.25      millert  20672:   grep -v '^ *+' conftest.er1 >conftest.err
                   20673:   rm -f conftest.er1
                   20674:   cat conftest.err >&5
1.16      millert  20675:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20676:   (exit $ac_status); } &&
1.25      millert  20677:         { ac_try='test -z "$ac_c_werror_flag"
                   20678:                         || test ! -s conftest.err'
1.16      millert  20679:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20680:   (eval $ac_try) 2>&5
                   20681:   ac_status=$?
1.16      millert  20682:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  20683:   (exit $ac_status); }; } &&
                   20684:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20685:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20686:   (eval $ac_try) 2>&5
                   20687:   ac_status=$?
1.16      millert  20688:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20689:   (exit $ac_status); }; }; then
1.25      millert  20690:   eval "$as_ac_var=yes"
1.9       millert  20691: else
                   20692:   echo "$as_me: failed program was:" >&5
1.16      millert  20693: sed 's/^/| /' conftest.$ac_ext >&5
                   20694:
1.25      millert  20695: eval "$as_ac_var=no"
1.9       millert  20696: fi
1.25      millert  20697: rm -f conftest.err conftest.$ac_objext \
                   20698:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20699: fi
1.25      millert  20700: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   20701: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   20702: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20703:   cat >>confdefs.h <<_ACEOF
                   20704: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20705: _ACEOF
                   20706:  CHECKSHADOW="false"
1.1       millert  20707: else
1.25      millert  20708:   echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
                   20709: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
                   20710: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
1.9       millert  20711:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20712: else
1.9       millert  20713:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  20714: LIBS="-lgen  $LIBS"
1.9       millert  20715: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20716: /* confdefs.h.  */
                   20717: _ACEOF
                   20718: cat confdefs.h >>conftest.$ac_ext
                   20719: cat >>conftest.$ac_ext <<_ACEOF
                   20720: /* end confdefs.h.  */
1.9       millert  20721:
1.1       millert  20722: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20723: #ifdef __cplusplus
                   20724: extern "C"
                   20725: #endif
1.1       millert  20726: /* We use char because int might match the return type of a gcc2
1.9       millert  20727:    builtin and then its argument prototype would still apply.  */
1.25      millert  20728: char getspnam ();
1.9       millert  20729: int
                   20730: main ()
                   20731: {
1.25      millert  20732: getspnam ();
1.9       millert  20733:   ;
                   20734:   return 0;
                   20735: }
                   20736: _ACEOF
                   20737: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20738: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20739:   (eval $ac_link) 2>conftest.er1
1.9       millert  20740:   ac_status=$?
1.25      millert  20741:   grep -v '^ *+' conftest.er1 >conftest.err
                   20742:   rm -f conftest.er1
                   20743:   cat conftest.err >&5
1.16      millert  20744:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20745:   (exit $ac_status); } &&
1.25      millert  20746:         { ac_try='test -z "$ac_c_werror_flag"
                   20747:                         || test ! -s conftest.err'
                   20748:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20749:   (eval $ac_try) 2>&5
                   20750:   ac_status=$?
                   20751:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20752:   (exit $ac_status); }; } &&
                   20753:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20754:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20755:   (eval $ac_try) 2>&5
                   20756:   ac_status=$?
1.16      millert  20757:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20758:   (exit $ac_status); }; }; then
1.25      millert  20759:   ac_cv_lib_gen_getspnam=yes
1.9       millert  20760: else
                   20761:   echo "$as_me: failed program was:" >&5
1.16      millert  20762: sed 's/^/| /' conftest.$ac_ext >&5
                   20763:
1.25      millert  20764: ac_cv_lib_gen_getspnam=no
1.9       millert  20765: fi
1.25      millert  20766: rm -f conftest.err conftest.$ac_objext \
                   20767:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20768: LIBS=$ac_check_lib_save_LIBS
                   20769: fi
1.25      millert  20770: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
                   20771: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
                   20772: if test $ac_cv_lib_gen_getspnam = yes; then
                   20773:   cat >>confdefs.h <<\_ACEOF
                   20774: #define HAVE_GETSPNAM 1
                   20775: _ACEOF
                   20776:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
1.1       millert  20777: fi
                   20778:
                   20779: fi
1.25      millert  20780: done
1.1       millert  20781:
                   20782: fi
1.25      millert  20783: if test "$CHECKSHADOW" = "true"; then
                   20784:     echo "$as_me:$LINENO: checking for getprpwnam" >&5
                   20785: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
                   20786: if test "${ac_cv_func_getprpwnam+set}" = set; then
1.9       millert  20787:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20788: else
1.9       millert  20789:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20790: /* confdefs.h.  */
                   20791: _ACEOF
                   20792: cat confdefs.h >>conftest.$ac_ext
                   20793: cat >>conftest.$ac_ext <<_ACEOF
                   20794: /* end confdefs.h.  */
1.25      millert  20795: /* Define getprpwnam to an innocuous variant, in case <limits.h> declares getprpwnam.
                   20796:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20797: #define getprpwnam innocuous_getprpwnam
                   20798:
1.1       millert  20799: /* System header to define __stub macros and hopefully few prototypes,
1.25      millert  20800:     which can conflict with char getprpwnam (); below.
1.16      millert  20801:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20802:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  20803:
1.16      millert  20804: #ifdef __STDC__
                   20805: # include <limits.h>
                   20806: #else
                   20807: # include <assert.h>
                   20808: #endif
1.25      millert  20809:
                   20810: #undef getprpwnam
                   20811:
1.1       millert  20812: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20813: #ifdef __cplusplus
                   20814: extern "C"
1.16      millert  20815: {
1.9       millert  20816: #endif
1.1       millert  20817: /* We use char because int might match the return type of a gcc2
1.9       millert  20818:    builtin and then its argument prototype would still apply.  */
1.25      millert  20819: char getprpwnam ();
1.1       millert  20820: /* The GNU C library defines this for functions which it implements
                   20821:     to always fail with ENOSYS.  Some functions are actually named
                   20822:     something starting with __ and the normal name is an alias.  */
1.25      millert  20823: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
1.1       millert  20824: choke me
                   20825: #else
1.25      millert  20826: char (*f) () = getprpwnam;
1.16      millert  20827: #endif
                   20828: #ifdef __cplusplus
                   20829: }
1.1       millert  20830: #endif
                   20831:
1.16      millert  20832: int
                   20833: main ()
                   20834: {
1.25      millert  20835: return f != getprpwnam;
1.9       millert  20836:   ;
                   20837:   return 0;
                   20838: }
                   20839: _ACEOF
                   20840: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20841: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20842:   (eval $ac_link) 2>conftest.er1
1.9       millert  20843:   ac_status=$?
1.25      millert  20844:   grep -v '^ *+' conftest.er1 >conftest.err
                   20845:   rm -f conftest.er1
                   20846:   cat conftest.err >&5
1.16      millert  20847:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20848:   (exit $ac_status); } &&
1.25      millert  20849:         { ac_try='test -z "$ac_c_werror_flag"
                   20850:                         || test ! -s conftest.err'
                   20851:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20852:   (eval $ac_try) 2>&5
                   20853:   ac_status=$?
                   20854:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20855:   (exit $ac_status); }; } &&
                   20856:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20857:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20858:   (eval $ac_try) 2>&5
                   20859:   ac_status=$?
1.16      millert  20860:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20861:   (exit $ac_status); }; }; then
1.25      millert  20862:   ac_cv_func_getprpwnam=yes
1.9       millert  20863: else
                   20864:   echo "$as_me: failed program was:" >&5
1.16      millert  20865: sed 's/^/| /' conftest.$ac_ext >&5
                   20866:
1.25      millert  20867: ac_cv_func_getprpwnam=no
1.9       millert  20868: fi
1.25      millert  20869: rm -f conftest.err conftest.$ac_objext \
                   20870:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20871: fi
1.25      millert  20872: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
                   20873: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
                   20874: if test $ac_cv_func_getprpwnam = yes; then
                   20875:   cat >>confdefs.h <<\_ACEOF
                   20876: #define HAVE_GETPRPWNAM 1
                   20877: _ACEOF
                   20878:  CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
                   20879: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   20880: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
1.9       millert  20881:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20882: else
1.9       millert  20883:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  20884: LIBS="-lsec  $LIBS"
1.9       millert  20885: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20886: /* confdefs.h.  */
                   20887: _ACEOF
                   20888: cat confdefs.h >>conftest.$ac_ext
                   20889: cat >>conftest.$ac_ext <<_ACEOF
                   20890: /* end confdefs.h.  */
1.9       millert  20891:
1.1       millert  20892: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  20893: #ifdef __cplusplus
                   20894: extern "C"
                   20895: #endif
1.1       millert  20896: /* We use char because int might match the return type of a gcc2
1.9       millert  20897:    builtin and then its argument prototype would still apply.  */
1.25      millert  20898: char getprpwnam ();
1.9       millert  20899: int
                   20900: main ()
                   20901: {
1.25      millert  20902: getprpwnam ();
1.9       millert  20903:   ;
                   20904:   return 0;
                   20905: }
                   20906: _ACEOF
                   20907: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20908: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20909:   (eval $ac_link) 2>conftest.er1
1.9       millert  20910:   ac_status=$?
1.25      millert  20911:   grep -v '^ *+' conftest.er1 >conftest.err
                   20912:   rm -f conftest.er1
                   20913:   cat conftest.err >&5
1.16      millert  20914:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20915:   (exit $ac_status); } &&
1.25      millert  20916:         { ac_try='test -z "$ac_c_werror_flag"
                   20917:                         || test ! -s conftest.err'
                   20918:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20919:   (eval $ac_try) 2>&5
                   20920:   ac_status=$?
                   20921:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20922:   (exit $ac_status); }; } &&
                   20923:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20924:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20925:   (eval $ac_try) 2>&5
                   20926:   ac_status=$?
1.16      millert  20927:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20928:   (exit $ac_status); }; }; then
1.25      millert  20929:   ac_cv_lib_sec_getprpwnam=yes
1.9       millert  20930: else
                   20931:   echo "$as_me: failed program was:" >&5
1.16      millert  20932: sed 's/^/| /' conftest.$ac_ext >&5
                   20933:
1.25      millert  20934: ac_cv_lib_sec_getprpwnam=no
1.9       millert  20935: fi
1.25      millert  20936: rm -f conftest.err conftest.$ac_objext \
                   20937:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20938: LIBS=$ac_check_lib_save_LIBS
                   20939: fi
1.25      millert  20940: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
                   20941: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   20942: if test $ac_cv_lib_sec_getprpwnam = yes; then
                   20943:   cat >>confdefs.h <<\_ACEOF
                   20944: #define HAVE_GETPRPWNAM 1
                   20945: _ACEOF
                   20946:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
1.1       millert  20947: else
1.25      millert  20948:   echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
                   20949: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   20950: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
1.9       millert  20951:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20952: else
1.9       millert  20953:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  20954: LIBS="-lsecurity  $LIBS"
1.9       millert  20955: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20956: /* confdefs.h.  */
                   20957: _ACEOF
                   20958: cat confdefs.h >>conftest.$ac_ext
                   20959: cat >>conftest.$ac_ext <<_ACEOF
                   20960: /* end confdefs.h.  */
1.1       millert  20961:
1.9       millert  20962: /* Override any gcc2 internal prototype to avoid an error.  */
                   20963: #ifdef __cplusplus
                   20964: extern "C"
                   20965: #endif
                   20966: /* We use char because int might match the return type of a gcc2
                   20967:    builtin and then its argument prototype would still apply.  */
1.25      millert  20968: char getprpwnam ();
1.9       millert  20969: int
                   20970: main ()
                   20971: {
1.25      millert  20972: getprpwnam ();
1.9       millert  20973:   ;
                   20974:   return 0;
                   20975: }
                   20976: _ACEOF
                   20977: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  20978: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  20979:   (eval $ac_link) 2>conftest.er1
1.9       millert  20980:   ac_status=$?
1.25      millert  20981:   grep -v '^ *+' conftest.er1 >conftest.err
                   20982:   rm -f conftest.er1
                   20983:   cat conftest.err >&5
1.16      millert  20984:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20985:   (exit $ac_status); } &&
1.25      millert  20986:         { ac_try='test -z "$ac_c_werror_flag"
                   20987:                         || test ! -s conftest.err'
                   20988:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   20989:   (eval $ac_try) 2>&5
                   20990:   ac_status=$?
                   20991:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20992:   (exit $ac_status); }; } &&
                   20993:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  20994:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  20995:   (eval $ac_try) 2>&5
                   20996:   ac_status=$?
1.16      millert  20997:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  20998:   (exit $ac_status); }; }; then
1.25      millert  20999:   ac_cv_lib_security_getprpwnam=yes
1.9       millert  21000: else
                   21001:   echo "$as_me: failed program was:" >&5
1.16      millert  21002: sed 's/^/| /' conftest.$ac_ext >&5
                   21003:
1.25      millert  21004: ac_cv_lib_security_getprpwnam=no
1.9       millert  21005: fi
1.25      millert  21006: rm -f conftest.err conftest.$ac_objext \
                   21007:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21008: LIBS=$ac_check_lib_save_LIBS
                   21009: fi
1.25      millert  21010: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
                   21011: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   21012: if test $ac_cv_lib_security_getprpwnam = yes; then
                   21013:   cat >>confdefs.h <<\_ACEOF
                   21014: #define HAVE_GETPRPWNAM 1
                   21015: _ACEOF
                   21016:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
1.1       millert  21017: else
1.25      millert  21018:   echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
                   21019: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
                   21020: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
1.9       millert  21021:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21022: else
1.9       millert  21023:   ac_check_lib_save_LIBS=$LIBS
1.25      millert  21024: LIBS="-lprot  $LIBS"
1.9       millert  21025: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21026: /* confdefs.h.  */
                   21027: _ACEOF
                   21028: cat confdefs.h >>conftest.$ac_ext
                   21029: cat >>conftest.$ac_ext <<_ACEOF
                   21030: /* end confdefs.h.  */
1.9       millert  21031:
1.1       millert  21032: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  21033: #ifdef __cplusplus
                   21034: extern "C"
                   21035: #endif
1.1       millert  21036: /* We use char because int might match the return type of a gcc2
1.9       millert  21037:    builtin and then its argument prototype would still apply.  */
1.25      millert  21038: char getprpwnam ();
                   21039: int
                   21040: main ()
                   21041: {
                   21042: getprpwnam ();
                   21043:   ;
                   21044:   return 0;
                   21045: }
                   21046: _ACEOF
                   21047: rm -f conftest.$ac_objext conftest$ac_exeext
                   21048: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   21049:   (eval $ac_link) 2>conftest.er1
                   21050:   ac_status=$?
                   21051:   grep -v '^ *+' conftest.er1 >conftest.err
                   21052:   rm -f conftest.er1
                   21053:   cat conftest.err >&5
                   21054:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21055:   (exit $ac_status); } &&
                   21056:         { ac_try='test -z "$ac_c_werror_flag"
                   21057:                         || test ! -s conftest.err'
                   21058:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21059:   (eval $ac_try) 2>&5
                   21060:   ac_status=$?
                   21061:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21062:   (exit $ac_status); }; } &&
                   21063:         { ac_try='test -s conftest$ac_exeext'
                   21064:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21065:   (eval $ac_try) 2>&5
                   21066:   ac_status=$?
                   21067:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21068:   (exit $ac_status); }; }; then
                   21069:   ac_cv_lib_prot_getprpwnam=yes
                   21070: else
                   21071:   echo "$as_me: failed program was:" >&5
                   21072: sed 's/^/| /' conftest.$ac_ext >&5
                   21073:
                   21074: ac_cv_lib_prot_getprpwnam=no
                   21075: fi
                   21076: rm -f conftest.err conftest.$ac_objext \
                   21077:       conftest$ac_exeext conftest.$ac_ext
                   21078: LIBS=$ac_check_lib_save_LIBS
                   21079: fi
                   21080: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
                   21081: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
                   21082: if test $ac_cv_lib_prot_getprpwnam = yes; then
                   21083:   cat >>confdefs.h <<\_ACEOF
                   21084: #define HAVE_GETPRPWNAM 1
                   21085: _ACEOF
                   21086:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   21087: fi
                   21088:
                   21089: fi
                   21090:
                   21091: fi
                   21092:
                   21093: fi
                   21094:
                   21095: fi
                   21096: if test -n "$SECUREWARE"; then
                   21097:
                   21098:
                   21099:
                   21100: for ac_func in bigcrypt set_auth_parameters initprivs
                   21101: do
                   21102: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21103: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21104: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   21105: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   21106:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21107: else
                   21108:   cat >conftest.$ac_ext <<_ACEOF
                   21109: /* confdefs.h.  */
                   21110: _ACEOF
                   21111: cat confdefs.h >>conftest.$ac_ext
                   21112: cat >>conftest.$ac_ext <<_ACEOF
                   21113: /* end confdefs.h.  */
                   21114: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21115:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21116: #define $ac_func innocuous_$ac_func
                   21117:
                   21118: /* System header to define __stub macros and hopefully few prototypes,
                   21119:     which can conflict with char $ac_func (); below.
                   21120:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21121:     <limits.h> exists even on freestanding compilers.  */
                   21122:
                   21123: #ifdef __STDC__
                   21124: # include <limits.h>
                   21125: #else
                   21126: # include <assert.h>
                   21127: #endif
                   21128:
                   21129: #undef $ac_func
                   21130:
                   21131: /* Override any gcc2 internal prototype to avoid an error.  */
                   21132: #ifdef __cplusplus
                   21133: extern "C"
                   21134: {
                   21135: #endif
                   21136: /* We use char because int might match the return type of a gcc2
                   21137:    builtin and then its argument prototype would still apply.  */
                   21138: char $ac_func ();
                   21139: /* The GNU C library defines this for functions which it implements
                   21140:     to always fail with ENOSYS.  Some functions are actually named
                   21141:     something starting with __ and the normal name is an alias.  */
                   21142: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   21143: choke me
                   21144: #else
                   21145: char (*f) () = $ac_func;
                   21146: #endif
                   21147: #ifdef __cplusplus
                   21148: }
                   21149: #endif
                   21150:
1.9       millert  21151: int
                   21152: main ()
                   21153: {
1.25      millert  21154: return f != $ac_func;
1.9       millert  21155:   ;
                   21156:   return 0;
                   21157: }
                   21158: _ACEOF
                   21159: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  21160: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  21161:   (eval $ac_link) 2>conftest.er1
1.9       millert  21162:   ac_status=$?
1.25      millert  21163:   grep -v '^ *+' conftest.er1 >conftest.err
                   21164:   rm -f conftest.er1
                   21165:   cat conftest.err >&5
1.16      millert  21166:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21167:   (exit $ac_status); } &&
1.25      millert  21168:         { ac_try='test -z "$ac_c_werror_flag"
                   21169:                         || test ! -s conftest.err'
                   21170:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21171:   (eval $ac_try) 2>&5
                   21172:   ac_status=$?
                   21173:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21174:   (exit $ac_status); }; } &&
                   21175:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  21176:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  21177:   (eval $ac_try) 2>&5
                   21178:   ac_status=$?
1.16      millert  21179:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21180:   (exit $ac_status); }; }; then
1.25      millert  21181:   eval "$as_ac_var=yes"
1.9       millert  21182: else
                   21183:   echo "$as_me: failed program was:" >&5
1.16      millert  21184: sed 's/^/| /' conftest.$ac_ext >&5
                   21185:
1.25      millert  21186: eval "$as_ac_var=no"
                   21187: fi
                   21188: rm -f conftest.err conftest.$ac_objext \
                   21189:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21190: fi
1.25      millert  21191: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   21192: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   21193: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21194:   cat >>confdefs.h <<_ACEOF
                   21195: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21196: _ACEOF
                   21197:
1.9       millert  21198: fi
1.25      millert  21199: done
                   21200:
                   21201:
                   21202: if test X"$AUTH_EXCL" != X""; then
                   21203:     { { echo "$as_me:$LINENO: error: \"cannot mix SecureWare with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   21204: echo "$as_me: error: \"cannot mix SecureWare with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   21205:    { (exit 1); exit 1; }; }
                   21206: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   21207:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   21208:     { { echo "$as_me:$LINENO: error: \"cannot mix SecureWare with other authentication methods (such as $_AUTH)\"" >&5
                   21209: echo "$as_me: error: \"cannot mix SecureWare with other authentication methods (such as $_AUTH)\"" >&2;}
                   21210:    { (exit 1); exit 1; }; }
                   21211: fi
                   21212: if test X"" != X""; then
                   21213:     AUTH_OBJS="secureware.o"
                   21214:     AUTH_EXCL="SecureWare"
                   21215: elif test X"$AUTH_OBJS" = X""; then
                   21216:     AUTH_OBJS="secureware.o"
                   21217: else
                   21218:     AUTH_OBJS="$AUTH_OBJS secureware.o"
1.1       millert  21219: fi
                   21220:
                   21221: fi
                   21222:
1.25      millert  21223: if test "$with_AFS" = "yes"; then
                   21224:
                   21225:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   21226:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   21227:     for i in $AFSLIBDIRS; do
                   21228:        if test -d ${i}; then
                   21229:
                   21230:     if test X"$with_rpath" = X"yes"; then
                   21231:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
                   21232:     else
                   21233:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
                   21234:     fi
                   21235:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21236:        blibpath_add="${blibpath_add}:$i"
                   21237:     fi
                   21238:
                   21239:            FOUND_AFSLIBDIR=true
                   21240:        fi
                   21241:     done
                   21242:     if test -z "$FOUND_AFSLIBDIR"; then
                   21243:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
                   21244: echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
                   21245:     fi
                   21246:
                   21247:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   21248:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   21249:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   21250:     for i in $AFSLIBDIRS; do
                   21251:        if test -f ${i}/util.a; then
                   21252:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   21253:            FOUND_UTIL_A=true
                   21254:            break;
                   21255:        fi
                   21256:     done
                   21257:     if test -z "$FOUND_UTIL_A"; then
                   21258:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   21259:     fi
                   21260:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   21261:
                   21262:     # AFS includes may live in /usr/include on some machines...
                   21263:     for i in /usr/afsws/include; do
                   21264:        if test -d ${i}; then
                   21265:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   21266:            FOUND_AFSINCDIR=true
                   21267:        fi
                   21268:     done
                   21269:
                   21270:     if test -z "$FOUND_AFSLIBDIR"; then
                   21271:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
                   21272: echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
                   21273:     fi
1.1       millert  21274: fi
                   21275:
1.25      millert  21276: if test "$with_DCE" = "yes"; then
                   21277:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   21278:     SUDO_LIBS="${SUDO_LIBS} -ldce"
1.1       millert  21279: fi
                   21280:
1.25      millert  21281: if test -n "$with_skey"; then
                   21282:     O_LDFLAGS="$LDFLAGS"
                   21283:     if test "$with_skey" != "yes"; then
                   21284:        CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
                   21285:
                   21286:     if test X"$with_rpath" = X"yes"; then
                   21287:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
                   21288:     else
                   21289:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
                   21290:     fi
                   21291:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21292:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21293:     fi
                   21294:
                   21295:
                   21296:     if test X"$with_rpath" = X"yes"; then
                   21297:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
                   21298:     else
                   21299:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
                   21300:     fi
                   21301:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21302:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21303:     fi
                   21304:
                   21305:        cat >conftest.$ac_ext <<_ACEOF
                   21306: #include <skey.h>
1.16      millert  21307: _ACEOF
1.25      millert  21308: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   21309:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  21310:   ac_status=$?
1.25      millert  21311:   grep -v '^ *+' conftest.er1 >conftest.err
                   21312:   rm -f conftest.er1
                   21313:   cat conftest.err >&5
1.16      millert  21314:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  21315:   (exit $ac_status); } >/dev/null; then
                   21316:   if test -s conftest.err; then
                   21317:     ac_cpp_err=$ac_c_preproc_warn_flag
                   21318:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   21319:   else
                   21320:     ac_cpp_err=
                   21321:   fi
                   21322: else
                   21323:   ac_cpp_err=yes
                   21324: fi
                   21325: if test -z "$ac_cpp_err"; then
                   21326:   found=yes
                   21327: else
                   21328:   echo "$as_me: failed program was:" >&5
                   21329: sed 's/^/| /' conftest.$ac_ext >&5
                   21330:
                   21331:   found=no
                   21332: fi
                   21333: rm -f conftest.err conftest.$ac_ext
                   21334:     else
                   21335:        found=no
                   21336:        O_CPPFLAGS="$CPPFLAGS"
                   21337:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21338:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21339:            cat >conftest.$ac_ext <<_ACEOF
                   21340: #include <skey.h>
                   21341: _ACEOF
                   21342: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   21343:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  21344:   ac_status=$?
1.25      millert  21345:   grep -v '^ *+' conftest.er1 >conftest.err
                   21346:   rm -f conftest.er1
                   21347:   cat conftest.err >&5
1.16      millert  21348:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  21349:   (exit $ac_status); } >/dev/null; then
                   21350:   if test -s conftest.err; then
                   21351:     ac_cpp_err=$ac_c_preproc_warn_flag
                   21352:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   21353:   else
                   21354:     ac_cpp_err=
                   21355:   fi
                   21356: else
                   21357:   ac_cpp_err=yes
                   21358: fi
                   21359: if test -z "$ac_cpp_err"; then
                   21360:   found=yes; break
1.9       millert  21361: else
                   21362:   echo "$as_me: failed program was:" >&5
1.16      millert  21363: sed 's/^/| /' conftest.$ac_ext >&5
                   21364:
1.25      millert  21365:
1.9       millert  21366: fi
1.25      millert  21367: rm -f conftest.err conftest.$ac_ext
                   21368:        done
                   21369:        if test "$found" = "no" -o -z "$dir"; then
                   21370:            CPPFLAGS="$O_CPPFLAGS"
                   21371:        else
                   21372:
                   21373:     if test X"$with_rpath" = X"yes"; then
                   21374:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21375:     else
                   21376:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   21377:     fi
                   21378:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21379:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21380:     fi
1.1       millert  21381:
                   21382:
1.25      millert  21383:     if test X"$with_rpath" = X"yes"; then
                   21384:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21385:     else
                   21386:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   21387:     fi
                   21388:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21389:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21390:     fi
1.1       millert  21391:
1.25      millert  21392:        fi
                   21393:     fi
                   21394:     if test "$found" = "no"; then
                   21395:        { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
                   21396: echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
                   21397:     fi
                   21398:     echo "$as_me:$LINENO: checking for main in -lskey" >&5
                   21399: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
                   21400: if test "${ac_cv_lib_skey_main+set}" = set; then
1.9       millert  21401:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21402: else
1.25      millert  21403:   ac_check_lib_save_LIBS=$LIBS
                   21404: LIBS="-lskey  $LIBS"
                   21405: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21406: /* confdefs.h.  */
                   21407: _ACEOF
                   21408: cat confdefs.h >>conftest.$ac_ext
                   21409: cat >>conftest.$ac_ext <<_ACEOF
                   21410: /* end confdefs.h.  */
1.25      millert  21411:
1.1       millert  21412:
1.9       millert  21413: int
                   21414: main ()
                   21415: {
1.25      millert  21416: main ();
1.9       millert  21417:   ;
                   21418:   return 0;
                   21419: }
                   21420: _ACEOF
                   21421: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  21422: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  21423:   (eval $ac_link) 2>conftest.er1
1.9       millert  21424:   ac_status=$?
1.25      millert  21425:   grep -v '^ *+' conftest.er1 >conftest.err
                   21426:   rm -f conftest.er1
                   21427:   cat conftest.err >&5
1.16      millert  21428:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21429:   (exit $ac_status); } &&
1.25      millert  21430:         { ac_try='test -z "$ac_c_werror_flag"
                   21431:                         || test ! -s conftest.err'
                   21432:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21433:   (eval $ac_try) 2>&5
                   21434:   ac_status=$?
                   21435:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21436:   (exit $ac_status); }; } &&
                   21437:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  21438:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  21439:   (eval $ac_try) 2>&5
                   21440:   ac_status=$?
1.16      millert  21441:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21442:   (exit $ac_status); }; }; then
1.25      millert  21443:   ac_cv_lib_skey_main=yes
1.1       millert  21444: else
1.9       millert  21445:   echo "$as_me: failed program was:" >&5
1.16      millert  21446: sed 's/^/| /' conftest.$ac_ext >&5
                   21447:
1.25      millert  21448: ac_cv_lib_skey_main=no
1.1       millert  21449: fi
1.25      millert  21450: rm -f conftest.err conftest.$ac_objext \
                   21451:       conftest$ac_exeext conftest.$ac_ext
                   21452: LIBS=$ac_check_lib_save_LIBS
1.1       millert  21453: fi
1.25      millert  21454: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
                   21455: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
                   21456: if test $ac_cv_lib_skey_main = yes; then
                   21457:   found=yes
1.9       millert  21458: else
1.25      millert  21459:   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
                   21460: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
                   21461: fi
1.9       millert  21462:
1.25      millert  21463:     echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
                   21464: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
                   21465: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.9       millert  21466:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21467: else
1.25      millert  21468:   ac_check_lib_save_LIBS=$LIBS
                   21469: LIBS="-lskey  $LIBS"
                   21470: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21471: /* confdefs.h.  */
                   21472: _ACEOF
                   21473: cat confdefs.h >>conftest.$ac_ext
                   21474: cat >>conftest.$ac_ext <<_ACEOF
                   21475: /* end confdefs.h.  */
1.1       millert  21476:
                   21477: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  21478: #ifdef __cplusplus
                   21479: extern "C"
                   21480: #endif
1.1       millert  21481: /* We use char because int might match the return type of a gcc2
1.9       millert  21482:    builtin and then its argument prototype would still apply.  */
1.25      millert  21483: char skeyaccess ();
1.16      millert  21484: int
                   21485: main ()
                   21486: {
1.25      millert  21487: skeyaccess ();
1.9       millert  21488:   ;
                   21489:   return 0;
                   21490: }
                   21491: _ACEOF
                   21492: rm -f conftest.$ac_objext conftest$ac_exeext
1.16      millert  21493: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  21494:   (eval $ac_link) 2>conftest.er1
1.9       millert  21495:   ac_status=$?
1.25      millert  21496:   grep -v '^ *+' conftest.er1 >conftest.err
                   21497:   rm -f conftest.er1
                   21498:   cat conftest.err >&5
1.16      millert  21499:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21500:   (exit $ac_status); } &&
1.25      millert  21501:         { ac_try='test -z "$ac_c_werror_flag"
                   21502:                         || test ! -s conftest.err'
                   21503:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21504:   (eval $ac_try) 2>&5
                   21505:   ac_status=$?
                   21506:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21507:   (exit $ac_status); }; } &&
                   21508:         { ac_try='test -s conftest$ac_exeext'
1.16      millert  21509:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  21510:   (eval $ac_try) 2>&5
                   21511:   ac_status=$?
1.16      millert  21512:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21513:   (exit $ac_status); }; }; then
1.25      millert  21514:   ac_cv_lib_skey_skeyaccess=yes
1.9       millert  21515: else
                   21516:   echo "$as_me: failed program was:" >&5
1.16      millert  21517: sed 's/^/| /' conftest.$ac_ext >&5
                   21518:
1.25      millert  21519: ac_cv_lib_skey_skeyaccess=no
1.9       millert  21520: fi
1.25      millert  21521: rm -f conftest.err conftest.$ac_objext \
                   21522:       conftest$ac_exeext conftest.$ac_ext
                   21523: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21524: fi
1.25      millert  21525: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
                   21526: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
                   21527: if test $ac_cv_lib_skey_skeyaccess = yes; then
                   21528:   cat >>confdefs.h <<\_ACEOF
                   21529: #define HAVE_SKEYACCESS 1
1.16      millert  21530: _ACEOF
1.1       millert  21531:
                   21532: fi
                   21533:
1.25      millert  21534:     LDFLAGS="$O_LDFLAGS"
                   21535:     SUDO_LIBS="${SUDO_LIBS} -lskey"
1.1       millert  21536: fi
                   21537:
1.25      millert  21538: if test -n "$with_opie"; then
                   21539:     O_LDFLAGS="$LDFLAGS"
                   21540:     if test "$with_opie" != "yes"; then
                   21541:        CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
                   21542:
                   21543:     if test X"$with_rpath" = X"yes"; then
                   21544:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
                   21545:     else
                   21546:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
                   21547:     fi
                   21548:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21549:        blibpath_add="${blibpath_add}:${with_opie}/lib"
                   21550:     fi
                   21551:
                   21552:
                   21553:     if test X"$with_rpath" = X"yes"; then
                   21554:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
                   21555:     else
                   21556:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
                   21557:     fi
                   21558:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21559:        blibpath_add="${blibpath_add}:${with_opie}/lib"
                   21560:     fi
                   21561:
                   21562:        cat >conftest.$ac_ext <<_ACEOF
                   21563: #include <opie.h>
                   21564: _ACEOF
                   21565: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   21566:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   21567:   ac_status=$?
                   21568:   grep -v '^ *+' conftest.er1 >conftest.err
                   21569:   rm -f conftest.er1
                   21570:   cat conftest.err >&5
                   21571:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21572:   (exit $ac_status); } >/dev/null; then
                   21573:   if test -s conftest.err; then
                   21574:     ac_cpp_err=$ac_c_preproc_warn_flag
                   21575:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   21576:   else
                   21577:     ac_cpp_err=
                   21578:   fi
1.1       millert  21579: else
1.25      millert  21580:   ac_cpp_err=yes
                   21581: fi
                   21582: if test -z "$ac_cpp_err"; then
                   21583:   found=yes
1.1       millert  21584: else
1.25      millert  21585:   echo "$as_me: failed program was:" >&5
                   21586: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  21587:
1.25      millert  21588:   found=no
                   21589: fi
                   21590: rm -f conftest.err conftest.$ac_ext
                   21591:     else
                   21592:        found=no
                   21593:        O_CPPFLAGS="$CPPFLAGS"
                   21594:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21595:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21596:            cat >conftest.$ac_ext <<_ACEOF
                   21597: #include <opie.h>
1.9       millert  21598: _ACEOF
1.25      millert  21599: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   21600:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9       millert  21601:   ac_status=$?
1.25      millert  21602:   grep -v '^ *+' conftest.er1 >conftest.err
                   21603:   rm -f conftest.er1
                   21604:   cat conftest.err >&5
1.16      millert  21605:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  21606:   (exit $ac_status); } >/dev/null; then
                   21607:   if test -s conftest.err; then
                   21608:     ac_cpp_err=$ac_c_preproc_warn_flag
                   21609:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
                   21610:   else
                   21611:     ac_cpp_err=
                   21612:   fi
                   21613: else
                   21614:   ac_cpp_err=yes
                   21615: fi
                   21616: if test -z "$ac_cpp_err"; then
                   21617:   found=yes; break
1.1       millert  21618: else
1.25      millert  21619:   echo "$as_me: failed program was:" >&5
1.16      millert  21620: sed 's/^/| /' conftest.$ac_ext >&5
                   21621:
1.25      millert  21622:
1.1       millert  21623: fi
1.25      millert  21624: rm -f conftest.err conftest.$ac_ext
                   21625:        done
                   21626:        if test "$found" = "no" -o -z "$dir"; then
                   21627:            CPPFLAGS="$O_CPPFLAGS"
                   21628:        else
1.1       millert  21629:
1.25      millert  21630:     if test X"$with_rpath" = X"yes"; then
                   21631:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21632:     else
                   21633:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   21634:     fi
                   21635:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21636:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21637:     fi
1.16      millert  21638:
1.1       millert  21639:
1.25      millert  21640:     if test X"$with_rpath" = X"yes"; then
                   21641:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21642:     else
                   21643:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   21644:     fi
                   21645:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21646:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21647:     fi
1.1       millert  21648:
1.25      millert  21649:        fi
                   21650:     fi
                   21651:     if test "$found" = "no"; then
                   21652:        { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
                   21653: echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
                   21654:     fi
                   21655:     echo "$as_me:$LINENO: checking for main in -lopie" >&5
                   21656: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
                   21657: if test "${ac_cv_lib_opie_main+set}" = set; then
1.18      millert  21658:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21659: else
1.25      millert  21660:   ac_check_lib_save_LIBS=$LIBS
                   21661: LIBS="-lopie  $LIBS"
                   21662: cat >conftest.$ac_ext <<_ACEOF
1.18      millert  21663: /* confdefs.h.  */
                   21664: _ACEOF
                   21665: cat confdefs.h >>conftest.$ac_ext
                   21666: cat >>conftest.$ac_ext <<_ACEOF
                   21667: /* end confdefs.h.  */
1.25      millert  21668:
1.18      millert  21669:
                   21670: int
                   21671: main ()
                   21672: {
1.25      millert  21673: main ();
1.18      millert  21674:   ;
                   21675:   return 0;
                   21676: }
                   21677: _ACEOF
                   21678: rm -f conftest.$ac_objext conftest$ac_exeext
                   21679: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  21680:   (eval $ac_link) 2>conftest.er1
1.18      millert  21681:   ac_status=$?
1.25      millert  21682:   grep -v '^ *+' conftest.er1 >conftest.err
                   21683:   rm -f conftest.er1
                   21684:   cat conftest.err >&5
1.18      millert  21685:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21686:   (exit $ac_status); } &&
1.25      millert  21687:         { ac_try='test -z "$ac_c_werror_flag"
                   21688:                         || test ! -s conftest.err'
                   21689:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21690:   (eval $ac_try) 2>&5
                   21691:   ac_status=$?
                   21692:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21693:   (exit $ac_status); }; } &&
                   21694:         { ac_try='test -s conftest$ac_exeext'
1.18      millert  21695:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21696:   (eval $ac_try) 2>&5
                   21697:   ac_status=$?
                   21698:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21699:   (exit $ac_status); }; }; then
1.25      millert  21700:   ac_cv_lib_opie_main=yes
1.18      millert  21701: else
                   21702:   echo "$as_me: failed program was:" >&5
                   21703: sed 's/^/| /' conftest.$ac_ext >&5
                   21704:
1.25      millert  21705: ac_cv_lib_opie_main=no
                   21706: fi
                   21707: rm -f conftest.err conftest.$ac_objext \
                   21708:       conftest$ac_exeext conftest.$ac_ext
                   21709: LIBS=$ac_check_lib_save_LIBS
                   21710: fi
                   21711: echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
                   21712: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
                   21713: if test $ac_cv_lib_opie_main = yes; then
                   21714:   found=yes
                   21715: else
                   21716:   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
                   21717: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
1.18      millert  21718: fi
1.25      millert  21719:
                   21720:     LDFLAGS="$O_LDFLAGS"
                   21721:     SUDO_LIBS="${SUDO_LIBS} -lopie"
1.18      millert  21722: fi
                   21723:
1.25      millert  21724: if test ${with_SecurID-'no'} != "no"; then
                   21725:     if test "$with_SecurID" != "yes"; then
                   21726:        :
                   21727:     elif test -d /usr/ace/examples; then
                   21728:        with_SecurID=/usr/ace/examples
                   21729:     else
                   21730:        with_SecurID=/usr/ace
                   21731:     fi
                   21732:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   21733:     _LDFLAGS="${LDFLAGS}"
                   21734:
                   21735:     if test X"$with_rpath" = X"yes"; then
                   21736:        LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
                   21737:     else
                   21738:        LDFLAGS="${LDFLAGS} -L${with_SecurID}"
                   21739:     fi
                   21740:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21741:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   21742:     fi
1.18      millert  21743:
1.25      millert  21744:     #
                   21745:     # Determine whether to use the new or old SecurID API
                   21746:     #
                   21747:     echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
                   21748: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
                   21749: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.18      millert  21750:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21751: else
1.25      millert  21752:   ac_check_lib_save_LIBS=$LIBS
                   21753: LIBS="-laceclnt
                   21754:            -lpthread
1.18      millert  21755:
1.25      millert  21756:      $LIBS"
                   21757: cat >conftest.$ac_ext <<_ACEOF
1.18      millert  21758: /* confdefs.h.  */
                   21759: _ACEOF
                   21760: cat confdefs.h >>conftest.$ac_ext
                   21761: cat >>conftest.$ac_ext <<_ACEOF
                   21762: /* end confdefs.h.  */
                   21763:
1.25      millert  21764: /* Override any gcc2 internal prototype to avoid an error.  */
                   21765: #ifdef __cplusplus
                   21766: extern "C"
                   21767: #endif
                   21768: /* We use char because int might match the return type of a gcc2
                   21769:    builtin and then its argument prototype would still apply.  */
                   21770: char SD_Init ();
1.18      millert  21771: int
                   21772: main ()
                   21773: {
1.25      millert  21774: SD_Init ();
1.18      millert  21775:   ;
                   21776:   return 0;
                   21777: }
                   21778: _ACEOF
                   21779: rm -f conftest.$ac_objext conftest$ac_exeext
                   21780: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  21781:   (eval $ac_link) 2>conftest.er1
1.18      millert  21782:   ac_status=$?
1.25      millert  21783:   grep -v '^ *+' conftest.er1 >conftest.err
                   21784:   rm -f conftest.er1
                   21785:   cat conftest.err >&5
1.18      millert  21786:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21787:   (exit $ac_status); } &&
1.25      millert  21788:         { ac_try='test -z "$ac_c_werror_flag"
                   21789:                         || test ! -s conftest.err'
                   21790:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21791:   (eval $ac_try) 2>&5
                   21792:   ac_status=$?
                   21793:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21794:   (exit $ac_status); }; } &&
                   21795:         { ac_try='test -s conftest$ac_exeext'
1.18      millert  21796:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21797:   (eval $ac_try) 2>&5
                   21798:   ac_status=$?
                   21799:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21800:   (exit $ac_status); }; }; then
1.25      millert  21801:   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.18      millert  21802: else
                   21803:   echo "$as_me: failed program was:" >&5
                   21804: sed 's/^/| /' conftest.$ac_ext >&5
                   21805:
1.25      millert  21806: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
                   21807: fi
                   21808: rm -f conftest.err conftest.$ac_objext \
                   21809:       conftest$ac_exeext conftest.$ac_ext
                   21810: LIBS=$ac_check_lib_save_LIBS
1.18      millert  21811: fi
1.25      millert  21812: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
                   21813: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
                   21814: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
                   21815:
                   21816:
                   21817: if test X"$AUTH_EXCL" != X""; then
                   21818:     { { echo "$as_me:$LINENO: error: \"cannot mix SecurID 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   21819: echo "$as_me: error: \"cannot mix SecurID 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   21820:    { (exit 1); exit 1; }; }
                   21821: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   21822:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   21823:     { { echo "$as_me:$LINENO: error: \"cannot mix SecurID 5 with other authentication methods (such as $_AUTH)\"" >&5
                   21824: echo "$as_me: error: \"cannot mix SecurID 5 with other authentication methods (such as $_AUTH)\"" >&2;}
                   21825:    { (exit 1); exit 1; }; }
                   21826: fi
                   21827: if test X"true" != X""; then
                   21828:     AUTH_OBJS="securid5.o"
                   21829:     AUTH_EXCL="SecurID 5"
                   21830: elif test X"$AUTH_OBJS" = X""; then
                   21831:     AUTH_OBJS="securid5.o"
                   21832: else
                   21833:     AUTH_OBJS="$AUTH_OBJS securid5.o"
1.18      millert  21834: fi
                   21835:
1.25      millert  21836:            SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
                   21837:
                   21838:
1.18      millert  21839:
1.25      millert  21840:     if test X"$with_rpath" = X"yes"; then
                   21841:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
1.18      millert  21842:     else
1.25      millert  21843:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
                   21844:     fi
                   21845:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21846:        blibpath_add="${blibpath_add}:${with_SecurID}"
1.18      millert  21847:     fi
                   21848:
                   21849:
1.25      millert  21850: else
                   21851:
1.17      millert  21852:
1.25      millert  21853: if test X"$AUTH_EXCL" != X""; then
                   21854:     { { echo "$as_me:$LINENO: error: \"cannot mix SecurID with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   21855: echo "$as_me: error: \"cannot mix SecurID with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   21856:    { (exit 1); exit 1; }; }
                   21857: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   21858:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   21859:     { { echo "$as_me:$LINENO: error: \"cannot mix SecurID with other authentication methods (such as $_AUTH)\"" >&5
                   21860: echo "$as_me: error: \"cannot mix SecurID with other authentication methods (such as $_AUTH)\"" >&2;}
                   21861:    { (exit 1); exit 1; }; }
                   21862: fi
                   21863: if test X"true" != X""; then
                   21864:     AUTH_OBJS="securid.o"
                   21865:     AUTH_EXCL="SecurID"
                   21866: elif test X"$AUTH_OBJS" = X""; then
                   21867:     AUTH_OBJS="securid.o"
1.17      millert  21868: else
1.25      millert  21869:     AUTH_OBJS="$AUTH_OBJS securid.o"
1.17      millert  21870: fi
                   21871:
1.25      millert  21872:            SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   21873:
                   21874: fi
1.17      millert  21875:
1.25      millert  21876:     LDFLAGS="${_LDFLAGS}"
1.17      millert  21877: fi
1.25      millert  21878:
                   21879: if test -n "$with_fwtk"; then
                   21880:     if test "$with_fwtk" != "yes"; then
1.1       millert  21881:
1.17      millert  21882:     if test X"$with_rpath" = X"yes"; then
1.25      millert  21883:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
1.1       millert  21884:     else
1.25      millert  21885:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   21886:     fi
                   21887:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21888:        blibpath_add="${blibpath_add}:${with_fwtk}"
                   21889:     fi
                   21890:
                   21891:        CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   21892:        with_fwtk=yes
1.1       millert  21893:     fi
1.25      millert  21894:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   21895: fi
                   21896:
                   21897: if test ${with_aixauth-'no'} != "no"; then
                   21898:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   21899:        { echo "$as_me:$LINENO: using AIX general authentication" >&5
                   21900: echo "$as_me: using AIX general authentication" >&6;}
                   21901:        cat >>confdefs.h <<\_ACEOF
                   21902: #define HAVE_AIXAUTH 1
                   21903: _ACEOF
                   21904:
1.1       millert  21905:
1.25      millert  21906: if test X"$AUTH_EXCL" != X""; then
                   21907:     { { echo "$as_me:$LINENO: error: \"cannot mix AIX general authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   21908: echo "$as_me: error: \"cannot mix AIX general authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   21909:    { (exit 1); exit 1; }; }
                   21910: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   21911:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   21912:     { { echo "$as_me:$LINENO: error: \"cannot mix AIX general authentication with other authentication methods (such as $_AUTH)\"" >&5
                   21913: echo "$as_me: error: \"cannot mix AIX general authentication with other authentication methods (such as $_AUTH)\"" >&2;}
                   21914:    { (exit 1); exit 1; }; }
                   21915: fi
                   21916: if test X"true" != X""; then
                   21917:     AUTH_OBJS="aix_auth.o"
                   21918:     AUTH_EXCL="AIX general authentication"
                   21919: elif test X"$AUTH_OBJS" = X""; then
                   21920:     AUTH_OBJS="aix_auth.o"
                   21921: else
                   21922:     AUTH_OBJS="$AUTH_OBJS aix_auth.o"
                   21923: fi
1.17      millert  21924:
1.25      millert  21925:        SUDO_LIBS="${SUDO_LIBS} -ls"
1.1       millert  21926:     fi
1.25      millert  21927: fi
1.1       millert  21928:
1.25      millert  21929: if test ${with_bsdauth-'no'} != "no"; then
                   21930:     if test X"$with_bsdauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   21931:        if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   21932:   echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   21933: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
                   21934: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.17      millert  21935:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21936: fi
1.25      millert  21937: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   21938: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.5       millert  21939: else
1.17      millert  21940:   # Is the header compilable?
1.25      millert  21941: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
                   21942: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
1.9       millert  21943: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21944: /* confdefs.h.  */
                   21945: _ACEOF
                   21946: cat confdefs.h >>conftest.$ac_ext
                   21947: cat >>conftest.$ac_ext <<_ACEOF
                   21948: /* end confdefs.h.  */
1.17      millert  21949: $ac_includes_default
1.25      millert  21950: #include <bsd_auth.h>
1.9       millert  21951: _ACEOF
1.17      millert  21952: rm -f conftest.$ac_objext
                   21953: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25      millert  21954:   (eval $ac_compile) 2>conftest.er1
1.9       millert  21955:   ac_status=$?
1.25      millert  21956:   grep -v '^ *+' conftest.er1 >conftest.err
                   21957:   rm -f conftest.er1
                   21958:   cat conftest.err >&5
1.16      millert  21959:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21960:   (exit $ac_status); } &&
1.25      millert  21961:         { ac_try='test -z "$ac_c_werror_flag"
                   21962:                         || test ! -s conftest.err'
                   21963:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   21964:   (eval $ac_try) 2>&5
                   21965:   ac_status=$?
                   21966:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21967:   (exit $ac_status); }; } &&
                   21968:         { ac_try='test -s conftest.$ac_objext'
1.16      millert  21969:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9       millert  21970:   (eval $ac_try) 2>&5
                   21971:   ac_status=$?
1.16      millert  21972:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  21973:   (exit $ac_status); }; }; then
1.17      millert  21974:   ac_header_compiler=yes
1.9       millert  21975: else
                   21976:   echo "$as_me: failed program was:" >&5
1.16      millert  21977: sed 's/^/| /' conftest.$ac_ext >&5
                   21978:
1.17      millert  21979: ac_header_compiler=no
1.9       millert  21980: fi
1.25      millert  21981: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.17      millert  21982: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   21983: echo "${ECHO_T}$ac_header_compiler" >&6
                   21984:
                   21985: # Is the header present?
1.25      millert  21986: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
                   21987: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
1.17      millert  21988: cat >conftest.$ac_ext <<_ACEOF
                   21989: /* confdefs.h.  */
                   21990: _ACEOF
                   21991: cat confdefs.h >>conftest.$ac_ext
                   21992: cat >>conftest.$ac_ext <<_ACEOF
                   21993: /* end confdefs.h.  */
1.25      millert  21994: #include <bsd_auth.h>
1.17      millert  21995: _ACEOF
                   21996: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   21997:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   21998:   ac_status=$?
                   21999:   grep -v '^ *+' conftest.er1 >conftest.err
                   22000:   rm -f conftest.er1
                   22001:   cat conftest.err >&5
                   22002:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22003:   (exit $ac_status); } >/dev/null; then
                   22004:   if test -s conftest.err; then
                   22005:     ac_cpp_err=$ac_c_preproc_warn_flag
1.25      millert  22006:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.17      millert  22007:   else
                   22008:     ac_cpp_err=
                   22009:   fi
                   22010: else
                   22011:   ac_cpp_err=yes
1.9       millert  22012: fi
1.17      millert  22013: if test -z "$ac_cpp_err"; then
                   22014:   ac_header_preproc=yes
1.5       millert  22015: else
1.17      millert  22016:   echo "$as_me: failed program was:" >&5
                   22017: sed 's/^/| /' conftest.$ac_ext >&5
                   22018:
                   22019:   ac_header_preproc=no
1.5       millert  22020: fi
1.17      millert  22021: rm -f conftest.err conftest.$ac_ext
                   22022: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   22023: echo "${ECHO_T}$ac_header_preproc" >&6
1.5       millert  22024:
1.17      millert  22025: # So?  What about this header?
1.25      millert  22026: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   22027:   yes:no: )
                   22028:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   22029: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   22030:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
                   22031: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
                   22032:     ac_header_preproc=yes
1.17      millert  22033:     ;;
1.25      millert  22034:   no:yes:* )
                   22035:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
                   22036: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
                   22037:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
                   22038: echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
                   22039:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
                   22040: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
                   22041:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
                   22042: echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   22043:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
                   22044: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
                   22045:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
                   22046: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.17      millert  22047:     (
                   22048:       cat <<\_ASBOX
1.25      millert  22049: ## ------------------------------- ##
                   22050: ## Report this to the sudo lists.  ##
                   22051: ## ------------------------------- ##
1.17      millert  22052: _ASBOX
                   22053:     ) |
                   22054:       sed "s/^/$as_me: WARNING:     /" >&2
                   22055:     ;;
                   22056: esac
1.25      millert  22057: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   22058: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
                   22059: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.17      millert  22060:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22061: else
1.25      millert  22062:   ac_cv_header_bsd_auth_h=$ac_header_preproc
1.5       millert  22063: fi
1.25      millert  22064: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   22065: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.5       millert  22066:
1.17      millert  22067: fi
1.25      millert  22068: if test $ac_cv_header_bsd_auth_h = yes; then
                   22069:   cat >>confdefs.h <<\_ACEOF
                   22070: #define HAVE_BSD_AUTH_H 1
                   22071: _ACEOF
                   22072:
                   22073:
                   22074: if test X"$AUTH_EXCL" != X""; then
                   22075:     { { echo "$as_me:$LINENO: error: \"cannot mix BSD authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&5
                   22076: echo "$as_me: error: \"cannot mix BSD authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
                   22077:    { (exit 1); exit 1; }; }
                   22078: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
                   22079:     _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   22080:     { { echo "$as_me:$LINENO: error: \"cannot mix BSD authentication with other authentication methods (such as $_AUTH)\"" >&5
                   22081: echo "$as_me: error: \"cannot mix BSD authentication with other authentication methods (such as $_AUTH)\"" >&2;}
                   22082:    { (exit 1); exit 1; }; }
                   22083: fi
                   22084: if test X"true" != X""; then
                   22085:     AUTH_OBJS="bsdauth.o"
                   22086:     AUTH_EXCL="BSD authentication"
                   22087: elif test X"$AUTH_OBJS" = X""; then
                   22088:     AUTH_OBJS="bsdauth.o"
1.17      millert  22089: else
1.25      millert  22090:     AUTH_OBJS="$AUTH_OBJS bsdauth.o"
1.17      millert  22091: fi
1.9       millert  22092:
1.1       millert  22093: else
1.25      millert  22094:   -
                   22095: fi
1.16      millert  22096:
                   22097:
1.25      millert  22098:     fi
1.9       millert  22099: fi
1.1       millert  22100:
1.25      millert  22101: if test -n "$with_ldap"; then
                   22102:     _LDFLAGS="$LDFLAGS"
                   22103:     if test "$with_ldap" != "yes"; then
1.17      millert  22104:
1.25      millert  22105:     if test X"$with_rpath" = X"yes"; then
                   22106:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22107:     else
                   22108:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
                   22109:     fi
                   22110:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22111:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22112:     fi
1.17      millert  22113:
                   22114:
1.25      millert  22115:     if test X"$with_rpath" = X"yes"; then
                   22116:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22117:     else
                   22118:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
                   22119:     fi
                   22120:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22121:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22122:     fi
1.17      millert  22123:
1.25      millert  22124:        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
                   22125:        with_ldap=yes
                   22126:     fi
                   22127:     SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17      millert  22128:
1.25      millert  22129:     echo "$as_me:$LINENO: checking for LDAP libraries" >&5
                   22130: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6
                   22131:     LDAP_LIBS=""
                   22132:     _LIBS="$LIBS"
                   22133:     found=no
                   22134:     for l in -lldap -llber '-lssl -lcrypto'; do
                   22135:        LIBS="${LIBS} $l"
                   22136:        LDAP_LIBS="${LDAP_LIBS} $l"
                   22137:        cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22138: /* confdefs.h.  */
                   22139: _ACEOF
                   22140: cat confdefs.h >>conftest.$ac_ext
                   22141: cat >>conftest.$ac_ext <<_ACEOF
                   22142: /* end confdefs.h.  */
1.25      millert  22143: #include <sys/types.h>
                   22144:        #include <lber.h>
                   22145:        #include <ldap.h>
1.17      millert  22146: int
                   22147: main ()
                   22148: {
1.25      millert  22149: (void)ldap_init(0, 0)
1.17      millert  22150:   ;
                   22151:   return 0;
                   22152: }
                   22153: _ACEOF
                   22154: rm -f conftest.$ac_objext conftest$ac_exeext
                   22155: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  22156:   (eval $ac_link) 2>conftest.er1
1.17      millert  22157:   ac_status=$?
1.25      millert  22158:   grep -v '^ *+' conftest.er1 >conftest.err
                   22159:   rm -f conftest.er1
                   22160:   cat conftest.err >&5
1.17      millert  22161:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22162:   (exit $ac_status); } &&
1.25      millert  22163:         { ac_try='test -z "$ac_c_werror_flag"
                   22164:                         || test ! -s conftest.err'
                   22165:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22166:   (eval $ac_try) 2>&5
                   22167:   ac_status=$?
                   22168:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22169:   (exit $ac_status); }; } &&
                   22170:         { ac_try='test -s conftest$ac_exeext'
1.17      millert  22171:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22172:   (eval $ac_try) 2>&5
                   22173:   ac_status=$?
                   22174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22175:   (exit $ac_status); }; }; then
1.25      millert  22176:   found=yes; break
1.17      millert  22177: else
                   22178:   echo "$as_me: failed program was:" >&5
                   22179: sed 's/^/| /' conftest.$ac_ext >&5
                   22180:
                   22181: fi
1.25      millert  22182: rm -f conftest.err conftest.$ac_objext \
                   22183:       conftest$ac_exeext conftest.$ac_ext
                   22184:     done
                   22185:         if test "$found" = "no"; then
                   22186:        LDAP_LIBS=" -lldap"
                   22187:        echo "$as_me:$LINENO: result: not found, using -lldap" >&5
                   22188: echo "${ECHO_T}not found, using -lldap" >&6
                   22189:     else
                   22190:        echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
                   22191: echo "${ECHO_T}$LDAP_LIBS" >&6
                   22192:     fi
                   22193:         echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
                   22194: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6
                   22195:     cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22196: /* confdefs.h.  */
                   22197: _ACEOF
                   22198: cat confdefs.h >>conftest.$ac_ext
                   22199: cat >>conftest.$ac_ext <<_ACEOF
                   22200: /* end confdefs.h.  */
1.25      millert  22201: #include <sys/types.h>
                   22202:     #include <ldap.h>
1.17      millert  22203: int
                   22204: main ()
                   22205: {
1.25      millert  22206: (void)ldap_init(0, 0)
1.17      millert  22207:   ;
                   22208:   return 0;
                   22209: }
                   22210: _ACEOF
                   22211: rm -f conftest.$ac_objext conftest$ac_exeext
                   22212: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  22213:   (eval $ac_link) 2>conftest.er1
1.17      millert  22214:   ac_status=$?
1.25      millert  22215:   grep -v '^ *+' conftest.er1 >conftest.err
                   22216:   rm -f conftest.er1
                   22217:   cat conftest.err >&5
1.17      millert  22218:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22219:   (exit $ac_status); } &&
1.25      millert  22220:         { ac_try='test -z "$ac_c_werror_flag"
                   22221:                         || test ! -s conftest.err'
                   22222:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22223:   (eval $ac_try) 2>&5
                   22224:   ac_status=$?
                   22225:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22226:   (exit $ac_status); }; } &&
                   22227:         { ac_try='test -s conftest$ac_exeext'
1.17      millert  22228:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22229:   (eval $ac_try) 2>&5
                   22230:   ac_status=$?
                   22231:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22232:   (exit $ac_status); }; }; then
1.25      millert  22233:   echo "$as_me:$LINENO: result: no" >&5
                   22234: echo "${ECHO_T}no" >&6
1.17      millert  22235: else
                   22236:   echo "$as_me: failed program was:" >&5
                   22237: sed 's/^/| /' conftest.$ac_ext >&5
                   22238:
1.25      millert  22239:
                   22240:     echo "$as_me:$LINENO: result: yes" >&5
                   22241: echo "${ECHO_T}yes" >&6
                   22242:     cat >>confdefs.h <<\_ACEOF
                   22243: #define HAVE_LBER_H 1
                   22244: _ACEOF
                   22245:
1.17      millert  22246: fi
1.25      millert  22247: rm -f conftest.err conftest.$ac_objext \
                   22248:       conftest$ac_exeext conftest.$ac_ext
                   22249:
                   22250:
1.17      millert  22251:
1.25      millert  22252: for ac_func in ldap_initialize ldap_start_tls_s
                   22253: do
                   22254: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22255: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22256: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   22257: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.17      millert  22258:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22259: else
1.25      millert  22260:   cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22261: /* confdefs.h.  */
                   22262: _ACEOF
                   22263: cat confdefs.h >>conftest.$ac_ext
                   22264: cat >>conftest.$ac_ext <<_ACEOF
                   22265: /* end confdefs.h.  */
1.25      millert  22266: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22267:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22268: #define $ac_func innocuous_$ac_func
                   22269:
                   22270: /* System header to define __stub macros and hopefully few prototypes,
                   22271:     which can conflict with char $ac_func (); below.
                   22272:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22273:     <limits.h> exists even on freestanding compilers.  */
                   22274:
                   22275: #ifdef __STDC__
                   22276: # include <limits.h>
                   22277: #else
                   22278: # include <assert.h>
                   22279: #endif
1.17      millert  22280:
1.25      millert  22281: #undef $ac_func
                   22282:
                   22283: /* Override any gcc2 internal prototype to avoid an error.  */
                   22284: #ifdef __cplusplus
                   22285: extern "C"
                   22286: {
                   22287: #endif
                   22288: /* We use char because int might match the return type of a gcc2
                   22289:    builtin and then its argument prototype would still apply.  */
                   22290: char $ac_func ();
                   22291: /* The GNU C library defines this for functions which it implements
                   22292:     to always fail with ENOSYS.  Some functions are actually named
                   22293:     something starting with __ and the normal name is an alias.  */
                   22294: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   22295: choke me
                   22296: #else
                   22297: char (*f) () = $ac_func;
                   22298: #endif
                   22299: #ifdef __cplusplus
                   22300: }
                   22301: #endif
1.17      millert  22302:
                   22303: int
                   22304: main ()
                   22305: {
1.25      millert  22306: return f != $ac_func;
1.17      millert  22307:   ;
                   22308:   return 0;
                   22309: }
                   22310: _ACEOF
                   22311: rm -f conftest.$ac_objext conftest$ac_exeext
                   22312: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25      millert  22313:   (eval $ac_link) 2>conftest.er1
1.17      millert  22314:   ac_status=$?
1.25      millert  22315:   grep -v '^ *+' conftest.er1 >conftest.err
                   22316:   rm -f conftest.er1
                   22317:   cat conftest.err >&5
1.17      millert  22318:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22319:   (exit $ac_status); } &&
1.25      millert  22320:         { ac_try='test -z "$ac_c_werror_flag"
                   22321:                         || test ! -s conftest.err'
                   22322:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22323:   (eval $ac_try) 2>&5
                   22324:   ac_status=$?
                   22325:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22326:   (exit $ac_status); }; } &&
                   22327:         { ac_try='test -s conftest$ac_exeext'
1.17      millert  22328:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   22329:   (eval $ac_try) 2>&5
                   22330:   ac_status=$?
                   22331:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22332:   (exit $ac_status); }; }; then
1.25      millert  22333:   eval "$as_ac_var=yes"
1.17      millert  22334: else
                   22335:   echo "$as_me: failed program was:" >&5
                   22336: sed 's/^/| /' conftest.$ac_ext >&5
                   22337:
1.25      millert  22338: eval "$as_ac_var=no"
1.17      millert  22339: fi
1.25      millert  22340: rm -f conftest.err conftest.$ac_objext \
                   22341:       conftest$ac_exeext conftest.$ac_ext
1.17      millert  22342: fi
1.25      millert  22343: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   22344: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   22345: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22346:   cat >>confdefs.h <<_ACEOF
                   22347: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22348: _ACEOF
1.17      millert  22349:
                   22350: fi
1.25      millert  22351: done
1.17      millert  22352:
                   22353:
1.25      millert  22354:     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
                   22355:     LIBS="$_LIBS"
                   22356:     LDFLAGS="$_LDFLAGS"
                   22357:     # XXX - OpenLDAP has deprecated ldap_get_values()
                   22358:     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
                   22359: fi
                   22360:
                   22361: if test -n "$blibpath"; then
                   22362:     if test -n "$blibpath_add"; then
                   22363:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
                   22364:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   22365:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
                   22366:     fi
1.17      millert  22367: fi
                   22368:
1.25      millert  22369: echo "$as_me:$LINENO: checking for log file location" >&5
                   22370: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
                   22371: if test -n "$with_logpath"; then
                   22372:     echo "$as_me:$LINENO: result: $with_logpath" >&5
                   22373: echo "${ECHO_T}$with_logpath" >&6
                   22374:     cat >>confdefs.h <<EOF
                   22375: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   22376: EOF
                   22377:
                   22378: elif test -d "/var/log"; then
                   22379:     echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
                   22380: echo "${ECHO_T}/var/log/sudo.log" >&6
                   22381:     cat >>confdefs.h <<\EOF
                   22382: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   22383: EOF
                   22384:
                   22385: elif test -d "/var/adm"; then
                   22386:     echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
                   22387: echo "${ECHO_T}/var/adm/sudo.log" >&6
                   22388:     cat >>confdefs.h <<\EOF
                   22389: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   22390: EOF
                   22391:
                   22392: elif test -d "/usr/adm"; then
                   22393:     echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
                   22394: echo "${ECHO_T}/usr/adm/sudo.log" >&6
                   22395:     cat >>confdefs.h <<\EOF
                   22396: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   22397: EOF
                   22398:
                   22399: else
                   22400:     echo "$as_me:$LINENO: result: unknown" >&5
                   22401: echo "${ECHO_T}unknown" >&6
1.17      millert  22402: fi
                   22403:
1.25      millert  22404: echo "$as_me:$LINENO: checking for timestamp file location" >&5
                   22405: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
                   22406: if test -n "$with_timedir"; then
                   22407:     echo "$as_me:$LINENO: result: $with_timedir" >&5
                   22408: echo "${ECHO_T}$with_timedir" >&6
                   22409:     cat >>confdefs.h <<EOF
                   22410: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   22411: EOF
                   22412:
                   22413:     timedir="$with_timedir"
                   22414: elif test -d "/var/run"; then
                   22415:     echo "$as_me:$LINENO: result: /var/run/sudo" >&5
                   22416: echo "${ECHO_T}/var/run/sudo" >&6
                   22417:     cat >>confdefs.h <<\EOF
                   22418: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   22419: EOF
                   22420:
                   22421:     timedir="/var/run/sudo"
                   22422: elif test -d "/var/adm"; then
                   22423:     echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
                   22424: echo "${ECHO_T}/var/adm/sudo" >&6
                   22425:     cat >>confdefs.h <<\EOF
                   22426: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
                   22427: EOF
                   22428:
                   22429:     timedir="/var/adm/sudo"
1.18      millert  22430: else
1.25      millert  22431:     echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
                   22432: echo "${ECHO_T}/usr/adm/sudo" >&6
                   22433:     cat >>confdefs.h <<\EOF
                   22434: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
                   22435: EOF
1.18      millert  22436:
1.25      millert  22437:     timedir="/usr/adm/sudo"
1.18      millert  22438: fi
                   22439:
                   22440:
1.25      millert  22441: case "$AUTH_OBJS" in
                   22442: *passwd.o*)
                   22443:     ;;
                   22444: *)
                   22445:     cat >>confdefs.h <<\_ACEOF
                   22446: #define WITHOUT_PASSWD 1
1.19      millert  22447: _ACEOF
                   22448:
1.25      millert  22449:     if test -z "$AUTH_OBJS"; then
                   22450:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
                   22451: echo "$as_me: error: no authentication methods defined." >&2;}
                   22452:    { (exit 1); exit 1; }; }
                   22453:     fi
                   22454:     ;;
                   22455: esac
                   22456: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   22457: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
                   22458: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.19      millert  22459:
1.25      millert  22460: if test -n "$LIBS"; then
                   22461:     L="$LIBS"
                   22462:     LIBS=
                   22463:     for l in ${L}; do
                   22464:        dupe=0
                   22465:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   22466:            test $l = $sl && dupe=1
                   22467:        done
                   22468:        test $dupe = 0 && LIBS="${LIBS} $l"
                   22469:     done
                   22470: fi
1.19      millert  22471:
1.25      millert  22472: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.19      millert  22473:
1.25      millert  22474: if test "$with_noexec" != "no"; then
                   22475:     PROGS="${PROGS} sudo_noexec.la"
                   22476:     INSTALL_NOEXEC="install-noexec"
1.19      millert  22477:
1.25      millert  22478:     oexec_prefix="$exec_prefix"
                   22479:     if test "$exec_prefix" = '$(prefix)'; then
                   22480:        if test "$prefix" = "NONE"; then
                   22481:            exec_prefix="$ac_default_prefix"
                   22482:        else
                   22483:            exec_prefix="$prefix"
                   22484:        fi
1.18      millert  22485:     fi
1.25      millert  22486:     eval noexec_file="$with_noexec"
                   22487:
                   22488: cat >>confdefs.h <<_ACEOF
                   22489: #define _PATH_SUDO_NOEXEC "$noexec_file"
                   22490: _ACEOF
                   22491:
                   22492:     exec_prefix="$oexec_prefix"
1.18      millert  22493: fi
1.25      millert  22494:
                   22495:                                         ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
                   22496:
                   22497: cat >confcache <<\_ACEOF
                   22498: # This file is a shell script that caches the results of configure
                   22499: # tests run on this system so they can be shared between configure
                   22500: # scripts and configure runs, see configure's option --config-cache.
                   22501: # It is not useful on other systems.  If it contains results you don't
                   22502: # want to keep, you may remove or edit it.
                   22503: #
                   22504: # config.status only pays attention to the cache file if you give it
                   22505: # the --recheck option to rerun configure.
                   22506: #
                   22507: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   22508: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   22509: # following values.
                   22510:
1.17      millert  22511: _ACEOF
                   22512:
1.25      millert  22513: # The following way of writing the cache mishandles newlines in values,
                   22514: # but we know of no workaround that is simple, portable, and efficient.
                   22515: # So, don't put newlines in cache variables' values.
                   22516: # Ultrix sh set writes to stderr and can't be redirected directly,
                   22517: # and sets the high bit in the cache file unless we assign to the vars.
                   22518: {
                   22519:   (set) 2>&1 |
                   22520:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   22521:     *ac_space=\ *)
                   22522:       # `set' does not quote correctly, so add quotes (double-quote
                   22523:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   22524:       sed -n \
                   22525:        "s/'/'\\\\''/g;
                   22526:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   22527:       ;;
                   22528:     *)
                   22529:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   22530:       sed -n \
                   22531:        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   22532:       ;;
                   22533:     esac;
                   22534: } |
                   22535:   sed '
                   22536:      t clear
                   22537:      : clear
                   22538:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   22539:      t end
                   22540:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   22541:      : end' >>confcache
                   22542: if diff $cache_file confcache >/dev/null 2>&1; then :; else
                   22543:   if test -w $cache_file; then
                   22544:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   22545:     cat confcache >$cache_file
1.17      millert  22546:   else
1.25      millert  22547:     echo "not updating unwritable cache $cache_file"
1.17      millert  22548:   fi
                   22549: fi
1.25      millert  22550: rm -f confcache
1.17      millert  22551:
1.25      millert  22552: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   22553: # Let make expand exec_prefix.
                   22554: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.17      millert  22555:
1.25      millert  22556: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   22557: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   22558: # trailing colons and then remove the whole line if VPATH becomes empty
                   22559: # (actually we leave an empty line to preserve line numbers).
                   22560: if test "x$srcdir" = x.; then
                   22561:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   22562: s/:*\$(srcdir):*/:/;
                   22563: s/:*\${srcdir}:*/:/;
                   22564: s/:*@srcdir@:*/:/;
                   22565: s/^\([^=]*=[    ]*\):*/\1/;
                   22566: s/:*$//;
                   22567: s/^[^=]*=[      ]*$//;
                   22568: }'
1.17      millert  22569: fi
                   22570:
1.25      millert  22571: DEFS=-DHAVE_CONFIG_H
1.17      millert  22572:
1.25      millert  22573: ac_libobjs=
                   22574: ac_ltlibobjs=
                   22575: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   22576:   # 1. Remove the extension, and $U if already installed.
                   22577:   ac_i=`echo "$ac_i" |
                   22578:         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
                   22579:   # 2. Add them.
                   22580:   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
                   22581:   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
                   22582: done
                   22583: LIBOBJS=$ac_libobjs
1.17      millert  22584:
1.25      millert  22585: LTLIBOBJS=$ac_ltlibobjs
1.17      millert  22586:
1.19      millert  22587:
1.17      millert  22588:
1.25      millert  22589: : ${CONFIG_STATUS=./config.status}
                   22590: ac_clean_files_save=$ac_clean_files
                   22591: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   22592: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   22593: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   22594: cat >$CONFIG_STATUS <<_ACEOF
                   22595: #! $SHELL
                   22596: # Generated by $as_me.
                   22597: # Run this file to recreate the current configuration.
                   22598: # Compiler output produced by configure, useful for debugging
                   22599: # configure, is in config.log if it exists.
1.17      millert  22600:
1.25      millert  22601: debug=false
                   22602: ac_cs_recheck=false
                   22603: ac_cs_silent=false
                   22604: SHELL=\${CONFIG_SHELL-$SHELL}
1.17      millert  22605: _ACEOF
                   22606:
1.25      millert  22607: cat >>$CONFIG_STATUS <<\_ACEOF
                   22608: ## --------------------- ##
                   22609: ## M4sh Initialization.  ##
                   22610: ## --------------------- ##
                   22611:
                   22612: # Be Bourne compatible
                   22613: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   22614:   emulate sh
                   22615:   NULLCMD=:
                   22616:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   22617:   # is contrary to our usage.  Disable this feature.
                   22618:   alias -g '${1+"$@"}'='"$@"'
                   22619: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                   22620:   set -o posix
1.17      millert  22621: fi
1.25      millert  22622: DUALCASE=1; export DUALCASE # for MKS sh
                   22623:
                   22624: # Support unset when possible.
                   22625: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   22626:   as_unset=unset
                   22627: else
                   22628:   as_unset=false
1.17      millert  22629: fi
1.25      millert  22630:
                   22631:
                   22632: # Work around bugs in pre-3.0 UWIN ksh.
                   22633: $as_unset ENV MAIL MAILPATH
                   22634: PS1='$ '
                   22635: PS2='> '
                   22636: PS4='+ '
                   22637:
                   22638: # NLS nuisances.
                   22639: for as_var in \
                   22640:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   22641:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   22642:   LC_TELEPHONE LC_TIME
                   22643: do
                   22644:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   22645:     eval $as_var=C; export $as_var
                   22646:   else
                   22647:     $as_unset $as_var
                   22648:   fi
                   22649: done
                   22650:
                   22651: # Required to use basename.
                   22652: if expr a : '\(a\)' >/dev/null 2>&1; then
                   22653:   as_expr=expr
                   22654: else
                   22655:   as_expr=false
1.17      millert  22656: fi
                   22657:
1.25      millert  22658: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
                   22659:   as_basename=basename
                   22660: else
                   22661:   as_basename=false
                   22662: fi
1.17      millert  22663:
                   22664:
1.25      millert  22665: # Name of the executable.
                   22666: as_me=`$as_basename "$0" ||
                   22667: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   22668:         X"$0" : 'X\(//\)$' \| \
                   22669:         X"$0" : 'X\(/\)$' \| \
                   22670:         .     : '\(.\)' 2>/dev/null ||
                   22671: echo X/"$0" |
                   22672:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
                   22673:          /^X\/\(\/\/\)$/{ s//\1/; q; }
                   22674:          /^X\/\(\/\).*/{ s//\1/; q; }
                   22675:          s/.*/./; q'`
1.17      millert  22676:
                   22677:
1.25      millert  22678: # PATH needs CR, and LINENO needs CR and PATH.
                   22679: # Avoid depending upon Character Ranges.
                   22680: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   22681: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   22682: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   22683: as_cr_digits='0123456789'
                   22684: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.17      millert  22685:
1.25      millert  22686: # The user is always right.
                   22687: if test "${PATH_SEPARATOR+set}" != set; then
                   22688:   echo "#! /bin/sh" >conf$$.sh
                   22689:   echo  "exit 0"   >>conf$$.sh
                   22690:   chmod +x conf$$.sh
                   22691:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   22692:     PATH_SEPARATOR=';'
                   22693:   else
                   22694:     PATH_SEPARATOR=:
                   22695:   fi
                   22696:   rm -f conf$$.sh
1.17      millert  22697: fi
                   22698:
                   22699:
1.25      millert  22700:   as_lineno_1=$LINENO
                   22701:   as_lineno_2=$LINENO
                   22702:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   22703:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   22704:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
                   22705:   # Find who we are.  Look in the path if we contain no path at all
                   22706:   # relative or not.
                   22707:   case $0 in
                   22708:     *[\\/]* ) as_myself=$0 ;;
                   22709:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22710: for as_dir in $PATH
                   22711: do
                   22712:   IFS=$as_save_IFS
                   22713:   test -z "$as_dir" && as_dir=.
                   22714:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   22715: done
                   22716:
                   22717:        ;;
                   22718:   esac
                   22719:   # We did not find ourselves, most probably we were run as `sh COMMAND'
                   22720:   # in which case we are not to be found in the path.
                   22721:   if test "x$as_myself" = x; then
                   22722:     as_myself=$0
                   22723:   fi
                   22724:   if test ! -f "$as_myself"; then
                   22725:     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
                   22726: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
                   22727:    { (exit 1); exit 1; }; }
                   22728:   fi
                   22729:   case $CONFIG_SHELL in
                   22730:   '')
                   22731:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22732: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                   22733: do
                   22734:   IFS=$as_save_IFS
                   22735:   test -z "$as_dir" && as_dir=.
                   22736:   for as_base in sh bash ksh sh5; do
                   22737:         case $as_dir in
                   22738:         /*)
                   22739:           if ("$as_dir/$as_base" -c '
                   22740:   as_lineno_1=$LINENO
                   22741:   as_lineno_2=$LINENO
                   22742:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   22743:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   22744:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
                   22745:             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
                   22746:             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
                   22747:             CONFIG_SHELL=$as_dir/$as_base
                   22748:             export CONFIG_SHELL
                   22749:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
                   22750:           fi;;
                   22751:         esac
                   22752:        done
                   22753: done
                   22754: ;;
                   22755:   esac
                   22756:
                   22757:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   22758:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   22759:   # line-number line before each line; the second 'sed' does the real
                   22760:   # work.  The second script uses 'N' to pair each line-number line
                   22761:   # with the numbered line, and appends trailing '-' during
                   22762:   # substitution so that $LINENO is not a special case at line end.
                   22763:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   22764:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
                   22765:   sed '=' <$as_myself |
                   22766:     sed '
                   22767:       N
                   22768:       s,$,-,
                   22769:       : loop
                   22770:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
                   22771:       t loop
                   22772:       s,-$,,
                   22773:       s,^['$as_cr_digits']*\n,,
                   22774:     ' >$as_me.lineno &&
                   22775:   chmod +x $as_me.lineno ||
                   22776:     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
                   22777: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
                   22778:    { (exit 1); exit 1; }; }
1.17      millert  22779:
1.25      millert  22780:   # Don't try to exec as it changes $[0], causing all sort of problems
                   22781:   # (the dirname of $[0] is not the place where we might find the
                   22782:   # original and so on.  Autoconf is especially sensible to this).
                   22783:   . ./$as_me.lineno
                   22784:   # Exit status is that of the last command.
                   22785:   exit
1.23      millert  22786: }
                   22787:
                   22788:
1.25      millert  22789: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                   22790:   *c*,-n*) ECHO_N= ECHO_C='
                   22791: ' ECHO_T='     ' ;;
                   22792:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                   22793:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
                   22794: esac
1.23      millert  22795:
1.25      millert  22796: if expr a : '\(a\)' >/dev/null 2>&1; then
                   22797:   as_expr=expr
1.23      millert  22798: else
1.25      millert  22799:   as_expr=false
1.23      millert  22800: fi
                   22801:
1.25      millert  22802: rm -f conf$$ conf$$.exe conf$$.file
                   22803: echo >conf$$.file
                   22804: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   22805:   # We could just check for DJGPP; but this test a) works b) is more generic
                   22806:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                   22807:   if test -f conf$$.exe; then
                   22808:     # Don't use ln at all; we don't have any links
                   22809:     as_ln_s='cp -p'
1.23      millert  22810:   else
1.25      millert  22811:     as_ln_s='ln -s'
1.23      millert  22812:   fi
1.25      millert  22813: elif ln conf$$.file conf$$ 2>/dev/null; then
                   22814:   as_ln_s=ln
1.23      millert  22815: else
1.25      millert  22816:   as_ln_s='cp -p'
1.23      millert  22817: fi
1.25      millert  22818: rm -f conf$$ conf$$.exe conf$$.file
                   22819:
                   22820: if mkdir -p . 2>/dev/null; then
                   22821:   as_mkdir_p=:
1.23      millert  22822: else
1.25      millert  22823:   test -d ./-p && rmdir ./-p
                   22824:   as_mkdir_p=false
                   22825: fi
                   22826:
                   22827: as_executable_p="test -f"
                   22828:
                   22829: # Sed expression to map a string onto a valid CPP name.
                   22830: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   22831:
                   22832: # Sed expression to map a string onto a valid variable name.
                   22833: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   22834:
                   22835:
                   22836: # IFS
                   22837: # We need space, tab and new line, in precisely that order.
                   22838: as_nl='
                   22839: '
                   22840: IFS="  $as_nl"
                   22841:
                   22842: # CDPATH.
                   22843: $as_unset CDPATH
1.23      millert  22844:
1.25      millert  22845: exec 6>&1
1.23      millert  22846:
1.25      millert  22847: # Open the log real soon, to keep \$[0] and so on meaningful, and to
                   22848: # report actual input values of CONFIG_FILES etc. instead of their
                   22849: # values after options handling.  Logging --version etc. is OK.
                   22850: exec 5>>config.log
                   22851: {
                   22852:   echo
                   22853:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   22854: ## Running $as_me. ##
1.23      millert  22855: _ASBOX
1.25      millert  22856: } >&5
                   22857: cat >&5 <<_CSEOF
                   22858:
                   22859: This file was extended by sudo $as_me 1.6.9, which was
                   22860: generated by GNU Autoconf 2.59.  Invocation command line was
                   22861:
                   22862:   CONFIG_FILES    = $CONFIG_FILES
                   22863:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   22864:   CONFIG_LINKS    = $CONFIG_LINKS
                   22865:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   22866:   $ $0 $@
1.17      millert  22867:
1.25      millert  22868: _CSEOF
                   22869: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
                   22870: echo >&5
1.23      millert  22871: _ACEOF
                   22872:
1.25      millert  22873: # Files that config.status was made for.
                   22874: if test -n "$ac_config_files"; then
                   22875:   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.17      millert  22876: fi
1.23      millert  22877:
1.25      millert  22878: if test -n "$ac_config_headers"; then
                   22879:   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
                   22880: fi
1.17      millert  22881:
1.25      millert  22882: if test -n "$ac_config_links"; then
                   22883:   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.17      millert  22884: fi
                   22885:
1.25      millert  22886: if test -n "$ac_config_commands"; then
                   22887:   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
                   22888: fi
1.17      millert  22889:
1.25      millert  22890: cat >>$CONFIG_STATUS <<\_ACEOF
1.17      millert  22891:
1.25      millert  22892: ac_cs_usage="\
                   22893: \`$as_me' instantiates files from templates according to the
                   22894: current configuration.
1.17      millert  22895:
1.25      millert  22896: Usage: $0 [OPTIONS] [FILE]...
1.17      millert  22897:
1.25      millert  22898:   -h, --help       print this help, then exit
                   22899:   -V, --version    print version number, then exit
                   22900:   -q, --quiet      do not print progress messages
                   22901:   -d, --debug      don't remove temporary files
                   22902:       --recheck    update $as_me by reconfiguring in the same conditions
                   22903:   --file=FILE[:TEMPLATE]
                   22904:                   instantiate the configuration file FILE
                   22905:   --header=FILE[:TEMPLATE]
                   22906:                   instantiate the configuration header FILE
1.17      millert  22907:
1.25      millert  22908: Configuration files:
                   22909: $config_files
1.17      millert  22910:
1.25      millert  22911: Configuration headers:
                   22912: $config_headers
1.17      millert  22913:
1.25      millert  22914: Configuration commands:
                   22915: $config_commands
1.17      millert  22916:
1.25      millert  22917: Report bugs to <bug-autoconf@gnu.org>."
                   22918: _ACEOF
1.17      millert  22919:
1.25      millert  22920: cat >>$CONFIG_STATUS <<_ACEOF
                   22921: ac_cs_version="\\
                   22922: sudo config.status 1.6.9
                   22923: configured by $0, generated by GNU Autoconf 2.59,
                   22924:   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.17      millert  22925:
1.25      millert  22926: Copyright (C) 2003 Free Software Foundation, Inc.
                   22927: This config.status script is free software; the Free Software Foundation
                   22928: gives unlimited permission to copy, distribute and modify it."
                   22929: srcdir=$srcdir
                   22930: _ACEOF
1.17      millert  22931:
1.25      millert  22932: cat >>$CONFIG_STATUS <<\_ACEOF
                   22933: # If no file are specified by the user, then we need to provide default
                   22934: # value.  By we need to know if files were specified by the user.
                   22935: ac_need_defaults=:
                   22936: while test $# != 0
                   22937: do
                   22938:   case $1 in
                   22939:   --*=*)
                   22940:     ac_option=`expr "x$1" : 'x\([^=]*\)='`
                   22941:     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
                   22942:     ac_shift=:
                   22943:     ;;
                   22944:   -*)
                   22945:     ac_option=$1
                   22946:     ac_optarg=$2
                   22947:     ac_shift=shift
                   22948:     ;;
                   22949:   *) # This is not an option, so the user has probably given explicit
                   22950:      # arguments.
                   22951:      ac_option=$1
                   22952:      ac_need_defaults=false;;
                   22953:   esac
1.17      millert  22954:
1.25      millert  22955:   case $ac_option in
                   22956:   # Handling of the options.
1.17      millert  22957: _ACEOF
1.25      millert  22958: cat >>$CONFIG_STATUS <<\_ACEOF
                   22959:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   22960:     ac_cs_recheck=: ;;
                   22961:   --version | --vers* | -V )
                   22962:     echo "$ac_cs_version"; exit 0 ;;
                   22963:   --he | --h)
                   22964:     # Conflict between --help and --header
                   22965:     { { echo "$as_me:$LINENO: error: ambiguous option: $1
                   22966: Try \`$0 --help' for more information." >&5
                   22967: echo "$as_me: error: ambiguous option: $1
                   22968: Try \`$0 --help' for more information." >&2;}
                   22969:    { (exit 1); exit 1; }; };;
                   22970:   --help | --hel | -h )
                   22971:     echo "$ac_cs_usage"; exit 0 ;;
                   22972:   --debug | --d* | -d )
                   22973:     debug=: ;;
                   22974:   --file | --fil | --fi | --f )
                   22975:     $ac_shift
                   22976:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   22977:     ac_need_defaults=false;;
                   22978:   --header | --heade | --head | --hea )
                   22979:     $ac_shift
                   22980:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   22981:     ac_need_defaults=false;;
                   22982:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   22983:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   22984:     ac_cs_silent=: ;;
                   22985:
                   22986:   # This is an error.
                   22987:   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
                   22988: Try \`$0 --help' for more information." >&5
                   22989: echo "$as_me: error: unrecognized option: $1
                   22990: Try \`$0 --help' for more information." >&2;}
                   22991:    { (exit 1); exit 1; }; } ;;
                   22992:
                   22993:   *) ac_config_targets="$ac_config_targets $1" ;;
                   22994:
                   22995:   esac
                   22996:   shift
                   22997: done
                   22998:
                   22999: ac_configure_extra_args=
                   23000:
                   23001: if $ac_cs_silent; then
                   23002:   exec 6>/dev/null
                   23003:   ac_configure_extra_args="$ac_configure_extra_args --silent"
1.17      millert  23004: fi
                   23005:
                   23006: _ACEOF
1.25      millert  23007: cat >>$CONFIG_STATUS <<_ACEOF
                   23008: if \$ac_cs_recheck; then
                   23009:   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   23010:   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.17      millert  23011: fi
                   23012:
1.25      millert  23013: _ACEOF
1.17      millert  23014:
1.25      millert  23015: cat >>$CONFIG_STATUS <<_ACEOF
                   23016: #
                   23017: # INIT-COMMANDS section.
                   23018: #
1.17      millert  23019:
1.1       millert  23020:
                   23021:
1.25      millert  23022: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   23023: # if CDPATH is set.
                   23024: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       millert  23025:
1.25      millert  23026: sed_quote_subst='$sed_quote_subst'
                   23027: double_quote_subst='$double_quote_subst'
                   23028: delay_variable_subst='$delay_variable_subst'
                   23029: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
                   23030: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
                   23031: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
                   23032: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
                   23033: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
                   23034: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
                   23035: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
                   23036: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
                   23037: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
                   23038: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
                   23039: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
                   23040: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
                   23041: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
                   23042: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
                   23043: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
                   23044: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
                   23045: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
                   23046: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
                   23047: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
                   23048: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
                   23049: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23050: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
                   23051: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
                   23052: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
                   23053: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
                   23054: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
                   23055: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
                   23056: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23057: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23058: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23059: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
                   23060: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
                   23061: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
                   23062: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
                   23063: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
                   23064: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
                   23065: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
                   23066: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
                   23067: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
                   23068: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
                   23069: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
                   23070: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
                   23071: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
                   23072: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
                   23073: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
                   23074: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
                   23075: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
                   23076: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
                   23077: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
                   23078: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
                   23079: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
                   23080: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23081: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23082: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
                   23083: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
                   23084: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
                   23085: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23086: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23087: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23088: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23089: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23090: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23091: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23092: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23093: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
                   23094: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
                   23095: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
                   23096: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23097: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
                   23098: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
                   23099: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
                   23100: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
                   23101: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
                   23102: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
                   23103: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
                   23104: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
                   23105: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
                   23106: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
                   23107: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23108: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
                   23109: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
                   23110: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
                   23111: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
                   23112: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
                   23113: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
                   23114: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
                   23115: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
                   23116: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23117: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23118: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23119: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23120: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23121: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
                   23122: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
                   23123: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
                   23124: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23125: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
                   23126: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
                   23127: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
                   23128: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
                   23129:
                   23130: LTCC='$LTCC'
                   23131: LTCFLAGS='$LTCFLAGS'
                   23132: compiler='$compiler_DEFAULT'
                   23133:
                   23134: # Quote evaled strings.
                   23135: for var in SED GREP EGREP FGREP LD NM LN_S reload_flag deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC CFLAGS compiler SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
                   23136:     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
                   23137: done
                   23138:
                   23139: # Double-quote double-evaled strings.
                   23140: for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
                   23141:     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
                   23142: done
                   23143:
                   23144: # Fix-up fallback echo if it was mangled by the above quoting rules.
                   23145: case \$lt_ECHO in
                   23146: *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
                   23147:   ;;
                   23148: esac
                   23149:
                   23150: ac_aux_dir='$ac_aux_dir'
                   23151:
                   23152: # See if we are running on zsh, and set the options which allow our
                   23153: # commands through without removal of \ escapes INIT.
                   23154: if test -n "\${ZSH_VERSION+set}" ; then
                   23155:    setopt NO_GLOB_SUBST
                   23156: fi
                   23157:
                   23158:
                   23159:     PACKAGE='$PACKAGE'
                   23160:     VERSION='$VERSION'
                   23161:     TIMESTAMP='$TIMESTAMP'
                   23162:     RM='$RM'
                   23163:     ofile='$ofile'
1.17      millert  23164:
1.1       millert  23165:
                   23166:
                   23167:
1.16      millert  23168: _ACEOF
                   23169:
                   23170:
1.25      millert  23171:
                   23172: cat >>$CONFIG_STATUS <<\_ACEOF
                   23173: for ac_config_target in $ac_config_targets
                   23174: do
                   23175:   case "$ac_config_target" in
                   23176:   # Handling of arguments.
                   23177:   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   23178:   "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   23179:   "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   23180:   "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
                   23181:   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
                   23182:   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   23183:   "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   23184:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   23185: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   23186:    { (exit 1); exit 1; }; };;
                   23187:   esac
                   23188: done
                   23189:
                   23190: # If the user did not use the arguments to specify the items to instantiate,
                   23191: # then the envvar interface is used.  Set only those that are not.
                   23192: # We use the long form for the default assignment because of an extremely
                   23193: # bizarre bug on SunOS 4.1.3.
                   23194: if $ac_need_defaults; then
                   23195:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   23196:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   23197:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.16      millert  23198: fi
                   23199:
1.25      millert  23200: # Have a temporary directory for convenience.  Make it in the build tree
                   23201: # simply because there is no reason to put it here, and in addition,
                   23202: # creating and moving files from /tmp can sometimes cause problems.
                   23203: # Create a temporary directory, and hook for its removal unless debugging.
                   23204: $debug ||
                   23205: {
                   23206:   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
                   23207:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   23208: }
1.16      millert  23209:
1.25      millert  23210: # Create a (secure) tmp directory for tmp files.
1.17      millert  23211:
1.25      millert  23212: {
                   23213:   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
                   23214:   test -n "$tmp" && test -d "$tmp"
                   23215: }  ||
                   23216: {
                   23217:   tmp=./confstat$$-$RANDOM
                   23218:   (umask 077 && mkdir $tmp)
                   23219: } ||
                   23220: {
                   23221:    echo "$me: cannot create a temporary directory in ." >&2
                   23222:    { (exit 1); exit 1; }
                   23223: }
1.17      millert  23224:
1.25      millert  23225: _ACEOF
1.17      millert  23226:
1.25      millert  23227: cat >>$CONFIG_STATUS <<_ACEOF
1.17      millert  23228:
1.25      millert  23229: #
                   23230: # CONFIG_FILES section.
                   23231: #
1.17      millert  23232:
1.25      millert  23233: # No need to generate the scripts if there are no CONFIG_FILES.
                   23234: # This happens for instance when ./config.status config.h
                   23235: if test -n "\$CONFIG_FILES"; then
                   23236:   # Protect against being on the right side of a sed subst in config.status.
                   23237:   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
                   23238:    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
                   23239: s,@SHELL@,$SHELL,;t t
                   23240: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
                   23241: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
                   23242: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
                   23243: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
                   23244: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
                   23245: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
                   23246: s,@exec_prefix@,$exec_prefix,;t t
                   23247: s,@prefix@,$prefix,;t t
                   23248: s,@program_transform_name@,$program_transform_name,;t t
                   23249: s,@bindir@,$bindir,;t t
                   23250: s,@sbindir@,$sbindir,;t t
                   23251: s,@libexecdir@,$libexecdir,;t t
                   23252: s,@datadir@,$datadir,;t t
                   23253: s,@sysconfdir@,$sysconfdir,;t t
                   23254: s,@sharedstatedir@,$sharedstatedir,;t t
                   23255: s,@localstatedir@,$localstatedir,;t t
                   23256: s,@libdir@,$libdir,;t t
                   23257: s,@includedir@,$includedir,;t t
                   23258: s,@oldincludedir@,$oldincludedir,;t t
                   23259: s,@infodir@,$infodir,;t t
                   23260: s,@mandir@,$mandir,;t t
                   23261: s,@build_alias@,$build_alias,;t t
                   23262: s,@host_alias@,$host_alias,;t t
                   23263: s,@target_alias@,$target_alias,;t t
                   23264: s,@DEFS@,$DEFS,;t t
                   23265: s,@ECHO_C@,$ECHO_C,;t t
                   23266: s,@ECHO_N@,$ECHO_N,;t t
                   23267: s,@ECHO_T@,$ECHO_T,;t t
                   23268: s,@LIBS@,$LIBS,;t t
                   23269: s,@LIBTOOL@,$LIBTOOL,;t t
                   23270: s,@CFLAGS@,$CFLAGS,;t t
                   23271: s,@PROGS@,$PROGS,;t t
                   23272: s,@CPPFLAGS@,$CPPFLAGS,;t t
                   23273: s,@LDFLAGS@,$LDFLAGS,;t t
                   23274: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
                   23275: s,@SUDO_OBJS@,$SUDO_OBJS,;t t
                   23276: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
                   23277: s,@NET_LIBS@,$NET_LIBS,;t t
                   23278: s,@AFS_LIBS@,$AFS_LIBS,;t t
                   23279: s,@OSDEFS@,$OSDEFS,;t t
                   23280: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
                   23281: s,@MANTYPE@,$MANTYPE,;t t
                   23282: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
                   23283: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
                   23284: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
                   23285: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
                   23286: s,@DEV@,$DEV,;t t
                   23287: s,@mansectsu@,$mansectsu,;t t
                   23288: s,@mansectform@,$mansectform,;t t
                   23289: s,@mansrcdir@,$mansrcdir,;t t
                   23290: s,@NOEXECDIR@,$NOEXECDIR,;t t
                   23291: s,@noexec_file@,$noexec_file,;t t
                   23292: s,@INSTALL_NOEXEC@,$INSTALL_NOEXEC,;t t
                   23293: s,@DONT_LEAK_PATH_INFO@,$DONT_LEAK_PATH_INFO,;t t
                   23294: s,@timedir@,$timedir,;t t
                   23295: s,@timeout@,$timeout,;t t
                   23296: s,@password_timeout@,$password_timeout,;t t
                   23297: s,@sudo_umask@,$sudo_umask,;t t
                   23298: s,@passprompt@,$passprompt,;t t
                   23299: s,@long_otp_prompt@,$long_otp_prompt,;t t
                   23300: s,@lecture@,$lecture,;t t
                   23301: s,@logfac@,$logfac,;t t
                   23302: s,@goodpri@,$goodpri,;t t
                   23303: s,@badpri@,$badpri,;t t
                   23304: s,@loglen@,$loglen,;t t
                   23305: s,@ignore_dot@,$ignore_dot,;t t
                   23306: s,@mail_no_user@,$mail_no_user,;t t
                   23307: s,@mail_no_host@,$mail_no_host,;t t
                   23308: s,@mail_no_perms@,$mail_no_perms,;t t
                   23309: s,@mailto@,$mailto,;t t
                   23310: s,@mailsub@,$mailsub,;t t
                   23311: s,@badpass_message@,$badpass_message,;t t
                   23312: s,@fqdn@,$fqdn,;t t
                   23313: s,@runas_default@,$runas_default,;t t
                   23314: s,@env_editor@,$env_editor,;t t
                   23315: s,@passwd_tries@,$passwd_tries,;t t
                   23316: s,@tty_tickets@,$tty_tickets,;t t
                   23317: s,@insults@,$insults,;t t
                   23318: s,@root_sudo@,$root_sudo,;t t
                   23319: s,@path_info@,$path_info,;t t
                   23320: s,@EGREPPROG@,$EGREPPROG,;t t
                   23321: s,@CC@,$CC,;t t
                   23322: s,@ac_ct_CC@,$ac_ct_CC,;t t
                   23323: s,@EXEEXT@,$EXEEXT,;t t
                   23324: s,@OBJEXT@,$OBJEXT,;t t
                   23325: s,@CPP@,$CPP,;t t
                   23326: s,@build@,$build,;t t
                   23327: s,@build_cpu@,$build_cpu,;t t
                   23328: s,@build_vendor@,$build_vendor,;t t
                   23329: s,@build_os@,$build_os,;t t
                   23330: s,@host@,$host,;t t
                   23331: s,@host_cpu@,$host_cpu,;t t
                   23332: s,@host_vendor@,$host_vendor,;t t
                   23333: s,@host_os@,$host_os,;t t
                   23334: s,@target@,$target,;t t
                   23335: s,@target_cpu@,$target_cpu,;t t
                   23336: s,@target_vendor@,$target_vendor,;t t
                   23337: s,@target_os@,$target_os,;t t
                   23338: s,@SED@,$SED,;t t
                   23339: s,@EGREP@,$EGREP,;t t
                   23340: s,@FGREP@,$FGREP,;t t
                   23341: s,@GREP@,$GREP,;t t
                   23342: s,@LD@,$LD,;t t
                   23343: s,@NM@,$NM,;t t
                   23344: s,@LN_S@,$LN_S,;t t
                   23345: s,@AR@,$AR,;t t
                   23346: s,@ac_ct_AR@,$ac_ct_AR,;t t
                   23347: s,@STRIP@,$STRIP,;t t
                   23348: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
                   23349: s,@RANLIB@,$RANLIB,;t t
                   23350: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
                   23351: s,@lt_ECHO@,$lt_ECHO,;t t
                   23352: s,@UNAMEPROG@,$UNAMEPROG,;t t
                   23353: s,@TRPROG@,$TRPROG,;t t
                   23354: s,@NROFFPROG@,$NROFFPROG,;t t
                   23355: s,@YACC@,$YACC,;t t
                   23356: s,@LIBOBJS@,$LIBOBJS,;t t
                   23357: s,@ALLOCA@,$ALLOCA,;t t
                   23358: s,@KRB5CONFIG@,$KRB5CONFIG,;t t
                   23359: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
                   23360: CEOF
1.17      millert  23361:
                   23362: _ACEOF
                   23363:
1.25      millert  23364:   cat >>$CONFIG_STATUS <<\_ACEOF
                   23365:   # Split the substitutions into bite-sized pieces for seds with
                   23366:   # small command number limits, like on Digital OSF/1 and HP-UX.
                   23367:   ac_max_sed_lines=48
                   23368:   ac_sed_frag=1 # Number of current file.
                   23369:   ac_beg=1 # First line for current file.
                   23370:   ac_end=$ac_max_sed_lines # Line after last line for current file.
                   23371:   ac_more_lines=:
                   23372:   ac_sed_cmds=
                   23373:   while $ac_more_lines; do
                   23374:     if test $ac_beg -gt 1; then
                   23375:       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.17      millert  23376:     else
1.25      millert  23377:       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.17      millert  23378:     fi
1.25      millert  23379:     if test ! -s $tmp/subs.frag; then
                   23380:       ac_more_lines=false
1.16      millert  23381:     else
1.25      millert  23382:       # The purpose of the label and of the branching condition is to
                   23383:       # speed up the sed processing (if there are no `@' at all, there
                   23384:       # is no need to browse any of the substitutions).
                   23385:       # These are the two extra sed commands mentioned above.
                   23386:       (echo ':t
                   23387:   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
                   23388:       if test -z "$ac_sed_cmds"; then
                   23389:        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
                   23390:       else
                   23391:        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
                   23392:       fi
                   23393:       ac_sed_frag=`expr $ac_sed_frag + 1`
                   23394:       ac_beg=$ac_end
                   23395:       ac_end=`expr $ac_end + $ac_max_sed_lines`
1.17      millert  23396:     fi
1.25      millert  23397:   done
                   23398:   if test -z "$ac_sed_cmds"; then
                   23399:     ac_sed_cmds=cat
                   23400:   fi
                   23401: fi # test -n "$CONFIG_FILES"
1.17      millert  23402:
                   23403: _ACEOF
1.25      millert  23404: cat >>$CONFIG_STATUS <<\_ACEOF
                   23405: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
                   23406:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   23407:   case $ac_file in
                   23408:   - | *:- | *:-:* ) # input from stdin
                   23409:        cat >$tmp/stdin
                   23410:        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   23411:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   23412:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   23413:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   23414:   * )   ac_file_in=$ac_file.in ;;
                   23415:   esac
1.17      millert  23416:
1.25      millert  23417:   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
                   23418:   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
                   23419: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23420:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   23421:         X"$ac_file" : 'X\(//\)$' \| \
                   23422:         X"$ac_file" : 'X\(/\)' \| \
                   23423:         .     : '\(.\)' 2>/dev/null ||
                   23424: echo X"$ac_file" |
                   23425:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23426:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23427:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23428:          /^X\(\/\).*/{ s//\1/; q; }
                   23429:          s/.*/./; q'`
                   23430:   { if $as_mkdir_p; then
                   23431:     mkdir -p "$ac_dir"
                   23432:   else
                   23433:     as_dir="$ac_dir"
                   23434:     as_dirs=
                   23435:     while test ! -d "$as_dir"; do
                   23436:       as_dirs="$as_dir $as_dirs"
                   23437:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
                   23438: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23439:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   23440:         X"$as_dir" : 'X\(//\)$' \| \
                   23441:         X"$as_dir" : 'X\(/\)' \| \
                   23442:         .     : '\(.\)' 2>/dev/null ||
                   23443: echo X"$as_dir" |
                   23444:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23445:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23446:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23447:          /^X\(\/\).*/{ s//\1/; q; }
                   23448:          s/.*/./; q'`
                   23449:     done
                   23450:     test ! -n "$as_dirs" || mkdir $as_dirs
                   23451:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
                   23452: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
                   23453:    { (exit 1); exit 1; }; }; }
1.17      millert  23454:
1.25      millert  23455:   ac_builddir=.
1.23      millert  23456:
1.25      millert  23457: if test "$ac_dir" != .; then
                   23458:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   23459:   # A "../" for each directory in $ac_dir_suffix.
                   23460:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.23      millert  23461: else
1.25      millert  23462:   ac_dir_suffix= ac_top_builddir=
1.23      millert  23463: fi
                   23464:
1.25      millert  23465: case $srcdir in
                   23466:   .)  # No --srcdir option.  We are building in place.
                   23467:     ac_srcdir=.
                   23468:     if test -z "$ac_top_builddir"; then
                   23469:        ac_top_srcdir=.
1.23      millert  23470:     else
1.25      millert  23471:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   23472:     fi ;;
                   23473:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   23474:     ac_srcdir=$srcdir$ac_dir_suffix;
                   23475:     ac_top_srcdir=$srcdir ;;
                   23476:   *) # Relative path.
                   23477:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   23478:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   23479: esac
1.23      millert  23480:
1.25      millert  23481: # Do not use `cd foo && pwd` to compute absolute paths, because
                   23482: # the directories may not exist.
                   23483: case `pwd` in
                   23484: .) ac_abs_builddir="$ac_dir";;
                   23485: *)
                   23486:   case "$ac_dir" in
                   23487:   .) ac_abs_builddir=`pwd`;;
                   23488:   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
                   23489:   *) ac_abs_builddir=`pwd`/"$ac_dir";;
                   23490:   esac;;
                   23491: esac
                   23492: case $ac_abs_builddir in
                   23493: .) ac_abs_top_builddir=${ac_top_builddir}.;;
                   23494: *)
                   23495:   case ${ac_top_builddir}. in
                   23496:   .) ac_abs_top_builddir=$ac_abs_builddir;;
                   23497:   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
                   23498:   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
                   23499:   esac;;
                   23500: esac
                   23501: case $ac_abs_builddir in
                   23502: .) ac_abs_srcdir=$ac_srcdir;;
                   23503: *)
                   23504:   case $ac_srcdir in
                   23505:   .) ac_abs_srcdir=$ac_abs_builddir;;
                   23506:   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
                   23507:   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
                   23508:   esac;;
                   23509: esac
                   23510: case $ac_abs_builddir in
                   23511: .) ac_abs_top_srcdir=$ac_top_srcdir;;
                   23512: *)
                   23513:   case $ac_top_srcdir in
                   23514:   .) ac_abs_top_srcdir=$ac_abs_builddir;;
                   23515:   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
                   23516:   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
                   23517:   esac;;
                   23518: esac
1.23      millert  23519:
                   23520:
                   23521:
1.25      millert  23522:   if test x"$ac_file" != x-; then
                   23523:     { echo "$as_me:$LINENO: creating $ac_file" >&5
                   23524: echo "$as_me: creating $ac_file" >&6;}
                   23525:     rm -f "$ac_file"
                   23526:   fi
                   23527:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   23528:   # use $as_me), people would be surprised to read:
                   23529:   #    /* config.h.  Generated by config.status.  */
                   23530:   if test x"$ac_file" = x-; then
                   23531:     configure_input=
                   23532:   else
                   23533:     configure_input="$ac_file.  "
                   23534:   fi
                   23535:   configure_input=$configure_input"Generated from `echo $ac_file_in |
                   23536:                                     sed 's,.*/,,'` by configure."
1.23      millert  23537:
1.25      millert  23538:   # First look for the input files in the build tree, otherwise in the
                   23539:   # src tree.
                   23540:   ac_file_inputs=`IFS=:
                   23541:     for f in $ac_file_in; do
                   23542:       case $f in
                   23543:       -) echo $tmp/stdin ;;
                   23544:       [\\/$]*)
                   23545:         # Absolute (can't be DOS-style, as IFS=:)
                   23546:         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   23547: echo "$as_me: error: cannot find input file: $f" >&2;}
                   23548:    { (exit 1); exit 1; }; }
                   23549:         echo "$f";;
                   23550:       *) # Relative
                   23551:         if test -f "$f"; then
                   23552:           # Build tree
                   23553:           echo "$f"
                   23554:         elif test -f "$srcdir/$f"; then
                   23555:           # Source tree
                   23556:           echo "$srcdir/$f"
                   23557:         else
                   23558:           # /dev/null tree
                   23559:           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   23560: echo "$as_me: error: cannot find input file: $f" >&2;}
                   23561:    { (exit 1); exit 1; }; }
                   23562:         fi;;
                   23563:       esac
                   23564:     done` || { (exit 1); exit 1; }
1.23      millert  23565: _ACEOF
1.25      millert  23566: cat >>$CONFIG_STATUS <<_ACEOF
                   23567:   sed "$ac_vpsub
                   23568: $extrasub
1.23      millert  23569: _ACEOF
1.25      millert  23570: cat >>$CONFIG_STATUS <<\_ACEOF
                   23571: :t
                   23572: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   23573: s,@configure_input@,$configure_input,;t t
                   23574: s,@srcdir@,$ac_srcdir,;t t
                   23575: s,@abs_srcdir@,$ac_abs_srcdir,;t t
                   23576: s,@top_srcdir@,$ac_top_srcdir,;t t
                   23577: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
                   23578: s,@builddir@,$ac_builddir,;t t
                   23579: s,@abs_builddir@,$ac_abs_builddir,;t t
                   23580: s,@top_builddir@,$ac_top_builddir,;t t
                   23581: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
                   23582: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
                   23583:   rm -f $tmp/stdin
                   23584:   if test x"$ac_file" != x-; then
                   23585:     mv $tmp/out $ac_file
                   23586:   else
                   23587:     cat $tmp/out
                   23588:     rm -f $tmp/out
                   23589:   fi
1.23      millert  23590:
1.25      millert  23591: done
1.23      millert  23592: _ACEOF
1.25      millert  23593: cat >>$CONFIG_STATUS <<\_ACEOF
                   23594:
                   23595: #
                   23596: # CONFIG_HEADER section.
                   23597: #
                   23598:
                   23599: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   23600: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   23601: #
                   23602: # ac_d sets the value in "#define NAME VALUE" lines.
                   23603: ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
                   23604: ac_dB='[        ].*$,\1#\2'
                   23605: ac_dC=' '
                   23606: ac_dD=',;t'
                   23607: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   23608: ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   23609: ac_uB='$,\1#\2define\3'
                   23610: ac_uC=' '
                   23611: ac_uD=',;t'
1.23      millert  23612:
1.25      millert  23613: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
                   23614:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   23615:   case $ac_file in
                   23616:   - | *:- | *:-:* ) # input from stdin
                   23617:        cat >$tmp/stdin
                   23618:        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   23619:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   23620:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   23621:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   23622:   * )   ac_file_in=$ac_file.in ;;
                   23623:   esac
1.23      millert  23624:
1.25      millert  23625:   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
                   23626: echo "$as_me: creating $ac_file" >&6;}
1.23      millert  23627:
1.25      millert  23628:   # First look for the input files in the build tree, otherwise in the
                   23629:   # src tree.
                   23630:   ac_file_inputs=`IFS=:
                   23631:     for f in $ac_file_in; do
                   23632:       case $f in
                   23633:       -) echo $tmp/stdin ;;
                   23634:       [\\/$]*)
                   23635:         # Absolute (can't be DOS-style, as IFS=:)
                   23636:         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   23637: echo "$as_me: error: cannot find input file: $f" >&2;}
                   23638:    { (exit 1); exit 1; }; }
                   23639:         # Do quote $f, to prevent DOS paths from being IFS'd.
                   23640:         echo "$f";;
                   23641:       *) # Relative
                   23642:         if test -f "$f"; then
                   23643:           # Build tree
                   23644:           echo "$f"
                   23645:         elif test -f "$srcdir/$f"; then
                   23646:           # Source tree
                   23647:           echo "$srcdir/$f"
                   23648:         else
                   23649:           # /dev/null tree
                   23650:           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
                   23651: echo "$as_me: error: cannot find input file: $f" >&2;}
                   23652:    { (exit 1); exit 1; }; }
                   23653:         fi;;
                   23654:       esac
                   23655:     done` || { (exit 1); exit 1; }
                   23656:   # Remove the trailing spaces.
                   23657:   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
1.23      millert  23658:
1.16      millert  23659: _ACEOF
1.23      millert  23660:
1.25      millert  23661: # Transform confdefs.h into two sed scripts, `conftest.defines' and
                   23662: # `conftest.undefs', that substitutes the proper values into
                   23663: # config.h.in to produce config.h.  The first handles `#define'
                   23664: # templates, and the second `#undef' templates.
                   23665: # And first: Protect against being on the right side of a sed subst in
                   23666: # config.status.  Protect against being in an unquoted here document
                   23667: # in config.status.
                   23668: rm -f conftest.defines conftest.undefs
                   23669: # Using a here document instead of a string reduces the quoting nightmare.
                   23670: # Putting comments in sed scripts is not portable.
                   23671: #
                   23672: # `end' is used to avoid that the second main sed command (meant for
                   23673: # 0-ary CPP macros) applies to n-ary macro definitions.
                   23674: # See the Autoconf documentation for `clear'.
                   23675: cat >confdef2sed.sed <<\_ACEOF
                   23676: s/[\\&,]/\\&/g
                   23677: s,[\\$`],\\&,g
                   23678: t clear
                   23679: : clear
                   23680: s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
                   23681: t end
                   23682: s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
                   23683: : end
1.9       millert  23684: _ACEOF
1.25      millert  23685: # If some macros were called several times there might be several times
                   23686: # the same #defines, which is useless.  Nevertheless, we may not want to
                   23687: # sort them, since we want the *last* AC-DEFINE to be honored.
                   23688: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
                   23689: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
                   23690: rm -f confdef2sed.sed
1.16      millert  23691:
1.25      millert  23692: # This sed command replaces #undef with comments.  This is necessary, for
                   23693: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   23694: # on some systems where configure will not decide to define it.
                   23695: cat >>conftest.undefs <<\_ACEOF
                   23696: s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.23      millert  23697: _ACEOF
1.17      millert  23698:
1.25      millert  23699: # Break up conftest.defines because some shells have a limit on the size
                   23700: # of here documents, and old seds have small limits too (100 cmds).
                   23701: echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
                   23702: echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
                   23703: echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
                   23704: echo '  :' >>$CONFIG_STATUS
                   23705: rm -f conftest.tail
                   23706: while grep . conftest.defines >/dev/null
                   23707: do
                   23708:   # Write a limited-size here document to $tmp/defines.sed.
                   23709:   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
                   23710:   # Speed up: don't consider the non `#define' lines.
                   23711:   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
                   23712:   # Work around the forget-to-reset-the-flag bug.
                   23713:   echo 't clr' >>$CONFIG_STATUS
                   23714:   echo ': clr' >>$CONFIG_STATUS
                   23715:   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
                   23716:   echo 'CEOF
                   23717:   sed -f $tmp/defines.sed $tmp/in >$tmp/out
                   23718:   rm -f $tmp/in
                   23719:   mv $tmp/out $tmp/in
                   23720: ' >>$CONFIG_STATUS
                   23721:   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
                   23722:   rm -f conftest.defines
                   23723:   mv conftest.tail conftest.defines
1.23      millert  23724: done
1.25      millert  23725: rm -f conftest.defines
                   23726: echo '  fi # grep' >>$CONFIG_STATUS
                   23727: echo >>$CONFIG_STATUS
1.1       millert  23728:
1.25      millert  23729: # Break up conftest.undefs because some shells have a limit on the size
                   23730: # of here documents, and old seds have small limits too (100 cmds).
                   23731: echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
                   23732: rm -f conftest.tail
                   23733: while grep . conftest.undefs >/dev/null
                   23734: do
                   23735:   # Write a limited-size here document to $tmp/undefs.sed.
                   23736:   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
                   23737:   # Speed up: don't consider the non `#undef'
                   23738:   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
                   23739:   # Work around the forget-to-reset-the-flag bug.
                   23740:   echo 't clr' >>$CONFIG_STATUS
                   23741:   echo ': clr' >>$CONFIG_STATUS
                   23742:   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
                   23743:   echo 'CEOF
                   23744:   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
                   23745:   rm -f $tmp/in
                   23746:   mv $tmp/out $tmp/in
                   23747: ' >>$CONFIG_STATUS
                   23748:   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
                   23749:   rm -f conftest.undefs
                   23750:   mv conftest.tail conftest.undefs
                   23751: done
                   23752: rm -f conftest.undefs
1.1       millert  23753:
1.25      millert  23754: cat >>$CONFIG_STATUS <<\_ACEOF
                   23755:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   23756:   # use $as_me), people would be surprised to read:
                   23757:   #    /* config.h.  Generated by config.status.  */
                   23758:   if test x"$ac_file" = x-; then
                   23759:     echo "/* Generated by configure.  */" >$tmp/config.h
                   23760:   else
                   23761:     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
                   23762:   fi
                   23763:   cat $tmp/in >>$tmp/config.h
                   23764:   rm -f $tmp/in
                   23765:   if test x"$ac_file" != x-; then
                   23766:     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
                   23767:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   23768: echo "$as_me: $ac_file is unchanged" >&6;}
                   23769:     else
                   23770:       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
                   23771: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23772:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   23773:         X"$ac_file" : 'X\(//\)$' \| \
                   23774:         X"$ac_file" : 'X\(/\)' \| \
                   23775:         .     : '\(.\)' 2>/dev/null ||
                   23776: echo X"$ac_file" |
                   23777:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23778:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23779:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23780:          /^X\(\/\).*/{ s//\1/; q; }
                   23781:          s/.*/./; q'`
                   23782:       { if $as_mkdir_p; then
                   23783:     mkdir -p "$ac_dir"
                   23784:   else
                   23785:     as_dir="$ac_dir"
                   23786:     as_dirs=
                   23787:     while test ! -d "$as_dir"; do
                   23788:       as_dirs="$as_dir $as_dirs"
                   23789:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
                   23790: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23791:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   23792:         X"$as_dir" : 'X\(//\)$' \| \
                   23793:         X"$as_dir" : 'X\(/\)' \| \
                   23794:         .     : '\(.\)' 2>/dev/null ||
                   23795: echo X"$as_dir" |
                   23796:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23797:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23798:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23799:          /^X\(\/\).*/{ s//\1/; q; }
                   23800:          s/.*/./; q'`
                   23801:     done
                   23802:     test ! -n "$as_dirs" || mkdir $as_dirs
                   23803:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
                   23804: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
                   23805:    { (exit 1); exit 1; }; }; }
1.1       millert  23806:
1.25      millert  23807:       rm -f $ac_file
                   23808:       mv $tmp/config.h $ac_file
                   23809:     fi
                   23810:   else
                   23811:     cat $tmp/config.h
                   23812:     rm -f $tmp/config.h
                   23813:   fi
                   23814: done
                   23815: _ACEOF
                   23816: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       millert  23817:
1.25      millert  23818: #
                   23819: # CONFIG_COMMANDS section.
                   23820: #
                   23821: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
                   23822:   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
                   23823:   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   23824:   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
                   23825: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23826:         X"$ac_dest" : 'X\(//\)[^/]' \| \
                   23827:         X"$ac_dest" : 'X\(//\)$' \| \
                   23828:         X"$ac_dest" : 'X\(/\)' \| \
                   23829:         .     : '\(.\)' 2>/dev/null ||
                   23830: echo X"$ac_dest" |
                   23831:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23832:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23833:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23834:          /^X\(\/\).*/{ s//\1/; q; }
                   23835:          s/.*/./; q'`
                   23836:   { if $as_mkdir_p; then
                   23837:     mkdir -p "$ac_dir"
                   23838:   else
                   23839:     as_dir="$ac_dir"
                   23840:     as_dirs=
                   23841:     while test ! -d "$as_dir"; do
                   23842:       as_dirs="$as_dir $as_dirs"
                   23843:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
                   23844: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23845:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   23846:         X"$as_dir" : 'X\(//\)$' \| \
                   23847:         X"$as_dir" : 'X\(/\)' \| \
                   23848:         .     : '\(.\)' 2>/dev/null ||
                   23849: echo X"$as_dir" |
                   23850:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   23851:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   23852:          /^X\(\/\/\)$/{ s//\1/; q; }
                   23853:          /^X\(\/\).*/{ s//\1/; q; }
                   23854:          s/.*/./; q'`
                   23855:     done
                   23856:     test ! -n "$as_dirs" || mkdir $as_dirs
                   23857:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
                   23858: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
                   23859:    { (exit 1); exit 1; }; }; }
1.1       millert  23860:
1.25      millert  23861:   ac_builddir=.
1.1       millert  23862:
1.25      millert  23863: if test "$ac_dir" != .; then
                   23864:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   23865:   # A "../" for each directory in $ac_dir_suffix.
                   23866:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.1       millert  23867: else
1.25      millert  23868:   ac_dir_suffix= ac_top_builddir=
1.1       millert  23869: fi
                   23870:
1.25      millert  23871: case $srcdir in
                   23872:   .)  # No --srcdir option.  We are building in place.
                   23873:     ac_srcdir=.
                   23874:     if test -z "$ac_top_builddir"; then
                   23875:        ac_top_srcdir=.
1.1       millert  23876:     else
1.25      millert  23877:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   23878:     fi ;;
                   23879:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   23880:     ac_srcdir=$srcdir$ac_dir_suffix;
                   23881:     ac_top_srcdir=$srcdir ;;
                   23882:   *) # Relative path.
                   23883:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   23884:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   23885: esac
1.1       millert  23886:
1.25      millert  23887: # Do not use `cd foo && pwd` to compute absolute paths, because
                   23888: # the directories may not exist.
                   23889: case `pwd` in
                   23890: .) ac_abs_builddir="$ac_dir";;
                   23891: *)
                   23892:   case "$ac_dir" in
                   23893:   .) ac_abs_builddir=`pwd`;;
                   23894:   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
                   23895:   *) ac_abs_builddir=`pwd`/"$ac_dir";;
                   23896:   esac;;
                   23897: esac
                   23898: case $ac_abs_builddir in
                   23899: .) ac_abs_top_builddir=${ac_top_builddir}.;;
                   23900: *)
                   23901:   case ${ac_top_builddir}. in
                   23902:   .) ac_abs_top_builddir=$ac_abs_builddir;;
                   23903:   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
                   23904:   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
                   23905:   esac;;
                   23906: esac
                   23907: case $ac_abs_builddir in
                   23908: .) ac_abs_srcdir=$ac_srcdir;;
                   23909: *)
                   23910:   case $ac_srcdir in
                   23911:   .) ac_abs_srcdir=$ac_abs_builddir;;
                   23912:   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
                   23913:   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
                   23914:   esac;;
                   23915: esac
                   23916: case $ac_abs_builddir in
                   23917: .) ac_abs_top_srcdir=$ac_top_srcdir;;
                   23918: *)
                   23919:   case $ac_top_srcdir in
                   23920:   .) ac_abs_top_srcdir=$ac_abs_builddir;;
                   23921:   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
                   23922:   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
                   23923:   esac;;
                   23924: esac
1.1       millert  23925:
                   23926:
1.25      millert  23927:   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
                   23928: echo "$as_me: executing $ac_dest commands" >&6;}
                   23929:   case $ac_dest in
                   23930:     libtool )
1.23      millert  23931:
1.25      millert  23932:     # See if we are running on zsh, and set the options which allow our
                   23933:     # commands through without removal of \ escapes.
                   23934:     if test -n "${ZSH_VERSION+set}" ; then
                   23935:       setopt NO_GLOB_SUBST
1.23      millert  23936:     fi
                   23937:
1.25      millert  23938:     cfgfile="${ofile}T"
                   23939:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
                   23940:     $RM "$cfgfile"
1.23      millert  23941:
1.25      millert  23942:     cat <<_LT_EOF >> "$cfgfile"
                   23943: #! $SHELL
1.23      millert  23944:
1.25      millert  23945: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   23946: # Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
                   23947: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   23948: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   23949: #
                   23950: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
                   23951: # Free Software Foundation, Inc.
                   23952: #
                   23953: # This file is part of GNU Libtool:
                   23954: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   23955: #
                   23956: # This program is free software; you can redistribute it and/or modify
                   23957: # it under the terms of the GNU General Public License as published by
                   23958: # the Free Software Foundation; either version 2 of the License, or
                   23959: # (at your option) any later version.
                   23960: #
                   23961: # This program is distributed in the hope that it will be useful, but
                   23962: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   23963: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   23964: # General Public License for more details.
1.1       millert  23965: #
1.25      millert  23966: # You should have received a copy of the GNU General Public License
                   23967: # along with this program; if not, write to the Free Software
                   23968: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.1       millert  23969: #
1.25      millert  23970: # As a special exception to the GNU General Public License, if you
                   23971: # distribute this file as part of a program that contains a
                   23972: # configuration script generated by Autoconf, you may include it under
                   23973: # the same distribution terms that you use for the rest of that program.
                   23974:
                   23975:
1.9       millert  23976:
1.25      millert  23977: # The names of the tagged configurations supported by this script.
                   23978: available_tags=""
1.9       millert  23979:
1.25      millert  23980: # ### BEGIN LIBTOOL CONFIG
1.1       millert  23981:
1.25      millert  23982: # Which release of libtool.m4 was used?
                   23983: macro_version=$macro_version
                   23984: macro_revision=$macro_revision
1.1       millert  23985:
1.25      millert  23986: # Whether or not to build static libraries.
                   23987: build_old_libs=$enable_static
1.1       millert  23988:
1.25      millert  23989: # Whether or not to build shared libraries.
                   23990: build_libtool_libs=$enable_shared
1.1       millert  23991:
1.25      millert  23992: # What type of objects to build.
                   23993: pic_mode=$pic_mode
1.16      millert  23994:
1.25      millert  23995: # Whether or not to optimize for fast installation.
                   23996: fast_install=$enable_fast_install
1.16      millert  23997:
1.25      millert  23998: # The host system.
                   23999: host_alias=$host_alias
                   24000: host=$host
1.16      millert  24001:
1.25      millert  24002: # A sed program that does not truncate output.
                   24003: SED=$lt_SED
1.16      millert  24004:
1.25      millert  24005: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   24006: Xsed="\$SED -e s/^X//"
1.9       millert  24007:
1.25      millert  24008: # A grep program that handles long line.
                   24009: GREP=$lt_GREP
1.9       millert  24010:
1.25      millert  24011: # An ERE matcher.
                   24012: EGREP=$lt_EGREP
1.16      millert  24013:
1.25      millert  24014: # A literal string matcher.
                   24015: FGREP=$lt_FGREP
1.9       millert  24016:
1.25      millert  24017: # A BSD-compatible nm program.
                   24018: NM=$lt_NM
1.16      millert  24019:
1.25      millert  24020: # Whether we need soft or hard links.
                   24021: LN_S=$lt_LN_S
1.16      millert  24022:
1.25      millert  24023: # What is the maximum length of a command?
                   24024: max_cmd_len=$max_cmd_len
1.16      millert  24025:
1.25      millert  24026: # Object file suffix (normally "o").
                   24027: objext=$ac_objext
1.16      millert  24028:
1.25      millert  24029: # Executable file suffix (normally "").
                   24030: exeext=$exeext
1.16      millert  24031:
1.25      millert  24032: # How to create reloadable object files.
                   24033: reload_flag=$lt_reload_flag
                   24034: reload_cmds=$lt_reload_cmds
1.16      millert  24035:
1.25      millert  24036: # Method to check whether dependent libraries are shared objects.
                   24037: deplibs_check_method=$lt_deplibs_check_method
1.16      millert  24038:
1.25      millert  24039: # Command to use when deplibs_check_method == "file_magic".
                   24040: file_magic_cmd=$lt_file_magic_cmd
1.16      millert  24041:
1.25      millert  24042: # The archiver.
                   24043: AR=$lt_AR
                   24044: AR_FLAGS=$lt_AR_FLAGS
1.16      millert  24045:
1.25      millert  24046: # A symbol stripping program.
                   24047: STRIP=$lt_STRIP
1.16      millert  24048:
1.25      millert  24049: # Commands used to install an old-style archive.
                   24050: RANLIB=$lt_RANLIB
                   24051: old_postinstall_cmds=$lt_old_postinstall_cmds
                   24052: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.16      millert  24053:
1.25      millert  24054: # Take the output of nm and produce a listing of raw symbols and C names.
                   24055: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.16      millert  24056:
1.25      millert  24057: # Transform the output of nm in a proper C declaration.
                   24058: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.16      millert  24059:
1.25      millert  24060: # Transform the output of nm in a C name address pair.
                   24061: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.16      millert  24062:
1.25      millert  24063: # The name of the directory that contains temporary libtool files.
                   24064: objdir=$objdir
1.16      millert  24065:
1.25      millert  24066: # A C compiler.
                   24067: LTCC=$lt_CC
1.16      millert  24068:
1.25      millert  24069: # LTCC compiler flags.
                   24070: LTCFLAGS=$lt_CFLAGS
1.16      millert  24071:
1.25      millert  24072: # Shell to use when invoking shell scripts.
                   24073: SHELL=$lt_SHELL
1.9       millert  24074:
1.25      millert  24075: # An echo program that does not interpret backslashes.
                   24076: ECHO=$lt_ECHO
1.9       millert  24077:
1.25      millert  24078: # Used to examine libraries when file_magic_cmd begins "file".
                   24079: MAGIC_CMD=$MAGIC_CMD
1.9       millert  24080:
1.25      millert  24081: # Whether dlopen is supported.
                   24082: dlopen_support=$enable_dlopen
1.16      millert  24083:
1.25      millert  24084: # Whether dlopen of programs is supported.
                   24085: dlopen_self=$enable_dlopen_self
1.9       millert  24086:
1.25      millert  24087: # Whether dlopen of statically linked programs is supported.
                   24088: dlopen_self_static=$enable_dlopen_self_static
1.16      millert  24089:
1.25      millert  24090: # Does compiler simultaneously support -c and -o options?
                   24091: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.9       millert  24092:
1.25      millert  24093: # Must we lock files when doing compilation?
                   24094: need_locks=$lt_need_locks
1.9       millert  24095:
1.25      millert  24096: # Old archive suffix (normally "a").
                   24097: libext=$libext
1.9       millert  24098:
1.25      millert  24099: # Shared library suffix (normally ".so").
                   24100: shrext_cmds=$lt_shrext_cmds
1.9       millert  24101:
1.25      millert  24102: # The commands to extract the exported symbol list from a shared archive.
                   24103: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.9       millert  24104:
1.25      millert  24105: # Variables whose values should be saved in libtool wrapper scripts and
                   24106: # restored at link time.
                   24107: variables_saved_for_relink=$lt_variables_saved_for_relink
1.16      millert  24108:
1.25      millert  24109: # Do we need the "lib" prefix for modules?
                   24110: need_lib_prefix=$need_lib_prefix
1.16      millert  24111:
1.25      millert  24112: # Do we need a version for libraries?
                   24113: need_version=$need_version
1.16      millert  24114:
1.25      millert  24115: # Library versioning type.
                   24116: version_type=$version_type
1.9       millert  24117:
1.25      millert  24118: # Shared library runtime path variable.
                   24119: runpath_var=$runpath_var
1.9       millert  24120:
1.25      millert  24121: # Shared library path variable.
                   24122: shlibpath_var=$shlibpath_var
1.9       millert  24123:
1.25      millert  24124: # Is shibpath searched before the hard-coded library search path?
                   24125: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.9       millert  24126:
1.25      millert  24127: # Format of library name prefix.
                   24128: libname_spec=$lt_libname_spec
1.9       millert  24129:
1.25      millert  24130: # List of archive names.  First name is the real one,the rest are links.
                   24131: # The last name is the one that the linker finds with -lNAME
                   24132: library_names_spec=$lt_library_names_spec
1.9       millert  24133:
1.25      millert  24134: # The coded name of the library,if different from the real name.
                   24135: soname_spec=$lt_soname_spec
1.9       millert  24136:
1.25      millert  24137: # Command to use after installation of a shared archive.
                   24138: postinstall_cmds=$lt_postinstall_cmds
1.9       millert  24139:
1.25      millert  24140: # Command to use after uninstallation of a shared archive.
                   24141: postuninstall_cmds=$lt_postuninstall_cmds
1.9       millert  24142:
1.25      millert  24143: # Commands used to finish a libtool library installation in a directory.
                   24144: finish_cmds=$lt_finish_cmds
1.9       millert  24145:
1.25      millert  24146: # As "finish_cmds",except a single script fragment to be evaled but
                   24147: # not shown.
                   24148: finish_eval=$lt_finish_eval
1.9       millert  24149:
1.25      millert  24150: # Whether we should hardcode library paths into libraries.
                   24151: hardcode_into_libs=$hardcode_into_libs
1.9       millert  24152:
1.25      millert  24153: # Compile-time system search path for libraries.
                   24154: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.9       millert  24155:
1.25      millert  24156: # Run-time system search path for libraries.
                   24157: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.9       millert  24158:
1.25      millert  24159: # Commands to strip libraries.
                   24160: old_striplib=$lt_old_striplib
                   24161: striplib=$lt_striplib
1.9       millert  24162:
                   24163:
1.25      millert  24164: # The linker used to build libraries.
                   24165: LD=$lt_LD
1.9       millert  24166:
1.25      millert  24167: # Commands used to build an old-style archive.
                   24168: old_archive_cmds=$lt_old_archive_cmds
1.9       millert  24169:
1.25      millert  24170: # A language specific compiler.
                   24171: CC=$lt_compiler
1.9       millert  24172:
1.25      millert  24173: # Is the compiler the GNU C compiler?
                   24174: with_gcc=$GCC
1.9       millert  24175:
1.25      millert  24176: # Compiler flag to turn off builtin functions.
                   24177: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.9       millert  24178:
1.25      millert  24179: # How to pass a linker flag through the compiler.
                   24180: wl=$lt_lt_prog_compiler_wl
1.9       millert  24181:
1.25      millert  24182: # Additional compiler flags for building library objects.
                   24183: pic_flag=$lt_lt_prog_compiler_pic
1.9       millert  24184:
1.25      millert  24185: # Compiler flag to prevent dynamic linking.
                   24186: link_static_flag=$lt_lt_prog_compiler_static
1.16      millert  24187:
1.25      millert  24188: # Whether or not to add -lc for building shared libraries.
                   24189: build_libtool_need_lc=$archive_cmds_need_lc
1.16      millert  24190:
1.25      millert  24191: # Whether or not to disallow shared libs when runtime libs are static.
                   24192: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.16      millert  24193:
1.25      millert  24194: # Compiler flag to allow reflexive dlopens.
                   24195: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.16      millert  24196:
1.25      millert  24197: # Compiler flag to generate shared objects directly from archives.
                   24198: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.1       millert  24199:
1.25      millert  24200: # Create an old-style archive from a shared archive.
                   24201: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.9       millert  24202:
1.25      millert  24203: # Create a temporary old-style archive to link instead of a shared archive.
                   24204: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.9       millert  24205:
1.25      millert  24206: # Commands used to build a shared archive.
                   24207: archive_cmds=$lt_archive_cmds
                   24208: archive_expsym_cmds=$lt_archive_expsym_cmds
1.16      millert  24209:
1.25      millert  24210: # Commands used to build a loadable module if different from building
                   24211: # a shared archive.
                   24212: module_cmds=$lt_module_cmds
                   24213: module_expsym_cmds=$lt_module_expsym_cmds
1.1       millert  24214:
1.25      millert  24215: # Whether we are building with GNU ld or not.
                   24216: with_gnu_ld=$lt_with_gnu_ld
1.1       millert  24217:
1.25      millert  24218: # Flag that allows shared libraries with undefined symbols to be built.
                   24219: allow_undefined_flag=$lt_allow_undefined_flag
1.9       millert  24220:
1.25      millert  24221: # Flag that enforces no undefined symbols.
                   24222: no_undefined_flag=$lt_no_undefined_flag
1.1       millert  24223:
1.25      millert  24224: # Flag to hardcode \$libdir into a binary during linking.
                   24225: # This must work even if \$libdir does not exist
                   24226: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.9       millert  24227:
1.25      millert  24228: # If ld is used when linking,flag to hardcode \$libdir into a binary
                   24229: # during linking.  This must work even if \$libdir does not exist.
                   24230: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.1       millert  24231:
1.25      millert  24232: # Whether we need a single "-rpath" flag with a separated argument.
                   24233: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.1       millert  24234:
1.25      millert  24235: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
                   24236: # DIR into the resulting binary.
                   24237: hardcode_direct=$hardcode_direct
1.1       millert  24238:
1.25      millert  24239: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
                   24240: # into the resulting binary.
                   24241: hardcode_minus_L=$hardcode_minus_L
1.16      millert  24242:
1.25      millert  24243: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
                   24244: # into the resulting binary.
                   24245: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.16      millert  24246:
1.25      millert  24247: # Set to "yes" if building a shared library automatically hardcodes DIR
                   24248: # into the library and all subsequent libraries and executables linked
                   24249: # against it.
                   24250: hardcode_automatic=$hardcode_automatic
1.16      millert  24251:
1.25      millert  24252: # Set to yes if linker adds runtime paths of dependent libraries
                   24253: # to runtime path list.
                   24254: inherit_rpath=$inherit_rpath
1.1       millert  24255:
1.25      millert  24256: # Whether libtool must link a program against all its dependency libraries.
                   24257: link_all_deplibs=$link_all_deplibs
1.1       millert  24258:
1.25      millert  24259: # Fix the shell variable \$srcfile for the compiler.
                   24260: fix_srcfile_path=$lt_fix_srcfile_path
1.1       millert  24261:
1.25      millert  24262: # Set to "yes" if exported symbols are required.
                   24263: always_export_symbols=$always_export_symbols
1.9       millert  24264:
1.25      millert  24265: # The commands to list exported symbols.
                   24266: export_symbols_cmds=$lt_export_symbols_cmds
1.1       millert  24267:
1.25      millert  24268: # Symbols that should not be listed in the preloaded symbols.
                   24269: exclude_expsyms=$lt_exclude_expsyms
1.1       millert  24270:
1.25      millert  24271: # Symbols that must always be exported.
                   24272: include_expsyms=$lt_include_expsyms
1.1       millert  24273:
1.25      millert  24274: # How to hardcode a shared library path into an executable.
                   24275: hardcode_action=$hardcode_action
1.1       millert  24276:
1.25      millert  24277: # ### END LIBTOOL CONFIG
1.1       millert  24278:
1.25      millert  24279: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   24280: # if CDPATH is set.
                   24281: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       millert  24282:
1.25      millert  24283: _LT_EOF
1.1       millert  24284:
1.25      millert  24285:   case $host_os in
                   24286:   aix3*)
                   24287:     cat <<\_LT_EOF >> "$cfgfile"
                   24288: # AIX sometimes has problems with the GCC collect2 program.  For some
                   24289: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   24290: # vanish in a puff of smoke.
                   24291: if test "X${COLLECT_NAMES+set}" != Xset; then
                   24292:   COLLECT_NAMES=
                   24293:   export COLLECT_NAMES
                   24294: fi
                   24295: _LT_EOF
                   24296:     ;;
                   24297:   esac
1.1       millert  24298:
                   24299:
1.25      millert  24300: ltmain="$ac_aux_dir/ltmain.sh"
1.1       millert  24301:
1.9       millert  24302:
1.25      millert  24303:   # We use sed instead of cat because bash on DJGPP gets confused if
                   24304:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   24305:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   24306:   # is reportedly fixed, but why not run on old versions too?
                   24307:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.9       millert  24308:
1.25      millert  24309:   mv -f "$cfgfile" "$ofile" ||
                   24310:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   24311:   chmod +x "$ofile"
1.9       millert  24312:
1.25      millert  24313:  ;;
                   24314:   esac
1.9       millert  24315: done
1.16      millert  24316: _ACEOF
1.1       millert  24317:
1.16      millert  24318: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       millert  24319:
1.9       millert  24320: { (exit 0); exit 0; }
1.16      millert  24321: _ACEOF
1.1       millert  24322: chmod +x $CONFIG_STATUS
1.9       millert  24323: ac_clean_files=$ac_clean_files_save
1.1       millert  24324:
1.16      millert  24325:
1.9       millert  24326: # configure is writing to config.log, and then calls config.status.
                   24327: # config.status does its own redirection, appending to config.log.
                   24328: # Unfortunately, on DOS this fails, as config.log is still kept open
                   24329: # by configure, so config.status won't be able to write to it; its
                   24330: # output is simply discarded.  So we exec the FD to /dev/null,
                   24331: # effectively closing config.log, so it can be properly (re)opened and
                   24332: # appended to by config.status.  When coming back to configure, we
                   24333: # need to make the FD available again.
                   24334: if test "$no_create" != yes; then
                   24335:   ac_cs_success=:
1.16      millert  24336:   ac_config_status_args=
                   24337:   test "$silent" = yes &&
                   24338:     ac_config_status_args="$ac_config_status_args --quiet"
1.9       millert  24339:   exec 5>/dev/null
1.16      millert  24340:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9       millert  24341:   exec 5>>config.log
                   24342:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   24343:   # would make configure fail if this is the last instruction.
                   24344:   $ac_cs_success || { (exit 1); exit 1; }
                   24345: fi
1.1       millert  24346:
1.16      millert  24347:
1.1       millert  24348: if test "$with_pam" = "yes"; then
                   24349:     case $host in
                   24350:        *-*-linux*)
1.17      millert  24351:            { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
                   24352: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1       millert  24353:            ;;
                   24354:     esac
                   24355: fi
1.23      millert  24356:
                   24357:
                   24358:
                   24359:
                   24360:
                   24361:
                   24362:
                   24363:
                   24364:
                   24365:
                   24366:
                   24367:
                   24368:
                   24369:
                   24370:
                   24371:
                   24372:
                   24373:
                   24374:
                   24375:
                   24376:
                   24377:
                   24378:
                   24379:
                   24380:
                   24381:
                   24382:
                   24383:
                   24384:
                   24385:
                   24386:
                   24387:
                   24388:
                   24389:
                   24390:
                   24391:
                   24392:
                   24393:
                   24394:
                   24395:
                   24396:
                   24397:
                   24398:
                   24399:
                   24400:
                   24401:
                   24402:
                   24403:
                   24404:
                   24405:
                   24406:
                   24407:
                   24408:
                   24409:
                   24410:
                   24411:
                   24412:
                   24413:
                   24414:
                   24415:
                   24416:
                   24417:
                   24418:
                   24419:
                   24420:
                   24421:
                   24422:
                   24423:
                   24424:
                   24425:
                   24426:
                   24427:
                   24428:
                   24429:
                   24430:
                   24431:
                   24432:
                   24433:
                   24434:
                   24435:
                   24436:
                   24437:
                   24438:
                   24439:
                   24440:
                   24441:
                   24442:
                   24443:
                   24444:
                   24445:
                   24446:
                   24447:
                   24448:
                   24449:
                   24450:
                   24451:
                   24452:
                   24453:
                   24454:
                   24455:
                   24456:
                   24457:
                   24458:
                   24459:
                   24460:
                   24461:
                   24462:
                   24463:
                   24464:
                   24465:
                   24466:
                   24467:
                   24468:
                   24469:
                   24470:
                   24471:
                   24472:
                   24473:
                   24474:
                   24475:
                   24476:
                   24477:
                   24478:
                   24479:
1.16      millert  24480:
                   24481:
                   24482:
                   24483:
                   24484:
                   24485:
                   24486:
                   24487:
                   24488:
                   24489:
                   24490:
                   24491:
                   24492:
                   24493:
1.9       millert  24494: