Annotation of src/usr.bin/sudo/configure, Revision 1.7.2.1
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.7.2.1 ! millert 3: # Generated by Autoconf 2.52 for sudo 1.6.5.
1.1 millert 4: #
1.7.2.1 ! millert 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 6: # Free Software Foundation, Inc.
1.1 millert 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
1.7.2.1 ! millert 10: # Avoid depending upon Character Ranges.
! 11: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 12: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 13: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 14: as_cr_digits='0123456789'
! 15: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 16:
! 17: # Sed expression to map a string onto a valid variable name.
! 18: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 19:
! 20: # Sed expression to map a string onto a valid CPP name.
! 21: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 22:
! 23: # Be Bourne compatible
! 24: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 25: emulate sh
! 26: NULLCMD=:
! 27: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 28: set -o posix
! 29: fi
! 30:
! 31: # Name of the executable.
! 32: as_me=`echo "$0" |sed 's,.*[\\/],,'`
! 33:
! 34: if expr a : '\(a\)' >/dev/null 2>&1; then
! 35: as_expr=expr
! 36: else
! 37: as_expr=false
! 38: fi
! 39:
! 40: rm -f conf$$ conf$$.exe conf$$.file
! 41: echo >conf$$.file
! 42: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 43: # We could just check for DJGPP; but this test a) works b) is more generic
! 44: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 45: if test -f conf$$.exe; then
! 46: # Don't use ln at all; we don't have any links
! 47: as_ln_s='cp -p'
! 48: else
! 49: as_ln_s='ln -s'
! 50: fi
! 51: elif ln conf$$.file conf$$ 2>/dev/null; then
! 52: as_ln_s=ln
! 53: else
! 54: as_ln_s='cp -p'
! 55: fi
! 56: rm -f conf$$ conf$$.exe conf$$.file
! 57:
! 58: as_executable_p="test -f"
! 59:
! 60: # Support unset when possible.
! 61: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 62: as_unset=unset
! 63: else
! 64: as_unset=false
! 65: fi
! 66:
! 67: # NLS nuisances.
! 68: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
! 69: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
! 70: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
! 71: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
! 72: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
! 73: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
! 74: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
! 75: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
! 76:
! 77: # IFS
! 78: # We need space, tab and new line, in precisely that order.
! 79: as_nl='
! 80: '
! 81: IFS=" $as_nl"
! 82:
! 83: # CDPATH.
! 84: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
! 85:
! 86: # Name of the host.
! 87: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! 88: # so uname gets run too.
! 89: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
! 90:
! 91: exec 6>&1
! 92:
! 93: #
! 94: # Initializations.
! 95: #
1.1 millert 96: ac_default_prefix=/usr/local
1.7.2.1 ! millert 97: cross_compiling=no
! 98: subdirs=
! 99: MFLAGS= MAKEFLAGS=
! 100: SHELL=${CONFIG_SHELL-/bin/sh}
! 101:
! 102: # Maximum number of lines to put in a shell here document.
! 103: # This variable seems obsolete. It should probably be removed, and
! 104: # only ac_max_sed_lines should be used.
! 105: : ${ac_max_here_lines=38}
! 106:
! 107: # Factoring default headers for most tests.
! 108: ac_includes_default="\
! 109: #include <stdio.h>
! 110: #if HAVE_SYS_TYPES_H
! 111: # include <sys/types.h>
! 112: #endif
! 113: #if HAVE_SYS_STAT_H
! 114: # include <sys/stat.h>
! 115: #endif
! 116: #if STDC_HEADERS
! 117: # include <stdlib.h>
! 118: # include <stddef.h>
! 119: #else
! 120: # if HAVE_STDLIB_H
! 121: # include <stdlib.h>
! 122: # endif
! 123: #endif
! 124: #if HAVE_STRING_H
! 125: # if !STDC_HEADERS && HAVE_MEMORY_H
! 126: # include <memory.h>
! 127: # endif
! 128: # include <string.h>
! 129: #endif
! 130: #if HAVE_STRINGS_H
! 131: # include <strings.h>
! 132: #endif
! 133: #if HAVE_INTTYPES_H
! 134: # include <inttypes.h>
! 135: #else
! 136: # if HAVE_STDINT_H
! 137: # include <stdint.h>
! 138: # endif
! 139: #endif
! 140: #if HAVE_UNISTD_H
! 141: # include <unistd.h>
! 142: #endif"
1.1 millert 143:
144: # Initialize some variables set by options.
1.7.2.1 ! millert 145: ac_init_help=
! 146: ac_init_version=false
1.1 millert 147: # The variables have the same names as the options, with
148: # dashes changed to underlines.
1.7.2.1 ! millert 149: cache_file=/dev/null
1.1 millert 150: exec_prefix=NONE
151: no_create=
152: no_recursion=
153: prefix=NONE
154: program_prefix=NONE
155: program_suffix=NONE
156: program_transform_name=s,x,x,
157: silent=
158: site=
159: srcdir=
160: verbose=
161: x_includes=NONE
162: x_libraries=NONE
1.7.2.1 ! millert 163:
! 164: # Installation directory options.
! 165: # These are left unexpanded so users can "make install exec_prefix=/foo"
! 166: # and all the variables that are supposed to be based on exec_prefix
! 167: # by default will actually change.
! 168: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 millert 169: bindir='${exec_prefix}/bin'
170: sbindir='${exec_prefix}/sbin'
171: libexecdir='${exec_prefix}/libexec'
172: datadir='${prefix}/share'
173: sysconfdir='${prefix}/etc'
174: sharedstatedir='${prefix}/com'
175: localstatedir='${prefix}/var'
176: libdir='${exec_prefix}/lib'
177: includedir='${prefix}/include'
178: oldincludedir='/usr/include'
179: infodir='${prefix}/info'
180: mandir='${prefix}/man'
181:
1.7.2.1 ! millert 182: # Identity of this package.
! 183: PACKAGE_NAME='sudo'
! 184: PACKAGE_TARNAME='sudo'
! 185: PACKAGE_VERSION='1.6.5'
! 186: PACKAGE_STRING='sudo 1.6.5'
! 187: PACKAGE_BUGREPORT=''
1.1 millert 188:
189: ac_prev=
190: for ac_option
191: do
192: # If the previous option needs an argument, assign it.
193: if test -n "$ac_prev"; then
194: eval "$ac_prev=\$ac_option"
195: ac_prev=
196: continue
197: fi
198:
1.7.2.1 ! millert 199: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 millert 200:
201: # Accept the important Cygnus configure options, so we can diagnose typos.
202:
1.7.2.1 ! millert 203: case $ac_option in
1.1 millert 204:
205: -bindir | --bindir | --bindi | --bind | --bin | --bi)
206: ac_prev=bindir ;;
207: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.7.2.1 ! millert 208: bindir=$ac_optarg ;;
1.1 millert 209:
210: -build | --build | --buil | --bui | --bu)
1.7.2.1 ! millert 211: ac_prev=build_alias ;;
1.1 millert 212: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.7.2.1 ! millert 213: build_alias=$ac_optarg ;;
1.1 millert 214:
215: -cache-file | --cache-file | --cache-fil | --cache-fi \
216: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217: ac_prev=cache_file ;;
218: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.7.2.1 ! millert 220: cache_file=$ac_optarg ;;
! 221:
! 222: --config-cache | -C)
! 223: cache_file=config.cache ;;
1.1 millert 224:
225: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226: ac_prev=datadir ;;
227: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228: | --da=*)
1.7.2.1 ! millert 229: datadir=$ac_optarg ;;
1.1 millert 230:
231: -disable-* | --disable-*)
1.7.2.1 ! millert 232: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 233: # Reject names that are not valid shell variable names.
1.7.2.1 ! millert 234: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 235: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 236: { (exit 1); exit 1; }; }
! 237: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 238: eval "enable_$ac_feature=no" ;;
1.1 millert 239:
240: -enable-* | --enable-*)
1.7.2.1 ! millert 241: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 242: # Reject names that are not valid shell variable names.
1.7.2.1 ! millert 243: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 244: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 245: { (exit 1); exit 1; }; }
! 246: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 247: case $ac_option in
! 248: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 249: *) ac_optarg=yes ;;
250: esac
1.7.2.1 ! millert 251: eval enable_$ac_feature='$ac_optarg' ;;
1.1 millert 252:
253: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
254: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
255: | --exec | --exe | --ex)
256: ac_prev=exec_prefix ;;
257: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
258: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
259: | --exec=* | --exe=* | --ex=*)
1.7.2.1 ! millert 260: exec_prefix=$ac_optarg ;;
1.1 millert 261:
262: -gas | --gas | --ga | --g)
263: # Obsolete; use --with-gas.
264: with_gas=yes ;;
265:
1.7.2.1 ! millert 266: -help | --help | --hel | --he | -h)
! 267: ac_init_help=long ;;
! 268: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
! 269: ac_init_help=recursive ;;
! 270: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
! 271: ac_init_help=short ;;
1.1 millert 272:
273: -host | --host | --hos | --ho)
1.7.2.1 ! millert 274: ac_prev=host_alias ;;
1.1 millert 275: -host=* | --host=* | --hos=* | --ho=*)
1.7.2.1 ! millert 276: host_alias=$ac_optarg ;;
1.1 millert 277:
278: -includedir | --includedir | --includedi | --included | --include \
279: | --includ | --inclu | --incl | --inc)
280: ac_prev=includedir ;;
281: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.7.2.1 ! millert 283: includedir=$ac_optarg ;;
1.1 millert 284:
285: -infodir | --infodir | --infodi | --infod | --info | --inf)
286: ac_prev=infodir ;;
287: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.7.2.1 ! millert 288: infodir=$ac_optarg ;;
1.1 millert 289:
290: -libdir | --libdir | --libdi | --libd)
291: ac_prev=libdir ;;
292: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.7.2.1 ! millert 293: libdir=$ac_optarg ;;
1.1 millert 294:
295: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296: | --libexe | --libex | --libe)
297: ac_prev=libexecdir ;;
298: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299: | --libexe=* | --libex=* | --libe=*)
1.7.2.1 ! millert 300: libexecdir=$ac_optarg ;;
1.1 millert 301:
302: -localstatedir | --localstatedir | --localstatedi | --localstated \
303: | --localstate | --localstat | --localsta | --localst \
304: | --locals | --local | --loca | --loc | --lo)
305: ac_prev=localstatedir ;;
306: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.7.2.1 ! millert 309: localstatedir=$ac_optarg ;;
1.1 millert 310:
311: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312: ac_prev=mandir ;;
313: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.7.2.1 ! millert 314: mandir=$ac_optarg ;;
1.1 millert 315:
316: -nfp | --nfp | --nf)
317: # Obsolete; use --without-fp.
318: with_fp=no ;;
319:
320: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321: | --no-cr | --no-c)
322: no_create=yes ;;
323:
324: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
326: no_recursion=yes ;;
327:
328: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330: | --oldin | --oldi | --old | --ol | --o)
331: ac_prev=oldincludedir ;;
332: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.7.2.1 ! millert 335: oldincludedir=$ac_optarg ;;
1.1 millert 336:
337: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338: ac_prev=prefix ;;
339: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.7.2.1 ! millert 340: prefix=$ac_optarg ;;
1.1 millert 341:
342: -program-prefix | --program-prefix | --program-prefi | --program-pref \
343: | --program-pre | --program-pr | --program-p)
344: ac_prev=program_prefix ;;
345: -program-prefix=* | --program-prefix=* | --program-prefi=* \
346: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.7.2.1 ! millert 347: program_prefix=$ac_optarg ;;
1.1 millert 348:
349: -program-suffix | --program-suffix | --program-suffi | --program-suff \
350: | --program-suf | --program-su | --program-s)
351: ac_prev=program_suffix ;;
352: -program-suffix=* | --program-suffix=* | --program-suffi=* \
353: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.7.2.1 ! millert 354: program_suffix=$ac_optarg ;;
1.1 millert 355:
356: -program-transform-name | --program-transform-name \
357: | --program-transform-nam | --program-transform-na \
358: | --program-transform-n | --program-transform- \
359: | --program-transform | --program-transfor \
360: | --program-transfo | --program-transf \
361: | --program-trans | --program-tran \
362: | --progr-tra | --program-tr | --program-t)
363: ac_prev=program_transform_name ;;
364: -program-transform-name=* | --program-transform-name=* \
365: | --program-transform-nam=* | --program-transform-na=* \
366: | --program-transform-n=* | --program-transform-=* \
367: | --program-transform=* | --program-transfor=* \
368: | --program-transfo=* | --program-transf=* \
369: | --program-trans=* | --program-tran=* \
370: | --progr-tra=* | --program-tr=* | --program-t=*)
1.7.2.1 ! millert 371: program_transform_name=$ac_optarg ;;
1.1 millert 372:
373: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374: | -silent | --silent | --silen | --sile | --sil)
375: silent=yes ;;
376:
377: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378: ac_prev=sbindir ;;
379: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380: | --sbi=* | --sb=*)
1.7.2.1 ! millert 381: sbindir=$ac_optarg ;;
1.1 millert 382:
383: -sharedstatedir | --sharedstatedir | --sharedstatedi \
384: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385: | --sharedst | --shareds | --shared | --share | --shar \
386: | --sha | --sh)
387: ac_prev=sharedstatedir ;;
388: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391: | --sha=* | --sh=*)
1.7.2.1 ! millert 392: sharedstatedir=$ac_optarg ;;
1.1 millert 393:
394: -site | --site | --sit)
395: ac_prev=site ;;
396: -site=* | --site=* | --sit=*)
1.7.2.1 ! millert 397: site=$ac_optarg ;;
1.1 millert 398:
399: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400: ac_prev=srcdir ;;
401: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.7.2.1 ! millert 402: srcdir=$ac_optarg ;;
1.1 millert 403:
404: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405: | --syscon | --sysco | --sysc | --sys | --sy)
406: ac_prev=sysconfdir ;;
407: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.7.2.1 ! millert 409: sysconfdir=$ac_optarg ;;
1.1 millert 410:
411: -target | --target | --targe | --targ | --tar | --ta | --t)
1.7.2.1 ! millert 412: ac_prev=target_alias ;;
1.1 millert 413: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.7.2.1 ! millert 414: target_alias=$ac_optarg ;;
1.1 millert 415:
416: -v | -verbose | --verbose | --verbos | --verbo | --verb)
417: verbose=yes ;;
418:
1.7.2.1 ! millert 419: -version | --version | --versio | --versi | --vers | -V)
! 420: ac_init_version=: ;;
1.1 millert 421:
422: -with-* | --with-*)
1.7.2.1 ! millert 423: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 424: # Reject names that are not valid shell variable names.
1.7.2.1 ! millert 425: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 426: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 427: { (exit 1); exit 1; }; }
1.1 millert 428: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.7.2.1 ! millert 429: case $ac_option in
! 430: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 431: *) ac_optarg=yes ;;
432: esac
1.7.2.1 ! millert 433: eval with_$ac_package='$ac_optarg' ;;
1.1 millert 434:
435: -without-* | --without-*)
1.7.2.1 ! millert 436: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 437: # Reject names that are not valid shell variable names.
1.7.2.1 ! millert 438: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 439: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 440: { (exit 1); exit 1; }; }
! 441: ac_package=`echo $ac_package | sed 's/-/_/g'`
! 442: eval "with_$ac_package=no" ;;
1.1 millert 443:
444: --x)
445: # Obsolete; use --with-x.
446: with_x=yes ;;
447:
448: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449: | --x-incl | --x-inc | --x-in | --x-i)
450: ac_prev=x_includes ;;
451: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.7.2.1 ! millert 453: x_includes=$ac_optarg ;;
1.1 millert 454:
455: -x-libraries | --x-libraries | --x-librarie | --x-librari \
456: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457: ac_prev=x_libraries ;;
458: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.7.2.1 ! millert 460: x_libraries=$ac_optarg ;;
1.1 millert 461:
1.7.2.1 ! millert 462: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 463: Try \`$0 --help' for more information." >&2
! 464: { (exit 1); exit 1; }; }
1.1 millert 465: ;;
466:
1.7.2.1 ! millert 467: *=*)
! 468: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
! 469: # Reject names that are not valid shell variable names.
! 470: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 471: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 472: { (exit 1); exit 1; }; }
! 473: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
! 474: eval "$ac_envvar='$ac_optarg'"
! 475: export $ac_envvar ;;
! 476:
1.1 millert 477: *)
1.7.2.1 ! millert 478: # FIXME: should be removed in autoconf 3.0.
! 479: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
! 480: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 481: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 482: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 483: ;;
484:
485: esac
486: done
487:
488: if test -n "$ac_prev"; then
1.7.2.1 ! millert 489: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
! 490: { echo "$as_me: error: missing argument to $ac_option" >&2
! 491: { (exit 1); exit 1; }; }
1.1 millert 492: fi
493:
1.7.2.1 ! millert 494: # Be sure to have absolute paths.
! 495: for ac_var in exec_prefix prefix
! 496: do
! 497: eval ac_val=$`echo $ac_var`
! 498: case $ac_val in
! 499: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
! 500: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
! 501: { (exit 1); exit 1; }; };;
! 502: esac
! 503: done
1.1 millert 504:
1.7.2.1 ! millert 505: # Be sure to have absolute paths.
! 506: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
! 507: localstatedir libdir includedir oldincludedir infodir mandir
1.1 millert 508: do
1.7.2.1 ! millert 509: eval ac_val=$`echo $ac_var`
! 510: case $ac_val in
! 511: [\\/$]* | ?:[\\/]* ) ;;
! 512: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
! 513: { (exit 1); exit 1; }; };;
1.1 millert 514: esac
515: done
516:
1.7.2.1 ! millert 517: # There might be people who depend on the old broken behavior: `$host'
! 518: # used to hold the argument of --host etc.
! 519: build=$build_alias
! 520: host=$host_alias
! 521: target=$target_alias
! 522:
! 523: # FIXME: should be removed in autoconf 3.0.
! 524: if test "x$host_alias" != x; then
! 525: if test "x$build_alias" = x; then
! 526: cross_compiling=maybe
! 527: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 528: If a cross compiler is detected then cross compile mode will be used." >&2
! 529: elif test "x$build_alias" != "x$host_alias"; then
! 530: cross_compiling=yes
! 531: fi
! 532: fi
1.1 millert 533:
1.7.2.1 ! millert 534: ac_tool_prefix=
! 535: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 536:
1.7.2.1 ! millert 537: test "$silent" = yes && exec 6>/dev/null
1.1 millert 538:
539: # Find the source files, if location was not specified.
540: if test -z "$srcdir"; then
541: ac_srcdir_defaulted=yes
542: # Try the directory containing this script, then its parent.
543: ac_prog=$0
1.7.2.1 ! millert 544: ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
1.1 millert 545: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546: srcdir=$ac_confdir
547: if test ! -r $srcdir/$ac_unique_file; then
548: srcdir=..
549: fi
550: else
551: ac_srcdir_defaulted=no
552: fi
553: if test ! -r $srcdir/$ac_unique_file; then
554: if test "$ac_srcdir_defaulted" = yes; then
1.7.2.1 ! millert 555: { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
! 556: { (exit 1); exit 1; }; }
1.1 millert 557: else
1.7.2.1 ! millert 558: { echo "$as_me: error: cannot find sources in $srcdir" >&2
! 559: { (exit 1); exit 1; }; }
1.1 millert 560: fi
561: fi
1.7.2.1 ! millert 562: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! 563: ac_env_build_alias_set=${build_alias+set}
! 564: ac_env_build_alias_value=$build_alias
! 565: ac_cv_env_build_alias_set=${build_alias+set}
! 566: ac_cv_env_build_alias_value=$build_alias
! 567: ac_env_host_alias_set=${host_alias+set}
! 568: ac_env_host_alias_value=$host_alias
! 569: ac_cv_env_host_alias_set=${host_alias+set}
! 570: ac_cv_env_host_alias_value=$host_alias
! 571: ac_env_target_alias_set=${target_alias+set}
! 572: ac_env_target_alias_value=$target_alias
! 573: ac_cv_env_target_alias_set=${target_alias+set}
! 574: ac_cv_env_target_alias_value=$target_alias
! 575: ac_env_CC_set=${CC+set}
! 576: ac_env_CC_value=$CC
! 577: ac_cv_env_CC_set=${CC+set}
! 578: ac_cv_env_CC_value=$CC
! 579: ac_env_CFLAGS_set=${CFLAGS+set}
! 580: ac_env_CFLAGS_value=$CFLAGS
! 581: ac_cv_env_CFLAGS_set=${CFLAGS+set}
! 582: ac_cv_env_CFLAGS_value=$CFLAGS
! 583: ac_env_LDFLAGS_set=${LDFLAGS+set}
! 584: ac_env_LDFLAGS_value=$LDFLAGS
! 585: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! 586: ac_cv_env_LDFLAGS_value=$LDFLAGS
! 587: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! 588: ac_env_CPPFLAGS_value=$CPPFLAGS
! 589: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! 590: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! 591: ac_env_CPP_set=${CPP+set}
! 592: ac_env_CPP_value=$CPP
! 593: ac_cv_env_CPP_set=${CPP+set}
! 594: ac_cv_env_CPP_value=$CPP
! 595:
! 596: #
! 597: # Report the --help message.
! 598: #
! 599: if test "$ac_init_help" = "long"; then
! 600: # Omit some internal or obsolete options to make the list less imposing.
! 601: # This message is too long to be a string in the A/UX 3.1 sh.
! 602: cat <<EOF
! 603: \`configure' configures sudo 1.6.5 to adapt to many kinds of systems.
! 604:
! 605: Usage: $0 [OPTION]... [VAR=VALUE]...
! 606:
! 607: To assign environment variables (e.g., CC, CFLAGS...), specify them as
! 608: VAR=VALUE. See below for descriptions of some of the useful variables.
! 609:
! 610: Defaults for the options are specified in brackets.
! 611:
! 612: Configuration:
! 613: -h, --help display this help and exit
! 614: --help=short display options specific to this package
! 615: --help=recursive display the short help of all the included packages
! 616: -V, --version display version information and exit
! 617: -q, --quiet, --silent do not print \`checking...' messages
! 618: --cache-file=FILE cache test results in FILE [disabled]
! 619: -C, --config-cache alias for \`--cache-file=config.cache'
! 620: -n, --no-create do not create output files
! 621: --srcdir=DIR find the sources in DIR [configure dir or \`..']
! 622:
! 623: EOF
! 624:
! 625: cat <<EOF
! 626: Installation directories:
! 627: --prefix=PREFIX install architecture-independent files in PREFIX
! 628: [$ac_default_prefix]
! 629: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 630: [PREFIX]
! 631:
! 632: By default, \`make install' will install all the files in
! 633: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
! 634: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
! 635: for instance \`--prefix=\$HOME'.
! 636:
! 637: For better control, use the options below.
! 638:
! 639: Fine tuning of the installation directories:
! 640: --bindir=DIR user executables [EPREFIX/bin]
! 641: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 642: --libexecdir=DIR program executables [EPREFIX/libexec]
! 643: --datadir=DIR read-only architecture-independent data [PREFIX/share]
! 644: --sysconfdir=DIR read-only single-machine data [/etc]
! 645: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 646: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 647: --libdir=DIR object code libraries [EPREFIX/lib]
! 648: --includedir=DIR C header files [PREFIX/include]
! 649: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 650: --infodir=DIR info documentation [PREFIX/info]
! 651: --mandir=DIR man documentation [PREFIX/man]
! 652: EOF
! 653:
! 654: cat <<\EOF
! 655:
! 656: System types:
! 657: --build=BUILD configure for building on BUILD [guessed]
! 658: --host=HOST build programs to run on HOST [BUILD]
! 659: EOF
! 660: fi
! 661:
! 662: if test -n "$ac_init_help"; then
! 663: case $ac_init_help in
! 664: short | recursive ) echo "Configuration of sudo 1.6.5:";;
! 665: esac
! 666: cat <<\EOF
! 667:
! 668: Optional Features:
! 669: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 670: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 671: --disable-authentication
! 672: Do not require authentication by default
! 673: --disable-root-mailer Don't run the mailer as root, run as the user
! 674: --disable-saved-ids Don't try to use POSIX saved ids
! 675: --disable-shadow Never use shadow passwords
! 676: --disable-root-sudo Don't allow root to run sudo
! 677: --enable-log-host Log the hostname in the log file
! 678: --enable-noargs-shell If sudo is given no arguments run a shell
! 679: --enable-shell-sets-home
! 680: set $HOME to target user in shell mode
! 681: --disable-path-info Print 'command not allowed' not 'command not found'
! 682: --disable-sia Never use SIA on Digital UNIX
! 683:
! 684: Optional Packages:
! 685: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
! 686: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
! 687: --with-otp-only deprecated
! 688: --with-alertmail deprecated
! 689: --with-CC C compiler to use
! 690: --with-incpath additional places to look for include files
! 691: --with-libpath additional places to look for libraries
! 692: --with-libraries additional libraries to link with
! 693: --with-devel add developement options
! 694: --with-efence link with -lefence for malloc() debugging
! 695: --with-csops add CSOps standard options
! 696: --without-passwd don't use passwd/shadow file for authentication
! 697: --with-skey enable S/Key support
! 698: --with-opie enable OPIE support
! 699: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
! 700: --with-SecurID enable SecurID support
! 701: --with-fwtk enable FWTK AuthSRV support
! 702: --with-kerb4 enable kerberos v4 support
! 703: --with-kerb5 enable kerberos v5 support
! 704: --with-authenticate enable AIX general authentication support
! 705: --with-pam enable PAM support
! 706: --with-AFS enable AFS support
! 707: --with-DCE enable DCE support
! 708: --with-logincap enable BSD login class support
! 709: --with-bsdauth enable BSD authentication support
! 710: --without-lecture don't print lecture for first-time sudoer
! 711: --with-logging log via syslog, file, or both
! 712: --with-logfac syslog facility to log with (default is "local2")
! 713: --with-goodpri syslog priority for commands (def is "notice")
! 714: --with-badpri syslog priority for failures (def is "alert")
! 715: --with-logpath path to the sudo log file
! 716: --with-loglen maximum length of a log file line (default is 80)
! 717: --with-ignore-dot ignore '.' in the PATH
! 718: --without-mail-if-no-user do not send mail if user not in sudoers
! 719: --with-mail-if-no-host send mail if user in sudoers but not for this host
! 720: --with-mail-if-noperms send mail if user not allowed to run command
! 721: --with-mailto who should get sudo mail (default is "root")
! 722: --with-mailsubject subject of sudo mail
! 723: --with-passprompt default password prompt
! 724: --with-badpass-message message the user sees when the password is wrong
! 725: --with-fqdn expect fully qualified hosts in sudoers
! 726: --with-timedir path to the sudo timestamp dir
! 727: --with-sendmail=path set path to sendmail
! 728: --without-sendmail do not send mail at all
! 729: --with-sudoers-mode mode of sudoers file (defaults to 0440)
! 730: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
! 731: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
! 732: --with-umask umask with which the prog should run (default is 022)
! 733: --without-umask Preserves the umask of the user invoking sudo.
! 734: --with-runas-default User to run commands as (default is "root")
! 735: --with-exempt=group no passwd needed for users in this group
! 736: --with-editor=path Default editor for visudo (defaults to vi)
! 737: --with-env-editor Use the environment variable EDITOR for visudo
! 738: --with-passwd-tries number of tries to enter password (default is 3)
! 739: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
! 740: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
! 741: --with-execv use execv() instead of execvp()
! 742: --with-tty-tickets use a different ticket file for each tty
! 743: --with-insults insult the user for entering an incorrect password
! 744: --with-all-insults include all the sudo insult sets
! 745: --with-classic-insults include the insults from the "classic" sudo
! 746: --with-csops-insults include CSOps insults
! 747: --with-hal-insults include 2001-like insults
! 748: --with-goons-insults include the insults from the "Goon Show"
! 749: --with-secure-path override the user's path with a builtin one
! 750: --without-interfaces don't try to read the ip addr of ether interfaces
! 751:
! 752: Some influential environment variables:
! 753: CC C compiler command
! 754: CFLAGS C compiler flags
! 755: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
! 756: nonstandard directory <lib dir>
! 757: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! 758: headers in a nonstandard directory <include dir>
! 759: CPP C preprocessor
! 760:
! 761: Use these variables to override the choices made by `configure' or to help
! 762: it to find libraries and programs with nonstandard names/locations.
! 763:
! 764: EOF
! 765: fi
! 766:
! 767: if test "$ac_init_help" = "recursive"; then
! 768: # If there are subdirs, report their specific --help.
! 769: ac_popdir=`pwd`
! 770: for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
! 771: cd $ac_subdir
! 772: # A "../" for each directory in /$ac_subdir.
! 773: ac_dots=`echo $ac_subdir |
! 774: sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
! 775:
! 776: case $srcdir in
! 777: .) # No --srcdir option. We are building in place.
! 778: ac_sub_srcdir=$srcdir ;;
! 779: [\\/]* | ?:[\\/]* ) # Absolute path.
! 780: ac_sub_srcdir=$srcdir/$ac_subdir ;;
! 781: *) # Relative path.
! 782: ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
! 783: esac
! 784:
! 785: # Check for guested configure; otherwise get Cygnus style configure.
! 786: if test -f $ac_sub_srcdir/configure.gnu; then
! 787: echo
! 788: $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
! 789: elif test -f $ac_sub_srcdir/configure; then
! 790: echo
! 791: $SHELL $ac_sub_srcdir/configure --help=recursive
! 792: elif test -f $ac_sub_srcdir/configure.ac ||
! 793: test -f $ac_sub_srcdir/configure.in; then
! 794: echo
! 795: $ac_configure --help
! 796: else
! 797: echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
! 798: fi
! 799: cd $ac_popdir
! 800: done
! 801: fi
! 802:
! 803: test -n "$ac_init_help" && exit 0
! 804: if $ac_init_version; then
! 805: cat <<\EOF
! 806: sudo configure 1.6.5
! 807: generated by GNU Autoconf 2.52
! 808:
! 809: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 810: Free Software Foundation, Inc.
! 811: This configure script is free software; the Free Software Foundation
! 812: gives unlimited permission to copy, distribute and modify it.
! 813: EOF
! 814: exit 0
! 815: fi
! 816: exec 5>config.log
! 817: cat >&5 <<EOF
! 818: This file contains any messages produced by compilers while
! 819: running configure, to aid debugging if configure makes a mistake.
! 820:
! 821: It was created by sudo $as_me 1.6.5, which was
! 822: generated by GNU Autoconf 2.52. Invocation command line was
! 823:
! 824: $ $0 $@
! 825:
! 826: EOF
! 827: {
! 828: cat <<_ASUNAME
! 829: ## ---------- ##
! 830: ## Platform. ##
! 831: ## ---------- ##
! 832:
! 833: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 834: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 835: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 836: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 837: uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 838:
! 839: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! 840: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
! 841:
! 842: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
! 843: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
! 844: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! 845: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
! 846: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
! 847: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
! 848: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
! 849:
! 850: PATH = $PATH
! 851:
! 852: _ASUNAME
! 853: } >&5
! 854:
! 855: cat >&5 <<EOF
! 856: ## ------------ ##
! 857: ## Core tests. ##
! 858: ## ------------ ##
! 859:
! 860: EOF
! 861:
! 862: # Keep a trace of the command line.
! 863: # Strip out --no-create and --no-recursion so they do not pile up.
! 864: # Also quote any args containing shell meta-characters.
! 865: ac_configure_args=
! 866: ac_sep=
! 867: for ac_arg
! 868: do
! 869: case $ac_arg in
! 870: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 871: | --no-cr | --no-c) ;;
! 872: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 873: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
! 874: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 875: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
! 876: ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
! 877: ac_sep=" " ;;
! 878: *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
! 879: ac_sep=" " ;;
! 880: esac
! 881: # Get rid of the leading space.
! 882: done
! 883:
! 884: # When interrupted or exit'd, cleanup temporary files, and complete
! 885: # config.log. We remove comments because anyway the quotes in there
! 886: # would cause problems or look ugly.
! 887: trap 'exit_status=$?
! 888: # Save into config.log some information that might help in debugging.
! 889: echo >&5
! 890: echo "## ----------------- ##" >&5
! 891: echo "## Cache variables. ##" >&5
! 892: echo "## ----------------- ##" >&5
! 893: echo >&5
! 894: # The following way of writing the cache mishandles newlines in values,
! 895: {
! 896: (set) 2>&1 |
! 897: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
! 898: *ac_space=\ *)
! 899: sed -n \
! 900: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 901: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
! 902: ;;
! 903: *)
! 904: sed -n \
! 905: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 906: ;;
! 907: esac;
! 908: } >&5
! 909: sed "/^$/d" confdefs.h >conftest.log
! 910: if test -s conftest.log; then
! 911: echo >&5
! 912: echo "## ------------ ##" >&5
! 913: echo "## confdefs.h. ##" >&5
! 914: echo "## ------------ ##" >&5
! 915: echo >&5
! 916: cat conftest.log >&5
! 917: fi
! 918: (echo; echo) >&5
! 919: test "$ac_signal" != 0 &&
! 920: echo "$as_me: caught signal $ac_signal" >&5
! 921: echo "$as_me: exit $exit_status" >&5
! 922: rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
! 923: exit $exit_status
! 924: ' 0
! 925: for ac_signal in 1 2 13 15; do
! 926: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
! 927: done
! 928: ac_signal=0
1.1 millert 929:
1.7.2.1 ! millert 930: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 931: rm -rf conftest* confdefs.h
! 932: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 933: echo >confdefs.h
! 934:
! 935: # Let the site file select an alternate cache file if it wants to.
1.1 millert 936: # Prefer explicitly selected file to automatically selected ones.
937: if test -z "$CONFIG_SITE"; then
938: if test "x$prefix" != xNONE; then
939: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
940: else
941: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
942: fi
943: fi
944: for ac_site_file in $CONFIG_SITE; do
945: if test -r "$ac_site_file"; then
1.7.2.1 ! millert 946: { echo "$as_me:946: loading site script $ac_site_file" >&5
! 947: echo "$as_me: loading site script $ac_site_file" >&6;}
! 948: cat "$ac_site_file" >&5
1.1 millert 949: . "$ac_site_file"
950: fi
951: done
952:
953: if test -r "$cache_file"; then
1.7.2.1 ! millert 954: # Some versions of bash will fail to source /dev/null (special
! 955: # files actually), so we avoid doing that.
! 956: if test -f "$cache_file"; then
! 957: { echo "$as_me:957: loading cache $cache_file" >&5
! 958: echo "$as_me: loading cache $cache_file" >&6;}
! 959: case $cache_file in
! 960: [\\/]* | ?:[\\/]* ) . $cache_file;;
! 961: *) . ./$cache_file;;
! 962: esac
! 963: fi
1.1 millert 964: else
1.7.2.1 ! millert 965: { echo "$as_me:965: creating cache $cache_file" >&5
! 966: echo "$as_me: creating cache $cache_file" >&6;}
! 967: >$cache_file
! 968: fi
! 969:
! 970: # Check that the precious variables saved in the cache have kept the same
! 971: # value.
! 972: ac_cache_corrupted=false
! 973: for ac_var in `(set) 2>&1 |
! 974: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
! 975: eval ac_old_set=\$ac_cv_env_${ac_var}_set
! 976: eval ac_new_set=\$ac_env_${ac_var}_set
! 977: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
! 978: eval ac_new_val="\$ac_env_${ac_var}_value"
! 979: case $ac_old_set,$ac_new_set in
! 980: set,)
! 981: { echo "$as_me:981: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 982: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
! 983: ac_cache_corrupted=: ;;
! 984: ,set)
! 985: { echo "$as_me:985: error: \`$ac_var' was not set in the previous run" >&5
! 986: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
! 987: ac_cache_corrupted=: ;;
! 988: ,);;
! 989: *)
! 990: if test "x$ac_old_val" != "x$ac_new_val"; then
! 991: { echo "$as_me:991: error: \`$ac_var' has changed since the previous run:" >&5
! 992: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 993: { echo "$as_me:993: former value: $ac_old_val" >&5
! 994: echo "$as_me: former value: $ac_old_val" >&2;}
! 995: { echo "$as_me:995: current value: $ac_new_val" >&5
! 996: echo "$as_me: current value: $ac_new_val" >&2;}
! 997: ac_cache_corrupted=:
! 998: fi;;
! 999: esac
! 1000: # Pass precious variables to config.status. It doesn't matter if
! 1001: # we pass some twice (in addition to the command line arguments).
! 1002: if test "$ac_new_set" = set; then
! 1003: case $ac_new_val in
! 1004: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1005: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
! 1006: ac_configure_args="$ac_configure_args '$ac_arg'"
! 1007: ;;
! 1008: *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
! 1009: ;;
! 1010: esac
! 1011: fi
! 1012: done
! 1013: if $ac_cache_corrupted; then
! 1014: { echo "$as_me:1014: error: changes in the environment can compromise the build" >&5
! 1015: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1016: { { echo "$as_me:1016: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1017: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 1018: { (exit 1); exit 1; }; }
1.1 millert 1019: fi
1020:
1021: ac_ext=c
1022: ac_cpp='$CPP $CPPFLAGS'
1.7.2.1 ! millert 1023: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1024: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1025: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1026:
! 1027: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 1028: *c*,-n*) ECHO_N= ECHO_C='
! 1029: ' ECHO_T=' ' ;;
! 1030: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 1031: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 1032: esac
! 1033: echo "#! $SHELL" >conftest.sh
! 1034: echo "exit 0" >>conftest.sh
! 1035: chmod +x conftest.sh
! 1036: if { (echo "$as_me:1036: PATH=\".;.\"; conftest.sh") >&5
! 1037: (PATH=".;."; conftest.sh) 2>&5
! 1038: ac_status=$?
! 1039: echo "$as_me:1039: \$? = $ac_status" >&5
! 1040: (exit $ac_status); }; then
! 1041: ac_path_separator=';'
! 1042: else
! 1043: ac_path_separator=:
! 1044: fi
! 1045: PATH_SEPARATOR="$ac_path_separator"
! 1046: rm -f conftest.sh
! 1047:
! 1048: ac_config_headers="$ac_config_headers config.h pathnames.h"
! 1049:
! 1050: echo "Configuring Sudo version 1.6.5"
! 1051:
! 1052: timeout=5
! 1053: password_timeout=5
! 1054: sudo_umask=0022
! 1055: passprompt="Password:"
! 1056: long_otp_prompt=off
! 1057: lecture=on
! 1058: logfac=local2
! 1059: goodpri=notice
! 1060: badpri=alert
! 1061: loglen=80
! 1062: ignore_dot=off
! 1063: mail_no_user=on
! 1064: mail_no_host=off
! 1065: mail_no_perms=off
! 1066: mailto=root
! 1067: mailsub='*** SECURITY information for %h ***'
! 1068: badpass_message='Sorry, try again.'
! 1069: fqdn=off
! 1070: runas_default=root
! 1071: env_editor=off
! 1072: passwd_tries=3
! 1073: tty_tickets=off
! 1074: insults=off
1.1 millert 1075: PROGS="sudo visudo"
1.6 millert 1076: test -n "$MANTYPE" || MANTYPE="man"
1077: test -n "$mansrcdir" || mansrcdir="."
1078: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1079: test -n "$SUDOERS_UID" || SUDOERS_UID=0
1080: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1 millert 1081: DEV="#"
1082:
1083: CHECKSHADOW=true
1084: CHECKSIA=true
1085:
1086: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1087: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1088: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1089: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
1090:
1091: # Check whether --with-otp-only or --without-otp-only was given.
1092: if test "${with_otp_only+set}" = set; then
1093: withval="$with_otp_only"
1094: case $with_otp_only in
1095: yes) with_passwd=no
1.7.2.1 ! millert 1096:
! 1097: cat >>confdefs.h <<\EOF
1.1 millert 1098: #define WITHOUT_PASSWD 1
1099: EOF
1100:
1.7.2.1 ! millert 1101: { echo "$as_me:1101: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&5
! 1102: echo "$as_me: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&2;}
1.1 millert 1103: ;;
1104: esac
1.7.2.1 ! millert 1105: fi;
1.1 millert 1106:
1107: # Check whether --with-alertmail or --without-alertmail was given.
1108: if test "${with_alertmail+set}" = set; then
1109: withval="$with_alertmail"
1110: case $with_alertmail in
1111: *) with_mailto="$with_alertmail"
1.7.2.1 ! millert 1112: { echo "$as_me:1112: WARNING: --with-alertmail option deprecated, treating as --mailto" >&5
! 1113: echo "$as_me: WARNING: --with-alertmail option deprecated, treating as --mailto" >&2;}
1.1 millert 1114: ;;
1115: esac
1.7.2.1 ! millert 1116: fi;
1.1 millert 1117:
1118: # Check whether --with-CC or --without-CC was given.
1119: if test "${with_CC+set}" = set; then
1120: withval="$with_CC"
1121: case $with_CC in
1.7.2.1 ! millert 1122: yes) { { echo "$as_me:1122: error: \"must give --with-CC an argument.\"" >&5
! 1123: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
! 1124: { (exit 1); exit 1; }; }
! 1125: ;;
! 1126: no) { { echo "$as_me:1126: error: \"illegal argument: --without-CC.\"" >&5
! 1127: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
! 1128: { (exit 1); exit 1; }; }
1.1 millert 1129: ;;
1130: *) CC=$with_CC
1131: ;;
1132: esac
1.7.2.1 ! millert 1133: fi;
1.1 millert 1134:
1135: # Check whether --with-incpath or --without-incpath was given.
1136: if test "${with_incpath+set}" = set; then
1137: withval="$with_incpath"
1.7.2.1 ! millert 1138: case $with_incpath in
! 1139: yes) { { echo "$as_me:1139: error: \"must give --with-incpath an argument.\"" >&5
! 1140: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
! 1141: { (exit 1); exit 1; }; }
! 1142: ;;
! 1143: no) { { echo "$as_me:1143: error: \"--without-incpath not supported.\"" >&5
! 1144: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
! 1145: { (exit 1); exit 1; }; }
1.1 millert 1146: ;;
1147: *) echo "Adding ${with_incpath} to CPPFLAGS"
1148: for i in ${with_incpath}; do
1149: CPPFLAGS="${CPPFLAGS} -I${i}"
1150: done
1151: ;;
1152: esac
1.7.2.1 ! millert 1153: fi;
1.1 millert 1154:
1155: # Check whether --with-libpath or --without-libpath was given.
1156: if test "${with_libpath+set}" = set; then
1157: withval="$with_libpath"
1.7.2.1 ! millert 1158: case $with_libpath in
! 1159: yes) { { echo "$as_me:1159: error: \"must give --with-libpath an argument.\"" >&5
! 1160: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
! 1161: { (exit 1); exit 1; }; }
! 1162: ;;
! 1163: no) { { echo "$as_me:1163: error: \"--without-libpath not supported.\"" >&5
! 1164: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
! 1165: { (exit 1); exit 1; }; }
1.1 millert 1166: ;;
1167: *) echo "Adding ${with_libpath} to LDFLAGS"
1168: for i in ${with_libpath}; do
1169: LDFLAGS="${LDFLAGS} -L${i}"
1170: done
1171: ;;
1172: esac
1.7.2.1 ! millert 1173: fi;
1.1 millert 1174:
1175: # Check whether --with-libraries or --without-libraries was given.
1176: if test "${with_libraries+set}" = set; then
1177: withval="$with_libraries"
1.7.2.1 ! millert 1178: case $with_libraries in
! 1179: yes) { { echo "$as_me:1179: error: \"must give --with-libraries an argument.\"" >&5
! 1180: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
! 1181: { (exit 1); exit 1; }; }
! 1182: ;;
! 1183: no) { { echo "$as_me:1183: error: \"--without-libraries not supported.\"" >&5
! 1184: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
! 1185: { (exit 1); exit 1; }; }
1.1 millert 1186: ;;
1187: *) echo "Adding ${with_libraries} to LIBS"
1188: for i in ${with_libraries}; do
1189: case $i in
1190: -l*) ;;
1191: *.a) ;;
1192: *.o) ;;
1193: *) i="-l${i}";;
1194: esac
1195: LIBS="${LIBS} ${i}"
1196: done
1197: ;;
1198: esac
1.7.2.1 ! millert 1199: fi;
1.1 millert 1200:
1201: # Check whether --with-devel or --without-devel was given.
1202: if test "${with_devel+set}" = set; then
1203: withval="$with_devel"
1.7.2.1 ! millert 1204: case $with_devel in
1.1 millert 1205: yes) echo 'Setting up for developement: -Wall, flex, yacc'
1206: PROGS="${PROGS} testsudoers"
1207: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1208: DEV=""
1209: ;;
1210: no) ;;
1.6 millert 1211: *) echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1 millert 1212: ;;
1213: esac
1.7.2.1 ! millert 1214: fi;
1.1 millert 1215:
1.7.2.1 ! millert 1216: # Check whether --with-efence or --without-efence was given.
! 1217: if test "${with_efence+set}" = set; then
! 1218: withval="$with_efence"
! 1219: case $with_efence in
! 1220: yes) echo 'Sudo will link with -lefence (Electric Fence)'
! 1221: LIBS="${LIBS} -lefence"
! 1222: if test -f /usr/local/lib/libefence.a; then
! 1223: LDFLAGS="${LDFLAGS} -L/usr/local/lib"
! 1224: fi
! 1225: ;;
! 1226: no) ;;
! 1227: *) echo "Ignoring unknown argument to --with-efence: $with_efence"
! 1228: ;;
! 1229: esac
! 1230: fi;
1.1 millert 1231:
1232: # Check whether --with-csops or --without-csops was given.
1233: if test "${with_csops+set}" = set; then
1234: withval="$with_csops"
1.7.2.1 ! millert 1235: case $with_csops in
1.1 millert 1236: yes) echo 'Adding CSOps standard options'
1237: CHECKSIA=false
1238: with_ignore_dot=yes
1.7.2.1 ! millert 1239: insults=on
1.1 millert 1240: with_classic_insults=yes
1241: with_csops_insults=yes
1242: with_env_editor=yes
1243: ;;
1244: no) ;;
1245: *) echo "Ignoring unknown argument to --with-csops: $with_csops"
1246: ;;
1247: esac
1.7.2.1 ! millert 1248: fi;
1.1 millert 1249:
1250: # Check whether --with-passwd or --without-passwd was given.
1251: if test "${with_passwd+set}" = set; then
1252: withval="$with_passwd"
1253: case $with_passwd in
1254: yes) ;;
1.7.2.1 ! millert 1255: no) cat >>confdefs.h <<\EOF
1.1 millert 1256: #define WITHOUT_PASSWD 1
1257: EOF
1258:
1.7.2.1 ! millert 1259: echo "$as_me:1259: checking whether to use shadow/passwd file authentication" >&5
! 1260: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
! 1261: echo "$as_me:1261: result: no" >&5
! 1262: echo "${ECHO_T}no" >&6
1.1 millert 1263: ;;
1.7.2.1 ! millert 1264: *) { { echo "$as_me:1264: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
! 1265: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
! 1266: { (exit 1); exit 1; }; }
1.1 millert 1267: ;;
1268: esac
1.7.2.1 ! millert 1269: fi;
1.1 millert 1270:
1271: # Check whether --with-skey or --without-skey was given.
1272: if test "${with_skey+set}" = set; then
1273: withval="$with_skey"
1274: case $with_skey in
1275: yes) if test -n "$with_opie"; then
1.7.2.1 ! millert 1276: { { echo "$as_me:1276: error: \"cannot use both S/Key and OPIE\"" >&5
! 1277: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
! 1278: { (exit 1); exit 1; }; }
1.1 millert 1279: fi
1.7.2.1 ! millert 1280:
! 1281: cat >>confdefs.h <<\EOF
1.1 millert 1282: #define HAVE_SKEY 1
1283: EOF
1284:
1.7.2.1 ! millert 1285: echo "$as_me:1285: checking whether to try S/Key authentication" >&5
! 1286: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
! 1287: echo "$as_me:1287: result: yes" >&5
! 1288: echo "${ECHO_T}yes" >&6
1.1 millert 1289: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1290: ;;
1291: no) ;;
1292: *) echo "Ignoring unknown argument to --with-skey: $with_skey"
1293: ;;
1294: esac
1.7.2.1 ! millert 1295: fi;
1.1 millert 1296:
1297: # Check whether --with-opie or --without-opie was given.
1298: if test "${with_opie+set}" = set; then
1299: withval="$with_opie"
1300: case $with_opie in
1301: yes) if test -n "$with_skey"; then
1.7.2.1 ! millert 1302: { { echo "$as_me:1302: error: \"cannot use both S/Key and OPIE\"" >&5
! 1303: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
! 1304: { (exit 1); exit 1; }; }
1.1 millert 1305: fi
1.7.2.1 ! millert 1306:
! 1307: cat >>confdefs.h <<\EOF
1.1 millert 1308: #define HAVE_OPIE 1
1309: EOF
1310:
1.7.2.1 ! millert 1311: echo "$as_me:1311: checking whether to try NRL OPIE authentication" >&5
! 1312: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
! 1313: echo "$as_me:1313: result: yes" >&5
! 1314: echo "${ECHO_T}yes" >&6
1.1 millert 1315: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1316: ;;
1317: no) ;;
1318: *) echo "Ignoring unknown argument to --with-opie: $with_opie"
1319: ;;
1320: esac
1.7.2.1 ! millert 1321: fi;
1.1 millert 1322:
1323: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1324: if test "${with_long_otp_prompt+set}" = set; then
1325: withval="$with_long_otp_prompt"
1326: case $with_long_otp_prompt in
1.7.2.1 ! millert 1327: yes)
! 1328: cat >>confdefs.h <<\EOF
1.1 millert 1329: #define LONG_OTP_PROMPT 1
1330: EOF
1331:
1.7.2.1 ! millert 1332: echo "$as_me:1332: checking whether to use a two line prompt for OTP authentication" >&5
! 1333: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
! 1334: echo "$as_me:1334: result: yes" >&5
! 1335: echo "${ECHO_T}yes" >&6
! 1336: long_otp_prompt=on
1.1 millert 1337: ;;
1.7.2.1 ! millert 1338: no) long_otp_prompt=off
! 1339: ;;
! 1340: *) { { echo "$as_me:1340: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
! 1341: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
! 1342: { (exit 1); exit 1; }; }
1.1 millert 1343: ;;
1344: esac
1.7.2.1 ! millert 1345: fi;
1.1 millert 1346:
1347: # Check whether --with-SecurID or --without-SecurID was given.
1348: if test "${with_SecurID+set}" = set; then
1349: withval="$with_SecurID"
1350: case $with_SecurID in
1351: no) ;;
1.7.2.1 ! millert 1352: *)
! 1353: cat >>confdefs.h <<\EOF
1.1 millert 1354: #define HAVE_SECURID 1
1355: EOF
1356:
1.7.2.1 ! millert 1357: echo "$as_me:1357: checking whether to use SecurID for authentication" >&5
! 1358: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
! 1359: echo "$as_me:1359: result: yes" >&5
! 1360: echo "${ECHO_T}yes" >&6
1.1 millert 1361: with_passwd=no
1362: AUTH_OBJS="securid.o"
1363: ;;
1364: esac
1.7.2.1 ! millert 1365: fi;
1.1 millert 1366:
1367: # Check whether --with-fwtk or --without-fwtk was given.
1368: if test "${with_fwtk+set}" = set; then
1369: withval="$with_fwtk"
1370: case $with_fwtk in
1371: no) ;;
1.7.2.1 ! millert 1372: *)
! 1373: cat >>confdefs.h <<\EOF
1.1 millert 1374: #define HAVE_FWTK 1
1375: EOF
1376:
1.7.2.1 ! millert 1377: echo "$as_me:1377: checking whether to use FWTK AuthSRV for authentication" >&5
! 1378: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
! 1379: echo "$as_me:1379: result: yes" >&5
! 1380: echo "${ECHO_T}yes" >&6
1.1 millert 1381: with_passwd=no
1382: AUTH_OBJS="fwtk.o"
1.7.2.1 ! millert 1383: if test "$with_fwtk" != "yes"; then
! 1384: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
! 1385: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
! 1386: with_fwtk=yes
! 1387: fi
1.1 millert 1388: ;;
1389: esac
1.7.2.1 ! millert 1390: fi;
1.1 millert 1391:
1392: # Check whether --with-kerb4 or --without-kerb4 was given.
1393: if test "${with_kerb4+set}" = set; then
1394: withval="$with_kerb4"
1395: case $with_kerb4 in
1.7.2.1 ! millert 1396: yes) echo "$as_me:1396: checking whether to try Kerberos 4 authentication" >&5
! 1397: echo $ECHO_N "checking whether to try Kerberos 4 authentication... $ECHO_C" >&6
! 1398: echo "$as_me:1398: result: yes" >&5
! 1399: echo "${ECHO_T}yes" >&6
1.1 millert 1400: ;;
1401: no) ;;
1.7.2.1 ! millert 1402: *) { { echo "$as_me:1402: error: \"--with-kerb4 does not take an argument.\"" >&5
! 1403: echo "$as_me: error: \"--with-kerb4 does not take an argument.\"" >&2;}
! 1404: { (exit 1); exit 1; }; }
1.1 millert 1405: ;;
1406: esac
1.7.2.1 ! millert 1407: fi;
1.1 millert 1408:
1409: # Check whether --with-kerb5 or --without-kerb5 was given.
1410: if test "${with_kerb5+set}" = set; then
1411: withval="$with_kerb5"
1412: case $with_kerb5 in
1.7.2.1 ! millert 1413: yes) echo "$as_me:1413: checking whether to try Kerberos 5 authentication" >&5
! 1414: echo $ECHO_N "checking whether to try Kerberos 5 authentication... $ECHO_C" >&6
! 1415: echo "$as_me:1415: result: yes" >&5
! 1416: echo "${ECHO_T}yes" >&6
1.1 millert 1417: ;;
1418: no) ;;
1.7.2.1 ! millert 1419: *) { { echo "$as_me:1419: error: \"--with-kerb5 does not take an argument.\"" >&5
! 1420: echo "$as_me: error: \"--with-kerb5 does not take an argument.\"" >&2;}
! 1421: { (exit 1); exit 1; }; }
1.1 millert 1422: ;;
1423: esac
1.7.2.1 ! millert 1424: fi;
1.1 millert 1425:
1426: # Check whether --with-authenticate or --without-authenticate was given.
1427: if test "${with_authenticate+set}" = set; then
1428: withval="$with_authenticate"
1429: case $with_authenticate in
1.7.2.1 ! millert 1430: yes)
! 1431: cat >>confdefs.h <<\EOF
1.1 millert 1432: #define HAVE_AUTHENTICATE 1
1433: EOF
1434:
1.7.2.1 ! millert 1435: echo "$as_me:1435: checking whether to use AIX general authentication" >&5
! 1436: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
! 1437: echo "$as_me:1437: result: yes" >&5
! 1438: echo "${ECHO_T}yes" >&6
1.1 millert 1439: with_passwd=no
1440: AUTH_OBJS="aix_auth.o"
1441: ;;
1442: no) ;;
1.7.2.1 ! millert 1443: *) { { echo "$as_me:1443: error: \"--with-authenticate does not take an argument.\"" >&5
! 1444: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
! 1445: { (exit 1); exit 1; }; }
1.1 millert 1446: ;;
1447: esac
1.7.2.1 ! millert 1448: fi;
1.1 millert 1449:
1450: # Check whether --with-pam or --without-pam was given.
1451: if test "${with_pam+set}" = set; then
1452: withval="$with_pam"
1453: case $with_pam in
1.7.2.1 ! millert 1454: yes)
! 1455: cat >>confdefs.h <<\EOF
1.1 millert 1456: #define HAVE_PAM 1
1457: EOF
1458:
1.7.2.1 ! millert 1459: echo "$as_me:1459: checking whether to use PAM authentication" >&5
! 1460: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
! 1461: echo "$as_me:1461: result: yes" >&5
! 1462: echo "${ECHO_T}yes" >&6
1.1 millert 1463: with_passwd=no
1464: AUTH_OBJS="pam.o"
1465: ;;
1466: no) ;;
1.7.2.1 ! millert 1467: *) { { echo "$as_me:1467: error: \"--with-pam does not take an argument.\"" >&5
! 1468: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
! 1469: { (exit 1); exit 1; }; }
1.1 millert 1470: ;;
1471: esac
1.7.2.1 ! millert 1472: fi;
1.1 millert 1473:
1474: # Check whether --with-AFS or --without-AFS was given.
1475: if test "${with_AFS+set}" = set; then
1476: withval="$with_AFS"
1477: case $with_AFS in
1.7.2.1 ! millert 1478: yes)
! 1479: cat >>confdefs.h <<\EOF
1.1 millert 1480: #define HAVE_AFS 1
1481: EOF
1482:
1.7.2.1 ! millert 1483: echo "$as_me:1483: checking whether to try AFS (kerberos) authentication" >&5
! 1484: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
! 1485: echo "$as_me:1485: result: yes" >&5
! 1486: echo "${ECHO_T}yes" >&6
1.1 millert 1487: AUTH_OBJS="${AUTH_OBJS} afs.o"
1488: ;;
1489: no) ;;
1.7.2.1 ! millert 1490: *) { { echo "$as_me:1490: error: \"--with-AFS does not take an argument.\"" >&5
! 1491: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
! 1492: { (exit 1); exit 1; }; }
1.1 millert 1493: ;;
1494: esac
1.7.2.1 ! millert 1495: fi;
1.1 millert 1496:
1497: # Check whether --with-DCE or --without-DCE was given.
1498: if test "${with_DCE+set}" = set; then
1499: withval="$with_DCE"
1500: case $with_DCE in
1.7.2.1 ! millert 1501: yes)
! 1502: cat >>confdefs.h <<\EOF
1.1 millert 1503: #define HAVE_DCE 1
1504: EOF
1505:
1.7.2.1 ! millert 1506: echo "$as_me:1506: checking whether to try DCE (kerberos) authentication" >&5
! 1507: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
! 1508: echo "$as_me:1508: result: yes" >&5
! 1509: echo "${ECHO_T}yes" >&6
1.1 millert 1510: AUTH_OBJS="${AUTH_OBJS} dce.o"
1511: ;;
1512: no) ;;
1.7.2.1 ! millert 1513: *) { { echo "$as_me:1513: error: \"--with-DCE does not take an argument.\"" >&5
! 1514: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
! 1515: { (exit 1); exit 1; }; }
1.1 millert 1516: ;;
1517: esac
1.7.2.1 ! millert 1518: fi;
1.1 millert 1519:
1.6 millert 1520: # Check whether --with-logincap or --without-logincap was given.
1521: if test "${with_logincap+set}" = set; then
1522: withval="$with_logincap"
1523: case $with_logincap in
1.7 millert 1524: yes|no) ;;
1.7.2.1 ! millert 1525: *) { { echo "$as_me:1525: error: \"--with-logincap does not take an argument.\"" >&5
! 1526: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
! 1527: { (exit 1); exit 1; }; }
1.7 millert 1528: ;;
1529: esac
1.7.2.1 ! millert 1530: fi;
1.6 millert 1531:
1.7 millert 1532: # Check whether --with-bsdauth or --without-bsdauth was given.
1533: if test "${with_bsdauth+set}" = set; then
1534: withval="$with_bsdauth"
1535: case $with_bsdauth in
1536: yes) with_logincap=yes
1.6 millert 1537: ;;
1538: no) ;;
1.7.2.1 ! millert 1539: *) { { echo "$as_me:1539: error: \"--with-bsdauth does not take an argument.\"" >&5
! 1540: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
! 1541: { (exit 1); exit 1; }; }
1.6 millert 1542: ;;
1543: esac
1.7.2.1 ! millert 1544: fi;
1.6 millert 1545:
1.7.2.1 ! millert 1546: echo "$as_me:1546: checking whether to lecture users the first time they run sudo" >&5
! 1547: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6 millert 1548:
1.1 millert 1549: # Check whether --with-lecture or --without-lecture was given.
1550: if test "${with_lecture+set}" = set; then
1551: withval="$with_lecture"
1.7.2.1 ! millert 1552: case $with_lecture in
! 1553: yes|short) lecture=on
1.1 millert 1554: ;;
1.7.2.1 ! millert 1555: no|none) lecture=off
1.1 millert 1556: ;;
1.7.2.1 ! millert 1557: *) { { echo "$as_me:1557: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
! 1558: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
! 1559: { (exit 1); exit 1; }; }
1.1 millert 1560: ;;
1561: esac
1.7.2.1 ! millert 1562: fi;
! 1563: if test "$lecture" = "on"; then
! 1564: echo "$as_me:1564: result: yes" >&5
! 1565: echo "${ECHO_T}yes" >&6
1.1 millert 1566: else
1567:
1.7.2.1 ! millert 1568: cat >>confdefs.h <<\EOF
! 1569: #define NO_LECTURE 1
! 1570: EOF
! 1571:
! 1572: echo "$as_me:1572: result: no" >&5
! 1573: echo "${ECHO_T}no" >&6
! 1574: fi
! 1575:
! 1576: echo "$as_me:1576: checking whether sudo should log via syslog or to a file by default" >&5
! 1577: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1 millert 1578:
1579: # Check whether --with-logging or --without-logging was given.
1580: if test "${with_logging+set}" = set; then
1581: withval="$with_logging"
1.7.2.1 ! millert 1582: case $with_logging in
! 1583: yes) { { echo "$as_me:1583: error: \"must give --with-logging an argument.\"" >&5
! 1584: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
! 1585: { (exit 1); exit 1; }; }
! 1586: ;;
! 1587: no) { { echo "$as_me:1587: error: \"--without-logging not supported.\"" >&5
! 1588: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
! 1589: { (exit 1); exit 1; }; }
1.1 millert 1590: ;;
1.7.2.1 ! millert 1591: syslog)
! 1592: cat >>confdefs.h <<\EOF
1.1 millert 1593: #define LOGGING SLOG_SYSLOG
1594: EOF
1595:
1.7.2.1 ! millert 1596: echo "$as_me:1596: result: syslog" >&5
! 1597: echo "${ECHO_T}syslog" >&6
1.1 millert 1598: ;;
1.7.2.1 ! millert 1599: file) cat >>confdefs.h <<\EOF
1.1 millert 1600: #define LOGGING SLOG_FILE
1601: EOF
1602:
1.7.2.1 ! millert 1603: echo "$as_me:1603: result: file" >&5
! 1604: echo "${ECHO_T}file" >&6
1.1 millert 1605: ;;
1.7.2.1 ! millert 1606: both) cat >>confdefs.h <<\EOF
1.1 millert 1607: #define LOGGING SLOG_BOTH
1608: EOF
1609:
1.7.2.1 ! millert 1610: echo "$as_me:1610: result: both" >&5
! 1611: echo "${ECHO_T}both" >&6
1.1 millert 1612: ;;
1.7.2.1 ! millert 1613: *) { { echo "$as_me:1613: error: \"unknown argument to --with-logging: $with_logging\"" >&5
! 1614: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
! 1615: { (exit 1); exit 1; }; }
1.1 millert 1616: ;;
1617: esac
1618: else
1.7.2.1 ! millert 1619: cat >>confdefs.h <<\EOF
1.1 millert 1620: #define LOGGING SLOG_SYSLOG
1621: EOF
1.7.2.1 ! millert 1622: echo "$as_me:1622: result: syslog" >&5
! 1623: echo "${ECHO_T}syslog" >&6
! 1624: fi;
1.1 millert 1625:
1.7.2.1 ! millert 1626: echo "$as_me:1626: checking which syslog facility sudo should log with" >&5
! 1627: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1 millert 1628:
1629: # Check whether --with-logfac or --without-logfac was given.
1630: if test "${with_logfac+set}" = set; then
1631: withval="$with_logfac"
1.7.2.1 ! millert 1632: case $with_logfac in
! 1633: yes) { { echo "$as_me:1633: error: \"must give --with-logfac an argument.\"" >&5
! 1634: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
! 1635: { (exit 1); exit 1; }; }
1.1 millert 1636: ;;
1.7.2.1 ! millert 1637: no) { { echo "$as_me:1637: error: \"--without-logfac not supported.\"" >&5
! 1638: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
! 1639: { (exit 1); exit 1; }; }
1.1 millert 1640: ;;
1.7.2.1 ! millert 1641: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 1642: ;;
1.7.2.1 ! millert 1643: *) { { echo "$as_me:1643: error: \"$with_logfac is not a supported syslog facility.\"" >&5
! 1644: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
! 1645: { (exit 1); exit 1; }; }
1.1 millert 1646: ;;
1647: esac
1.7.2.1 ! millert 1648: fi;
! 1649:
! 1650: cat >>confdefs.h <<EOF
! 1651: #define LOGFAC "$logfac"
1.1 millert 1652: EOF
1653:
1.7.2.1 ! millert 1654: echo "$as_me:1654: result: $logfac" >&5
! 1655: echo "${ECHO_T}$logfac" >&6
! 1656:
! 1657: echo "$as_me:1657: checking at which syslog priority to log commands" >&5
! 1658: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1 millert 1659:
1660: # Check whether --with-goodpri or --without-goodpri was given.
1661: if test "${with_goodpri+set}" = set; then
1662: withval="$with_goodpri"
1.7.2.1 ! millert 1663: case $with_goodpri in
! 1664: yes) { { echo "$as_me:1664: error: \"must give --with-goodpri an argument.\"" >&5
! 1665: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
! 1666: { (exit 1); exit 1; }; }
1.1 millert 1667: ;;
1.7.2.1 ! millert 1668: no) { { echo "$as_me:1668: error: \"--without-goodpri not supported.\"" >&5
! 1669: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
! 1670: { (exit 1); exit 1; }; }
1.1 millert 1671: ;;
1.7.2.1 ! millert 1672: alert|crit|debug|emerg|err|info|notice|warning)
! 1673: goodpri=$with_goodpri
1.1 millert 1674: ;;
1.7.2.1 ! millert 1675: *) { { echo "$as_me:1675: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
! 1676: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
! 1677: { (exit 1); exit 1; }; }
1.1 millert 1678: ;;
1679: esac
1.7.2.1 ! millert 1680: fi;
! 1681:
! 1682: cat >>confdefs.h <<EOF
! 1683: #define PRI_SUCCESS "$goodpri"
1.1 millert 1684: EOF
1685:
1.7.2.1 ! millert 1686: echo "$as_me:1686: result: $goodpri" >&5
! 1687: echo "${ECHO_T}$goodpri" >&6
! 1688:
! 1689: echo "$as_me:1689: checking at which syslog priority to log failures" >&5
! 1690: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1 millert 1691:
1692: # Check whether --with-badpri or --without-badpri was given.
1693: if test "${with_badpri+set}" = set; then
1694: withval="$with_badpri"
1.7.2.1 ! millert 1695: case $with_badpri in
! 1696: yes) { { echo "$as_me:1696: error: \"must give --with-badpri an argument.\"" >&5
! 1697: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
! 1698: { (exit 1); exit 1; }; }
1.1 millert 1699: ;;
1.7.2.1 ! millert 1700: no) { { echo "$as_me:1700: error: \"--without-badpri not supported.\"" >&5
! 1701: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
! 1702: { (exit 1); exit 1; }; }
1.1 millert 1703: ;;
1.7.2.1 ! millert 1704: alert|crit|debug|emerg|err|info|notice|warning)
! 1705: badpri=$with_badpri
1.1 millert 1706: ;;
1.7.2.1 ! millert 1707: *) { { echo "$as_me:1707: error: $with_badpri is not a supported syslog priority." >&5
! 1708: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
! 1709: { (exit 1); exit 1; }; }
1.1 millert 1710: ;;
1711: esac
1.7.2.1 ! millert 1712: fi;
! 1713:
! 1714: cat >>confdefs.h <<EOF
! 1715: #define PRI_FAILURE "$badpri"
1.1 millert 1716: EOF
1717:
1.7.2.1 ! millert 1718: echo "$as_me:1718: result: badpri" >&5
! 1719: echo "${ECHO_T}badpri" >&6
1.1 millert 1720:
1721: # Check whether --with-logpath or --without-logpath was given.
1722: if test "${with_logpath+set}" = set; then
1723: withval="$with_logpath"
1.7.2.1 ! millert 1724: case $with_logpath in
! 1725: yes) { { echo "$as_me:1725: error: \"must give --with-logpath an argument.\"" >&5
! 1726: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
! 1727: { (exit 1); exit 1; }; }
1.1 millert 1728: ;;
1.7.2.1 ! millert 1729: no) { { echo "$as_me:1729: error: \"--without-logpath not supported.\"" >&5
! 1730: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
! 1731: { (exit 1); exit 1; }; }
1.1 millert 1732: ;;
1733: esac
1.7.2.1 ! millert 1734: fi;
1.1 millert 1735:
1.7.2.1 ! millert 1736: echo "$as_me:1736: checking how long a line in the log file should be" >&5
! 1737: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1 millert 1738:
1739: # Check whether --with-loglen or --without-loglen was given.
1740: if test "${with_loglen+set}" = set; then
1741: withval="$with_loglen"
1.7.2.1 ! millert 1742: case $with_loglen in
! 1743: yes) { { echo "$as_me:1743: error: \"must give --with-loglen an argument.\"" >&5
! 1744: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
! 1745: { (exit 1); exit 1; }; }
1.1 millert 1746: ;;
1.7.2.1 ! millert 1747: no) { { echo "$as_me:1747: error: \"--without-loglen not supported.\"" >&5
! 1748: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
! 1749: { (exit 1); exit 1; }; }
1.1 millert 1750: ;;
1.7.2.1 ! millert 1751: [0-9]*) loglen=$with_loglen
1.1 millert 1752: ;;
1.7.2.1 ! millert 1753: *) { { echo "$as_me:1753: error: \"you must enter a number, not $with_loglen\"" >&5
! 1754: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
! 1755: { (exit 1); exit 1; }; }
1.1 millert 1756: ;;
1757: esac
1.7.2.1 ! millert 1758: fi;
! 1759:
! 1760: cat >>confdefs.h <<EOF
! 1761: #define MAXLOGFILELEN $loglen
1.1 millert 1762: EOF
1763:
1.7.2.1 ! millert 1764: echo "$as_me:1764: result: $loglen" >&5
! 1765: echo "${ECHO_T}$loglen" >&6
! 1766:
! 1767: echo "$as_me:1767: checking whether sudo should ignore '.' or '' in \$PATH" >&5
! 1768: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1 millert 1769:
1770: # Check whether --with-ignore-dot or --without-ignore-dot was given.
1771: if test "${with_ignore_dot+set}" = set; then
1772: withval="$with_ignore_dot"
1.7.2.1 ! millert 1773: case $with_ignore_dot in
! 1774: yes) ignore_dot=on
1.1 millert 1775: ;;
1.7.2.1 ! millert 1776: no) ignore_dot=off
1.1 millert 1777: ;;
1.7.2.1 ! millert 1778: *) { { echo "$as_me:1778: error: \"--with-ignore-dot does not take an argument.\"" >&5
! 1779: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
! 1780: { (exit 1); exit 1; }; }
1.1 millert 1781: ;;
1782: esac
1.7.2.1 ! millert 1783: fi;
! 1784: if test "$ignore_dot" = "on"; then
1.1 millert 1785:
1.7.2.1 ! millert 1786: cat >>confdefs.h <<\EOF
! 1787: #define IGNORE_DOT_PATH 1
1.1 millert 1788: EOF
1789:
1.7.2.1 ! millert 1790: echo "$as_me:1790: result: yes" >&5
! 1791: echo "${ECHO_T}yes" >&6
1.1 millert 1792: else
1.7.2.1 ! millert 1793: echo "$as_me:1793: result: no" >&5
! 1794: echo "${ECHO_T}no" >&6
1.1 millert 1795: fi
1796:
1.7.2.1 ! millert 1797: echo "$as_me:1797: checking whether to send mail when a user is not in sudoers" >&5
! 1798: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1 millert 1799:
1800: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
1801: if test "${with_mail_if_no_user+set}" = set; then
1802: withval="$with_mail_if_no_user"
1.7.2.1 ! millert 1803: case $with_mail_if_no_user in
! 1804: yes) mail_no_user=on
1.1 millert 1805: ;;
1.7.2.1 ! millert 1806: no) mail_no_user=off
1.1 millert 1807: ;;
1.7.2.1 ! millert 1808: *) { { echo "$as_me:1808: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
! 1809: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
! 1810: { (exit 1); exit 1; }; }
1.1 millert 1811: ;;
1812: esac
1.7.2.1 ! millert 1813: fi;
! 1814: if test "$mail_no_user" = "on"; then
! 1815:
! 1816: cat >>confdefs.h <<\EOF
1.1 millert 1817: #define SEND_MAIL_WHEN_NO_USER 1
1818: EOF
1.7.2.1 ! millert 1819:
! 1820: echo "$as_me:1820: result: yes" >&5
! 1821: echo "${ECHO_T}yes" >&6
! 1822: else
! 1823: echo "$as_me:1823: result: no" >&5
! 1824: echo "${ECHO_T}no" >&6
1.1 millert 1825: fi
1826:
1.7.2.1 ! millert 1827: echo "$as_me:1827: checking whether to send mail when user listed but not for this host" >&5
! 1828: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1 millert 1829:
1830: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
1831: if test "${with_mail_if_no_host+set}" = set; then
1832: withval="$with_mail_if_no_host"
1.7.2.1 ! millert 1833: case $with_mail_if_no_host in
! 1834: yes) mail_no_host=on
1.1 millert 1835: ;;
1.7.2.1 ! millert 1836: no) mail_no_host=off
1.1 millert 1837: ;;
1.7.2.1 ! millert 1838: *) { { echo "$as_me:1838: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
! 1839: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
! 1840: { (exit 1); exit 1; }; }
1.1 millert 1841: ;;
1842: esac
1.7.2.1 ! millert 1843: fi;
! 1844: if test "$mail_no_host" = "on"; then
! 1845:
! 1846: cat >>confdefs.h <<\EOF
! 1847: #define SEND_MAIL_WHEN_NO_HOST 1
! 1848: EOF
! 1849:
! 1850: echo "$as_me:1850: result: yes" >&5
! 1851: echo "${ECHO_T}yes" >&6
1.1 millert 1852: else
1.7.2.1 ! millert 1853: echo "$as_me:1853: result: no" >&5
! 1854: echo "${ECHO_T}no" >&6
1.1 millert 1855: fi
1856:
1.7.2.1 ! millert 1857: echo "$as_me:1857: checking whether to send mail when a user tries a disallowed command" >&5
! 1858: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1 millert 1859:
1860: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
1861: if test "${with_mail_if_noperms+set}" = set; then
1862: withval="$with_mail_if_noperms"
1.7.2.1 ! millert 1863: case $with_mail_if_noperms in
! 1864: yes) mail_noperms=on
! 1865: ;;
! 1866: no) mail_noperms=off
! 1867: ;;
! 1868: *) { { echo "$as_me:1868: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
! 1869: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
! 1870: { (exit 1); exit 1; }; }
! 1871: ;;
! 1872: esac
! 1873: fi;
! 1874: if test "$mail_noperms" = "on"; then
! 1875:
! 1876: cat >>confdefs.h <<\EOF
1.1 millert 1877: #define SEND_MAIL_WHEN_NOT_OK 1
1878: EOF
1879:
1.7.2.1 ! millert 1880: echo "$as_me:1880: result: yes" >&5
! 1881: echo "${ECHO_T}yes" >&6
! 1882: else
! 1883: echo "$as_me:1883: result: no" >&5
! 1884: echo "${ECHO_T}no" >&6
! 1885: fi
! 1886:
! 1887: echo "$as_me:1887: checking who should get the mail that sudo sends" >&5
! 1888: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
! 1889:
! 1890: # Check whether --with-mailto or --without-mailto was given.
! 1891: if test "${with_mailto+set}" = set; then
! 1892: withval="$with_mailto"
! 1893: case $with_mailto in
! 1894: yes) { { echo "$as_me:1894: error: \"must give --with-mailto an argument.\"" >&5
! 1895: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
! 1896: { (exit 1); exit 1; }; }
1.1 millert 1897: ;;
1.7.2.1 ! millert 1898: no) { { echo "$as_me:1898: error: \"--without-mailto not supported.\"" >&5
! 1899: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
! 1900: { (exit 1); exit 1; }; }
1.1 millert 1901: ;;
1.7.2.1 ! millert 1902: *) mailto=$with_mailto
1.1 millert 1903: ;;
1904: esac
1.7.2.1 ! millert 1905: fi;
! 1906:
! 1907: cat >>confdefs.h <<EOF
! 1908: #define MAILTO "$mailto"
! 1909: EOF
! 1910:
! 1911: echo "$as_me:1911: result: $mailto" >&5
! 1912: echo "${ECHO_T}$mailto" >&6
! 1913:
! 1914: # Check whether --with-mailsubject or --without-mailsubject was given.
! 1915: if test "${with_mailsubject+set}" = set; then
! 1916: withval="$with_mailsubject"
! 1917: case $with_mailsubject in
! 1918: yes) { { echo "$as_me:1918: error: \"must give --with-mailsubject an argument.\"" >&5
! 1919: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
! 1920: { (exit 1); exit 1; }; }
! 1921: ;;
! 1922: no) echo "Sorry, --without-mailsubject not supported."
! 1923: ;;
! 1924: *) mailsub="$with_mailsubject"
! 1925: echo "$as_me:1925: checking sudo mail subject" >&5
! 1926: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
! 1927: echo "$as_me:1927: result: Using alert mail subject: $mailsub" >&5
! 1928: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
! 1929: ;;
! 1930: esac
! 1931: fi;
1.1 millert 1932:
1.7.2.1 ! millert 1933: cat >>confdefs.h <<EOF
! 1934: #define MAILSUBJECT "$mailsub"
! 1935: EOF
! 1936:
! 1937: echo "$as_me:1937: checking for bad password prompt" >&5
! 1938: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1 millert 1939:
1940: # Check whether --with-passprompt or --without-passprompt was given.
1941: if test "${with_passprompt+set}" = set; then
1942: withval="$with_passprompt"
1.7.2.1 ! millert 1943: case $with_passprompt in
! 1944: yes) { { echo "$as_me:1944: error: \"must give --with-passprompt an argument.\"" >&5
! 1945: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
! 1946: { (exit 1); exit 1; }; }
1.1 millert 1947: ;;
1948: no) echo "Sorry, --without-passprompt not supported."
1949: ;;
1.7.2.1 ! millert 1950: *) passprompt="$with_passprompt"
1.1 millert 1951: esac
1.7.2.1 ! millert 1952: fi;
! 1953: echo "$as_me:1953: result: $passprompt" >&5
! 1954: echo "${ECHO_T}$passprompt" >&6
! 1955:
! 1956: cat >>confdefs.h <<EOF
! 1957: #define PASSPROMPT "$passprompt"
1.1 millert 1958: EOF
1959:
1.7.2.1 ! millert 1960: echo "$as_me:1960: checking for bad password message" >&5
! 1961: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1 millert 1962:
1963: # Check whether --with-badpass-message or --without-badpass-message was given.
1964: if test "${with_badpass_message+set}" = set; then
1965: withval="$with_badpass_message"
1.7.2.1 ! millert 1966: case $with_badpass_message in
! 1967: yes) { { echo "$as_me:1967: error: \"Must give --with-badpass-message an argument.\"" >&5
! 1968: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
! 1969: { (exit 1); exit 1; }; }
1.1 millert 1970: ;;
1971: no) echo "Sorry, --without-badpass-message not supported."
1972: ;;
1.7.2.1 ! millert 1973: *) badpass_message="$with_badpass_message"
1.1 millert 1974: ;;
1975: esac
1.7.2.1 ! millert 1976: fi;
! 1977:
! 1978: cat >>confdefs.h <<EOF
! 1979: #define INCORRECT_PASSWORD "$badpass_message"
1.1 millert 1980: EOF
1981:
1.7.2.1 ! millert 1982: echo "$as_me:1982: result: $badpass_message" >&5
! 1983: echo "${ECHO_T}$badpass_message" >&6
! 1984:
! 1985: echo "$as_me:1985: checking whether to expect fully qualified hosts in sudoers" >&5
! 1986: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1 millert 1987:
1988: # Check whether --with-fqdn or --without-fqdn was given.
1989: if test "${with_fqdn+set}" = set; then
1990: withval="$with_fqdn"
1.7.2.1 ! millert 1991: case $with_fqdn in
! 1992: yes) fqdn=on
1.1 millert 1993: ;;
1.7.2.1 ! millert 1994: no) fqdn=off
1.1 millert 1995: ;;
1.7.2.1 ! millert 1996: *) { { echo "$as_me:1996: error: \"--with-fqdn does not take an argument.\"" >&5
! 1997: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
! 1998: { (exit 1); exit 1; }; }
1.1 millert 1999: ;;
2000: esac
1.7.2.1 ! millert 2001: fi;
! 2002: if test "$fqdn" = "on"; then
! 2003:
! 2004: cat >>confdefs.h <<\EOF
! 2005: #define FQDN 1
! 2006: EOF
! 2007:
! 2008: echo "$as_me:2008: result: yes" >&5
! 2009: echo "${ECHO_T}yes" >&6
1.1 millert 2010: else
1.7.2.1 ! millert 2011: echo "$as_me:2011: result: no" >&5
! 2012: echo "${ECHO_T}no" >&6
1.1 millert 2013: fi
2014:
2015: # Check whether --with-timedir or --without-timedir was given.
2016: if test "${with_timedir+set}" = set; then
2017: withval="$with_timedir"
1.7.2.1 ! millert 2018: case $with_timedir in
! 2019: yes) { { echo "$as_me:2019: error: \"must give --with-timedir an argument.\"" >&5
! 2020: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
! 2021: { (exit 1); exit 1; }; }
1.1 millert 2022: ;;
1.7.2.1 ! millert 2023: no) { { echo "$as_me:2023: error: \"--without-timedir not supported.\"" >&5
! 2024: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
! 2025: { (exit 1); exit 1; }; }
1.1 millert 2026: ;;
2027: esac
1.7.2.1 ! millert 2028: fi;
1.1 millert 2029:
2030: # Check whether --with-sendmail or --without-sendmail was given.
2031: if test "${with_sendmail+set}" = set; then
2032: withval="$with_sendmail"
1.7.2.1 ! millert 2033: case $with_sendmail in
1.1 millert 2034: yes) with_sendmail=""
2035: ;;
2036: no) ;;
1.7.2.1 ! millert 2037: *) cat >>confdefs.h <<EOF
! 2038: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 2039: EOF
2040:
2041: ;;
2042: esac
1.7.2.1 ! millert 2043: fi;
1.1 millert 2044:
2045: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2046: if test "${with_sudoers_mode+set}" = set; then
2047: withval="$with_sudoers_mode"
1.7.2.1 ! millert 2048: case $with_sudoers_mode in
! 2049: yes) { { echo "$as_me:2049: error: \"must give --with-sudoers-mode an argument.\"" >&5
! 2050: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
! 2051: { (exit 1); exit 1; }; }
! 2052: ;;
! 2053: no) { { echo "$as_me:2053: error: \"--without-sudoers-mode not supported.\"" >&5
! 2054: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
! 2055: { (exit 1); exit 1; }; }
1.1 millert 2056: ;;
2057: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2058: ;;
2059: 0*) SUDOERS_MODE=$with_sudoers_mode
2060: ;;
1.7.2.1 ! millert 2061: *) { { echo "$as_me:2061: error: \"you must use a numeric uid, not a name.\"" >&5
! 2062: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
! 2063: { (exit 1); exit 1; }; }
1.1 millert 2064: ;;
2065: esac
1.7.2.1 ! millert 2066: fi;
1.1 millert 2067:
2068: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2069: if test "${with_sudoers_uid+set}" = set; then
2070: withval="$with_sudoers_uid"
1.7.2.1 ! millert 2071: case $with_sudoers_uid in
! 2072: yes) { { echo "$as_me:2072: error: \"must give --with-sudoers-uid an argument.\"" >&5
! 2073: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
! 2074: { (exit 1); exit 1; }; }
! 2075: ;;
! 2076: no) { { echo "$as_me:2076: error: \"--without-sudoers-uid not supported.\"" >&5
! 2077: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
! 2078: { (exit 1); exit 1; }; }
1.1 millert 2079: ;;
2080: [0-9]*) SUDOERS_UID=$with_sudoers_uid
2081: ;;
1.7.2.1 ! millert 2082: *) { { echo "$as_me:2082: error: \"you must use a numeric uid, not a name.\"" >&5
! 2083: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
! 2084: { (exit 1); exit 1; }; }
1.1 millert 2085: ;;
2086: esac
1.7.2.1 ! millert 2087: fi;
1.1 millert 2088:
2089: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2090: if test "${with_sudoers_gid+set}" = set; then
2091: withval="$with_sudoers_gid"
1.7.2.1 ! millert 2092: case $with_sudoers_gid in
! 2093: yes) { { echo "$as_me:2093: error: \"must give --with-sudoers-gid an argument.\"" >&5
! 2094: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
! 2095: { (exit 1); exit 1; }; }
! 2096: ;;
! 2097: no) { { echo "$as_me:2097: error: \"--without-sudoers-gid not supported.\"" >&5
! 2098: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
! 2099: { (exit 1); exit 1; }; }
1.1 millert 2100: ;;
2101: [0-9]*) SUDOERS_GID=$with_sudoers_gid
2102: ;;
1.7.2.1 ! millert 2103: *) { { echo "$as_me:2103: error: \"you must use a numeric gid, not a name.\"" >&5
! 2104: echo "$as_me: error: \"you must use a numeric gid, not a name.\"" >&2;}
! 2105: { (exit 1); exit 1; }; }
1.1 millert 2106: ;;
2107: esac
1.7.2.1 ! millert 2108: fi;
1.1 millert 2109:
1.7.2.1 ! millert 2110: echo "$as_me:2110: checking for umask programs should be run with" >&5
! 2111: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1 millert 2112:
2113: # Check whether --with-umask or --without-umask was given.
2114: if test "${with_umask+set}" = set; then
2115: withval="$with_umask"
1.7.2.1 ! millert 2116: case $with_umask in
! 2117: yes) { { echo "$as_me:2117: error: \"must give --with-umask an argument.\"" >&5
! 2118: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
! 2119: { (exit 1); exit 1; }; }
1.1 millert 2120: ;;
1.7.2.1 ! millert 2121: no) sudo_umask=0777
1.1 millert 2122: ;;
1.7.2.1 ! millert 2123: [0-9]*) sudo_umask=$with_umask
1.1 millert 2124: ;;
1.7.2.1 ! millert 2125: *) { { echo "$as_me:2125: error: \"you must enter a numeric mask.\"" >&5
! 2126: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
! 2127: { (exit 1); exit 1; }; }
1.1 millert 2128: ;;
2129: esac
1.7.2.1 ! millert 2130: fi;
! 2131:
! 2132: cat >>confdefs.h <<EOF
! 2133: #define SUDO_UMASK $sudo_umask
1.1 millert 2134: EOF
1.7.2.1 ! millert 2135:
! 2136: if test "$sudo_umask" = "0777"; then
! 2137: echo "$as_me:2137: result: user" >&5
! 2138: echo "${ECHO_T}user" >&6
! 2139: else
! 2140: echo "$as_me:2140: result: $sudo_umask" >&5
! 2141: echo "${ECHO_T}$sudo_umask" >&6
1.1 millert 2142: fi
2143:
1.7.2.1 ! millert 2144: echo "$as_me:2144: checking for default user to run commands as" >&5
! 2145: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1 millert 2146:
2147: # Check whether --with-runas-default or --without-runas-default was given.
2148: if test "${with_runas_default+set}" = set; then
2149: withval="$with_runas_default"
1.7.2.1 ! millert 2150: case $with_runas_default in
! 2151: yes) { { echo "$as_me:2151: error: \"must give --with-runas-default an argument.\"" >&5
! 2152: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
! 2153: { (exit 1); exit 1; }; }
1.1 millert 2154: ;;
1.7.2.1 ! millert 2155: no) { { echo "$as_me:2155: error: \"--without-runas-default not supported.\"" >&5
! 2156: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
! 2157: { (exit 1); exit 1; }; }
1.1 millert 2158: ;;
1.7.2.1 ! millert 2159: *) runas_default="$with_runas_default"
1.1 millert 2160: ;;
2161: esac
1.7.2.1 ! millert 2162: fi;
! 2163:
! 2164: cat >>confdefs.h <<EOF
! 2165: #define RUNAS_DEFAULT "$runas_default"
1.1 millert 2166: EOF
2167:
1.7.2.1 ! millert 2168: echo "$as_me:2168: result: $runas_default" >&5
! 2169: echo "${ECHO_T}$runas_default" >&6
1.1 millert 2170:
2171: # Check whether --with-exempt or --without-exempt was given.
2172: if test "${with_exempt+set}" = set; then
2173: withval="$with_exempt"
1.7.2.1 ! millert 2174: case $with_exempt in
! 2175: yes) { { echo "$as_me:2175: error: \"must give --with-exempt an argument.\"" >&5
! 2176: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
! 2177: { (exit 1); exit 1; }; }
! 2178: ;;
! 2179: no) { { echo "$as_me:2179: error: \"--without-exempt not supported.\"" >&5
! 2180: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
! 2181: { (exit 1); exit 1; }; }
1.1 millert 2182: ;;
1.7.2.1 ! millert 2183: *)
! 2184: cat >>confdefs.h <<EOF
1.1 millert 2185: #define EXEMPTGROUP "$with_exempt"
2186: EOF
2187:
1.7.2.1 ! millert 2188: echo "$as_me:2188: checking for group to be exempt from password" >&5
! 2189: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
! 2190: echo "$as_me:2190: result: $with_exempt" >&5
! 2191: echo "${ECHO_T}$with_exempt" >&6
1.1 millert 2192: ;;
2193: esac
1.7.2.1 ! millert 2194: fi;
1.1 millert 2195:
1.7.2.1 ! millert 2196: echo "$as_me:2196: checking for editor that visudo should use" >&5
! 2197: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1 millert 2198:
2199: # Check whether --with-editor or --without-editor was given.
2200: if test "${with_editor+set}" = set; then
2201: withval="$with_editor"
1.7.2.1 ! millert 2202: case $with_editor in
! 2203: yes) { { echo "$as_me:2203: error: \"must give --with-editor an argument.\"" >&5
! 2204: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
! 2205: { (exit 1); exit 1; }; }
! 2206: ;;
! 2207: no) { { echo "$as_me:2207: error: \"--without-editor not supported.\"" >&5
! 2208: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
! 2209: { (exit 1); exit 1; }; }
1.1 millert 2210: ;;
1.7.2.1 ! millert 2211: *)
! 2212: cat >>confdefs.h <<EOF
1.1 millert 2213: #define EDITOR "$with_editor"
2214: EOF
2215:
1.7.2.1 ! millert 2216: echo "$as_me:2216: result: $with_editor" >&5
! 2217: echo "${ECHO_T}$with_editor" >&6
1.1 millert 2218: ;;
2219: esac
2220: else
1.7.2.1 ! millert 2221: cat >>confdefs.h <<\EOF
1.1 millert 2222: #define EDITOR _PATH_VI
2223: EOF
1.7.2.1 ! millert 2224: echo "$as_me:2224: result: vi" >&5
! 2225: echo "${ECHO_T}vi" >&6
! 2226: fi;
1.1 millert 2227:
1.7.2.1 ! millert 2228: echo "$as_me:2228: checking whether to obey EDITOR and VISUAL environment variables" >&5
! 2229: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1 millert 2230:
2231: # Check whether --with-env-editor or --without-env-editor was given.
2232: if test "${with_env_editor+set}" = set; then
2233: withval="$with_env_editor"
1.7.2.1 ! millert 2234: case $with_env_editor in
! 2235: yes) env_editor=on
1.1 millert 2236: ;;
1.7.2.1 ! millert 2237: no) env_editor=off
1.1 millert 2238: ;;
1.7.2.1 ! millert 2239: *) { { echo "$as_me:2239: error: \"--with-env-editor does not take an argument.\"" >&5
! 2240: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
! 2241: { (exit 1); exit 1; }; }
1.1 millert 2242: ;;
2243: esac
1.7.2.1 ! millert 2244: fi;
! 2245: if test "$env_editor" = "on"; then
! 2246:
! 2247: cat >>confdefs.h <<\EOF
! 2248: #define ENV_EDITOR 1
! 2249: EOF
! 2250:
! 2251: echo "$as_me:2251: result: yes" >&5
! 2252: echo "${ECHO_T}yes" >&6
1.1 millert 2253: else
1.7.2.1 ! millert 2254: echo "$as_me:2254: result: no" >&5
! 2255: echo "${ECHO_T}no" >&6
1.1 millert 2256: fi
2257:
1.7.2.1 ! millert 2258: echo "$as_me:2258: checking number of tries a user gets to enter their password" >&5
! 2259: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1 millert 2260:
2261: # Check whether --with-passwd-tries or --without-passwd-tries was given.
2262: if test "${with_passwd_tries+set}" = set; then
2263: withval="$with_passwd_tries"
1.7.2.1 ! millert 2264: case $with_passwd_tries in
! 2265: yes) ;;
! 2266: no) { { echo "$as_me:2266: error: \"--without-editor not supported.\"" >&5
! 2267: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
! 2268: { (exit 1); exit 1; }; }
1.1 millert 2269: ;;
1.7.2.1 ! millert 2270: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 2271: ;;
1.7.2.1 ! millert 2272: *) { { echo "$as_me:2272: error: \"you must enter the numer of tries, > 0\"" >&5
! 2273: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
! 2274: { (exit 1); exit 1; }; }
1.1 millert 2275: ;;
2276: esac
1.7.2.1 ! millert 2277: fi;
! 2278:
! 2279: cat >>confdefs.h <<EOF
! 2280: #define TRIES_FOR_PASSWORD $passwd_tries
1.1 millert 2281: EOF
2282:
1.7.2.1 ! millert 2283: echo "$as_me:2283: result: $passwd_tries" >&5
! 2284: echo "${ECHO_T}$passwd_tries" >&6
! 2285:
! 2286: echo "$as_me:2286: checking time in minutes after which sudo will ask for a password again" >&5
! 2287: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1 millert 2288:
2289: # Check whether --with-timeout or --without-timeout was given.
2290: if test "${with_timeout+set}" = set; then
2291: withval="$with_timeout"
1.7.2.1 ! millert 2292: echo $with_timeout; case $with_timeout in
! 2293: yes) ;;
! 2294: no) timeout=0
1.1 millert 2295: ;;
1.7.2.1 ! millert 2296: [0-9]*) timeout=$with_timeout
1.1 millert 2297: ;;
1.7.2.1 ! millert 2298: *) { { echo "$as_me:2298: error: \"you must enter the numer of minutes.\"" >&5
! 2299: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
! 2300: { (exit 1); exit 1; }; }
1.1 millert 2301: ;;
2302: esac
1.7.2.1 ! millert 2303: fi;
! 2304:
! 2305: cat >>confdefs.h <<EOF
! 2306: #define TIMEOUT $timeout
1.1 millert 2307: EOF
2308:
1.7.2.1 ! millert 2309: echo "$as_me:2309: result: $timeout" >&5
! 2310: echo "${ECHO_T}$timeout" >&6
! 2311:
! 2312: echo "$as_me:2312: checking time in minutes after the password prompt will time out" >&5
! 2313: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1 millert 2314:
2315: # Check whether --with-password-timeout or --without-password-timeout was given.
2316: if test "${with_password_timeout+set}" = set; then
2317: withval="$with_password_timeout"
1.7.2.1 ! millert 2318: case $with_password_timeout in
! 2319: yes) ;;
! 2320: no) password_timeout=0
1.1 millert 2321: ;;
1.7.2.1 ! millert 2322: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 2323: ;;
1.7.2.1 ! millert 2324: *) { { echo "$as_me:2324: error: \"you must enter the numer of minutes.\"" >&5
! 2325: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
! 2326: { (exit 1); exit 1; }; }
1.1 millert 2327: ;;
2328: esac
1.7.2.1 ! millert 2329: fi;
! 2330:
! 2331: cat >>confdefs.h <<EOF
! 2332: #define PASSWORD_TIMEOUT $password_timeout
1.1 millert 2333: EOF
2334:
1.7.2.1 ! millert 2335: echo "$as_me:2335: result: $password_timeout" >&5
! 2336: echo "${ECHO_T}$password_timeout" >&6
1.1 millert 2337:
2338: # Check whether --with-execv or --without-execv was given.
2339: if test "${with_execv+set}" = set; then
2340: withval="$with_execv"
1.7.2.1 ! millert 2341: case $with_execv in
! 2342: yes) echo "$as_me:2342: checking whether to use execvp or execv" >&5
! 2343: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
! 2344: echo "$as_me:2344: result: execv" >&5
! 2345: echo "${ECHO_T}execv" >&6
! 2346:
! 2347: cat >>confdefs.h <<\EOF
1.1 millert 2348: #define USE_EXECV 1
2349: EOF
2350:
2351: ;;
1.7.2.1 ! millert 2352: no) ;;
! 2353: *) { { echo "$as_me:2353: error: \"--with-execv does not take an argument.\"" >&5
! 2354: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
! 2355: { (exit 1); exit 1; }; }
1.1 millert 2356: ;;
2357: esac
1.7.2.1 ! millert 2358: fi;
1.1 millert 2359:
1.7.2.1 ! millert 2360: echo "$as_me:2360: checking whether to use per-tty ticket files" >&5
! 2361: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1 millert 2362:
2363: # Check whether --with-tty-tickets or --without-tty-tickets was given.
2364: if test "${with_tty_tickets+set}" = set; then
2365: withval="$with_tty_tickets"
1.7.2.1 ! millert 2366: case $with_tty_tickets in
! 2367: yes) tty_tickets=on
1.1 millert 2368: ;;
1.7.2.1 ! millert 2369: no) tty_tickets=off
1.1 millert 2370: ;;
1.7.2.1 ! millert 2371: *) { { echo "$as_me:2371: error: \"--with-tty-tickets does not take an argument.\"" >&5
! 2372: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
! 2373: { (exit 1); exit 1; }; }
1.1 millert 2374: ;;
2375: esac
1.7.2.1 ! millert 2376: fi;
! 2377: if test "$tty_tickets" = "on"; then
! 2378:
! 2379: cat >>confdefs.h <<\EOF
! 2380: #define USE_TTY_TICKETS 1
! 2381: EOF
! 2382:
! 2383: echo "$as_me:2383: result: yes" >&5
! 2384: echo "${ECHO_T}yes" >&6
1.1 millert 2385: else
1.7.2.1 ! millert 2386: echo "$as_me:2386: result: no" >&5
! 2387: echo "${ECHO_T}no" >&6
1.1 millert 2388: fi
2389:
1.7.2.1 ! millert 2390: echo "$as_me:2390: checking whether to include insults" >&5
! 2391: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1 millert 2392:
2393: # Check whether --with-insults or --without-insults was given.
2394: if test "${with_insults+set}" = set; then
2395: withval="$with_insults"
1.7.2.1 ! millert 2396: case $with_insults in
! 2397: yes) insults=on
1.1 millert 2398: with_classic_insults=yes
2399: with_csops_insults=yes
2400: ;;
1.7.2.1 ! millert 2401: no) insults=off
1.1 millert 2402: ;;
1.7.2.1 ! millert 2403: *) { { echo "$as_me:2403: error: \"--with-insults does not take an argument.\"" >&5
! 2404: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
! 2405: { (exit 1); exit 1; }; }
1.1 millert 2406: ;;
2407: esac
1.7.2.1 ! millert 2408: fi;
! 2409: if test "$insults" = "on"; then
! 2410:
! 2411: cat >>confdefs.h <<\EOF
! 2412: #define USE_INSULTS 1
! 2413: EOF
! 2414:
! 2415: echo "$as_me:2415: result: yes" >&5
! 2416: echo "${ECHO_T}yes" >&6
1.1 millert 2417: else
1.7.2.1 ! millert 2418: echo "$as_me:2418: result: no" >&5
! 2419: echo "${ECHO_T}no" >&6
1.1 millert 2420: fi
2421:
2422: # Check whether --with-all-insults or --without-all-insults was given.
2423: if test "${with_all_insults+set}" = set; then
2424: withval="$with_all_insults"
1.7.2.1 ! millert 2425: case $with_all_insults in
1.1 millert 2426: yes) with_classic_insults=yes
2427: with_csops_insults=yes
2428: with_hal_insults=yes
2429: with_goons_insults=yes
2430: ;;
2431: no) ;;
1.7.2.1 ! millert 2432: *) { { echo "$as_me:2432: error: \"--with-all-insults does not take an argument.\"" >&5
! 2433: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
! 2434: { (exit 1); exit 1; }; }
1.1 millert 2435: ;;
2436: esac
1.7.2.1 ! millert 2437: fi;
1.1 millert 2438:
2439: # Check whether --with-classic-insults or --without-classic-insults was given.
2440: if test "${with_classic_insults+set}" = set; then
2441: withval="$with_classic_insults"
1.7.2.1 ! millert 2442: case $with_classic_insults in
! 2443: yes)
! 2444: cat >>confdefs.h <<\EOF
1.1 millert 2445: #define CLASSIC_INSULTS 1
2446: EOF
2447:
2448: ;;
2449: no) ;;
1.7.2.1 ! millert 2450: *) { { echo "$as_me:2450: error: \"--with-classic-insults does not take an argument.\"" >&5
! 2451: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
! 2452: { (exit 1); exit 1; }; }
1.1 millert 2453: ;;
2454: esac
1.7.2.1 ! millert 2455: fi;
1.1 millert 2456:
2457: # Check whether --with-csops-insults or --without-csops-insults was given.
2458: if test "${with_csops_insults+set}" = set; then
2459: withval="$with_csops_insults"
1.7.2.1 ! millert 2460: case $with_csops_insults in
! 2461: yes)
! 2462: cat >>confdefs.h <<\EOF
1.1 millert 2463: #define CSOPS_INSULTS 1
2464: EOF
2465:
2466: ;;
2467: no) ;;
1.7.2.1 ! millert 2468: *) { { echo "$as_me:2468: error: \"--with-csops-insults does not take an argument.\"" >&5
! 2469: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
! 2470: { (exit 1); exit 1; }; }
1.1 millert 2471: ;;
2472: esac
1.7.2.1 ! millert 2473: fi;
1.1 millert 2474:
2475: # Check whether --with-hal-insults or --without-hal-insults was given.
2476: if test "${with_hal_insults+set}" = set; then
2477: withval="$with_hal_insults"
1.7.2.1 ! millert 2478: case $with_hal_insults in
! 2479: yes)
! 2480: cat >>confdefs.h <<\EOF
1.1 millert 2481: #define HAL_INSULTS 1
2482: EOF
2483:
2484: ;;
2485: no) ;;
1.7.2.1 ! millert 2486: *) { { echo "$as_me:2486: error: \"--with-hal-insults does not take an argument.\"" >&5
! 2487: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
! 2488: { (exit 1); exit 1; }; }
1.1 millert 2489: ;;
2490: esac
1.7.2.1 ! millert 2491: fi;
1.1 millert 2492:
2493: # Check whether --with-goons-insults or --without-goons-insults was given.
2494: if test "${with_goons_insults+set}" = set; then
2495: withval="$with_goons_insults"
1.7.2.1 ! millert 2496: case $with_goons_insults in
! 2497: yes)
! 2498: cat >>confdefs.h <<\EOF
1.1 millert 2499: #define GOONS_INSULTS 1
2500: EOF
2501:
2502: ;;
2503: no) ;;
1.7.2.1 ! millert 2504: *) { { echo "$as_me:2504: error: \"--with-goons-insults does not take an argument.\"" >&5
! 2505: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
! 2506: { (exit 1); exit 1; }; }
1.1 millert 2507: ;;
2508: esac
1.7.2.1 ! millert 2509: fi;
1.1 millert 2510:
1.7.2.1 ! millert 2511: if test "$insults" = "on"; then
! 2512: echo "$as_me:2512: checking which insult sets to include" >&5
! 2513: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1 millert 2514: i=""
2515: test "$with_goons_insults" = "yes" && i="goons ${i}"
2516: test "$with_hal_insults" = "yes" && i="hal ${i}"
2517: test "$with_csops_insults" = "yes" && i="csops ${i}"
2518: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.7.2.1 ! millert 2519: echo "$as_me:2519: result: $i" >&5
! 2520: echo "${ECHO_T}$i" >&6
1.1 millert 2521: fi
2522:
1.7.2.1 ! millert 2523: echo "$as_me:2523: checking whether to override the user's path" >&5
! 2524: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
! 2525:
1.1 millert 2526: # Check whether --with-secure-path or --without-secure-path was given.
2527: if test "${with_secure_path+set}" = set; then
2528: withval="$with_secure_path"
1.7.2.1 ! millert 2529: case $with_secure_path in
! 2530: yes)
! 2531: cat >>confdefs.h <<EOF
1.1 millert 2532: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
2533: EOF
2534:
1.7.2.1 ! millert 2535: echo "$as_me:2535: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
! 2536: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1 millert 2537: ;;
1.7.2.1 ! millert 2538: no) echo "$as_me:2538: result: no" >&5
! 2539: echo "${ECHO_T}no" >&6
1.1 millert 2540: ;;
1.7.2.1 ! millert 2541: *) cat >>confdefs.h <<EOF
1.1 millert 2542: #define SECURE_PATH "$with_secure_path"
2543: EOF
2544:
1.7.2.1 ! millert 2545: echo "$as_me:2545: result: $with_secure_path" >&5
! 2546: echo "${ECHO_T}$with_secure_path" >&6
1.1 millert 2547: ;;
2548: esac
2549: else
1.7.2.1 ! millert 2550: echo "$as_me:2550: result: no" >&5
! 2551: echo "${ECHO_T}no" >&6
! 2552: fi;
1.1 millert 2553:
1.7.2.1 ! millert 2554: echo "$as_me:2554: checking whether to get ip addresses from the network interfaces" >&5
! 2555: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1 millert 2556:
2557: # Check whether --with-interfaces or --without-interfaces was given.
2558: if test "${with_interfaces+set}" = set; then
2559: withval="$with_interfaces"
1.7.2.1 ! millert 2560: case $with_interfaces in
! 2561: yes) echo "$as_me:2561: result: yes" >&5
! 2562: echo "${ECHO_T}yes" >&6
1.1 millert 2563: ;;
1.7.2.1 ! millert 2564: no)
! 2565: cat >>confdefs.h <<\EOF
1.1 millert 2566: #define STUB_LOAD_INTERFACES 1
2567: EOF
2568:
1.7.2.1 ! millert 2569: echo "$as_me:2569: result: no" >&5
! 2570: echo "${ECHO_T}no" >&6
1.1 millert 2571: ;;
1.7.2.1 ! millert 2572: *) { { echo "$as_me:2572: error: \"--with-interfaces does not take an argument.\"" >&5
! 2573: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
! 2574: { (exit 1); exit 1; }; }
1.1 millert 2575: ;;
2576: esac
2577: else
1.7.2.1 ! millert 2578: echo "$as_me:2578: result: yes" >&5
! 2579: echo "${ECHO_T}yes" >&6
! 2580: fi;
1.1 millert 2581:
1.7.2.1 ! millert 2582: echo "$as_me:2582: checking whether to do user authentication by default" >&5
! 2583: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1 millert 2584: # Check whether --enable-authentication or --disable-authentication was given.
2585: if test "${enable_authentication+set}" = set; then
2586: enableval="$enable_authentication"
2587: case "$enableval" in
1.7.2.1 ! millert 2588: yes) echo "$as_me:2588: result: yes" >&5
! 2589: echo "${ECHO_T}yes" >&6
1.1 millert 2590: ;;
1.7.2.1 ! millert 2591: no) echo "$as_me:2591: result: no" >&5
! 2592: echo "${ECHO_T}no" >&6
! 2593:
! 2594: cat >>confdefs.h <<\EOF
1.1 millert 2595: #define NO_AUTHENTICATION 1
2596: EOF
2597:
2598: ;;
1.7.2.1 ! millert 2599: *) echo "$as_me:2599: result: no" >&5
! 2600: echo "${ECHO_T}no" >&6
1.1 millert 2601: echo "Ignoring unknown argument to --enable-authentication: $enableval"
2602: ;;
2603: esac
2604:
2605: else
1.7.2.1 ! millert 2606: echo "$as_me:2606: result: yes" >&5
! 2607: echo "${ECHO_T}yes" >&6
! 2608: fi;
! 2609:
! 2610: echo "$as_me:2610: checking whether to disable running the mailer as root" >&5
! 2611: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
! 2612: # Check whether --enable-root-mailer or --disable-root-mailer was given.
! 2613: if test "${enable_root_mailer+set}" = set; then
! 2614: enableval="$enable_root_mailer"
! 2615: case "$enableval" in
! 2616: yes) echo "$as_me:2616: result: no" >&5
! 2617: echo "${ECHO_T}no" >&6
! 2618: ;;
! 2619: no) echo "$as_me:2619: result: yes" >&5
! 2620: echo "${ECHO_T}yes" >&6
! 2621:
! 2622: cat >>confdefs.h <<\EOF
! 2623: #define NO_ROOT_MAILER 1
! 2624: EOF
! 2625:
! 2626: ;;
! 2627: *) echo "$as_me:2627: result: no" >&5
! 2628: echo "${ECHO_T}no" >&6
! 2629: echo "Ignoring unknown argument to --enable-root-mailer: $enableval"
! 2630: ;;
! 2631: esac
! 2632:
! 2633: else
! 2634: echo "$as_me:2634: result: no" >&5
! 2635: echo "${ECHO_T}no" >&6
! 2636: fi;
! 2637:
! 2638: echo "$as_me:2638: checking whether to disable use of POSIX saved ids" >&5
! 2639: echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
! 2640: # Check whether --enable-saved-ids or --disable-saved-ids was given.
! 2641: if test "${enable_saved_ids+set}" = set; then
! 2642: enableval="$enable_saved_ids"
! 2643: case "$enableval" in
! 2644: yes) echo "$as_me:2644: result: no" >&5
! 2645: echo "${ECHO_T}no" >&6
! 2646: ;;
! 2647: no) echo "$as_me:2647: result: yes" >&5
! 2648: echo "${ECHO_T}yes" >&6
! 2649:
! 2650: cat >>confdefs.h <<\EOF
! 2651: #define NO_SAVED_IDS 1
! 2652: EOF
1.1 millert 2653:
1.7.2.1 ! millert 2654: ;;
! 2655: *) echo "$as_me:2655: result: no" >&5
! 2656: echo "${ECHO_T}no" >&6
! 2657: echo "Ignoring unknown argument to --enable-saved-ids: $enableval"
! 2658: ;;
! 2659: esac
! 2660:
! 2661: else
! 2662: echo "$as_me:2662: result: no" >&5
! 2663: echo "${ECHO_T}no" >&6
! 2664: fi;
1.1 millert 2665:
1.7.2.1 ! millert 2666: echo "$as_me:2666: checking whether to disable shadow password support" >&5
! 2667: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1 millert 2668: # Check whether --enable-shadow or --disable-shadow was given.
2669: if test "${enable_shadow+set}" = set; then
2670: enableval="$enable_shadow"
2671: case "$enableval" in
1.7.2.1 ! millert 2672: yes) echo "$as_me:2672: result: no" >&5
! 2673: echo "${ECHO_T}no" >&6
1.1 millert 2674: ;;
1.7.2.1 ! millert 2675: no) echo "$as_me:2675: result: yes" >&5
! 2676: echo "${ECHO_T}yes" >&6
1.1 millert 2677: CHECKSHADOW="false"
2678: ;;
1.7.2.1 ! millert 2679: *) echo "$as_me:2679: result: no" >&5
! 2680: echo "${ECHO_T}no" >&6
1.1 millert 2681: echo "Ignoring unknown argument to --enable-shadow: $enableval"
2682: ;;
2683: esac
2684:
2685: else
1.7.2.1 ! millert 2686: echo "$as_me:2686: result: no" >&5
! 2687: echo "${ECHO_T}no" >&6
! 2688: fi;
1.1 millert 2689:
1.7.2.1 ! millert 2690: echo "$as_me:2690: checking whether root should be allowed to use sudo" >&5
! 2691: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1 millert 2692: # Check whether --enable-root-sudo or --disable-root-sudo was given.
2693: if test "${enable_root_sudo+set}" = set; then
2694: enableval="$enable_root_sudo"
1.7.2.1 ! millert 2695: case "$enableval" in
! 2696: yes) echo "$as_me:2696: result: yes" >&5
! 2697: echo "${ECHO_T}yes" >&6
1.1 millert 2698: ;;
1.7.2.1 ! millert 2699: no)
! 2700: cat >>confdefs.h <<\EOF
1.1 millert 2701: #define NO_ROOT_SUDO 1
2702: EOF
2703:
1.7.2.1 ! millert 2704: echo "$as_me:2704: result: no" >&5
! 2705: echo "${ECHO_T}no" >&6
1.1 millert 2706: ;;
1.7.2.1 ! millert 2707: *) { { echo "$as_me:2707: error: \"--enable-root-sudo does not take an argument.\"" >&5
! 2708: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
! 2709: { (exit 1); exit 1; }; }
1.1 millert 2710: ;;
2711: esac
2712:
2713: else
1.7.2.1 ! millert 2714: echo "$as_me:2714: result: yes" >&5
! 2715: echo "${ECHO_T}yes" >&6
! 2716: fi;
1.1 millert 2717:
1.7.2.1 ! millert 2718: echo "$as_me:2718: checking whether to log the hostname in the log file" >&5
! 2719: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1 millert 2720: # Check whether --enable-log-host or --disable-log-host was given.
2721: if test "${enable_log_host+set}" = set; then
2722: enableval="$enable_log_host"
2723: case "$enableval" in
1.7.2.1 ! millert 2724: yes) echo "$as_me:2724: result: yes" >&5
! 2725: echo "${ECHO_T}yes" >&6
! 2726:
! 2727: cat >>confdefs.h <<\EOF
1.1 millert 2728: #define HOST_IN_LOG 1
2729: EOF
2730:
2731: ;;
1.7.2.1 ! millert 2732: no) echo "$as_me:2732: result: no" >&5
! 2733: echo "${ECHO_T}no" >&6
1.1 millert 2734: ;;
1.7.2.1 ! millert 2735: *) echo "$as_me:2735: result: no" >&5
! 2736: echo "${ECHO_T}no" >&6
1.1 millert 2737: echo "Ignoring unknown argument to --enable-log-host: $enableval"
2738: ;;
2739: esac
2740:
2741: else
1.7.2.1 ! millert 2742: echo "$as_me:2742: result: no" >&5
! 2743: echo "${ECHO_T}no" >&6
! 2744: fi;
1.1 millert 2745:
1.7.2.1 ! millert 2746: echo "$as_me:2746: checking whether to invoke a shell if sudo is given no arguments" >&5
! 2747: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1 millert 2748: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
2749: if test "${enable_noargs_shell+set}" = set; then
2750: enableval="$enable_noargs_shell"
2751: case "$enableval" in
1.7.2.1 ! millert 2752: yes) echo "$as_me:2752: result: yes" >&5
! 2753: echo "${ECHO_T}yes" >&6
! 2754:
! 2755: cat >>confdefs.h <<\EOF
1.1 millert 2756: #define SHELL_IF_NO_ARGS 1
2757: EOF
2758:
2759: ;;
1.7.2.1 ! millert 2760: no) echo "$as_me:2760: result: no" >&5
! 2761: echo "${ECHO_T}no" >&6
1.1 millert 2762: ;;
1.7.2.1 ! millert 2763: *) echo "$as_me:2763: result: no" >&5
! 2764: echo "${ECHO_T}no" >&6
1.1 millert 2765: echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
2766: ;;
2767: esac
2768:
2769: else
1.7.2.1 ! millert 2770: echo "$as_me:2770: result: no" >&5
! 2771: echo "${ECHO_T}no" >&6
! 2772: fi;
1.1 millert 2773:
1.7.2.1 ! millert 2774: echo "$as_me:2774: checking whether to set \$HOME to target user in shell mode" >&5
! 2775: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1 millert 2776: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
2777: if test "${enable_shell_sets_home+set}" = set; then
2778: enableval="$enable_shell_sets_home"
2779: case "$enableval" in
1.7.2.1 ! millert 2780: yes) echo "$as_me:2780: result: yes" >&5
! 2781: echo "${ECHO_T}yes" >&6
! 2782:
! 2783: cat >>confdefs.h <<\EOF
1.1 millert 2784: #define SHELL_SETS_HOME 1
2785: EOF
2786:
2787: ;;
1.7.2.1 ! millert 2788: no) echo "$as_me:2788: result: no" >&5
! 2789: echo "${ECHO_T}no" >&6
1.1 millert 2790: ;;
1.7.2.1 ! millert 2791: *) echo "$as_me:2791: result: no" >&5
! 2792: echo "${ECHO_T}no" >&6
1.1 millert 2793: echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
2794: ;;
2795: esac
2796:
2797: else
1.7.2.1 ! millert 2798: echo "$as_me:2798: result: no" >&5
! 2799: echo "${ECHO_T}no" >&6
! 2800: fi;
1.1 millert 2801:
1.7.2.1 ! millert 2802: echo "$as_me:2802: checking whether to disable 'command not found' messages" >&5
! 2803: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1 millert 2804: # Check whether --enable-path_info or --disable-path_info was given.
2805: if test "${enable_path_info+set}" = set; then
2806: enableval="$enable_path_info"
2807: case "$enableval" in
1.7.2.1 ! millert 2808: yes) echo "$as_me:2808: result: no" >&5
! 2809: echo "${ECHO_T}no" >&6
1.1 millert 2810: ;;
1.7.2.1 ! millert 2811: no) echo "$as_me:2811: result: yes" >&5
! 2812: echo "${ECHO_T}yes" >&6
! 2813:
! 2814: cat >>confdefs.h <<\EOF
1.1 millert 2815: #define DONT_LEAK_PATH_INFO 1
2816: EOF
2817:
2818: ;;
1.7.2.1 ! millert 2819: *) echo "$as_me:2819: result: no" >&5
! 2820: echo "${ECHO_T}no" >&6
1.1 millert 2821: echo "Ignoring unknown argument to --enable-path-info: $enableval"
2822: ;;
2823: esac
2824:
2825: else
1.7.2.1 ! millert 2826: echo "$as_me:2826: result: no" >&5
! 2827: echo "${ECHO_T}no" >&6
! 2828: fi;
1.1 millert 2829:
2830: # Extract the first word of "egrep", so it can be a program name with args.
2831: set dummy egrep; ac_word=$2
1.7.2.1 ! millert 2832: echo "$as_me:2832: checking for $ac_word" >&5
! 2833: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2834: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
! 2835: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 2836: else
2837: if test -n "$EGREPPROG"; then
2838: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
2839: else
1.7.2.1 ! millert 2840: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 2841: ac_dummy="$PATH"
! 2842: for ac_dir in $ac_dummy; do
! 2843: IFS=$ac_save_IFS
! 2844: test -z "$ac_dir" && ac_dir=.
! 2845: $as_executable_p "$ac_dir/$ac_word" || continue
! 2846: ac_cv_prog_EGREPPROG="egrep"
! 2847: echo "$as_me:2847: found $ac_dir/$ac_word" >&5
! 2848: break
! 2849: done
! 2850:
1.1 millert 2851: fi
2852: fi
1.7.2.1 ! millert 2853: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 2854: if test -n "$EGREPPROG"; then
1.7.2.1 ! millert 2855: echo "$as_me:2855: result: $EGREPPROG" >&5
! 2856: echo "${ECHO_T}$EGREPPROG" >&6
1.1 millert 2857: else
1.7.2.1 ! millert 2858: echo "$as_me:2858: result: no" >&5
! 2859: echo "${ECHO_T}no" >&6
1.1 millert 2860: fi
2861:
2862: if test -z "$EGREPPROG"; then
2863: echo "Sorry, configure requires egrep to run."
2864: exit
2865: fi
2866:
1.7.2.1 ! millert 2867: if test "$with_devel" != "yes"; then
! 2868: ac_cv_prog_cc_g=no
! 2869: fi
! 2870:
! 2871: ac_ext=c
! 2872: ac_cpp='$CPP $CPPFLAGS'
! 2873: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2874: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2875: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2876: if test -n "$ac_tool_prefix"; then
! 2877: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 2878: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 2879: echo "$as_me:2879: checking for $ac_word" >&5
! 2880: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2881: if test "${ac_cv_prog_CC+set}" = set; then
! 2882: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2883: else
! 2884: if test -n "$CC"; then
! 2885: ac_cv_prog_CC="$CC" # Let the user override the test.
! 2886: else
! 2887: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 2888: ac_dummy="$PATH"
! 2889: for ac_dir in $ac_dummy; do
! 2890: IFS=$ac_save_IFS
! 2891: test -z "$ac_dir" && ac_dir=.
! 2892: $as_executable_p "$ac_dir/$ac_word" || continue
! 2893: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 2894: echo "$as_me:2894: found $ac_dir/$ac_word" >&5
! 2895: break
! 2896: done
! 2897:
! 2898: fi
! 2899: fi
! 2900: CC=$ac_cv_prog_CC
! 2901: if test -n "$CC"; then
! 2902: echo "$as_me:2902: result: $CC" >&5
! 2903: echo "${ECHO_T}$CC" >&6
! 2904: else
! 2905: echo "$as_me:2905: result: no" >&5
! 2906: echo "${ECHO_T}no" >&6
! 2907: fi
! 2908:
! 2909: fi
! 2910: if test -z "$ac_cv_prog_CC"; then
! 2911: ac_ct_CC=$CC
! 2912: # Extract the first word of "gcc", so it can be a program name with args.
1.1 millert 2913: set dummy gcc; ac_word=$2
1.7.2.1 ! millert 2914: echo "$as_me:2914: checking for $ac_word" >&5
! 2915: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2916: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2917: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2918: else
! 2919: if test -n "$ac_ct_CC"; then
! 2920: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 2921: else
! 2922: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 2923: ac_dummy="$PATH"
! 2924: for ac_dir in $ac_dummy; do
! 2925: IFS=$ac_save_IFS
! 2926: test -z "$ac_dir" && ac_dir=.
! 2927: $as_executable_p "$ac_dir/$ac_word" || continue
! 2928: ac_cv_prog_ac_ct_CC="gcc"
! 2929: echo "$as_me:2929: found $ac_dir/$ac_word" >&5
! 2930: break
! 2931: done
! 2932:
! 2933: fi
! 2934: fi
! 2935: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 2936: if test -n "$ac_ct_CC"; then
! 2937: echo "$as_me:2937: result: $ac_ct_CC" >&5
! 2938: echo "${ECHO_T}$ac_ct_CC" >&6
! 2939: else
! 2940: echo "$as_me:2940: result: no" >&5
! 2941: echo "${ECHO_T}no" >&6
! 2942: fi
! 2943:
! 2944: CC=$ac_ct_CC
! 2945: else
! 2946: CC="$ac_cv_prog_CC"
! 2947: fi
! 2948:
! 2949: if test -z "$CC"; then
! 2950: if test -n "$ac_tool_prefix"; then
! 2951: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 2952: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 2953: echo "$as_me:2953: checking for $ac_word" >&5
! 2954: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2955: if test "${ac_cv_prog_CC+set}" = set; then
! 2956: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 2957: else
2958: if test -n "$CC"; then
2959: ac_cv_prog_CC="$CC" # Let the user override the test.
2960: else
1.7.2.1 ! millert 2961: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 2962: ac_dummy="$PATH"
! 2963: for ac_dir in $ac_dummy; do
! 2964: IFS=$ac_save_IFS
! 2965: test -z "$ac_dir" && ac_dir=.
! 2966: $as_executable_p "$ac_dir/$ac_word" || continue
! 2967: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 2968: echo "$as_me:2968: found $ac_dir/$ac_word" >&5
! 2969: break
! 2970: done
! 2971:
1.1 millert 2972: fi
2973: fi
1.7.2.1 ! millert 2974: CC=$ac_cv_prog_CC
1.1 millert 2975: if test -n "$CC"; then
1.7.2.1 ! millert 2976: echo "$as_me:2976: result: $CC" >&5
! 2977: echo "${ECHO_T}$CC" >&6
1.1 millert 2978: else
1.7.2.1 ! millert 2979: echo "$as_me:2979: result: no" >&5
! 2980: echo "${ECHO_T}no" >&6
1.1 millert 2981: fi
2982:
1.7.2.1 ! millert 2983: fi
! 2984: if test -z "$ac_cv_prog_CC"; then
! 2985: ac_ct_CC=$CC
! 2986: # Extract the first word of "cc", so it can be a program name with args.
! 2987: set dummy cc; ac_word=$2
! 2988: echo "$as_me:2988: checking for $ac_word" >&5
! 2989: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2990: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 2991: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2992: else
! 2993: if test -n "$ac_ct_CC"; then
! 2994: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 2995: else
! 2996: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 2997: ac_dummy="$PATH"
! 2998: for ac_dir in $ac_dummy; do
! 2999: IFS=$ac_save_IFS
! 3000: test -z "$ac_dir" && ac_dir=.
! 3001: $as_executable_p "$ac_dir/$ac_word" || continue
! 3002: ac_cv_prog_ac_ct_CC="cc"
! 3003: echo "$as_me:3003: found $ac_dir/$ac_word" >&5
! 3004: break
! 3005: done
! 3006:
! 3007: fi
! 3008: fi
! 3009: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3010: if test -n "$ac_ct_CC"; then
! 3011: echo "$as_me:3011: result: $ac_ct_CC" >&5
! 3012: echo "${ECHO_T}$ac_ct_CC" >&6
! 3013: else
! 3014: echo "$as_me:3014: result: no" >&5
! 3015: echo "${ECHO_T}no" >&6
! 3016: fi
! 3017:
! 3018: CC=$ac_ct_CC
! 3019: else
! 3020: CC="$ac_cv_prog_CC"
! 3021: fi
! 3022:
! 3023: fi
1.1 millert 3024: if test -z "$CC"; then
3025: # Extract the first word of "cc", so it can be a program name with args.
3026: set dummy cc; ac_word=$2
1.7.2.1 ! millert 3027: echo "$as_me:3027: checking for $ac_word" >&5
! 3028: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3029: if test "${ac_cv_prog_CC+set}" = set; then
! 3030: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3031: else
3032: if test -n "$CC"; then
3033: ac_cv_prog_CC="$CC" # Let the user override the test.
3034: else
3035: ac_prog_rejected=no
1.7.2.1 ! millert 3036: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3037: ac_dummy="$PATH"
! 3038: for ac_dir in $ac_dummy; do
! 3039: IFS=$ac_save_IFS
! 3040: test -z "$ac_dir" && ac_dir=.
! 3041: $as_executable_p "$ac_dir/$ac_word" || continue
! 3042: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
! 3043: ac_prog_rejected=yes
! 3044: continue
! 3045: fi
! 3046: ac_cv_prog_CC="cc"
! 3047: echo "$as_me:3047: found $ac_dir/$ac_word" >&5
! 3048: break
! 3049: done
! 3050:
1.1 millert 3051: if test $ac_prog_rejected = yes; then
3052: # We found a bogon in the path, so make sure we never use it.
3053: set dummy $ac_cv_prog_CC
3054: shift
1.7.2.1 ! millert 3055: if test $# != 0; then
1.1 millert 3056: # We chose a different compiler from the bogus one.
3057: # However, it has the same basename, so the bogon will be chosen
3058: # first if we set CC to just the basename; use the full file name.
3059: shift
1.7.2.1 ! millert 3060: set dummy "$ac_dir/$ac_word" ${1+"$@"}
1.1 millert 3061: shift
3062: ac_cv_prog_CC="$@"
3063: fi
3064: fi
3065: fi
3066: fi
1.7.2.1 ! millert 3067: CC=$ac_cv_prog_CC
1.1 millert 3068: if test -n "$CC"; then
1.7.2.1 ! millert 3069: echo "$as_me:3069: result: $CC" >&5
! 3070: echo "${ECHO_T}$CC" >&6
1.1 millert 3071: else
1.7.2.1 ! millert 3072: echo "$as_me:3072: result: no" >&5
! 3073: echo "${ECHO_T}no" >&6
1.1 millert 3074: fi
3075:
1.7.2.1 ! millert 3076: fi
! 3077: if test -z "$CC"; then
! 3078: if test -n "$ac_tool_prefix"; then
! 3079: for ac_prog in cl
! 3080: do
! 3081: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 3082: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 3083: echo "$as_me:3083: checking for $ac_word" >&5
! 3084: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3085: if test "${ac_cv_prog_CC+set}" = set; then
! 3086: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3087: else
! 3088: if test -n "$CC"; then
! 3089: ac_cv_prog_CC="$CC" # Let the user override the test.
! 3090: else
! 3091: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3092: ac_dummy="$PATH"
! 3093: for ac_dir in $ac_dummy; do
! 3094: IFS=$ac_save_IFS
! 3095: test -z "$ac_dir" && ac_dir=.
! 3096: $as_executable_p "$ac_dir/$ac_word" || continue
! 3097: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 3098: echo "$as_me:3098: found $ac_dir/$ac_word" >&5
! 3099: break
! 3100: done
! 3101:
! 3102: fi
! 3103: fi
! 3104: CC=$ac_cv_prog_CC
! 3105: if test -n "$CC"; then
! 3106: echo "$as_me:3106: result: $CC" >&5
! 3107: echo "${ECHO_T}$CC" >&6
! 3108: else
! 3109: echo "$as_me:3109: result: no" >&5
! 3110: echo "${ECHO_T}no" >&6
1.1 millert 3111: fi
3112:
1.7.2.1 ! millert 3113: test -n "$CC" && break
! 3114: done
! 3115: fi
! 3116: if test -z "$CC"; then
! 3117: ac_ct_CC=$CC
! 3118: for ac_prog in cl
! 3119: do
! 3120: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3121: set dummy $ac_prog; ac_word=$2
! 3122: echo "$as_me:3122: checking for $ac_word" >&5
! 3123: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3124: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3125: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3126: else
! 3127: if test -n "$ac_ct_CC"; then
! 3128: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 3129: else
! 3130: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3131: ac_dummy="$PATH"
! 3132: for ac_dir in $ac_dummy; do
! 3133: IFS=$ac_save_IFS
! 3134: test -z "$ac_dir" && ac_dir=.
! 3135: $as_executable_p "$ac_dir/$ac_word" || continue
! 3136: ac_cv_prog_ac_ct_CC="$ac_prog"
! 3137: echo "$as_me:3137: found $ac_dir/$ac_word" >&5
! 3138: break
! 3139: done
1.1 millert 3140:
1.7.2.1 ! millert 3141: fi
! 3142: fi
! 3143: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3144: if test -n "$ac_ct_CC"; then
! 3145: echo "$as_me:3145: result: $ac_ct_CC" >&5
! 3146: echo "${ECHO_T}$ac_ct_CC" >&6
! 3147: else
! 3148: echo "$as_me:3148: result: no" >&5
! 3149: echo "${ECHO_T}no" >&6
! 3150: fi
! 3151:
! 3152: test -n "$ac_ct_CC" && break
! 3153: done
! 3154:
! 3155: CC=$ac_ct_CC
! 3156: fi
! 3157:
! 3158: fi
! 3159:
! 3160: test -z "$CC" && { { echo "$as_me:3160: error: no acceptable cc found in \$PATH" >&5
! 3161: echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
! 3162: { (exit 1); exit 1; }; }
! 3163:
! 3164: # Provide some information about the compiler.
! 3165: echo "$as_me:3165:" \
! 3166: "checking for C compiler version" >&5
! 3167: ac_compiler=`set X $ac_compile; echo $2`
! 3168: { (eval echo "$as_me:3168: \"$ac_compiler --version </dev/null >&5\"") >&5
! 3169: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 3170: ac_status=$?
! 3171: echo "$as_me:3171: \$? = $ac_status" >&5
! 3172: (exit $ac_status); }
! 3173: { (eval echo "$as_me:3173: \"$ac_compiler -v </dev/null >&5\"") >&5
! 3174: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 3175: ac_status=$?
! 3176: echo "$as_me:3176: \$? = $ac_status" >&5
! 3177: (exit $ac_status); }
! 3178: { (eval echo "$as_me:3178: \"$ac_compiler -V </dev/null >&5\"") >&5
! 3179: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 3180: ac_status=$?
! 3181: echo "$as_me:3181: \$? = $ac_status" >&5
! 3182: (exit $ac_status); }
! 3183:
! 3184: cat >conftest.$ac_ext <<_ACEOF
! 3185: #line 3185 "configure"
! 3186: #include "confdefs.h"
! 3187:
! 3188: int
! 3189: main ()
! 3190: {
! 3191:
! 3192: ;
! 3193: return 0;
! 3194: }
! 3195: _ACEOF
! 3196: ac_clean_files_save=$ac_clean_files
! 3197: ac_clean_files="$ac_clean_files a.out a.exe"
! 3198: # Try to create an executable without -o first, disregard a.out.
! 3199: # It will help us diagnose broken compilers, and finding out an intuition
! 3200: # of exeext.
! 3201: echo "$as_me:3201: checking for C compiler default output" >&5
! 3202: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
! 3203: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 3204: if { (eval echo "$as_me:3204: \"$ac_link_default\"") >&5
! 3205: (eval $ac_link_default) 2>&5
! 3206: ac_status=$?
! 3207: echo "$as_me:3207: \$? = $ac_status" >&5
! 3208: (exit $ac_status); }; then
! 3209: # Find the output, starting from the most likely. This scheme is
! 3210: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 3211: # resort.
! 3212: for ac_file in `ls a.exe conftest.exe 2>/dev/null;
! 3213: ls a.out conftest 2>/dev/null;
! 3214: ls a.* conftest.* 2>/dev/null`; do
! 3215: case $ac_file in
! 3216: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3217: a.out ) # We found the default executable, but exeext='' is most
! 3218: # certainly right.
! 3219: break;;
! 3220: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3221: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
! 3222: export ac_cv_exeext
! 3223: break;;
! 3224: * ) break;;
! 3225: esac
! 3226: done
! 3227: else
! 3228: echo "$as_me: failed program was:" >&5
! 3229: cat conftest.$ac_ext >&5
! 3230: { { echo "$as_me:3230: error: C compiler cannot create executables" >&5
! 3231: echo "$as_me: error: C compiler cannot create executables" >&2;}
! 3232: { (exit 77); exit 77; }; }
! 3233: fi
! 3234:
! 3235: ac_exeext=$ac_cv_exeext
! 3236: echo "$as_me:3236: result: $ac_file" >&5
! 3237: echo "${ECHO_T}$ac_file" >&6
! 3238:
! 3239: # Check the compiler produces executables we can run. If not, either
! 3240: # the compiler is broken, or we cross compile.
! 3241: echo "$as_me:3241: checking whether the C compiler works" >&5
! 3242: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
! 3243: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 3244: # If not cross compiling, check that we can run a simple program.
! 3245: if test "$cross_compiling" != yes; then
! 3246: if { ac_try='./$ac_file'
! 3247: { (eval echo "$as_me:3247: \"$ac_try\"") >&5
! 3248: (eval $ac_try) 2>&5
! 3249: ac_status=$?
! 3250: echo "$as_me:3250: \$? = $ac_status" >&5
! 3251: (exit $ac_status); }; }; then
! 3252: cross_compiling=no
1.1 millert 3253: else
1.7.2.1 ! millert 3254: if test "$cross_compiling" = maybe; then
! 3255: cross_compiling=yes
! 3256: else
! 3257: { { echo "$as_me:3257: error: cannot run C compiled programs.
! 3258: If you meant to cross compile, use \`--host'." >&5
! 3259: echo "$as_me: error: cannot run C compiled programs.
! 3260: If you meant to cross compile, use \`--host'." >&2;}
! 3261: { (exit 1); exit 1; }; }
! 3262: fi
1.1 millert 3263: fi
3264: fi
1.7.2.1 ! millert 3265: echo "$as_me:3265: result: yes" >&5
! 3266: echo "${ECHO_T}yes" >&6
1.1 millert 3267:
1.7.2.1 ! millert 3268: rm -f a.out a.exe conftest$ac_cv_exeext
! 3269: ac_clean_files=$ac_clean_files_save
! 3270: # Check the compiler produces executables we can run. If not, either
! 3271: # the compiler is broken, or we cross compile.
! 3272: echo "$as_me:3272: checking whether we are cross compiling" >&5
! 3273: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 3274: echo "$as_me:3274: result: $cross_compiling" >&5
! 3275: echo "${ECHO_T}$cross_compiling" >&6
! 3276:
! 3277: echo "$as_me:3277: checking for executable suffix" >&5
! 3278: echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
! 3279: if { (eval echo "$as_me:3279: \"$ac_link\"") >&5
! 3280: (eval $ac_link) 2>&5
! 3281: ac_status=$?
! 3282: echo "$as_me:3282: \$? = $ac_status" >&5
! 3283: (exit $ac_status); }; then
! 3284: # If both `conftest.exe' and `conftest' are `present' (well, observable)
! 3285: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
! 3286: # work properly (i.e., refer to `conftest.exe'), while it won't with
! 3287: # `rm'.
! 3288: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
! 3289: case $ac_file in
! 3290: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3291: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3292: export ac_cv_exeext
! 3293: break;;
! 3294: * ) break;;
! 3295: esac
! 3296: done
! 3297: else
! 3298: { { echo "$as_me:3298: error: cannot compute EXEEXT: cannot compile and link" >&5
! 3299: echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
! 3300: { (exit 1); exit 1; }; }
1.1 millert 3301: fi
3302:
1.7.2.1 ! millert 3303: rm -f conftest$ac_cv_exeext
! 3304: echo "$as_me:3304: result: $ac_cv_exeext" >&5
! 3305: echo "${ECHO_T}$ac_cv_exeext" >&6
! 3306:
! 3307: rm -f conftest.$ac_ext
! 3308: EXEEXT=$ac_cv_exeext
! 3309: ac_exeext=$EXEEXT
! 3310: echo "$as_me:3310: checking for object suffix" >&5
! 3311: echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
! 3312: if test "${ac_cv_objext+set}" = set; then
! 3313: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3314: else
1.7.2.1 ! millert 3315: cat >conftest.$ac_ext <<_ACEOF
! 3316: #line 3316 "configure"
! 3317: #include "confdefs.h"
! 3318:
! 3319: int
! 3320: main ()
! 3321: {
! 3322:
! 3323: ;
! 3324: return 0;
! 3325: }
! 3326: _ACEOF
! 3327: rm -f conftest.o conftest.obj
! 3328: if { (eval echo "$as_me:3328: \"$ac_compile\"") >&5
! 3329: (eval $ac_compile) 2>&5
! 3330: ac_status=$?
! 3331: echo "$as_me:3331: \$? = $ac_status" >&5
! 3332: (exit $ac_status); }; then
! 3333: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
! 3334: case $ac_file in
! 3335: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3336: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
! 3337: break;;
! 3338: esac
! 3339: done
1.1 millert 3340: else
1.7.2.1 ! millert 3341: echo "$as_me: failed program was:" >&5
! 3342: cat conftest.$ac_ext >&5
! 3343: { { echo "$as_me:3343: error: cannot compute OBJEXT: cannot compile" >&5
! 3344: echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
! 3345: { (exit 1); exit 1; }; }
1.1 millert 3346: fi
1.7.2.1 ! millert 3347:
! 3348: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 3349: fi
1.7.2.1 ! millert 3350: echo "$as_me:3350: result: $ac_cv_objext" >&5
! 3351: echo "${ECHO_T}$ac_cv_objext" >&6
! 3352: OBJEXT=$ac_cv_objext
! 3353: ac_objext=$OBJEXT
! 3354: echo "$as_me:3354: checking whether we are using the GNU C compiler" >&5
! 3355: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 3356: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 3357: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3358: else
! 3359: cat >conftest.$ac_ext <<_ACEOF
! 3360: #line 3360 "configure"
! 3361: #include "confdefs.h"
1.1 millert 3362:
1.7.2.1 ! millert 3363: int
! 3364: main ()
! 3365: {
! 3366: #ifndef __GNUC__
! 3367: choke me
! 3368: #endif
1.1 millert 3369:
1.7.2.1 ! millert 3370: ;
! 3371: return 0;
! 3372: }
! 3373: _ACEOF
! 3374: rm -f conftest.$ac_objext
! 3375: if { (eval echo "$as_me:3375: \"$ac_compile\"") >&5
! 3376: (eval $ac_compile) 2>&5
! 3377: ac_status=$?
! 3378: echo "$as_me:3378: \$? = $ac_status" >&5
! 3379: (exit $ac_status); } &&
! 3380: { ac_try='test -s conftest.$ac_objext'
! 3381: { (eval echo "$as_me:3381: \"$ac_try\"") >&5
! 3382: (eval $ac_try) 2>&5
! 3383: ac_status=$?
! 3384: echo "$as_me:3384: \$? = $ac_status" >&5
! 3385: (exit $ac_status); }; }; then
! 3386: ac_compiler_gnu=yes
! 3387: else
! 3388: echo "$as_me: failed program was:" >&5
! 3389: cat conftest.$ac_ext >&5
! 3390: ac_compiler_gnu=no
! 3391: fi
! 3392: rm -f conftest.$ac_objext conftest.$ac_ext
! 3393: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 3394:
! 3395: fi
! 3396: echo "$as_me:3396: result: $ac_cv_c_compiler_gnu" >&5
! 3397: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 3398: GCC=`test $ac_compiler_gnu = yes && echo yes`
! 3399: ac_test_CFLAGS=${CFLAGS+set}
! 3400: ac_save_CFLAGS=$CFLAGS
! 3401: CFLAGS="-g"
! 3402: echo "$as_me:3402: checking whether $CC accepts -g" >&5
! 3403: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 3404: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3405: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3406: else
1.7.2.1 ! millert 3407: cat >conftest.$ac_ext <<_ACEOF
! 3408: #line 3408 "configure"
! 3409: #include "confdefs.h"
! 3410:
! 3411: int
! 3412: main ()
! 3413: {
! 3414:
! 3415: ;
! 3416: return 0;
! 3417: }
! 3418: _ACEOF
! 3419: rm -f conftest.$ac_objext
! 3420: if { (eval echo "$as_me:3420: \"$ac_compile\"") >&5
! 3421: (eval $ac_compile) 2>&5
! 3422: ac_status=$?
! 3423: echo "$as_me:3423: \$? = $ac_status" >&5
! 3424: (exit $ac_status); } &&
! 3425: { ac_try='test -s conftest.$ac_objext'
! 3426: { (eval echo "$as_me:3426: \"$ac_try\"") >&5
! 3427: (eval $ac_try) 2>&5
! 3428: ac_status=$?
! 3429: echo "$as_me:3429: \$? = $ac_status" >&5
! 3430: (exit $ac_status); }; }; then
1.1 millert 3431: ac_cv_prog_cc_g=yes
3432: else
1.7.2.1 ! millert 3433: echo "$as_me: failed program was:" >&5
! 3434: cat conftest.$ac_ext >&5
! 3435: ac_cv_prog_cc_g=no
! 3436: fi
! 3437: rm -f conftest.$ac_objext conftest.$ac_ext
! 3438: fi
! 3439: echo "$as_me:3439: result: $ac_cv_prog_cc_g" >&5
! 3440: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
! 3441: if test "$ac_test_CFLAGS" = set; then
! 3442: CFLAGS=$ac_save_CFLAGS
! 3443: elif test $ac_cv_prog_cc_g = yes; then
! 3444: if test "$GCC" = yes; then
! 3445: CFLAGS="-g -O2"
! 3446: else
! 3447: CFLAGS="-g"
! 3448: fi
! 3449: else
! 3450: if test "$GCC" = yes; then
! 3451: CFLAGS="-O2"
! 3452: else
! 3453: CFLAGS=
! 3454: fi
1.1 millert 3455: fi
1.7.2.1 ! millert 3456: # Some people use a C++ compiler to compile C. Since we use `exit',
! 3457: # in C++ we need to declare it. In case someone uses the same compiler
! 3458: # for both compiling C and C++ we need to have the C++ compiler decide
! 3459: # the declaration of exit, since it's the most demanding environment.
! 3460: cat >conftest.$ac_ext <<_ACEOF
! 3461: #ifndef __cplusplus
! 3462: choke me
! 3463: #endif
! 3464: _ACEOF
! 3465: rm -f conftest.$ac_objext
! 3466: if { (eval echo "$as_me:3466: \"$ac_compile\"") >&5
! 3467: (eval $ac_compile) 2>&5
! 3468: ac_status=$?
! 3469: echo "$as_me:3469: \$? = $ac_status" >&5
! 3470: (exit $ac_status); } &&
! 3471: { ac_try='test -s conftest.$ac_objext'
! 3472: { (eval echo "$as_me:3472: \"$ac_try\"") >&5
! 3473: (eval $ac_try) 2>&5
! 3474: ac_status=$?
! 3475: echo "$as_me:3475: \$? = $ac_status" >&5
! 3476: (exit $ac_status); }; }; then
! 3477: for ac_declaration in \
! 3478: ''\
! 3479: '#include <stdlib.h>' \
! 3480: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 3481: 'extern "C" void std::exit (int); using std::exit;' \
! 3482: 'extern "C" void exit (int) throw ();' \
! 3483: 'extern "C" void exit (int);' \
! 3484: 'void exit (int);'
! 3485: do
! 3486: cat >conftest.$ac_ext <<_ACEOF
! 3487: #line 3487 "configure"
! 3488: #include "confdefs.h"
! 3489: #include <stdlib.h>
! 3490: $ac_declaration
! 3491: int
! 3492: main ()
! 3493: {
! 3494: exit (42);
! 3495: ;
! 3496: return 0;
! 3497: }
! 3498: _ACEOF
! 3499: rm -f conftest.$ac_objext
! 3500: if { (eval echo "$as_me:3500: \"$ac_compile\"") >&5
! 3501: (eval $ac_compile) 2>&5
! 3502: ac_status=$?
! 3503: echo "$as_me:3503: \$? = $ac_status" >&5
! 3504: (exit $ac_status); } &&
! 3505: { ac_try='test -s conftest.$ac_objext'
! 3506: { (eval echo "$as_me:3506: \"$ac_try\"") >&5
! 3507: (eval $ac_try) 2>&5
! 3508: ac_status=$?
! 3509: echo "$as_me:3509: \$? = $ac_status" >&5
! 3510: (exit $ac_status); }; }; then
! 3511: :
! 3512: else
! 3513: echo "$as_me: failed program was:" >&5
! 3514: cat conftest.$ac_ext >&5
! 3515: continue
! 3516: fi
! 3517: rm -f conftest.$ac_objext conftest.$ac_ext
! 3518: cat >conftest.$ac_ext <<_ACEOF
! 3519: #line 3519 "configure"
! 3520: #include "confdefs.h"
! 3521: $ac_declaration
! 3522: int
! 3523: main ()
! 3524: {
! 3525: exit (42);
! 3526: ;
! 3527: return 0;
! 3528: }
! 3529: _ACEOF
! 3530: rm -f conftest.$ac_objext
! 3531: if { (eval echo "$as_me:3531: \"$ac_compile\"") >&5
! 3532: (eval $ac_compile) 2>&5
! 3533: ac_status=$?
! 3534: echo "$as_me:3534: \$? = $ac_status" >&5
! 3535: (exit $ac_status); } &&
! 3536: { ac_try='test -s conftest.$ac_objext'
! 3537: { (eval echo "$as_me:3537: \"$ac_try\"") >&5
! 3538: (eval $ac_try) 2>&5
! 3539: ac_status=$?
! 3540: echo "$as_me:3540: \$? = $ac_status" >&5
! 3541: (exit $ac_status); }; }; then
! 3542: break
! 3543: else
! 3544: echo "$as_me: failed program was:" >&5
! 3545: cat conftest.$ac_ext >&5
! 3546: fi
! 3547: rm -f conftest.$ac_objext conftest.$ac_ext
! 3548: done
1.1 millert 3549: rm -f conftest*
1.7.2.1 ! millert 3550: if test -n "$ac_declaration"; then
! 3551: echo '#ifdef __cplusplus' >>confdefs.h
! 3552: echo $ac_declaration >>confdefs.h
! 3553: echo '#endif' >>confdefs.h
! 3554: fi
1.1 millert 3555:
1.7.2.1 ! millert 3556: else
! 3557: echo "$as_me: failed program was:" >&5
! 3558: cat conftest.$ac_ext >&5
1.1 millert 3559: fi
1.7.2.1 ! millert 3560: rm -f conftest.$ac_objext conftest.$ac_ext
! 3561: ac_ext=c
! 3562: ac_cpp='$CPP $CPPFLAGS'
! 3563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 3566:
1.7.2.1 ! millert 3567: echo "$as_me:3567: checking for POSIXized ISC" >&5
! 3568: echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
! 3569: if test -d /etc/conf/kconfig.d &&
! 3570: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
! 3571: then
! 3572: echo "$as_me:3572: result: yes" >&5
! 3573: echo "${ECHO_T}yes" >&6
! 3574: ISC=yes # If later tests want to check for ISC.
! 3575:
! 3576: cat >>confdefs.h <<\EOF
! 3577: #define _POSIX_SOURCE 1
! 3578: EOF
! 3579:
! 3580: if test "$GCC" = yes; then
! 3581: CC="$CC -posix"
1.1 millert 3582: else
1.7.2.1 ! millert 3583: CC="$CC -Xp"
1.1 millert 3584: fi
3585: else
1.7.2.1 ! millert 3586: echo "$as_me:3586: result: no" >&5
! 3587: echo "${ECHO_T}no" >&6
! 3588: ISC=
! 3589: fi
! 3590:
! 3591: ac_cv_prog_cc_cross="no"
! 3592: cross_compiling="no"
! 3593:
! 3594: echo "$as_me:3594: checking for $CC option to accept ANSI C" >&5
! 3595: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 3596: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 3597: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3598: else
! 3599: ac_cv_prog_cc_stdc=no
! 3600: ac_save_CC=$CC
! 3601: cat >conftest.$ac_ext <<_ACEOF
! 3602: #line 3602 "configure"
! 3603: #include "confdefs.h"
! 3604: #include <stdarg.h>
! 3605: #include <stdio.h>
! 3606: #include <sys/types.h>
! 3607: #include <sys/stat.h>
! 3608: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 3609: struct buf { int x; };
! 3610: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 3611: static char *e (p, i)
! 3612: char **p;
! 3613: int i;
! 3614: {
! 3615: return p[i];
! 3616: }
! 3617: static char *f (char * (*g) (char **, int), char **p, ...)
! 3618: {
! 3619: char *s;
! 3620: va_list v;
! 3621: va_start (v,p);
! 3622: s = g (p, va_arg (v,int));
! 3623: va_end (v);
! 3624: return s;
! 3625: }
! 3626: int test (int i, double x);
! 3627: struct s1 {int (*f) (int a);};
! 3628: struct s2 {int (*f) (double a);};
! 3629: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 3630: int argc;
! 3631: char **argv;
! 3632: int
! 3633: main ()
! 3634: {
! 3635: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 3636: ;
! 3637: return 0;
! 3638: }
! 3639: _ACEOF
! 3640: # Don't try gcc -ansi; that turns off useful extensions and
! 3641: # breaks some systems' header files.
! 3642: # AIX -qlanglvl=ansi
! 3643: # Ultrix and OSF/1 -std1
! 3644: # HP-UX 10.20 and later -Ae
! 3645: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 3646: # SVR4 -Xc -D__EXTENSIONS__
! 3647: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 3648: do
! 3649: CC="$ac_save_CC $ac_arg"
! 3650: rm -f conftest.$ac_objext
! 3651: if { (eval echo "$as_me:3651: \"$ac_compile\"") >&5
! 3652: (eval $ac_compile) 2>&5
! 3653: ac_status=$?
! 3654: echo "$as_me:3654: \$? = $ac_status" >&5
! 3655: (exit $ac_status); } &&
! 3656: { ac_try='test -s conftest.$ac_objext'
! 3657: { (eval echo "$as_me:3657: \"$ac_try\"") >&5
! 3658: (eval $ac_try) 2>&5
! 3659: ac_status=$?
! 3660: echo "$as_me:3660: \$? = $ac_status" >&5
! 3661: (exit $ac_status); }; }; then
! 3662: ac_cv_prog_cc_stdc=$ac_arg
! 3663: break
! 3664: else
! 3665: echo "$as_me: failed program was:" >&5
! 3666: cat conftest.$ac_ext >&5
1.1 millert 3667: fi
1.7.2.1 ! millert 3668: rm -f conftest.$ac_objext
! 3669: done
! 3670: rm -f conftest.$ac_ext conftest.$ac_objext
! 3671: CC=$ac_save_CC
! 3672:
! 3673: fi
! 3674:
! 3675: case "x$ac_cv_prog_cc_stdc" in
! 3676: x|xno)
! 3677: echo "$as_me:3677: result: none needed" >&5
! 3678: echo "${ECHO_T}none needed" >&6 ;;
! 3679: *)
! 3680: echo "$as_me:3680: result: $ac_cv_prog_cc_stdc" >&5
! 3681: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 3682: CC="$CC $ac_cv_prog_cc_stdc" ;;
! 3683: esac
1.1 millert 3684:
3685: ac_cv_prog_cc_cross="no"
3686: cross_compiling="no"
1.7.2.1 ! millert 3687: ac_ext=c
! 3688: ac_cpp='$CPP $CPPFLAGS'
! 3689: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3690: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3691: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3692: echo "$as_me:3692: checking how to run the C preprocessor" >&5
! 3693: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1 millert 3694: # On Suns, sometimes $CPP names a directory.
3695: if test -n "$CPP" && test -d "$CPP"; then
3696: CPP=
3697: fi
3698: if test -z "$CPP"; then
1.7.2.1 ! millert 3699: if test "${ac_cv_prog_CPP+set}" = set; then
! 3700: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3701: else
1.7.2.1 ! millert 3702: # Double quotes because CPP needs to be expanded
! 3703: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
! 3704: do
! 3705: ac_preproc_ok=false
! 3706: for ac_c_preproc_warn_flag in '' yes
! 3707: do
! 3708: # Use a header file that comes with gcc, so configuring glibc
! 3709: # with a fresh cross-compiler works.
1.1 millert 3710: # On the NeXT, cc -E runs the code through the compiler's parser,
1.7.2.1 ! millert 3711: # not just through cpp. "Syntax error" is here to catch this case.
! 3712: cat >conftest.$ac_ext <<_ACEOF
! 3713: #line 3713 "configure"
1.1 millert 3714: #include "confdefs.h"
3715: #include <assert.h>
1.7.2.1 ! millert 3716: Syntax error
! 3717: _ACEOF
! 3718: if { (eval echo "$as_me:3718: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3719: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3720: ac_status=$?
! 3721: egrep -v '^ *\+' conftest.er1 >conftest.err
! 3722: rm -f conftest.er1
! 3723: cat conftest.err >&5
! 3724: echo "$as_me:3724: \$? = $ac_status" >&5
! 3725: (exit $ac_status); } >/dev/null; then
! 3726: if test -s conftest.err; then
! 3727: ac_cpp_err=$ac_c_preproc_warn_flag
! 3728: else
! 3729: ac_cpp_err=
! 3730: fi
! 3731: else
! 3732: ac_cpp_err=yes
! 3733: fi
! 3734: if test -z "$ac_cpp_err"; then
1.1 millert 3735: :
3736: else
1.7.2.1 ! millert 3737: echo "$as_me: failed program was:" >&5
1.1 millert 3738: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 3739: # Broken: fails on valid input.
! 3740: continue
! 3741: fi
! 3742: rm -f conftest.err conftest.$ac_ext
! 3743:
! 3744: # OK, works on sane cases. Now check whether non-existent headers
! 3745: # can be detected and how.
! 3746: cat >conftest.$ac_ext <<_ACEOF
! 3747: #line 3747 "configure"
! 3748: #include "confdefs.h"
! 3749: #include <ac_nonexistent.h>
! 3750: _ACEOF
! 3751: if { (eval echo "$as_me:3751: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3752: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3753: ac_status=$?
! 3754: egrep -v '^ *\+' conftest.er1 >conftest.err
! 3755: rm -f conftest.er1
! 3756: cat conftest.err >&5
! 3757: echo "$as_me:3757: \$? = $ac_status" >&5
! 3758: (exit $ac_status); } >/dev/null; then
! 3759: if test -s conftest.err; then
! 3760: ac_cpp_err=$ac_c_preproc_warn_flag
! 3761: else
! 3762: ac_cpp_err=
! 3763: fi
1.1 millert 3764: else
1.7.2.1 ! millert 3765: ac_cpp_err=yes
! 3766: fi
! 3767: if test -z "$ac_cpp_err"; then
! 3768: # Broken: success on invalid input.
! 3769: continue
! 3770: else
! 3771: echo "$as_me: failed program was:" >&5
1.1 millert 3772: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 3773: # Passes both tests.
! 3774: ac_preproc_ok=:
! 3775: break
1.1 millert 3776: fi
1.7.2.1 ! millert 3777: rm -f conftest.err conftest.$ac_ext
! 3778:
! 3779: done
! 3780: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 3781: rm -f conftest.err conftest.$ac_ext
! 3782: if $ac_preproc_ok; then
! 3783: break
1.1 millert 3784: fi
1.7.2.1 ! millert 3785:
! 3786: done
! 3787: ac_cv_prog_CPP=$CPP
! 3788:
1.1 millert 3789: fi
1.7.2.1 ! millert 3790: CPP=$ac_cv_prog_CPP
1.1 millert 3791: else
1.7.2.1 ! millert 3792: ac_cv_prog_CPP=$CPP
1.1 millert 3793: fi
1.7.2.1 ! millert 3794: echo "$as_me:3794: result: $CPP" >&5
! 3795: echo "${ECHO_T}$CPP" >&6
! 3796: ac_preproc_ok=false
! 3797: for ac_c_preproc_warn_flag in '' yes
! 3798: do
! 3799: # Use a header file that comes with gcc, so configuring glibc
! 3800: # with a fresh cross-compiler works.
! 3801: # On the NeXT, cc -E runs the code through the compiler's parser,
! 3802: # not just through cpp. "Syntax error" is here to catch this case.
! 3803: cat >conftest.$ac_ext <<_ACEOF
! 3804: #line 3804 "configure"
! 3805: #include "confdefs.h"
! 3806: #include <assert.h>
! 3807: Syntax error
! 3808: _ACEOF
! 3809: if { (eval echo "$as_me:3809: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3810: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3811: ac_status=$?
! 3812: egrep -v '^ *\+' conftest.er1 >conftest.err
! 3813: rm -f conftest.er1
! 3814: cat conftest.err >&5
! 3815: echo "$as_me:3815: \$? = $ac_status" >&5
! 3816: (exit $ac_status); } >/dev/null; then
! 3817: if test -s conftest.err; then
! 3818: ac_cpp_err=$ac_c_preproc_warn_flag
! 3819: else
! 3820: ac_cpp_err=
! 3821: fi
! 3822: else
! 3823: ac_cpp_err=yes
! 3824: fi
! 3825: if test -z "$ac_cpp_err"; then
! 3826: :
! 3827: else
! 3828: echo "$as_me: failed program was:" >&5
! 3829: cat conftest.$ac_ext >&5
! 3830: # Broken: fails on valid input.
! 3831: continue
! 3832: fi
! 3833: rm -f conftest.err conftest.$ac_ext
1.1 millert 3834:
1.7.2.1 ! millert 3835: # OK, works on sane cases. Now check whether non-existent headers
! 3836: # can be detected and how.
! 3837: cat >conftest.$ac_ext <<_ACEOF
! 3838: #line 3838 "configure"
! 3839: #include "confdefs.h"
! 3840: #include <ac_nonexistent.h>
! 3841: _ACEOF
! 3842: if { (eval echo "$as_me:3842: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3843: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3844: ac_status=$?
! 3845: egrep -v '^ *\+' conftest.er1 >conftest.err
! 3846: rm -f conftest.er1
! 3847: cat conftest.err >&5
! 3848: echo "$as_me:3848: \$? = $ac_status" >&5
! 3849: (exit $ac_status); } >/dev/null; then
! 3850: if test -s conftest.err; then
! 3851: ac_cpp_err=$ac_c_preproc_warn_flag
1.1 millert 3852: else
1.7.2.1 ! millert 3853: ac_cpp_err=
1.1 millert 3854: fi
3855: else
1.7.2.1 ! millert 3856: ac_cpp_err=yes
! 3857: fi
! 3858: if test -z "$ac_cpp_err"; then
! 3859: # Broken: success on invalid input.
! 3860: continue
! 3861: else
! 3862: echo "$as_me: failed program was:" >&5
! 3863: cat conftest.$ac_ext >&5
! 3864: # Passes both tests.
! 3865: ac_preproc_ok=:
! 3866: break
1.1 millert 3867: fi
1.7.2.1 ! millert 3868: rm -f conftest.err conftest.$ac_ext
1.1 millert 3869:
1.7.2.1 ! millert 3870: done
! 3871: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 3872: rm -f conftest.err conftest.$ac_ext
! 3873: if $ac_preproc_ok; then
! 3874: :
! 3875: else
! 3876: { { echo "$as_me:3876: error: C preprocessor \"$CPP\" fails sanity check" >&5
! 3877: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
! 3878: { (exit 1); exit 1; }; }
! 3879: fi
! 3880:
! 3881: ac_ext=c
! 3882: ac_cpp='$CPP $CPPFLAGS'
! 3883: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3884: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3885: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 3886:
3887: if test "$with_devel" = "yes" -a -n "$GCC"; then
3888: CFLAGS="${CFLAGS} -Wall"
3889: fi
3890:
3891: # Extract the first word of "uname", so it can be a program name with args.
3892: set dummy uname; ac_word=$2
1.7.2.1 ! millert 3893: echo "$as_me:3893: checking for $ac_word" >&5
! 3894: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3895: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
! 3896: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3897: else
3898: if test -n "$UNAMEPROG"; then
3899: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
3900: else
1.7.2.1 ! millert 3901: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3902: ac_dummy="$PATH"
! 3903: for ac_dir in $ac_dummy; do
! 3904: IFS=$ac_save_IFS
! 3905: test -z "$ac_dir" && ac_dir=.
! 3906: $as_executable_p "$ac_dir/$ac_word" || continue
! 3907: ac_cv_prog_UNAMEPROG="uname"
! 3908: echo "$as_me:3908: found $ac_dir/$ac_word" >&5
! 3909: break
! 3910: done
! 3911:
1.1 millert 3912: fi
3913: fi
1.7.2.1 ! millert 3914: UNAMEPROG=$ac_cv_prog_UNAMEPROG
1.1 millert 3915: if test -n "$UNAMEPROG"; then
1.7.2.1 ! millert 3916: echo "$as_me:3916: result: $UNAMEPROG" >&5
! 3917: echo "${ECHO_T}$UNAMEPROG" >&6
1.1 millert 3918: else
1.7.2.1 ! millert 3919: echo "$as_me:3919: result: no" >&5
! 3920: echo "${ECHO_T}no" >&6
1.1 millert 3921: fi
3922:
3923: # Extract the first word of "tr", so it can be a program name with args.
3924: set dummy tr; ac_word=$2
1.7.2.1 ! millert 3925: echo "$as_me:3925: checking for $ac_word" >&5
! 3926: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3927: if test "${ac_cv_prog_TRPROG+set}" = set; then
! 3928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3929: else
3930: if test -n "$TRPROG"; then
3931: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
3932: else
1.7.2.1 ! millert 3933: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3934: ac_dummy="$PATH"
! 3935: for ac_dir in $ac_dummy; do
! 3936: IFS=$ac_save_IFS
! 3937: test -z "$ac_dir" && ac_dir=.
! 3938: $as_executable_p "$ac_dir/$ac_word" || continue
! 3939: ac_cv_prog_TRPROG="tr"
! 3940: echo "$as_me:3940: found $ac_dir/$ac_word" >&5
! 3941: break
! 3942: done
! 3943:
1.1 millert 3944: fi
3945: fi
1.7.2.1 ! millert 3946: TRPROG=$ac_cv_prog_TRPROG
1.1 millert 3947: if test -n "$TRPROG"; then
1.7.2.1 ! millert 3948: echo "$as_me:3948: result: $TRPROG" >&5
! 3949: echo "${ECHO_T}$TRPROG" >&6
1.1 millert 3950: else
1.7.2.1 ! millert 3951: echo "$as_me:3951: result: no" >&5
! 3952: echo "${ECHO_T}no" >&6
1.1 millert 3953: fi
3954:
3955: # Extract the first word of "sed", so it can be a program name with args.
3956: set dummy sed; ac_word=$2
1.7.2.1 ! millert 3957: echo "$as_me:3957: checking for $ac_word" >&5
! 3958: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3959: if test "${ac_cv_prog_SEDPROG+set}" = set; then
! 3960: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3961: else
3962: if test -n "$SEDPROG"; then
3963: ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
3964: else
1.7.2.1 ! millert 3965: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3966: ac_dummy="$PATH"
! 3967: for ac_dir in $ac_dummy; do
! 3968: IFS=$ac_save_IFS
! 3969: test -z "$ac_dir" && ac_dir=.
! 3970: $as_executable_p "$ac_dir/$ac_word" || continue
! 3971: ac_cv_prog_SEDPROG="sed"
! 3972: echo "$as_me:3972: found $ac_dir/$ac_word" >&5
! 3973: break
! 3974: done
! 3975:
1.1 millert 3976: fi
3977: fi
1.7.2.1 ! millert 3978: SEDPROG=$ac_cv_prog_SEDPROG
1.1 millert 3979: if test -n "$SEDPROG"; then
1.7.2.1 ! millert 3980: echo "$as_me:3980: result: $SEDPROG" >&5
! 3981: echo "${ECHO_T}$SEDPROG" >&6
1.1 millert 3982: else
1.7.2.1 ! millert 3983: echo "$as_me:3983: result: no" >&5
! 3984: echo "${ECHO_T}no" >&6
1.1 millert 3985: fi
3986:
3987: # Extract the first word of "nroff", so it can be a program name with args.
3988: set dummy nroff; ac_word=$2
1.7.2.1 ! millert 3989: echo "$as_me:3989: checking for $ac_word" >&5
! 3990: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3991: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
! 3992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3993: else
3994: if test -n "$NROFFPROG"; then
3995: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
3996: else
1.7.2.1 ! millert 3997: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3998: ac_dummy="$PATH"
! 3999: for ac_dir in $ac_dummy; do
! 4000: IFS=$ac_save_IFS
! 4001: test -z "$ac_dir" && ac_dir=.
! 4002: $as_executable_p "$ac_dir/$ac_word" || continue
! 4003: ac_cv_prog_NROFFPROG="nroff"
! 4004: echo "$as_me:4004: found $ac_dir/$ac_word" >&5
! 4005: break
! 4006: done
! 4007:
1.1 millert 4008: fi
4009: fi
1.7.2.1 ! millert 4010: NROFFPROG=$ac_cv_prog_NROFFPROG
1.1 millert 4011: if test -n "$NROFFPROG"; then
1.7.2.1 ! millert 4012: echo "$as_me:4012: result: $NROFFPROG" >&5
! 4013: echo "${ECHO_T}$NROFFPROG" >&6
1.1 millert 4014: else
1.7.2.1 ! millert 4015: echo "$as_me:4015: result: no" >&5
! 4016: echo "${ECHO_T}no" >&6
1.1 millert 4017: fi
4018:
4019: if test -z "$NROFFPROG"; then
4020: MANTYPE="cat"
1.6 millert 4021: mansrcdir='$(srcdir)'
1.1 millert 4022: fi
4023:
4024: ac_aux_dir=
4025: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4026: if test -f $ac_dir/install-sh; then
4027: ac_aux_dir=$ac_dir
4028: ac_install_sh="$ac_aux_dir/install-sh -c"
4029: break
4030: elif test -f $ac_dir/install.sh; then
4031: ac_aux_dir=$ac_dir
4032: ac_install_sh="$ac_aux_dir/install.sh -c"
4033: break
1.7.2.1 ! millert 4034: elif test -f $ac_dir/shtool; then
! 4035: ac_aux_dir=$ac_dir
! 4036: ac_install_sh="$ac_aux_dir/shtool install -c"
! 4037: break
1.1 millert 4038: fi
4039: done
4040: if test -z "$ac_aux_dir"; then
1.7.2.1 ! millert 4041: { { echo "$as_me:4041: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 4042: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 4043: { (exit 1); exit 1; }; }
! 4044: fi
! 4045: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 4046: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 4047: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 millert 4048:
4049: # Make sure we can run config.sub.
1.7.2.1 ! millert 4050: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 4051: { { echo "$as_me:4051: error: cannot run $ac_config_sub" >&5
! 4052: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 4053: { (exit 1); exit 1; }; }
! 4054:
! 4055: echo "$as_me:4055: checking build system type" >&5
! 4056: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 4057: if test "${ac_cv_build+set}" = set; then
! 4058: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4059: else
! 4060: ac_cv_build_alias=$build_alias
! 4061: test -z "$ac_cv_build_alias" &&
! 4062: ac_cv_build_alias=`$ac_config_guess`
! 4063: test -z "$ac_cv_build_alias" &&
! 4064: { { echo "$as_me:4064: error: cannot guess build type; you must specify one" >&5
! 4065: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 4066: { (exit 1); exit 1; }; }
! 4067: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 4068: { { echo "$as_me:4068: error: $ac_config_sub $ac_cv_build_alias failed." >&5
! 4069: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
! 4070: { (exit 1); exit 1; }; }
! 4071:
! 4072: fi
! 4073: echo "$as_me:4073: result: $ac_cv_build" >&5
! 4074: echo "${ECHO_T}$ac_cv_build" >&6
! 4075: build=$ac_cv_build
! 4076: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4077: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4078: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 4079:
! 4080: echo "$as_me:4080: checking host system type" >&5
! 4081: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 4082: if test "${ac_cv_host+set}" = set; then
! 4083: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4084: else
! 4085: ac_cv_host_alias=$host_alias
! 4086: test -z "$ac_cv_host_alias" &&
! 4087: ac_cv_host_alias=$ac_cv_build_alias
! 4088: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 4089: { { echo "$as_me:4089: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 4090: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 4091: { (exit 1); exit 1; }; }
! 4092:
! 4093: fi
! 4094: echo "$as_me:4094: result: $ac_cv_host" >&5
! 4095: echo "${ECHO_T}$ac_cv_host" >&6
! 4096: host=$ac_cv_host
! 4097: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4098: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4099: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 millert 4100:
4101: if test -n "$sudo_cv_prev_host"; then
4102: if test "$sudo_cv_prev_host" != "$host"; then
4103: echo ""
4104: echo "Fatal Error: config.cache exists from another platform!"
4105: echo "Please remove it and re-run configure."
4106: echo ""
4107: exit 1
4108: else
1.7.2.1 ! millert 4109: echo "$as_me:4109: checking previous host type" >&5
! 4110: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
! 4111: if test "${sudo_cv_prev_host+set}" = set; then
! 4112: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4113: else
4114: sudo_cv_prev_host="$host"
4115: fi
4116:
4117: echo $sudo_cv_prev_host
4118: fi
4119: else
4120: # this will produce no output since there is no cached value
1.7.2.1 ! millert 4121: if test "${sudo_cv_prev_host+set}" = set; then
! 4122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4123: else
4124: sudo_cv_prev_host="$host"
4125: fi
4126:
4127: fi
4128:
4129: if test -n "$host_os"; then
4130: OS=`echo $host_os | sed 's/[0-9].*//'`
4131: OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
4132: else
4133: OS="unknown"
4134: OSREV=0
4135: fi
4136:
4137: case "$host" in
4138: *-*-sunos4*)
4139: # getcwd(3) opens a pipe to getpwd(1)!?!
4140: BROKEN_GETCWD=1
4141:
4142: # system headers lack prototypes but gcc helps...
4143: if test -n "$GCC"; then
4144: CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
4145: fi
4146:
4147: # check for password adjunct functions (shadow passwords)
4148: if test "$CHECKSHADOW" = "true"; then
4149:
1.7.2.1 ! millert 4150: for ac_func in getpwanam issecure
1.1 millert 4151: do
1.7.2.1 ! millert 4152: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4153: echo "$as_me:4153: checking for $ac_func" >&5
! 4154: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4155: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4156: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4157: else
1.7.2.1 ! millert 4158: cat >conftest.$ac_ext <<_ACEOF
! 4159: #line 4159 "configure"
1.1 millert 4160: #include "confdefs.h"
4161: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4162: which can conflict with char $ac_func (); below. */
1.1 millert 4163: #include <assert.h>
4164: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4165: #ifdef __cplusplus
! 4166: extern "C"
! 4167: #endif
1.1 millert 4168: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4169: builtin and then its argument prototype would still apply. */
! 4170: char $ac_func ();
! 4171: char (*f) ();
1.1 millert 4172:
1.7.2.1 ! millert 4173: int
! 4174: main ()
! 4175: {
1.1 millert 4176: /* The GNU C library defines this for functions which it implements
4177: to always fail with ENOSYS. Some functions are actually named
4178: something starting with __ and the normal name is an alias. */
4179: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4180: choke me
4181: #else
1.7.2.1 ! millert 4182: f = $ac_func;
1.1 millert 4183: #endif
4184:
1.7.2.1 ! millert 4185: ;
! 4186: return 0;
! 4187: }
! 4188: _ACEOF
! 4189: rm -f conftest.$ac_objext conftest$ac_exeext
! 4190: if { (eval echo "$as_me:4190: \"$ac_link\"") >&5
! 4191: (eval $ac_link) 2>&5
! 4192: ac_status=$?
! 4193: echo "$as_me:4193: \$? = $ac_status" >&5
! 4194: (exit $ac_status); } &&
! 4195: { ac_try='test -s conftest$ac_exeext'
! 4196: { (eval echo "$as_me:4196: \"$ac_try\"") >&5
! 4197: (eval $ac_try) 2>&5
! 4198: ac_status=$?
! 4199: echo "$as_me:4199: \$? = $ac_status" >&5
! 4200: (exit $ac_status); }; }; then
! 4201: eval "$as_ac_var=yes"
! 4202: else
! 4203: echo "$as_me: failed program was:" >&5
! 4204: cat conftest.$ac_ext >&5
! 4205: eval "$as_ac_var=no"
! 4206: fi
! 4207: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4208: fi
! 4209: echo "$as_me:4209: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4210: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4211: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4212: cat >>confdefs.h <<EOF
! 4213: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4214: EOF
4215:
4216: else
1.7.2.1 ! millert 4217: break
1.1 millert 4218: fi
4219: done
4220:
4221: CHECKSHADOW="false"
4222: fi
4223: ;;
4224: *-*-solaris2*)
4225: # To get the crypt(3) prototype (so we pass -Wall)
4226: CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
4227: # AFS support needs -lucb
4228: if test "$with_AFS" = "yes"; then
4229: AFS_LIBS="-lc -lucb"
4230: fi
1.7.2.1 ! millert 4231: test -n "$mansectsu" || mansectsu=1m
! 4232: test -n "$mansectform" || mansectform=4
1.1 millert 4233: ;;
4234: *-*-aix*)
4235: # To get all prototypes (so we pass -Wall)
4236: CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.7.2.1 ! millert 4237: cat >>confdefs.h <<\EOF
1.1 millert 4238: #define _ALL_SOURCE 1
4239: EOF
4240:
4241: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
4242: ;;
4243: *-*-hiuxmpp*)
4244: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 4245: echo "$as_me:4245: checking for getprpwnam in -lsec" >&5
! 4246: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
! 4247: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
! 4248: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4249: else
1.7.2.1 ! millert 4250: ac_check_lib_save_LIBS=$LIBS
! 4251: LIBS="-lsec $LIBS"
! 4252: cat >conftest.$ac_ext <<_ACEOF
! 4253: #line 4253 "configure"
! 4254: #include "confdefs.h"
1.1 millert 4255:
1.7.2.1 ! millert 4256: /* Override any gcc2 internal prototype to avoid an error. */
! 4257: #ifdef __cplusplus
! 4258: extern "C"
! 4259: #endif
! 4260: /* We use char because int might match the return type of a gcc2
! 4261: builtin and then its argument prototype would still apply. */
! 4262: char getprpwnam ();
! 4263: int
! 4264: main ()
! 4265: {
! 4266: getprpwnam ();
! 4267: ;
! 4268: return 0;
! 4269: }
! 4270: _ACEOF
! 4271: rm -f conftest.$ac_objext conftest$ac_exeext
! 4272: if { (eval echo "$as_me:4272: \"$ac_link\"") >&5
! 4273: (eval $ac_link) 2>&5
! 4274: ac_status=$?
! 4275: echo "$as_me:4275: \$? = $ac_status" >&5
! 4276: (exit $ac_status); } &&
! 4277: { ac_try='test -s conftest$ac_exeext'
! 4278: { (eval echo "$as_me:4278: \"$ac_try\"") >&5
! 4279: (eval $ac_try) 2>&5
! 4280: ac_status=$?
! 4281: echo "$as_me:4281: \$? = $ac_status" >&5
! 4282: (exit $ac_status); }; }; then
! 4283: ac_cv_lib_sec_getprpwnam=yes
! 4284: else
! 4285: echo "$as_me: failed program was:" >&5
! 4286: cat conftest.$ac_ext >&5
! 4287: ac_cv_lib_sec_getprpwnam=no
! 4288: fi
! 4289: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4290: LIBS=$ac_check_lib_save_LIBS
! 4291: fi
! 4292: echo "$as_me:4292: result: $ac_cv_lib_sec_getprpwnam" >&5
! 4293: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
! 4294: if test $ac_cv_lib_sec_getprpwnam = yes; then
! 4295: cat >>confdefs.h <<\EOF
1.1 millert 4296: #define HAVE_GETPRPWNAM 1
4297: EOF
4298: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4299: else
1.7.2.1 ! millert 4300: echo "$as_me:4300: checking for getprpwnam in -lsecurity" >&5
! 4301: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
! 4302: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
! 4303: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4304: else
1.7.2.1 ! millert 4305: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4306: LIBS="-lsecurity $LIBS"
1.7.2.1 ! millert 4307: cat >conftest.$ac_ext <<_ACEOF
! 4308: #line 4308 "configure"
1.1 millert 4309: #include "confdefs.h"
1.7.2.1 ! millert 4310:
1.1 millert 4311: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4312: #ifdef __cplusplus
! 4313: extern "C"
! 4314: #endif
1.1 millert 4315: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4316: builtin and then its argument prototype would still apply. */
! 4317: char getprpwnam ();
! 4318: int
! 4319: main ()
! 4320: {
! 4321: getprpwnam ();
! 4322: ;
! 4323: return 0;
! 4324: }
! 4325: _ACEOF
! 4326: rm -f conftest.$ac_objext conftest$ac_exeext
! 4327: if { (eval echo "$as_me:4327: \"$ac_link\"") >&5
! 4328: (eval $ac_link) 2>&5
! 4329: ac_status=$?
! 4330: echo "$as_me:4330: \$? = $ac_status" >&5
! 4331: (exit $ac_status); } &&
! 4332: { ac_try='test -s conftest$ac_exeext'
! 4333: { (eval echo "$as_me:4333: \"$ac_try\"") >&5
! 4334: (eval $ac_try) 2>&5
! 4335: ac_status=$?
! 4336: echo "$as_me:4336: \$? = $ac_status" >&5
! 4337: (exit $ac_status); }; }; then
! 4338: ac_cv_lib_security_getprpwnam=yes
! 4339: else
! 4340: echo "$as_me: failed program was:" >&5
! 4341: cat conftest.$ac_ext >&5
! 4342: ac_cv_lib_security_getprpwnam=no
! 4343: fi
! 4344: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4345: LIBS=$ac_check_lib_save_LIBS
! 4346: fi
! 4347: echo "$as_me:4347: result: $ac_cv_lib_security_getprpwnam" >&5
! 4348: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
! 4349: if test $ac_cv_lib_security_getprpwnam = yes; then
! 4350: cat >>confdefs.h <<\EOF
1.1 millert 4351: #define HAVE_GETPRPWNAM 1
4352: EOF
4353: SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
4354: fi
4355:
4356: fi
4357:
4358: CHECKSHADOW="false"
4359: fi
1.7.2.1 ! millert 4360: test -n "$mansectsu" || mansectsu=1m
! 4361: test -n "$mansectform" || mansectform=4
1.1 millert 4362: ;;
4363: *-*-hpux1[0-9]*)
4364: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 4365: echo "$as_me:4365: checking for getprpwnam in -lsec" >&5
! 4366: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
! 4367: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
! 4368: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4369: else
1.7.2.1 ! millert 4370: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4371: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 4372: cat >conftest.$ac_ext <<_ACEOF
! 4373: #line 4373 "configure"
1.1 millert 4374: #include "confdefs.h"
1.7.2.1 ! millert 4375:
1.1 millert 4376: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4377: #ifdef __cplusplus
! 4378: extern "C"
! 4379: #endif
1.1 millert 4380: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4381: builtin and then its argument prototype would still apply. */
! 4382: char getprpwnam ();
! 4383: int
! 4384: main ()
! 4385: {
! 4386: getprpwnam ();
! 4387: ;
! 4388: return 0;
! 4389: }
! 4390: _ACEOF
! 4391: rm -f conftest.$ac_objext conftest$ac_exeext
! 4392: if { (eval echo "$as_me:4392: \"$ac_link\"") >&5
! 4393: (eval $ac_link) 2>&5
! 4394: ac_status=$?
! 4395: echo "$as_me:4395: \$? = $ac_status" >&5
! 4396: (exit $ac_status); } &&
! 4397: { ac_try='test -s conftest$ac_exeext'
! 4398: { (eval echo "$as_me:4398: \"$ac_try\"") >&5
! 4399: (eval $ac_try) 2>&5
! 4400: ac_status=$?
! 4401: echo "$as_me:4401: \$? = $ac_status" >&5
! 4402: (exit $ac_status); }; }; then
! 4403: ac_cv_lib_sec_getprpwnam=yes
! 4404: else
! 4405: echo "$as_me: failed program was:" >&5
! 4406: cat conftest.$ac_ext >&5
! 4407: ac_cv_lib_sec_getprpwnam=no
! 4408: fi
! 4409: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4410: LIBS=$ac_check_lib_save_LIBS
! 4411: fi
! 4412: echo "$as_me:4412: result: $ac_cv_lib_sec_getprpwnam" >&5
! 4413: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
! 4414: if test $ac_cv_lib_sec_getprpwnam = yes; then
! 4415: cat >>confdefs.h <<\EOF
1.1 millert 4416: #define HAVE_GETPRPWNAM 1
4417: EOF
1.7.2.1 ! millert 4418: echo "$as_me:4418: checking for iscomsec in -lsec" >&5
! 4419: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
! 4420: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
! 4421: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4422: else
1.7.2.1 ! millert 4423: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4424: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 4425: cat >conftest.$ac_ext <<_ACEOF
! 4426: #line 4426 "configure"
1.1 millert 4427: #include "confdefs.h"
1.7.2.1 ! millert 4428:
1.1 millert 4429: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4430: #ifdef __cplusplus
! 4431: extern "C"
! 4432: #endif
1.1 millert 4433: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4434: builtin and then its argument prototype would still apply. */
! 4435: char iscomsec ();
! 4436: int
! 4437: main ()
! 4438: {
! 4439: iscomsec ();
! 4440: ;
! 4441: return 0;
! 4442: }
! 4443: _ACEOF
! 4444: rm -f conftest.$ac_objext conftest$ac_exeext
! 4445: if { (eval echo "$as_me:4445: \"$ac_link\"") >&5
! 4446: (eval $ac_link) 2>&5
! 4447: ac_status=$?
! 4448: echo "$as_me:4448: \$? = $ac_status" >&5
! 4449: (exit $ac_status); } &&
! 4450: { ac_try='test -s conftest$ac_exeext'
! 4451: { (eval echo "$as_me:4451: \"$ac_try\"") >&5
! 4452: (eval $ac_try) 2>&5
! 4453: ac_status=$?
! 4454: echo "$as_me:4454: \$? = $ac_status" >&5
! 4455: (exit $ac_status); }; }; then
! 4456: ac_cv_lib_sec_iscomsec=yes
! 4457: else
! 4458: echo "$as_me: failed program was:" >&5
! 4459: cat conftest.$ac_ext >&5
! 4460: ac_cv_lib_sec_iscomsec=no
! 4461: fi
! 4462: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4463: LIBS=$ac_check_lib_save_LIBS
! 4464: fi
! 4465: echo "$as_me:4465: result: $ac_cv_lib_sec_iscomsec" >&5
! 4466: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
! 4467: if test $ac_cv_lib_sec_iscomsec = yes; then
1.1 millert 4468:
1.7.2.1 ! millert 4469: cat >>confdefs.h <<\EOF
1.1 millert 4470: #define HAVE_ISCOMSEC 1
4471: EOF
4472:
4473: fi
4474: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4475: fi
4476:
4477: CHECKSHADOW="false"
4478: fi
4479:
4480: # AFS support needs -lBSD
4481: if test "$with_AFS" = "yes"; then
4482: AFS_LIBS="-lc -lBSD"
4483: fi
1.7.2.1 ! millert 4484: test -n "$mansectsu" || mansectsu=1m
! 4485: test -n "$mansectform" || mansectform=4
1.1 millert 4486: ;;
4487: *-*-hpux9*)
4488:
1.7.2.1 ! millert 4489: cat >>confdefs.h <<\EOF
1.1 millert 4490: #define BROKEN_SYSLOG 1
4491: EOF
4492:
4493: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 4494:
! 4495: for ac_func in getspwuid
1.1 millert 4496: do
1.7.2.1 ! millert 4497: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4498: echo "$as_me:4498: checking for $ac_func" >&5
! 4499: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4500: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4501: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4502: else
1.7.2.1 ! millert 4503: cat >conftest.$ac_ext <<_ACEOF
! 4504: #line 4504 "configure"
1.1 millert 4505: #include "confdefs.h"
4506: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4507: which can conflict with char $ac_func (); below. */
1.1 millert 4508: #include <assert.h>
4509: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4510: #ifdef __cplusplus
! 4511: extern "C"
! 4512: #endif
1.1 millert 4513: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4514: builtin and then its argument prototype would still apply. */
! 4515: char $ac_func ();
! 4516: char (*f) ();
1.1 millert 4517:
1.7.2.1 ! millert 4518: int
! 4519: main ()
! 4520: {
1.1 millert 4521: /* The GNU C library defines this for functions which it implements
4522: to always fail with ENOSYS. Some functions are actually named
4523: something starting with __ and the normal name is an alias. */
4524: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4525: choke me
4526: #else
1.7.2.1 ! millert 4527: f = $ac_func;
1.1 millert 4528: #endif
4529:
1.7.2.1 ! millert 4530: ;
! 4531: return 0;
! 4532: }
! 4533: _ACEOF
! 4534: rm -f conftest.$ac_objext conftest$ac_exeext
! 4535: if { (eval echo "$as_me:4535: \"$ac_link\"") >&5
! 4536: (eval $ac_link) 2>&5
! 4537: ac_status=$?
! 4538: echo "$as_me:4538: \$? = $ac_status" >&5
! 4539: (exit $ac_status); } &&
! 4540: { ac_try='test -s conftest$ac_exeext'
! 4541: { (eval echo "$as_me:4541: \"$ac_try\"") >&5
! 4542: (eval $ac_try) 2>&5
! 4543: ac_status=$?
! 4544: echo "$as_me:4544: \$? = $ac_status" >&5
! 4545: (exit $ac_status); }; }; then
! 4546: eval "$as_ac_var=yes"
! 4547: else
! 4548: echo "$as_me: failed program was:" >&5
! 4549: cat conftest.$ac_ext >&5
! 4550: eval "$as_ac_var=no"
! 4551: fi
! 4552: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4553: fi
! 4554: echo "$as_me:4554: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4555: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4556: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4557: cat >>confdefs.h <<EOF
! 4558: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4559: EOF
4560:
4561: fi
4562: done
4563:
4564: CHECKSHADOW="false"
4565: fi
4566:
4567: # DCE support (requires ANSI C compiler)
4568: if test "$with_DCE" = "yes"; then
4569: # order of libs in 9.X is important. -lc_r must be last
4570: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
4571: LIBS="${LIBS} -ldce -lM -lc_r"
1.4 millert 4572: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1 millert 4573: fi
4574:
4575: # AFS support needs -lBSD
4576: if test "$with_AFS" = "yes"; then
4577: AFS_LIBS="-lc -lBSD"
4578: fi
1.7.2.1 ! millert 4579: test -n "$mansectsu" || mansectsu=1m
! 4580: test -n "$mansectform" || mansectform=4
1.1 millert 4581: ;;
4582: *-*-hpux*)
1.7.2.1 ! millert 4583: cat >>confdefs.h <<\EOF
1.1 millert 4584: #define BROKEN_SYSLOG 1
4585: EOF
4586:
4587: # Not sure if setuid binaries are safe in < 9.x
4588: if test -n "$GCC"; then
4589: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
4590: else
4591: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
4592: fi
4593:
4594: # AFS support needs -lBSD
4595: if test "$with_AFS" = "yes"; then
4596: AFS_LIBS="-lc -lBSD"
4597: fi
1.7.2.1 ! millert 4598: test -n "$mansectsu" || mansectsu=1m
! 4599: test -n "$mansectform" || mansectform=4
1.1 millert 4600: ;;
4601: *-dec-osf*)
4602: # ignore envariables wrt dynamic lib path
4603: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
4604:
1.7.2.1 ! millert 4605: echo "$as_me:4605: checking whether to disable sia support on Digital UNIX" >&5
! 4606: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1 millert 4607: # Check whether --enable-sia or --disable-sia was given.
4608: if test "${enable_sia+set}" = set; then
4609: enableval="$enable_sia"
4610: case "$enableval" in
1.7.2.1 ! millert 4611: yes) echo "$as_me:4611: result: no" >&5
! 4612: echo "${ECHO_T}no" >&6
1.1 millert 4613: ;;
1.7.2.1 ! millert 4614: no) echo "$as_me:4614: result: yes" >&5
! 4615: echo "${ECHO_T}yes" >&6
1.1 millert 4616: CHECKSIA=false
4617: ;;
1.7.2.1 ! millert 4618: *) echo "$as_me:4618: result: no" >&5
! 4619: echo "${ECHO_T}no" >&6
1.1 millert 4620: echo "Ignoring unknown argument to --enable-sia: $enableval"
4621: ;;
4622: esac
4623:
1.7.2.1 ! millert 4624: else
! 4625: echo "$as_me:4625: result: no" >&5
! 4626: echo "${ECHO_T}no" >&6
! 4627: fi;
1.1 millert 4628:
4629: # use SIA by default, if we have it, else SecureWare
4630: # unless overridden on the command line
4631: if test "$CHECKSIA" = "true"; then
1.7.2.1 ! millert 4632: echo "$as_me:4632: checking for sia_ses_init" >&5
! 4633: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
! 4634: if test "${ac_cv_func_sia_ses_init+set}" = set; then
! 4635: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4636: else
1.7.2.1 ! millert 4637: cat >conftest.$ac_ext <<_ACEOF
! 4638: #line 4638 "configure"
1.1 millert 4639: #include "confdefs.h"
4640: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4641: which can conflict with char sia_ses_init (); below. */
1.1 millert 4642: #include <assert.h>
4643: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4644: #ifdef __cplusplus
! 4645: extern "C"
! 4646: #endif
1.1 millert 4647: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4648: builtin and then its argument prototype would still apply. */
! 4649: char sia_ses_init ();
! 4650: char (*f) ();
1.1 millert 4651:
1.7.2.1 ! millert 4652: int
! 4653: main ()
! 4654: {
1.1 millert 4655: /* The GNU C library defines this for functions which it implements
4656: to always fail with ENOSYS. Some functions are actually named
4657: something starting with __ and the normal name is an alias. */
4658: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
4659: choke me
4660: #else
1.7.2.1 ! millert 4661: f = sia_ses_init;
1.1 millert 4662: #endif
4663:
1.7.2.1 ! millert 4664: ;
! 4665: return 0;
! 4666: }
! 4667: _ACEOF
! 4668: rm -f conftest.$ac_objext conftest$ac_exeext
! 4669: if { (eval echo "$as_me:4669: \"$ac_link\"") >&5
! 4670: (eval $ac_link) 2>&5
! 4671: ac_status=$?
! 4672: echo "$as_me:4672: \$? = $ac_status" >&5
! 4673: (exit $ac_status); } &&
! 4674: { ac_try='test -s conftest$ac_exeext'
! 4675: { (eval echo "$as_me:4675: \"$ac_try\"") >&5
! 4676: (eval $ac_try) 2>&5
! 4677: ac_status=$?
! 4678: echo "$as_me:4678: \$? = $ac_status" >&5
! 4679: (exit $ac_status); }; }; then
! 4680: ac_cv_func_sia_ses_init=yes
! 4681: else
! 4682: echo "$as_me: failed program was:" >&5
! 4683: cat conftest.$ac_ext >&5
! 4684: ac_cv_func_sia_ses_init=no
! 4685: fi
! 4686: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4687: fi
! 4688: echo "$as_me:4688: result: $ac_cv_func_sia_ses_init" >&5
! 4689: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
! 4690: if test $ac_cv_func_sia_ses_init = yes; then
1.1 millert 4691:
1.7.2.1 ! millert 4692: cat >>confdefs.h <<\EOF
1.1 millert 4693: #define HAVE_SIA 1
4694: EOF
1.7.2.1 ! millert 4695:
1.1 millert 4696: if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
1.7.2.1 ! millert 4697: { { echo "$as_me:4697: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
! 4698: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
! 4699: { (exit 1); exit 1; }; }
1.1 millert 4700: fi; CHECKSHADOW=false
4701: fi
4702:
4703: fi
4704: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 4705: echo "$as_me:4705: checking for getprpwnam in -lsecurity" >&5
! 4706: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
! 4707: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
! 4708: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4709: else
1.7.2.1 ! millert 4710: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4711: LIBS="-lsecurity $LIBS"
1.7.2.1 ! millert 4712: cat >conftest.$ac_ext <<_ACEOF
! 4713: #line 4713 "configure"
1.1 millert 4714: #include "confdefs.h"
1.7.2.1 ! millert 4715:
1.1 millert 4716: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4717: #ifdef __cplusplus
! 4718: extern "C"
! 4719: #endif
1.1 millert 4720: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4721: builtin and then its argument prototype would still apply. */
! 4722: char getprpwnam ();
! 4723: int
! 4724: main ()
! 4725: {
! 4726: getprpwnam ();
! 4727: ;
! 4728: return 0;
! 4729: }
! 4730: _ACEOF
! 4731: rm -f conftest.$ac_objext conftest$ac_exeext
! 4732: if { (eval echo "$as_me:4732: \"$ac_link\"") >&5
! 4733: (eval $ac_link) 2>&5
! 4734: ac_status=$?
! 4735: echo "$as_me:4735: \$? = $ac_status" >&5
! 4736: (exit $ac_status); } &&
! 4737: { ac_try='test -s conftest$ac_exeext'
! 4738: { (eval echo "$as_me:4738: \"$ac_try\"") >&5
! 4739: (eval $ac_try) 2>&5
! 4740: ac_status=$?
! 4741: echo "$as_me:4741: \$? = $ac_status" >&5
! 4742: (exit $ac_status); }; }; then
! 4743: ac_cv_lib_security_getprpwnam=yes
! 4744: else
! 4745: echo "$as_me: failed program was:" >&5
! 4746: cat conftest.$ac_ext >&5
! 4747: ac_cv_lib_security_getprpwnam=no
! 4748: fi
! 4749: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4750: LIBS=$ac_check_lib_save_LIBS
! 4751: fi
! 4752: echo "$as_me:4752: result: $ac_cv_lib_security_getprpwnam" >&5
! 4753: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
! 4754: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1 millert 4755: SECUREWARE=1
4756: fi
4757:
4758: CHECKSHADOW="false"
4759: fi
4760:
4761: if test -n "$SECUREWARE"; then
1.7.2.1 ! millert 4762:
! 4763: cat >>confdefs.h <<\EOF
1.1 millert 4764: #define HAVE_GETPRPWNAM 1
4765: EOF
4766:
4767: # -ldb includes bogus versions of snprintf/vsnprintf
1.7.2.1 ! millert 4768:
! 4769: for ac_func in snprintf
! 4770: do
! 4771: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4772: echo "$as_me:4772: checking for $ac_func" >&5
! 4773: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4774: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4776: else
1.7.2.1 ! millert 4777: cat >conftest.$ac_ext <<_ACEOF
! 4778: #line 4778 "configure"
1.1 millert 4779: #include "confdefs.h"
4780: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4781: which can conflict with char $ac_func (); below. */
1.1 millert 4782: #include <assert.h>
4783: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4784: #ifdef __cplusplus
! 4785: extern "C"
! 4786: #endif
1.1 millert 4787: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4788: builtin and then its argument prototype would still apply. */
! 4789: char $ac_func ();
! 4790: char (*f) ();
1.1 millert 4791:
1.7.2.1 ! millert 4792: int
! 4793: main ()
! 4794: {
1.1 millert 4795: /* The GNU C library defines this for functions which it implements
4796: to always fail with ENOSYS. Some functions are actually named
4797: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 4798: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 4799: choke me
4800: #else
1.7.2.1 ! millert 4801: f = $ac_func;
1.1 millert 4802: #endif
4803:
1.7.2.1 ! millert 4804: ;
! 4805: return 0;
! 4806: }
! 4807: _ACEOF
! 4808: rm -f conftest.$ac_objext conftest$ac_exeext
! 4809: if { (eval echo "$as_me:4809: \"$ac_link\"") >&5
! 4810: (eval $ac_link) 2>&5
! 4811: ac_status=$?
! 4812: echo "$as_me:4812: \$? = $ac_status" >&5
! 4813: (exit $ac_status); } &&
! 4814: { ac_try='test -s conftest$ac_exeext'
! 4815: { (eval echo "$as_me:4815: \"$ac_try\"") >&5
! 4816: (eval $ac_try) 2>&5
! 4817: ac_status=$?
! 4818: echo "$as_me:4818: \$? = $ac_status" >&5
! 4819: (exit $ac_status); }; }; then
! 4820: eval "$as_ac_var=yes"
! 4821: else
! 4822: echo "$as_me: failed program was:" >&5
! 4823: cat conftest.$ac_ext >&5
! 4824: eval "$as_ac_var=no"
! 4825: fi
! 4826: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4827: fi
! 4828: echo "$as_me:4828: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4829: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4830: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4831: cat >>confdefs.h <<EOF
! 4832: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4833: EOF
4834:
4835: else
1.7.2.1 ! millert 4836: NEED_SNPRINTF=1
1.1 millert 4837: fi
1.7.2.1 ! millert 4838: done
1.1 millert 4839:
1.7.2.1 ! millert 4840: for ac_func in vsnprintf
! 4841: do
! 4842: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4843: echo "$as_me:4843: checking for $ac_func" >&5
! 4844: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4845: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4846: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4847: else
1.7.2.1 ! millert 4848: cat >conftest.$ac_ext <<_ACEOF
! 4849: #line 4849 "configure"
1.1 millert 4850: #include "confdefs.h"
4851: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4852: which can conflict with char $ac_func (); below. */
1.1 millert 4853: #include <assert.h>
4854: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4855: #ifdef __cplusplus
! 4856: extern "C"
! 4857: #endif
1.1 millert 4858: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4859: builtin and then its argument prototype would still apply. */
! 4860: char $ac_func ();
! 4861: char (*f) ();
1.1 millert 4862:
1.7.2.1 ! millert 4863: int
! 4864: main ()
! 4865: {
1.1 millert 4866: /* The GNU C library defines this for functions which it implements
4867: to always fail with ENOSYS. Some functions are actually named
4868: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 4869: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 4870: choke me
4871: #else
1.7.2.1 ! millert 4872: f = $ac_func;
1.1 millert 4873: #endif
4874:
1.7.2.1 ! millert 4875: ;
! 4876: return 0;
! 4877: }
! 4878: _ACEOF
! 4879: rm -f conftest.$ac_objext conftest$ac_exeext
! 4880: if { (eval echo "$as_me:4880: \"$ac_link\"") >&5
! 4881: (eval $ac_link) 2>&5
! 4882: ac_status=$?
! 4883: echo "$as_me:4883: \$? = $ac_status" >&5
! 4884: (exit $ac_status); } &&
! 4885: { ac_try='test -s conftest$ac_exeext'
! 4886: { (eval echo "$as_me:4886: \"$ac_try\"") >&5
! 4887: (eval $ac_try) 2>&5
! 4888: ac_status=$?
! 4889: echo "$as_me:4889: \$? = $ac_status" >&5
! 4890: (exit $ac_status); }; }; then
! 4891: eval "$as_ac_var=yes"
! 4892: else
! 4893: echo "$as_me: failed program was:" >&5
! 4894: cat conftest.$ac_ext >&5
! 4895: eval "$as_ac_var=no"
! 4896: fi
! 4897: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4898: fi
! 4899: echo "$as_me:4899: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4900: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4901: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4902: cat >>confdefs.h <<EOF
! 4903: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4904: EOF
4905:
4906: else
1.7.2.1 ! millert 4907: NEED_SNPRINTF=1
1.1 millert 4908: fi
1.7.2.1 ! millert 4909: done
1.1 millert 4910:
4911: # 4.x and higher need -ldb too...
1.7.2.1 ! millert 4912: echo "$as_me:4912: checking for dbopen in -ldb" >&5
! 4913: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
! 4914: if test "${ac_cv_lib_db_dbopen+set}" = set; then
! 4915: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4916: else
1.7.2.1 ! millert 4917: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4918: LIBS="-ldb $LIBS"
1.7.2.1 ! millert 4919: cat >conftest.$ac_ext <<_ACEOF
! 4920: #line 4920 "configure"
1.1 millert 4921: #include "confdefs.h"
1.7.2.1 ! millert 4922:
1.1 millert 4923: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4924: #ifdef __cplusplus
! 4925: extern "C"
! 4926: #endif
1.1 millert 4927: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4928: builtin and then its argument prototype would still apply. */
! 4929: char dbopen ();
! 4930: int
! 4931: main ()
! 4932: {
! 4933: dbopen ();
! 4934: ;
! 4935: return 0;
! 4936: }
! 4937: _ACEOF
! 4938: rm -f conftest.$ac_objext conftest$ac_exeext
! 4939: if { (eval echo "$as_me:4939: \"$ac_link\"") >&5
! 4940: (eval $ac_link) 2>&5
! 4941: ac_status=$?
! 4942: echo "$as_me:4942: \$? = $ac_status" >&5
! 4943: (exit $ac_status); } &&
! 4944: { ac_try='test -s conftest$ac_exeext'
! 4945: { (eval echo "$as_me:4945: \"$ac_try\"") >&5
! 4946: (eval $ac_try) 2>&5
! 4947: ac_status=$?
! 4948: echo "$as_me:4948: \$? = $ac_status" >&5
! 4949: (exit $ac_status); }; }; then
! 4950: ac_cv_lib_db_dbopen=yes
! 4951: else
! 4952: echo "$as_me: failed program was:" >&5
! 4953: cat conftest.$ac_ext >&5
! 4954: ac_cv_lib_db_dbopen=no
! 4955: fi
! 4956: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4957: LIBS=$ac_check_lib_save_LIBS
! 4958: fi
! 4959: echo "$as_me:4959: result: $ac_cv_lib_db_dbopen" >&5
! 4960: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
! 4961: if test $ac_cv_lib_db_dbopen = yes; then
1.1 millert 4962: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
4963: else
1.7.2.1 ! millert 4964: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1 millert 4965: fi
4966:
1.7.2.1 ! millert 4967: for ac_func in dispcrypt
1.1 millert 4968: do
1.7.2.1 ! millert 4969: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4970: echo "$as_me:4970: checking for $ac_func" >&5
! 4971: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4972: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4973: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4974: else
1.7.2.1 ! millert 4975: cat >conftest.$ac_ext <<_ACEOF
! 4976: #line 4976 "configure"
1.1 millert 4977: #include "confdefs.h"
4978: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 4979: which can conflict with char $ac_func (); below. */
1.1 millert 4980: #include <assert.h>
4981: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 4982: #ifdef __cplusplus
! 4983: extern "C"
! 4984: #endif
1.1 millert 4985: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 4986: builtin and then its argument prototype would still apply. */
! 4987: char $ac_func ();
! 4988: char (*f) ();
1.1 millert 4989:
1.7.2.1 ! millert 4990: int
! 4991: main ()
! 4992: {
1.1 millert 4993: /* The GNU C library defines this for functions which it implements
4994: to always fail with ENOSYS. Some functions are actually named
4995: something starting with __ and the normal name is an alias. */
4996: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4997: choke me
4998: #else
1.7.2.1 ! millert 4999: f = $ac_func;
1.1 millert 5000: #endif
5001:
1.7.2.1 ! millert 5002: ;
! 5003: return 0;
! 5004: }
! 5005: _ACEOF
! 5006: rm -f conftest.$ac_objext conftest$ac_exeext
! 5007: if { (eval echo "$as_me:5007: \"$ac_link\"") >&5
! 5008: (eval $ac_link) 2>&5
! 5009: ac_status=$?
! 5010: echo "$as_me:5010: \$? = $ac_status" >&5
! 5011: (exit $ac_status); } &&
! 5012: { ac_try='test -s conftest$ac_exeext'
! 5013: { (eval echo "$as_me:5013: \"$ac_try\"") >&5
! 5014: (eval $ac_try) 2>&5
! 5015: ac_status=$?
! 5016: echo "$as_me:5016: \$? = $ac_status" >&5
! 5017: (exit $ac_status); }; }; then
! 5018: eval "$as_ac_var=yes"
! 5019: else
! 5020: echo "$as_me: failed program was:" >&5
! 5021: cat conftest.$ac_ext >&5
! 5022: eval "$as_ac_var=no"
! 5023: fi
! 5024: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5025: fi
! 5026: echo "$as_me:5026: result: `eval echo '${'$as_ac_var'}'`" >&5
! 5027: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 5028: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 5029: cat >>confdefs.h <<EOF
! 5030: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5031: EOF
5032:
5033: fi
5034: done
5035:
1.7.2.1 ! millert 5036: echo "$as_me:5036: checking for broken /usr/include/prot.h" >&5
! 5037: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
! 5038: cat >conftest.$ac_ext <<_ACEOF
! 5039: #line 5039 "configure"
1.1 millert 5040: #include "confdefs.h"
5041:
5042: #include <sys/types.h>
5043: #include <sys/security.h>
5044: #include <prot.h>
1.7.2.1 ! millert 5045:
! 5046: int
! 5047: main ()
! 5048: {
1.1 millert 5049: exit(0);
1.7.2.1 ! millert 5050: ;
! 5051: return 0;
! 5052: }
! 5053: _ACEOF
! 5054: rm -f conftest.$ac_objext
! 5055: if { (eval echo "$as_me:5055: \"$ac_compile\"") >&5
! 5056: (eval $ac_compile) 2>&5
! 5057: ac_status=$?
! 5058: echo "$as_me:5058: \$? = $ac_status" >&5
! 5059: (exit $ac_status); } &&
! 5060: { ac_try='test -s conftest.$ac_objext'
! 5061: { (eval echo "$as_me:5061: \"$ac_try\"") >&5
! 5062: (eval $ac_try) 2>&5
! 5063: ac_status=$?
! 5064: echo "$as_me:5064: \$? = $ac_status" >&5
! 5065: (exit $ac_status); }; }; then
! 5066: echo "$as_me:5066: result: no" >&5
! 5067: echo "${ECHO_T}no" >&6
! 5068: else
! 5069: echo "$as_me: failed program was:" >&5
! 5070: cat conftest.$ac_ext >&5
! 5071: echo "$as_me:5071: result: yes, fixing locally" >&5
! 5072: echo "${ECHO_T}yes, fixing locally" >&6
1.1 millert 5073: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.7.2.1 ! millert 5074:
1.1 millert 5075: fi
1.7.2.1 ! millert 5076: rm -f conftest.$ac_objext conftest.$ac_ext
! 5077: elif test "$CHECKSIA" = "true"; then
1.1 millert 5078: with_passwd=no
5079: AUTH_OBJS="sia.o"
5080: fi
1.7.2.1 ! millert 5081: test -n "$mansectsu" || mansectsu=8
! 5082: test -n "$mansectform" || mansectform=4
1.1 millert 5083: ;;
5084: *-*-irix*)
5085: CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
5086: if test -z "$NROFFPROG"; then
5087: MAN_POSTINSTALL=' /bin/rm -f $(mandir8)/sudo.$(mansect8).z $(mandir8)/visudo.$(mansect8).z $(mandir5)/sudoers.$(mansect5).z ; /usr/bin/pack $(mandir8)/sudo.$(mansect8) $(mandir8)/visudo.$(mansect8) $(mandir5)/sudoers.$(mansect5)'
5088: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5089: if test -d /usr/share/catman/local; then
5090: mandir="/usr/share/catman/local"
5091: else
5092: mandir="/usr/catman/local"
5093: fi
5094: fi
5095: else
5096: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5097: if test -d "/usr/share/man/local"; then
5098: mandir="/usr/share/man/local"
5099: else
5100: mandir="/usr/man/local"
5101: fi
5102: fi
5103: fi
5104: # IRIX <= 4 needs -lsun
5105: if test "$OSREV" -le 4; then
1.7.2.1 ! millert 5106: echo "$as_me:5106: checking for getpwnam in -lsun" >&5
! 5107: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
! 5108: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
! 5109: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5110: else
1.7.2.1 ! millert 5111: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5112: LIBS="-lsun $LIBS"
1.7.2.1 ! millert 5113: cat >conftest.$ac_ext <<_ACEOF
! 5114: #line 5114 "configure"
1.1 millert 5115: #include "confdefs.h"
1.7.2.1 ! millert 5116:
1.1 millert 5117: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5118: #ifdef __cplusplus
! 5119: extern "C"
! 5120: #endif
1.1 millert 5121: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5122: builtin and then its argument prototype would still apply. */
! 5123: char getpwnam ();
! 5124: int
! 5125: main ()
! 5126: {
! 5127: getpwnam ();
! 5128: ;
! 5129: return 0;
! 5130: }
! 5131: _ACEOF
! 5132: rm -f conftest.$ac_objext conftest$ac_exeext
! 5133: if { (eval echo "$as_me:5133: \"$ac_link\"") >&5
! 5134: (eval $ac_link) 2>&5
! 5135: ac_status=$?
! 5136: echo "$as_me:5136: \$? = $ac_status" >&5
! 5137: (exit $ac_status); } &&
! 5138: { ac_try='test -s conftest$ac_exeext'
! 5139: { (eval echo "$as_me:5139: \"$ac_try\"") >&5
! 5140: (eval $ac_try) 2>&5
! 5141: ac_status=$?
! 5142: echo "$as_me:5142: \$? = $ac_status" >&5
! 5143: (exit $ac_status); }; }; then
! 5144: ac_cv_lib_sun_getpwnam=yes
! 5145: else
! 5146: echo "$as_me: failed program was:" >&5
! 5147: cat conftest.$ac_ext >&5
! 5148: ac_cv_lib_sun_getpwnam=no
! 5149: fi
! 5150: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5151: LIBS=$ac_check_lib_save_LIBS
! 5152: fi
! 5153: echo "$as_me:5153: result: $ac_cv_lib_sun_getpwnam" >&5
! 5154: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
! 5155: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1 millert 5156: LIBS="${LIBS} -lsun"
5157: fi
5158:
5159: fi
1.7.2.1 ! millert 5160: test -n "$mansectsu" || mansectsu=1m
! 5161: test -n "$mansectform" || mansectform=4
1.1 millert 5162: ;;
5163: *-*-linux*)
5164: # Some Linux versions need to link with -lshadow
5165: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5166:
! 5167: for ac_func in getspnam
! 5168: do
! 5169: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 5170: echo "$as_me:5170: checking for $ac_func" >&5
! 5171: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 5172: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 5173: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5174: else
1.7.2.1 ! millert 5175: cat >conftest.$ac_ext <<_ACEOF
! 5176: #line 5176 "configure"
1.1 millert 5177: #include "confdefs.h"
5178: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 5179: which can conflict with char $ac_func (); below. */
1.1 millert 5180: #include <assert.h>
5181: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5182: #ifdef __cplusplus
! 5183: extern "C"
! 5184: #endif
1.1 millert 5185: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5186: builtin and then its argument prototype would still apply. */
! 5187: char $ac_func ();
! 5188: char (*f) ();
1.1 millert 5189:
1.7.2.1 ! millert 5190: int
! 5191: main ()
! 5192: {
1.1 millert 5193: /* The GNU C library defines this for functions which it implements
5194: to always fail with ENOSYS. Some functions are actually named
5195: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 5196: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5197: choke me
5198: #else
1.7.2.1 ! millert 5199: f = $ac_func;
1.1 millert 5200: #endif
5201:
1.7.2.1 ! millert 5202: ;
! 5203: return 0;
! 5204: }
! 5205: _ACEOF
! 5206: rm -f conftest.$ac_objext conftest$ac_exeext
! 5207: if { (eval echo "$as_me:5207: \"$ac_link\"") >&5
! 5208: (eval $ac_link) 2>&5
! 5209: ac_status=$?
! 5210: echo "$as_me:5210: \$? = $ac_status" >&5
! 5211: (exit $ac_status); } &&
! 5212: { ac_try='test -s conftest$ac_exeext'
! 5213: { (eval echo "$as_me:5213: \"$ac_try\"") >&5
! 5214: (eval $ac_try) 2>&5
! 5215: ac_status=$?
! 5216: echo "$as_me:5216: \$? = $ac_status" >&5
! 5217: (exit $ac_status); }; }; then
! 5218: eval "$as_ac_var=yes"
! 5219: else
! 5220: echo "$as_me: failed program was:" >&5
! 5221: cat conftest.$ac_ext >&5
! 5222: eval "$as_ac_var=no"
! 5223: fi
! 5224: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5225: fi
! 5226: echo "$as_me:5226: result: `eval echo '${'$as_ac_var'}'`" >&5
! 5227: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 5228: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 5229: cat >>confdefs.h <<EOF
! 5230: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5231: EOF
5232:
5233: else
1.7.2.1 ! millert 5234: echo "$as_me:5234: checking for getspnam in -lshadow" >&5
! 5235: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
! 5236: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
! 5237: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5238: else
1.7.2.1 ! millert 5239: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5240: LIBS="-lshadow $LIBS"
1.7.2.1 ! millert 5241: cat >conftest.$ac_ext <<_ACEOF
! 5242: #line 5242 "configure"
1.1 millert 5243: #include "confdefs.h"
5244:
1.7.2.1 ! millert 5245: /* Override any gcc2 internal prototype to avoid an error. */
! 5246: #ifdef __cplusplus
! 5247: extern "C"
! 5248: #endif
! 5249: /* We use char because int might match the return type of a gcc2
! 5250: builtin and then its argument prototype would still apply. */
! 5251: char getspnam ();
! 5252: int
! 5253: main ()
! 5254: {
! 5255: getspnam ();
! 5256: ;
! 5257: return 0;
! 5258: }
! 5259: _ACEOF
! 5260: rm -f conftest.$ac_objext conftest$ac_exeext
! 5261: if { (eval echo "$as_me:5261: \"$ac_link\"") >&5
! 5262: (eval $ac_link) 2>&5
! 5263: ac_status=$?
! 5264: echo "$as_me:5264: \$? = $ac_status" >&5
! 5265: (exit $ac_status); } &&
! 5266: { ac_try='test -s conftest$ac_exeext'
! 5267: { (eval echo "$as_me:5267: \"$ac_try\"") >&5
! 5268: (eval $ac_try) 2>&5
! 5269: ac_status=$?
! 5270: echo "$as_me:5270: \$? = $ac_status" >&5
! 5271: (exit $ac_status); }; }; then
! 5272: ac_cv_lib_shadow_getspnam=yes
! 5273: else
! 5274: echo "$as_me: failed program was:" >&5
! 5275: cat conftest.$ac_ext >&5
! 5276: ac_cv_lib_shadow_getspnam=no
! 5277: fi
! 5278: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5279: LIBS=$ac_check_lib_save_LIBS
! 5280: fi
! 5281: echo "$as_me:5281: result: $ac_cv_lib_shadow_getspnam" >&5
! 5282: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
! 5283: if test $ac_cv_lib_shadow_getspnam = yes; then
! 5284: cat >>confdefs.h <<\EOF
1.1 millert 5285: #define HAVE_GETSPNAM 1
5286: EOF
5287: SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
5288: fi
5289:
5290: fi
1.7.2.1 ! millert 5291: done
1.1 millert 5292:
5293: CHECKSHADOW="false"
5294: fi
5295: ;;
5296: *-convex-bsd*)
1.7.2.1 ! millert 5297: cat >>confdefs.h <<\EOF
1.1 millert 5298: #define _CONVEX_SOURCE 1
5299: EOF
5300:
5301: if test -z "$GCC"; then
5302: CFLAGS="${CFLAGS} -D__STDC__"
5303: fi
5304:
5305: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5306: echo "$as_me:5306: checking for getprpwnam in -lsec" >&5
! 5307: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
! 5308: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
! 5309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5310: else
1.7.2.1 ! millert 5311: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5312: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 5313: cat >conftest.$ac_ext <<_ACEOF
! 5314: #line 5314 "configure"
1.1 millert 5315: #include "confdefs.h"
1.7.2.1 ! millert 5316:
1.1 millert 5317: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5318: #ifdef __cplusplus
! 5319: extern "C"
! 5320: #endif
1.1 millert 5321: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5322: builtin and then its argument prototype would still apply. */
! 5323: char getprpwnam ();
! 5324: int
! 5325: main ()
! 5326: {
! 5327: getprpwnam ();
! 5328: ;
! 5329: return 0;
! 5330: }
! 5331: _ACEOF
! 5332: rm -f conftest.$ac_objext conftest$ac_exeext
! 5333: if { (eval echo "$as_me:5333: \"$ac_link\"") >&5
! 5334: (eval $ac_link) 2>&5
! 5335: ac_status=$?
! 5336: echo "$as_me:5336: \$? = $ac_status" >&5
! 5337: (exit $ac_status); } &&
! 5338: { ac_try='test -s conftest$ac_exeext'
! 5339: { (eval echo "$as_me:5339: \"$ac_try\"") >&5
! 5340: (eval $ac_try) 2>&5
! 5341: ac_status=$?
! 5342: echo "$as_me:5342: \$? = $ac_status" >&5
! 5343: (exit $ac_status); }; }; then
! 5344: ac_cv_lib_sec_getprpwnam=yes
! 5345: else
! 5346: echo "$as_me: failed program was:" >&5
! 5347: cat conftest.$ac_ext >&5
! 5348: ac_cv_lib_sec_getprpwnam=no
! 5349: fi
! 5350: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5351: LIBS=$ac_check_lib_save_LIBS
! 5352: fi
! 5353: echo "$as_me:5353: result: $ac_cv_lib_sec_getprpwnam" >&5
! 5354: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
! 5355: if test $ac_cv_lib_sec_getprpwnam = yes; then
! 5356: cat >>confdefs.h <<\EOF
1.1 millert 5357: #define HAVE_GETPRPWNAM 1
5358: EOF
5359: SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
5360: fi
5361:
5362: CHECKSHADOW="false"
5363: fi
5364: ;;
5365: *-*-ultrix*)
5366: OS="ultrix"
5367: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5368: echo "$as_me:5368: checking for getauthuid in -lauth" >&5
! 5369: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
! 5370: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
! 5371: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5372: else
1.7.2.1 ! millert 5373: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5374: LIBS="-lauth $LIBS"
1.7.2.1 ! millert 5375: cat >conftest.$ac_ext <<_ACEOF
! 5376: #line 5376 "configure"
1.1 millert 5377: #include "confdefs.h"
1.7.2.1 ! millert 5378:
1.1 millert 5379: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5380: #ifdef __cplusplus
! 5381: extern "C"
! 5382: #endif
1.1 millert 5383: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5384: builtin and then its argument prototype would still apply. */
! 5385: char getauthuid ();
! 5386: int
! 5387: main ()
! 5388: {
! 5389: getauthuid ();
! 5390: ;
! 5391: return 0;
! 5392: }
! 5393: _ACEOF
! 5394: rm -f conftest.$ac_objext conftest$ac_exeext
! 5395: if { (eval echo "$as_me:5395: \"$ac_link\"") >&5
! 5396: (eval $ac_link) 2>&5
! 5397: ac_status=$?
! 5398: echo "$as_me:5398: \$? = $ac_status" >&5
! 5399: (exit $ac_status); } &&
! 5400: { ac_try='test -s conftest$ac_exeext'
! 5401: { (eval echo "$as_me:5401: \"$ac_try\"") >&5
! 5402: (eval $ac_try) 2>&5
! 5403: ac_status=$?
! 5404: echo "$as_me:5404: \$? = $ac_status" >&5
! 5405: (exit $ac_status); }; }; then
! 5406: ac_cv_lib_auth_getauthuid=yes
! 5407: else
! 5408: echo "$as_me: failed program was:" >&5
! 5409: cat conftest.$ac_ext >&5
! 5410: ac_cv_lib_auth_getauthuid=no
! 5411: fi
! 5412: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5413: LIBS=$ac_check_lib_save_LIBS
! 5414: fi
! 5415: echo "$as_me:5415: result: $ac_cv_lib_auth_getauthuid" >&5
! 5416: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
! 5417: if test $ac_cv_lib_auth_getauthuid = yes; then
1.1 millert 5418:
1.7.2.1 ! millert 5419: cat >>confdefs.h <<\EOF
1.1 millert 5420: #define HAVE_GETAUTHUID 1
5421: EOF
5422: SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
5423: fi
5424:
5425: CHECKSHADOW="false"
5426: fi
5427: ;;
5428: *-*-riscos*)
5429: LIBS="${LIBS} -lsun -lbsd"
5430: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
5431: OSDEFS="${OSDEFS} -D_MIPS"
1.7.2.1 ! millert 5432: test -n "$mansectsu" || mansectsu=1m
! 5433: test -n "$mansectform" || mansectform=4
1.1 millert 5434: ;;
5435: *-*-isc*)
5436: OSDEFS="${OSDEFS} -D_ISC"
5437: LIB_CRYPT=1
5438: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
5439: LIBS="${LIBS} -lcrypt"
5440:
5441: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5442: echo "$as_me:5442: checking for getspnam in -lsec" >&5
! 5443: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
! 5444: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
! 5445: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5446: else
1.7.2.1 ! millert 5447: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5448: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 5449: cat >conftest.$ac_ext <<_ACEOF
! 5450: #line 5450 "configure"
1.1 millert 5451: #include "confdefs.h"
1.7.2.1 ! millert 5452:
1.1 millert 5453: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5454: #ifdef __cplusplus
! 5455: extern "C"
! 5456: #endif
1.1 millert 5457: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5458: builtin and then its argument prototype would still apply. */
! 5459: char getspnam ();
! 5460: int
! 5461: main ()
! 5462: {
! 5463: getspnam ();
! 5464: ;
! 5465: return 0;
! 5466: }
! 5467: _ACEOF
! 5468: rm -f conftest.$ac_objext conftest$ac_exeext
! 5469: if { (eval echo "$as_me:5469: \"$ac_link\"") >&5
! 5470: (eval $ac_link) 2>&5
! 5471: ac_status=$?
! 5472: echo "$as_me:5472: \$? = $ac_status" >&5
! 5473: (exit $ac_status); } &&
! 5474: { ac_try='test -s conftest$ac_exeext'
! 5475: { (eval echo "$as_me:5475: \"$ac_try\"") >&5
! 5476: (eval $ac_try) 2>&5
! 5477: ac_status=$?
! 5478: echo "$as_me:5478: \$? = $ac_status" >&5
! 5479: (exit $ac_status); }; }; then
! 5480: ac_cv_lib_sec_getspnam=yes
! 5481: else
! 5482: echo "$as_me: failed program was:" >&5
! 5483: cat conftest.$ac_ext >&5
! 5484: ac_cv_lib_sec_getspnam=no
! 5485: fi
! 5486: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5487: LIBS=$ac_check_lib_save_LIBS
! 5488: fi
! 5489: echo "$as_me:5489: result: $ac_cv_lib_sec_getspnam" >&5
! 5490: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
! 5491: if test $ac_cv_lib_sec_getspnam = yes; then
! 5492: cat >>confdefs.h <<\EOF
1.1 millert 5493: #define HAVE_GETSPNAM 1
5494: EOF
5495: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5496: fi
5497:
5498: CHECKSHADOW="false"
5499: fi
1.7.2.1 ! millert 5500: test -n "$mansectsu" || mansectsu=1m
! 5501: test -n "$mansectform" || mansectform=4
1.1 millert 5502: ;;
1.7.2.1 ! millert 5503: *-*-sco*|*-sco-*)
1.1 millert 5504: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5505: echo "$as_me:5505: checking for getprpwnam in -lprot" >&5
! 5506: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
! 5507: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
! 5508: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5509: else
1.7.2.1 ! millert 5510: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5511: LIBS="-lprot -lx $LIBS"
1.7.2.1 ! millert 5512: cat >conftest.$ac_ext <<_ACEOF
! 5513: #line 5513 "configure"
1.1 millert 5514: #include "confdefs.h"
1.7.2.1 ! millert 5515:
1.1 millert 5516: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5517: #ifdef __cplusplus
! 5518: extern "C"
! 5519: #endif
1.1 millert 5520: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5521: builtin and then its argument prototype would still apply. */
! 5522: char getprpwnam ();
! 5523: int
! 5524: main ()
! 5525: {
! 5526: getprpwnam ();
! 5527: ;
! 5528: return 0;
! 5529: }
! 5530: _ACEOF
! 5531: rm -f conftest.$ac_objext conftest$ac_exeext
! 5532: if { (eval echo "$as_me:5532: \"$ac_link\"") >&5
! 5533: (eval $ac_link) 2>&5
! 5534: ac_status=$?
! 5535: echo "$as_me:5535: \$? = $ac_status" >&5
! 5536: (exit $ac_status); } &&
! 5537: { ac_try='test -s conftest$ac_exeext'
! 5538: { (eval echo "$as_me:5538: \"$ac_try\"") >&5
! 5539: (eval $ac_try) 2>&5
! 5540: ac_status=$?
! 5541: echo "$as_me:5541: \$? = $ac_status" >&5
! 5542: (exit $ac_status); }; }; then
! 5543: ac_cv_lib_prot_getprpwnam_lx=yes
! 5544: else
! 5545: echo "$as_me: failed program was:" >&5
! 5546: cat conftest.$ac_ext >&5
! 5547: ac_cv_lib_prot_getprpwnam_lx=no
! 5548: fi
! 5549: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5550: LIBS=$ac_check_lib_save_LIBS
! 5551: fi
! 5552: echo "$as_me:5552: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
! 5553: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
! 5554: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
! 5555: cat >>confdefs.h <<\EOF
1.1 millert 5556: #define HAVE_GETPRPWNAM 1
5557: EOF
5558: SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
5559: fi
5560:
1.7.2.1 ! millert 5561: echo "$as_me:5561: checking for getspnam in -lgen" >&5
! 5562: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
! 5563: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
! 5564: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5565: else
1.7.2.1 ! millert 5566: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5567: LIBS="-lgen $LIBS"
1.7.2.1 ! millert 5568: cat >conftest.$ac_ext <<_ACEOF
! 5569: #line 5569 "configure"
1.1 millert 5570: #include "confdefs.h"
1.7.2.1 ! millert 5571:
1.1 millert 5572: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5573: #ifdef __cplusplus
! 5574: extern "C"
! 5575: #endif
1.1 millert 5576: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5577: builtin and then its argument prototype would still apply. */
! 5578: char getspnam ();
! 5579: int
! 5580: main ()
! 5581: {
! 5582: getspnam ();
! 5583: ;
! 5584: return 0;
! 5585: }
! 5586: _ACEOF
! 5587: rm -f conftest.$ac_objext conftest$ac_exeext
! 5588: if { (eval echo "$as_me:5588: \"$ac_link\"") >&5
! 5589: (eval $ac_link) 2>&5
! 5590: ac_status=$?
! 5591: echo "$as_me:5591: \$? = $ac_status" >&5
! 5592: (exit $ac_status); } &&
! 5593: { ac_try='test -s conftest$ac_exeext'
! 5594: { (eval echo "$as_me:5594: \"$ac_try\"") >&5
! 5595: (eval $ac_try) 2>&5
! 5596: ac_status=$?
! 5597: echo "$as_me:5597: \$? = $ac_status" >&5
! 5598: (exit $ac_status); }; }; then
! 5599: ac_cv_lib_gen_getspnam=yes
! 5600: else
! 5601: echo "$as_me: failed program was:" >&5
! 5602: cat conftest.$ac_ext >&5
! 5603: ac_cv_lib_gen_getspnam=no
! 5604: fi
! 5605: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5606: LIBS=$ac_check_lib_save_LIBS
! 5607: fi
! 5608: echo "$as_me:5608: result: $ac_cv_lib_gen_getspnam" >&5
! 5609: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
! 5610: if test $ac_cv_lib_gen_getspnam = yes; then
! 5611: cat >>confdefs.h <<\EOF
1.1 millert 5612: #define HAVE_GETSPNAM 1
5613: EOF
5614: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5615: fi
5616:
5617: CHECKSHADOW="false"
5618: fi
1.7.2.1 ! millert 5619: test -n "$mansectsu" || mansectsu=1m
! 5620: test -n "$mansectform" || mansectform=4
! 5621: ;;
! 5622: m88k-motorola-sysv*)
! 5623: # motorolla's cc (a variant of gcc) does -O but not -O2
! 5624: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
! 5625: test -n "$mansectsu" || mansectsu=1m
! 5626: test -n "$mansectform" || mansectform=4
1.1 millert 5627: ;;
5628: *-sequent-sysv*)
5629: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5630: echo "$as_me:5630: checking for getspnam in -lsec" >&5
! 5631: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
! 5632: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
! 5633: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5634: else
1.7.2.1 ! millert 5635: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5636: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 5637: cat >conftest.$ac_ext <<_ACEOF
! 5638: #line 5638 "configure"
1.1 millert 5639: #include "confdefs.h"
1.7.2.1 ! millert 5640:
1.1 millert 5641: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5642: #ifdef __cplusplus
! 5643: extern "C"
! 5644: #endif
1.1 millert 5645: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5646: builtin and then its argument prototype would still apply. */
! 5647: char getspnam ();
! 5648: int
! 5649: main ()
! 5650: {
! 5651: getspnam ();
! 5652: ;
! 5653: return 0;
! 5654: }
! 5655: _ACEOF
! 5656: rm -f conftest.$ac_objext conftest$ac_exeext
! 5657: if { (eval echo "$as_me:5657: \"$ac_link\"") >&5
! 5658: (eval $ac_link) 2>&5
! 5659: ac_status=$?
! 5660: echo "$as_me:5660: \$? = $ac_status" >&5
! 5661: (exit $ac_status); } &&
! 5662: { ac_try='test -s conftest$ac_exeext'
! 5663: { (eval echo "$as_me:5663: \"$ac_try\"") >&5
! 5664: (eval $ac_try) 2>&5
! 5665: ac_status=$?
! 5666: echo "$as_me:5666: \$? = $ac_status" >&5
! 5667: (exit $ac_status); }; }; then
! 5668: ac_cv_lib_sec_getspnam=yes
! 5669: else
! 5670: echo "$as_me: failed program was:" >&5
! 5671: cat conftest.$ac_ext >&5
! 5672: ac_cv_lib_sec_getspnam=no
! 5673: fi
! 5674: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5675: LIBS=$ac_check_lib_save_LIBS
! 5676: fi
! 5677: echo "$as_me:5677: result: $ac_cv_lib_sec_getspnam" >&5
! 5678: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
! 5679: if test $ac_cv_lib_sec_getspnam = yes; then
! 5680: cat >>confdefs.h <<\EOF
1.1 millert 5681: #define HAVE_GETSPNAM 1
5682: EOF
5683: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5684: fi
5685:
5686: CHECKSHADOW="false"
5687: fi
1.7.2.1 ! millert 5688: test -n "$mansectsu" || mansectsu=1m
! 5689: test -n "$mansectform" || mansectform=4
! 5690: ;;
! 5691: *-ncr-sysv4*|*-ncr-sysvr4*)
! 5692: echo "$as_me:5692: checking for strcasecmp in -lc89" >&5
! 5693: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
! 5694: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
! 5695: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5696: else
! 5697: ac_check_lib_save_LIBS=$LIBS
! 5698: LIBS="-lc89 $LIBS"
! 5699: cat >conftest.$ac_ext <<_ACEOF
! 5700: #line 5700 "configure"
! 5701: #include "confdefs.h"
! 5702:
! 5703: /* Override any gcc2 internal prototype to avoid an error. */
! 5704: #ifdef __cplusplus
! 5705: extern "C"
! 5706: #endif
! 5707: /* We use char because int might match the return type of a gcc2
! 5708: builtin and then its argument prototype would still apply. */
! 5709: char strcasecmp ();
! 5710: int
! 5711: main ()
! 5712: {
! 5713: strcasecmp ();
! 5714: ;
! 5715: return 0;
! 5716: }
! 5717: _ACEOF
! 5718: rm -f conftest.$ac_objext conftest$ac_exeext
! 5719: if { (eval echo "$as_me:5719: \"$ac_link\"") >&5
! 5720: (eval $ac_link) 2>&5
! 5721: ac_status=$?
! 5722: echo "$as_me:5722: \$? = $ac_status" >&5
! 5723: (exit $ac_status); } &&
! 5724: { ac_try='test -s conftest$ac_exeext'
! 5725: { (eval echo "$as_me:5725: \"$ac_try\"") >&5
! 5726: (eval $ac_try) 2>&5
! 5727: ac_status=$?
! 5728: echo "$as_me:5728: \$? = $ac_status" >&5
! 5729: (exit $ac_status); }; }; then
! 5730: ac_cv_lib_c89_strcasecmp=yes
! 5731: else
! 5732: echo "$as_me: failed program was:" >&5
! 5733: cat conftest.$ac_ext >&5
! 5734: ac_cv_lib_c89_strcasecmp=no
! 5735: fi
! 5736: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5737: LIBS=$ac_check_lib_save_LIBS
! 5738: fi
! 5739: echo "$as_me:5739: result: $ac_cv_lib_c89_strcasecmp" >&5
! 5740: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
! 5741: if test $ac_cv_lib_c89_strcasecmp = yes; then
! 5742: cat >>confdefs.h <<\EOF
! 5743: #define HAVE_STRCASECMP 1
! 5744: EOF
! 5745: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
! 5746: fi
! 5747:
! 5748: test -n "$mansectsu" || mansectsu=1m
! 5749: test -n "$mansectform" || mansectform=4
1.1 millert 5750: ;;
1.7.2.1 ! millert 5751: *-ccur-sysv4*|*-ccur-sysvr4*)
1.1 millert 5752: LIBS="${LIBS} -lgen"
5753: SUDO_LIBS="${SUDO_LIBS} -lgen"
1.7.2.1 ! millert 5754: test -n "$mansectsu" || mansectsu=1m
! 5755: test -n "$mansectform" || mansectform=4
1.1 millert 5756: ;;
5757: *-*-bsdi*)
1.6 millert 5758: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
5759: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
5760: case "$OSREV" in
5761: 2|3) echo 'using shlicc as CC'
5762: ac_cv_prog_CC=shlicc
5763: CC="$ac_cv_prog_CC"
5764: ;;
5765: esac
5766: fi
5767: ;;
5768: *-*-freebsd*)
1.7 millert 5769: if test "$with_logincap" = "yes"; then
5770: SUDO_LIBS="${SUDO_LIBS} -lutil"
5771: fi
1.6 millert 5772: if test "$with_skey" = "yes"; then
5773: SUDO_LIBS="${SUDO_LIBS} -lmd"
5774: fi
5775: if test "$CHECKSHADOW" = "true"; then
5776: CHECKSHADOW="false"
1.1 millert 5777: fi
5778: ;;
1.7.2.1 ! millert 5779: *-*-*openbsd*)
! 5780: BROKEN_SETREUID=yes
! 5781: if test "$CHECKSHADOW" = "true"; then
! 5782: CHECKSHADOW="false"
! 5783: fi
! 5784: ;;
! 5785: *-*-*netbsd*)
! 5786: BROKEN_SETREUID=yes
! 5787: if test "$CHECKSHADOW" = "true"; then
! 5788: CHECKSHADOW="false"
! 5789: fi
! 5790: ;;
1.1 millert 5791: *-*-*bsd*)
5792: if test "$CHECKSHADOW" = "true"; then
5793: CHECKSHADOW="false"
5794: fi
5795: ;;
1.7.2.1 ! millert 5796: *-*-nextstep*)
! 5797: # lockf() on is broken on the NeXT -- use flock instead
! 5798: ac_cv_func_lockf=no
! 5799: ac_cv_func_flock=yes
! 5800: ;;
1.6 millert 5801: *-*-sysv*)
1.7.2.1 ! millert 5802: test -n "$mansectsu" || mansectsu=1m
! 5803: test -n "$mansectform" || mansectform=4
1.6 millert 5804: ;;
1.1 millert 5805: esac
5806:
1.6 millert 5807: test -n "$mansectsu" || mansectsu=8
5808: test -n "$mansectform" || mansectform=5
5809:
1.1 millert 5810: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5811:
! 5812: for ac_func in getspnam
! 5813: do
! 5814: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 5815: echo "$as_me:5815: checking for $ac_func" >&5
! 5816: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 5817: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 5818: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5819: else
1.7.2.1 ! millert 5820: cat >conftest.$ac_ext <<_ACEOF
! 5821: #line 5821 "configure"
1.1 millert 5822: #include "confdefs.h"
5823: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 5824: which can conflict with char $ac_func (); below. */
1.1 millert 5825: #include <assert.h>
5826: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5827: #ifdef __cplusplus
! 5828: extern "C"
! 5829: #endif
1.1 millert 5830: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5831: builtin and then its argument prototype would still apply. */
! 5832: char $ac_func ();
! 5833: char (*f) ();
1.1 millert 5834:
1.7.2.1 ! millert 5835: int
! 5836: main ()
! 5837: {
1.1 millert 5838: /* The GNU C library defines this for functions which it implements
5839: to always fail with ENOSYS. Some functions are actually named
5840: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 5841: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5842: choke me
5843: #else
1.7.2.1 ! millert 5844: f = $ac_func;
1.1 millert 5845: #endif
5846:
1.7.2.1 ! millert 5847: ;
! 5848: return 0;
! 5849: }
! 5850: _ACEOF
! 5851: rm -f conftest.$ac_objext conftest$ac_exeext
! 5852: if { (eval echo "$as_me:5852: \"$ac_link\"") >&5
! 5853: (eval $ac_link) 2>&5
! 5854: ac_status=$?
! 5855: echo "$as_me:5855: \$? = $ac_status" >&5
! 5856: (exit $ac_status); } &&
! 5857: { ac_try='test -s conftest$ac_exeext'
! 5858: { (eval echo "$as_me:5858: \"$ac_try\"") >&5
! 5859: (eval $ac_try) 2>&5
! 5860: ac_status=$?
! 5861: echo "$as_me:5861: \$? = $ac_status" >&5
! 5862: (exit $ac_status); }; }; then
! 5863: eval "$as_ac_var=yes"
! 5864: else
! 5865: echo "$as_me: failed program was:" >&5
! 5866: cat conftest.$ac_ext >&5
! 5867: eval "$as_ac_var=no"
! 5868: fi
! 5869: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5870: fi
! 5871: echo "$as_me:5871: result: `eval echo '${'$as_ac_var'}'`" >&5
! 5872: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 5873: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 5874: cat >>confdefs.h <<EOF
! 5875: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5876: EOF
1.7.2.1 ! millert 5877: CHECKSHADOW="false"
1.1 millert 5878: else
1.7.2.1 ! millert 5879: echo "$as_me:5879: checking for getspnam in -lgen" >&5
! 5880: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
! 5881: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
! 5882: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5883: else
! 5884: ac_check_lib_save_LIBS=$LIBS
! 5885: LIBS="-lgen $LIBS"
! 5886: cat >conftest.$ac_ext <<_ACEOF
! 5887: #line 5887 "configure"
! 5888: #include "confdefs.h"
! 5889:
! 5890: /* Override any gcc2 internal prototype to avoid an error. */
! 5891: #ifdef __cplusplus
! 5892: extern "C"
! 5893: #endif
! 5894: /* We use char because int might match the return type of a gcc2
! 5895: builtin and then its argument prototype would still apply. */
! 5896: char getspnam ();
! 5897: int
! 5898: main ()
! 5899: {
! 5900: getspnam ();
! 5901: ;
! 5902: return 0;
! 5903: }
! 5904: _ACEOF
! 5905: rm -f conftest.$ac_objext conftest$ac_exeext
! 5906: if { (eval echo "$as_me:5906: \"$ac_link\"") >&5
! 5907: (eval $ac_link) 2>&5
! 5908: ac_status=$?
! 5909: echo "$as_me:5909: \$? = $ac_status" >&5
! 5910: (exit $ac_status); } &&
! 5911: { ac_try='test -s conftest$ac_exeext'
! 5912: { (eval echo "$as_me:5912: \"$ac_try\"") >&5
! 5913: (eval $ac_try) 2>&5
! 5914: ac_status=$?
! 5915: echo "$as_me:5915: \$? = $ac_status" >&5
! 5916: (exit $ac_status); }; }; then
! 5917: ac_cv_lib_gen_getspnam=yes
! 5918: else
! 5919: echo "$as_me: failed program was:" >&5
! 5920: cat conftest.$ac_ext >&5
! 5921: ac_cv_lib_gen_getspnam=no
! 5922: fi
! 5923: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5924: LIBS=$ac_check_lib_save_LIBS
! 5925: fi
! 5926: echo "$as_me:5926: result: $ac_cv_lib_gen_getspnam" >&5
! 5927: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
! 5928: if test $ac_cv_lib_gen_getspnam = yes; then
1.1 millert 5929:
1.7.2.1 ! millert 5930: cat >>confdefs.h <<\EOF
1.1 millert 5931: #define HAVE_GETSPNAM 1
5932: EOF
1.7.2.1 ! millert 5933: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
! 5934: fi
! 5935:
1.1 millert 5936: fi
1.7.2.1 ! millert 5937: done
1.1 millert 5938:
5939: fi
5940: if test "$CHECKSHADOW" = "true"; then
1.7.2.1 ! millert 5941: echo "$as_me:5941: checking for getprpwnam" >&5
! 5942: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
! 5943: if test "${ac_cv_func_getprpwnam+set}" = set; then
! 5944: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5945: else
1.7.2.1 ! millert 5946: cat >conftest.$ac_ext <<_ACEOF
! 5947: #line 5947 "configure"
1.1 millert 5948: #include "confdefs.h"
5949: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 5950: which can conflict with char getprpwnam (); below. */
1.1 millert 5951: #include <assert.h>
5952: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 5953: #ifdef __cplusplus
! 5954: extern "C"
! 5955: #endif
1.1 millert 5956: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 5957: builtin and then its argument prototype would still apply. */
! 5958: char getprpwnam ();
! 5959: char (*f) ();
1.1 millert 5960:
1.7.2.1 ! millert 5961: int
! 5962: main ()
! 5963: {
1.1 millert 5964: /* The GNU C library defines this for functions which it implements
5965: to always fail with ENOSYS. Some functions are actually named
5966: something starting with __ and the normal name is an alias. */
5967: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
5968: choke me
5969: #else
1.7.2.1 ! millert 5970: f = getprpwnam;
1.1 millert 5971: #endif
5972:
1.7.2.1 ! millert 5973: ;
! 5974: return 0;
! 5975: }
! 5976: _ACEOF
! 5977: rm -f conftest.$ac_objext conftest$ac_exeext
! 5978: if { (eval echo "$as_me:5978: \"$ac_link\"") >&5
! 5979: (eval $ac_link) 2>&5
! 5980: ac_status=$?
! 5981: echo "$as_me:5981: \$? = $ac_status" >&5
! 5982: (exit $ac_status); } &&
! 5983: { ac_try='test -s conftest$ac_exeext'
! 5984: { (eval echo "$as_me:5984: \"$ac_try\"") >&5
! 5985: (eval $ac_try) 2>&5
! 5986: ac_status=$?
! 5987: echo "$as_me:5987: \$? = $ac_status" >&5
! 5988: (exit $ac_status); }; }; then
! 5989: ac_cv_func_getprpwnam=yes
! 5990: else
! 5991: echo "$as_me: failed program was:" >&5
! 5992: cat conftest.$ac_ext >&5
! 5993: ac_cv_func_getprpwnam=no
! 5994: fi
! 5995: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5996: fi
! 5997: echo "$as_me:5997: result: $ac_cv_func_getprpwnam" >&5
! 5998: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
! 5999: if test $ac_cv_func_getprpwnam = yes; then
! 6000: cat >>confdefs.h <<\EOF
1.1 millert 6001: #define HAVE_GETPRPWNAM 1
6002: EOF
1.7.2.1 ! millert 6003: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:6003: checking for getprpwnam in -lsec" >&5
! 6004: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
! 6005: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
! 6006: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6007: else
1.7.2.1 ! millert 6008: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6009: LIBS="-lsec $LIBS"
1.7.2.1 ! millert 6010: cat >conftest.$ac_ext <<_ACEOF
! 6011: #line 6011 "configure"
1.1 millert 6012: #include "confdefs.h"
1.7.2.1 ! millert 6013:
1.1 millert 6014: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 6015: #ifdef __cplusplus
! 6016: extern "C"
! 6017: #endif
1.1 millert 6018: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 6019: builtin and then its argument prototype would still apply. */
! 6020: char getprpwnam ();
! 6021: int
! 6022: main ()
! 6023: {
! 6024: getprpwnam ();
! 6025: ;
! 6026: return 0;
! 6027: }
! 6028: _ACEOF
! 6029: rm -f conftest.$ac_objext conftest$ac_exeext
! 6030: if { (eval echo "$as_me:6030: \"$ac_link\"") >&5
! 6031: (eval $ac_link) 2>&5
! 6032: ac_status=$?
! 6033: echo "$as_me:6033: \$? = $ac_status" >&5
! 6034: (exit $ac_status); } &&
! 6035: { ac_try='test -s conftest$ac_exeext'
! 6036: { (eval echo "$as_me:6036: \"$ac_try\"") >&5
! 6037: (eval $ac_try) 2>&5
! 6038: ac_status=$?
! 6039: echo "$as_me:6039: \$? = $ac_status" >&5
! 6040: (exit $ac_status); }; }; then
! 6041: ac_cv_lib_sec_getprpwnam=yes
! 6042: else
! 6043: echo "$as_me: failed program was:" >&5
! 6044: cat conftest.$ac_ext >&5
! 6045: ac_cv_lib_sec_getprpwnam=no
! 6046: fi
! 6047: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6048: LIBS=$ac_check_lib_save_LIBS
! 6049: fi
! 6050: echo "$as_me:6050: result: $ac_cv_lib_sec_getprpwnam" >&5
! 6051: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
! 6052: if test $ac_cv_lib_sec_getprpwnam = yes; then
! 6053: cat >>confdefs.h <<\EOF
1.1 millert 6054: #define HAVE_GETPRPWNAM 1
6055: EOF
6056: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6057: else
1.7.2.1 ! millert 6058: echo "$as_me:6058: checking for getprpwnam in -lsecurity" >&5
! 6059: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
! 6060: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
! 6061: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6062: else
1.7.2.1 ! millert 6063: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6064: LIBS="-lsecurity $LIBS"
1.7.2.1 ! millert 6065: cat >conftest.$ac_ext <<_ACEOF
! 6066: #line 6066 "configure"
1.1 millert 6067: #include "confdefs.h"
1.7.2.1 ! millert 6068:
1.1 millert 6069: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 6070: #ifdef __cplusplus
! 6071: extern "C"
! 6072: #endif
1.1 millert 6073: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 6074: builtin and then its argument prototype would still apply. */
! 6075: char getprpwnam ();
! 6076: int
! 6077: main ()
! 6078: {
! 6079: getprpwnam ();
! 6080: ;
! 6081: return 0;
! 6082: }
! 6083: _ACEOF
! 6084: rm -f conftest.$ac_objext conftest$ac_exeext
! 6085: if { (eval echo "$as_me:6085: \"$ac_link\"") >&5
! 6086: (eval $ac_link) 2>&5
! 6087: ac_status=$?
! 6088: echo "$as_me:6088: \$? = $ac_status" >&5
! 6089: (exit $ac_status); } &&
! 6090: { ac_try='test -s conftest$ac_exeext'
! 6091: { (eval echo "$as_me:6091: \"$ac_try\"") >&5
! 6092: (eval $ac_try) 2>&5
! 6093: ac_status=$?
! 6094: echo "$as_me:6094: \$? = $ac_status" >&5
! 6095: (exit $ac_status); }; }; then
! 6096: ac_cv_lib_security_getprpwnam=yes
! 6097: else
! 6098: echo "$as_me: failed program was:" >&5
! 6099: cat conftest.$ac_ext >&5
! 6100: ac_cv_lib_security_getprpwnam=no
! 6101: fi
! 6102: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6103: LIBS=$ac_check_lib_save_LIBS
! 6104: fi
! 6105: echo "$as_me:6105: result: $ac_cv_lib_security_getprpwnam" >&5
! 6106: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
! 6107: if test $ac_cv_lib_security_getprpwnam = yes; then
! 6108: cat >>confdefs.h <<\EOF
1.1 millert 6109: #define HAVE_GETPRPWNAM 1
6110: EOF
6111: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
6112: else
1.7.2.1 ! millert 6113: echo "$as_me:6113: checking for getprpwnam in -lprot" >&5
! 6114: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
! 6115: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
! 6116: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6117: else
1.7.2.1 ! millert 6118: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6119: LIBS="-lprot $LIBS"
1.7.2.1 ! millert 6120: cat >conftest.$ac_ext <<_ACEOF
! 6121: #line 6121 "configure"
1.1 millert 6122: #include "confdefs.h"
1.7.2.1 ! millert 6123:
1.1 millert 6124: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 6125: #ifdef __cplusplus
! 6126: extern "C"
! 6127: #endif
1.1 millert 6128: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 6129: builtin and then its argument prototype would still apply. */
! 6130: char getprpwnam ();
! 6131: int
! 6132: main ()
! 6133: {
! 6134: getprpwnam ();
! 6135: ;
! 6136: return 0;
! 6137: }
! 6138: _ACEOF
! 6139: rm -f conftest.$ac_objext conftest$ac_exeext
! 6140: if { (eval echo "$as_me:6140: \"$ac_link\"") >&5
! 6141: (eval $ac_link) 2>&5
! 6142: ac_status=$?
! 6143: echo "$as_me:6143: \$? = $ac_status" >&5
! 6144: (exit $ac_status); } &&
! 6145: { ac_try='test -s conftest$ac_exeext'
! 6146: { (eval echo "$as_me:6146: \"$ac_try\"") >&5
! 6147: (eval $ac_try) 2>&5
! 6148: ac_status=$?
! 6149: echo "$as_me:6149: \$? = $ac_status" >&5
! 6150: (exit $ac_status); }; }; then
! 6151: ac_cv_lib_prot_getprpwnam=yes
! 6152: else
! 6153: echo "$as_me: failed program was:" >&5
! 6154: cat conftest.$ac_ext >&5
! 6155: ac_cv_lib_prot_getprpwnam=no
! 6156: fi
! 6157: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6158: LIBS=$ac_check_lib_save_LIBS
! 6159: fi
! 6160: echo "$as_me:6160: result: $ac_cv_lib_prot_getprpwnam" >&5
! 6161: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
! 6162: if test $ac_cv_lib_prot_getprpwnam = yes; then
! 6163: cat >>confdefs.h <<\EOF
1.1 millert 6164: #define HAVE_GETPRPWNAM 1
6165: EOF
6166: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
6167: fi
6168:
6169: fi
6170:
6171: fi
6172:
6173: fi
6174:
6175: fi
6176:
1.7.2.1 ! millert 6177: if test $ac_cv_c_compiler_gnu = yes; then
! 6178: echo "$as_me:6178: checking whether $CC needs -traditional" >&5
! 6179: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
! 6180: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
! 6181: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6182: else
6183: ac_pattern="Autoconf.*'x'"
1.7.2.1 ! millert 6184: cat >conftest.$ac_ext <<_ACEOF
! 6185: #line 6185 "configure"
1.1 millert 6186: #include "confdefs.h"
6187: #include <sgtty.h>
6188: Autoconf TIOCGETP
1.7.2.1 ! millert 6189: _ACEOF
1.1 millert 6190: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191: egrep "$ac_pattern" >/dev/null 2>&1; then
6192: ac_cv_prog_gcc_traditional=yes
6193: else
6194: ac_cv_prog_gcc_traditional=no
6195: fi
6196: rm -f conftest*
6197:
6198: if test $ac_cv_prog_gcc_traditional = no; then
1.7.2.1 ! millert 6199: cat >conftest.$ac_ext <<_ACEOF
! 6200: #line 6200 "configure"
1.1 millert 6201: #include "confdefs.h"
6202: #include <termio.h>
6203: Autoconf TCGETA
1.7.2.1 ! millert 6204: _ACEOF
1.1 millert 6205: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206: egrep "$ac_pattern" >/dev/null 2>&1; then
6207: ac_cv_prog_gcc_traditional=yes
6208: fi
6209: rm -f conftest*
6210:
6211: fi
6212: fi
1.7.2.1 ! millert 6213: echo "$as_me:6213: result: $ac_cv_prog_gcc_traditional" >&5
! 6214: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1 millert 6215: if test $ac_cv_prog_gcc_traditional = yes; then
6216: CC="$CC -traditional"
6217: fi
6218: fi
6219:
1.7.2.1 ! millert 6220: echo "$as_me:6220: checking for an ANSI C-conforming const" >&5
! 6221: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
! 6222: if test "${ac_cv_c_const+set}" = set; then
! 6223: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6224: else
! 6225: cat >conftest.$ac_ext <<_ACEOF
! 6226: #line 6226 "configure"
! 6227: #include "confdefs.h"
1.1 millert 6228:
1.7.2.1 ! millert 6229: int
! 6230: main ()
! 6231: {
! 6232: /* FIXME: Include the comments suggested by Paul. */
! 6233: #ifndef __cplusplus
! 6234: /* Ultrix mips cc rejects this. */
! 6235: typedef int charset[2];
! 6236: const charset x;
! 6237: /* SunOS 4.1.1 cc rejects this. */
! 6238: char const *const *ccp;
! 6239: char **p;
! 6240: /* NEC SVR4.0.2 mips cc rejects this. */
! 6241: struct point {int x, y;};
! 6242: static struct point const zero = {0,0};
! 6243: /* AIX XL C 1.02.0.0 rejects this.
! 6244: It does not let you subtract one const X* pointer from another in
! 6245: an arm of an if-expression whose if-part is not a constant
! 6246: expression */
! 6247: const char *g = "string";
! 6248: ccp = &g + (g ? g-g : 0);
! 6249: /* HPUX 7.0 cc rejects these. */
! 6250: ++ccp;
! 6251: p = (char**) ccp;
! 6252: ccp = (char const *const *) p;
! 6253: { /* SCO 3.2v4 cc rejects this. */
! 6254: char *t;
! 6255: char const *s = 0 ? (char *) 0 : (char const *) 0;
! 6256:
! 6257: *t++ = 0;
! 6258: }
! 6259: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
! 6260: int x[] = {25, 17};
! 6261: const int *foo = &x[0];
! 6262: ++foo;
! 6263: }
! 6264: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
! 6265: typedef const int *iptr;
! 6266: iptr p = 0;
! 6267: ++p;
! 6268: }
! 6269: { /* AIX XL C 1.02.0.0 rejects this saying
! 6270: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
! 6271: struct s { int j; const int *ap[3]; };
! 6272: struct s *b; b->j = 5;
! 6273: }
! 6274: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
! 6275: const int foo = 10;
! 6276: }
! 6277: #endif
! 6278:
! 6279: ;
! 6280: return 0;
! 6281: }
! 6282: _ACEOF
! 6283: rm -f conftest.$ac_objext
! 6284: if { (eval echo "$as_me:6284: \"$ac_compile\"") >&5
! 6285: (eval $ac_compile) 2>&5
! 6286: ac_status=$?
! 6287: echo "$as_me:6287: \$? = $ac_status" >&5
! 6288: (exit $ac_status); } &&
! 6289: { ac_try='test -s conftest.$ac_objext'
! 6290: { (eval echo "$as_me:6290: \"$ac_try\"") >&5
! 6291: (eval $ac_try) 2>&5
! 6292: ac_status=$?
! 6293: echo "$as_me:6293: \$? = $ac_status" >&5
! 6294: (exit $ac_status); }; }; then
1.1 millert 6295: ac_cv_c_const=yes
6296: else
1.7.2.1 ! millert 6297: echo "$as_me: failed program was:" >&5
! 6298: cat conftest.$ac_ext >&5
! 6299: ac_cv_c_const=no
1.1 millert 6300: fi
1.7.2.1 ! millert 6301: rm -f conftest.$ac_objext conftest.$ac_ext
! 6302: fi
! 6303: echo "$as_me:6303: result: $ac_cv_c_const" >&5
! 6304: echo "${ECHO_T}$ac_cv_c_const" >&6
! 6305: if test $ac_cv_c_const = no; then
! 6306:
! 6307: cat >>confdefs.h <<\EOF
! 6308: #define const
! 6309: EOF
! 6310:
1.1 millert 6311: fi
6312:
1.7.2.1 ! millert 6313: echo "$as_me:6313: checking for working volatile" >&5
! 6314: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
! 6315: if test "${ac_cv_c_volatile+set}" = set; then
! 6316: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6317: else
! 6318: cat >conftest.$ac_ext <<_ACEOF
! 6319: #line 6319 "configure"
! 6320: #include "confdefs.h"
! 6321:
! 6322: int
! 6323: main ()
! 6324: {
! 6325:
! 6326: volatile int x;
! 6327: int * volatile y;
! 6328: ;
! 6329: return 0;
! 6330: }
! 6331: _ACEOF
! 6332: rm -f conftest.$ac_objext
! 6333: if { (eval echo "$as_me:6333: \"$ac_compile\"") >&5
! 6334: (eval $ac_compile) 2>&5
! 6335: ac_status=$?
! 6336: echo "$as_me:6336: \$? = $ac_status" >&5
! 6337: (exit $ac_status); } &&
! 6338: { ac_try='test -s conftest.$ac_objext'
! 6339: { (eval echo "$as_me:6339: \"$ac_try\"") >&5
! 6340: (eval $ac_try) 2>&5
! 6341: ac_status=$?
! 6342: echo "$as_me:6342: \$? = $ac_status" >&5
! 6343: (exit $ac_status); }; }; then
! 6344: ac_cv_c_volatile=yes
! 6345: else
! 6346: echo "$as_me: failed program was:" >&5
! 6347: cat conftest.$ac_ext >&5
! 6348: ac_cv_c_volatile=no
! 6349: fi
! 6350: rm -f conftest.$ac_objext conftest.$ac_ext
! 6351: fi
! 6352: echo "$as_me:6352: result: $ac_cv_c_volatile" >&5
! 6353: echo "${ECHO_T}$ac_cv_c_volatile" >&6
! 6354: if test $ac_cv_c_volatile = no; then
! 6355:
! 6356: cat >>confdefs.h <<\EOF
! 6357: #define volatile
1.1 millert 6358: EOF
6359:
6360: fi
6361:
6362: for ac_prog in 'bison -y' byacc
6363: do
1.7.2.1 ! millert 6364: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 millert 6365: set dummy $ac_prog; ac_word=$2
1.7.2.1 ! millert 6366: echo "$as_me:6366: checking for $ac_word" >&5
! 6367: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6368: if test "${ac_cv_prog_YACC+set}" = set; then
! 6369: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6370: else
6371: if test -n "$YACC"; then
6372: ac_cv_prog_YACC="$YACC" # Let the user override the test.
6373: else
1.7.2.1 ! millert 6374: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6375: ac_dummy="$PATH"
! 6376: for ac_dir in $ac_dummy; do
! 6377: IFS=$ac_save_IFS
! 6378: test -z "$ac_dir" && ac_dir=.
! 6379: $as_executable_p "$ac_dir/$ac_word" || continue
! 6380: ac_cv_prog_YACC="$ac_prog"
! 6381: echo "$as_me:6381: found $ac_dir/$ac_word" >&5
! 6382: break
! 6383: done
! 6384:
1.1 millert 6385: fi
6386: fi
1.7.2.1 ! millert 6387: YACC=$ac_cv_prog_YACC
1.1 millert 6388: if test -n "$YACC"; then
1.7.2.1 ! millert 6389: echo "$as_me:6389: result: $YACC" >&5
! 6390: echo "${ECHO_T}$YACC" >&6
1.1 millert 6391: else
1.7.2.1 ! millert 6392: echo "$as_me:6392: result: no" >&5
! 6393: echo "${ECHO_T}no" >&6
1.1 millert 6394: fi
6395:
1.7.2.1 ! millert 6396: test -n "$YACC" && break
1.1 millert 6397: done
6398: test -n "$YACC" || YACC="yacc"
6399:
1.7.2.1 ! millert 6400: echo "$as_me:6400: checking for mv" >&5
! 6401: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1 millert 6402: if test -f "/usr/bin/mv"; then
1.7.2.1 ! millert 6403: echo "$as_me:6403: result: /usr/bin/mv" >&5
! 6404: echo "${ECHO_T}/usr/bin/mv" >&6
! 6405: cat >>confdefs.h <<\EOF
1.1 millert 6406: #define _PATH_MV "/usr/bin/mv"
6407: EOF
6408:
6409: elif test -f "/bin/mv"; then
1.7.2.1 ! millert 6410: echo "$as_me:6410: result: /bin/mv" >&5
! 6411: echo "${ECHO_T}/bin/mv" >&6
! 6412: cat >>confdefs.h <<\EOF
1.1 millert 6413: #define _PATH_MV "/bin/mv"
6414: EOF
6415:
6416: elif test -f "/usr/ucb/mv"; then
1.7.2.1 ! millert 6417: echo "$as_me:6417: result: /usr/ucb/mv" >&5
! 6418: echo "${ECHO_T}/usr/ucb/mv" >&6
! 6419: cat >>confdefs.h <<\EOF
1.1 millert 6420: #define _PATH_MV "/usr/ucb/mv"
6421: EOF
6422:
6423: elif test -f "/usr/sbin/mv"; then
1.7.2.1 ! millert 6424: echo "$as_me:6424: result: /usr/sbin/mv" >&5
! 6425: echo "${ECHO_T}/usr/sbin/mv" >&6
! 6426: cat >>confdefs.h <<\EOF
1.1 millert 6427: #define _PATH_MV "/usr/sbin/mv"
6428: EOF
6429:
6430: else
1.7.2.1 ! millert 6431: echo "$as_me:6431: result: not found" >&5
! 6432: echo "${ECHO_T}not found" >&6
1.1 millert 6433: fi
6434:
1.7.2.1 ! millert 6435: echo "$as_me:6435: checking for bourne shell" >&5
! 6436: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1 millert 6437: if test -f "/bin/sh"; then
1.7.2.1 ! millert 6438: echo "$as_me:6438: result: /bin/sh" >&5
! 6439: echo "${ECHO_T}/bin/sh" >&6
! 6440: cat >>confdefs.h <<\EOF
1.1 millert 6441: #define _PATH_BSHELL "/bin/sh"
6442: EOF
6443:
6444: elif test -f "/usr/bin/sh"; then
1.7.2.1 ! millert 6445: echo "$as_me:6445: result: /usr/bin/sh" >&5
! 6446: echo "${ECHO_T}/usr/bin/sh" >&6
! 6447: cat >>confdefs.h <<\EOF
1.1 millert 6448: #define _PATH_BSHELL "/usr/bin/sh"
6449: EOF
6450:
6451: elif test -f "/sbin/sh"; then
1.7.2.1 ! millert 6452: echo "$as_me:6452: result: /sbin/sh" >&5
! 6453: echo "${ECHO_T}/sbin/sh" >&6
! 6454: cat >>confdefs.h <<\EOF
1.1 millert 6455: #define _PATH_BSHELL "/sbin/sh"
6456: EOF
6457:
6458: elif test -f "/usr/sbin/sh"; then
1.7.2.1 ! millert 6459: echo "$as_me:6459: result: /usr/sbin/sh" >&5
! 6460: echo "${ECHO_T}/usr/sbin/sh" >&6
! 6461: cat >>confdefs.h <<\EOF
1.1 millert 6462: #define _PATH_BSHELL "/usr/sbin/sh"
6463: EOF
6464:
6465: elif test -f "/bin/ksh"; then
1.7.2.1 ! millert 6466: echo "$as_me:6466: result: /bin/ksh" >&5
! 6467: echo "${ECHO_T}/bin/ksh" >&6
! 6468: cat >>confdefs.h <<\EOF
1.1 millert 6469: #define _PATH_BSHELL "/bin/ksh"
6470: EOF
6471:
6472: elif test -f "/usr/bin/ksh"; then
1.7.2.1 ! millert 6473: echo "$as_me:6473: result: /usr/bin/ksh" >&5
! 6474: echo "${ECHO_T}/usr/bin/ksh" >&6
! 6475: cat >>confdefs.h <<\EOF
1.1 millert 6476: #define _PATH_BSHELL "/usr/bin/ksh"
6477: EOF
6478:
6479: elif test -f "/bin/bash"; then
1.7.2.1 ! millert 6480: echo "$as_me:6480: result: /bin/bash" >&5
! 6481: echo "${ECHO_T}/bin/bash" >&6
! 6482: cat >>confdefs.h <<\EOF
1.1 millert 6483: #define _PATH_BSHELL "/bin/bash"
6484: EOF
6485:
6486: elif test -f "/usr/bin/bash"; then
1.7.2.1 ! millert 6487: echo "$as_me:6487: result: /usr/bin/bash" >&5
! 6488: echo "${ECHO_T}/usr/bin/bash" >&6
! 6489: cat >>confdefs.h <<\EOF
1.1 millert 6490: #define _PATH_BSHELL "/usr/bin/bash"
6491: EOF
6492:
6493: else
1.7.2.1 ! millert 6494: echo "$as_me:6494: result: not found" >&5
! 6495: echo "${ECHO_T}not found" >&6
! 6496: fi
! 6497:
! 6498: if test -z "$with_sendmail"; then
! 6499: echo "$as_me:6499: checking for sendmail" >&5
! 6500: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
! 6501: if test -f "/usr/sbin/sendmail"; then
! 6502: echo "$as_me:6502: result: /usr/sbin/sendmail" >&5
! 6503: echo "${ECHO_T}/usr/sbin/sendmail" >&6
! 6504: cat >>confdefs.h <<\EOF
! 6505: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
! 6506: EOF
! 6507:
! 6508: elif test -f "/usr/lib/sendmail"; then
! 6509: echo "$as_me:6509: result: /usr/lib/sendmail" >&5
! 6510: echo "${ECHO_T}/usr/lib/sendmail" >&6
! 6511: cat >>confdefs.h <<\EOF
! 6512: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
! 6513: EOF
! 6514:
! 6515: elif test -f "/usr/etc/sendmail"; then
! 6516: echo "$as_me:6516: result: /usr/etc/sendmail" >&5
! 6517: echo "${ECHO_T}/usr/etc/sendmail" >&6
! 6518: cat >>confdefs.h <<\EOF
! 6519: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
! 6520: EOF
! 6521:
! 6522: elif test -f "/usr/ucblib/sendmail"; then
! 6523: echo "$as_me:6523: result: /usr/ucblib/sendmail" >&5
! 6524: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
! 6525: cat >>confdefs.h <<\EOF
! 6526: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
! 6527: EOF
! 6528:
! 6529: elif test -f "/usr/local/lib/sendmail"; then
! 6530: echo "$as_me:6530: result: /usr/local/lib/sendmail" >&5
! 6531: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
! 6532: cat >>confdefs.h <<\EOF
! 6533: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
! 6534: EOF
! 6535:
! 6536: elif test -f "/usr/local/bin/sendmail"; then
! 6537: echo "$as_me:6537: result: /usr/local/bin/sendmail" >&5
! 6538: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
! 6539: cat >>confdefs.h <<\EOF
! 6540: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
! 6541: EOF
! 6542:
! 6543: else
! 6544: echo "$as_me:6544: result: not found" >&5
! 6545: echo "${ECHO_T}not found" >&6
1.1 millert 6546: fi
6547:
1.7.2.1 ! millert 6548: fi
! 6549: if test -z "$with_editor"; then
! 6550: echo "$as_me:6550: checking for vi" >&5
! 6551: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1 millert 6552: if test -f "/usr/bin/vi"; then
1.7.2.1 ! millert 6553: echo "$as_me:6553: result: /usr/bin/vi" >&5
! 6554: echo "${ECHO_T}/usr/bin/vi" >&6
! 6555: cat >>confdefs.h <<\EOF
1.1 millert 6556: #define _PATH_VI "/usr/bin/vi"
6557: EOF
6558:
6559: elif test -f "/usr/ucb/vi"; then
1.7.2.1 ! millert 6560: echo "$as_me:6560: result: /usr/ucb/vi" >&5
! 6561: echo "${ECHO_T}/usr/ucb/vi" >&6
! 6562: cat >>confdefs.h <<\EOF
1.1 millert 6563: #define _PATH_VI "/usr/ucb/vi"
6564: EOF
6565:
6566: elif test -f "/usr/bsd/vi"; then
1.7.2.1 ! millert 6567: echo "$as_me:6567: result: /usr/bsd/vi" >&5
! 6568: echo "${ECHO_T}/usr/bsd/vi" >&6
! 6569: cat >>confdefs.h <<\EOF
1.1 millert 6570: #define _PATH_VI "/usr/bsd/vi"
6571: EOF
6572:
6573: elif test -f "/bin/vi"; then
1.7.2.1 ! millert 6574: echo "$as_me:6574: result: /bin/vi" >&5
! 6575: echo "${ECHO_T}/bin/vi" >&6
! 6576: cat >>confdefs.h <<\EOF
1.1 millert 6577: #define _PATH_VI "/bin/vi"
6578: EOF
6579:
6580: elif test -f "/usr/local/bin/vi"; then
1.7.2.1 ! millert 6581: echo "$as_me:6581: result: /usr/local/bin/vi" >&5
! 6582: echo "${ECHO_T}/usr/local/bin/vi" >&6
! 6583: cat >>confdefs.h <<\EOF
1.1 millert 6584: #define _PATH_VI "/usr/local/bin/vi"
6585: EOF
6586:
6587: else
1.7.2.1 ! millert 6588: echo "$as_me:6588: result: not found" >&5
! 6589: echo "${ECHO_T}not found" >&6
1.1 millert 6590: fi
6591:
1.7.2.1 ! millert 6592: fi
! 6593: echo "$as_me:6593: checking for ANSI C header files" >&5
! 6594: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 6595: if test "${ac_cv_header_stdc+set}" = set; then
! 6596: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6597: else
1.7.2.1 ! millert 6598: cat >conftest.$ac_ext <<_ACEOF
! 6599: #line 6599 "configure"
1.1 millert 6600: #include "confdefs.h"
6601: #include <stdlib.h>
6602: #include <stdarg.h>
6603: #include <string.h>
6604: #include <float.h>
1.7.2.1 ! millert 6605:
! 6606: _ACEOF
! 6607: if { (eval echo "$as_me:6607: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6608: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6609: ac_status=$?
! 6610: egrep -v '^ *\+' conftest.er1 >conftest.err
! 6611: rm -f conftest.er1
! 6612: cat conftest.err >&5
! 6613: echo "$as_me:6613: \$? = $ac_status" >&5
! 6614: (exit $ac_status); } >/dev/null; then
! 6615: if test -s conftest.err; then
! 6616: ac_cpp_err=$ac_c_preproc_warn_flag
! 6617: else
! 6618: ac_cpp_err=
! 6619: fi
! 6620: else
! 6621: ac_cpp_err=yes
! 6622: fi
! 6623: if test -z "$ac_cpp_err"; then
1.1 millert 6624: ac_cv_header_stdc=yes
6625: else
1.7.2.1 ! millert 6626: echo "$as_me: failed program was:" >&5
1.1 millert 6627: cat conftest.$ac_ext >&5
6628: ac_cv_header_stdc=no
6629: fi
1.7.2.1 ! millert 6630: rm -f conftest.err conftest.$ac_ext
1.1 millert 6631:
6632: if test $ac_cv_header_stdc = yes; then
6633: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.7.2.1 ! millert 6634: cat >conftest.$ac_ext <<_ACEOF
! 6635: #line 6635 "configure"
1.1 millert 6636: #include "confdefs.h"
6637: #include <string.h>
1.7.2.1 ! millert 6638:
! 6639: _ACEOF
1.1 millert 6640: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641: egrep "memchr" >/dev/null 2>&1; then
6642: :
6643: else
6644: ac_cv_header_stdc=no
6645: fi
6646: rm -f conftest*
6647:
6648: fi
6649:
6650: if test $ac_cv_header_stdc = yes; then
6651: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.7.2.1 ! millert 6652: cat >conftest.$ac_ext <<_ACEOF
! 6653: #line 6653 "configure"
1.1 millert 6654: #include "confdefs.h"
6655: #include <stdlib.h>
1.7.2.1 ! millert 6656:
! 6657: _ACEOF
1.1 millert 6658: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6659: egrep "free" >/dev/null 2>&1; then
6660: :
6661: else
6662: ac_cv_header_stdc=no
6663: fi
6664: rm -f conftest*
6665:
6666: fi
6667:
6668: if test $ac_cv_header_stdc = yes; then
6669: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.7.2.1 ! millert 6670: if test "$cross_compiling" = yes; then
1.1 millert 6671: :
6672: else
1.7.2.1 ! millert 6673: cat >conftest.$ac_ext <<_ACEOF
! 6674: #line 6674 "configure"
1.1 millert 6675: #include "confdefs.h"
6676: #include <ctype.h>
1.7.2.1 ! millert 6677: #if ((' ' & 0x0FF) == 0x020)
! 6678: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 6679: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 6680: #else
! 6681: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
! 6682: || ('j' <= (c) && (c) <= 'r') \
! 6683: || ('s' <= (c) && (c) <= 'z'))
! 6684: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 6685: #endif
1.1 millert 6686:
1.7.2.1 ! millert 6687: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 6688: int
! 6689: main ()
! 6690: {
! 6691: int i;
! 6692: for (i = 0; i < 256; i++)
! 6693: if (XOR (islower (i), ISLOWER (i))
! 6694: || toupper (i) != TOUPPER (i))
! 6695: exit(2);
! 6696: exit (0);
! 6697: }
! 6698: _ACEOF
! 6699: rm -f conftest$ac_exeext
! 6700: if { (eval echo "$as_me:6700: \"$ac_link\"") >&5
! 6701: (eval $ac_link) 2>&5
! 6702: ac_status=$?
! 6703: echo "$as_me:6703: \$? = $ac_status" >&5
! 6704: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6705: { (eval echo "$as_me:6705: \"$ac_try\"") >&5
! 6706: (eval $ac_try) 2>&5
! 6707: ac_status=$?
! 6708: echo "$as_me:6708: \$? = $ac_status" >&5
! 6709: (exit $ac_status); }; }; then
1.1 millert 6710: :
6711: else
1.7.2.1 ! millert 6712: echo "$as_me: program exited with status $ac_status" >&5
! 6713: echo "$as_me: failed program was:" >&5
! 6714: cat conftest.$ac_ext >&5
! 6715: ac_cv_header_stdc=no
1.1 millert 6716: fi
1.7.2.1 ! millert 6717: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 6718: fi
6719: fi
6720: fi
1.7.2.1 ! millert 6721: echo "$as_me:6721: result: $ac_cv_header_stdc" >&5
! 6722: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.1 millert 6723: if test $ac_cv_header_stdc = yes; then
1.7.2.1 ! millert 6724:
! 6725: cat >>confdefs.h <<\EOF
1.1 millert 6726: #define STDC_HEADERS 1
6727: EOF
6728:
6729: fi
6730:
6731: ac_header_dirent=no
1.7.2.1 ! millert 6732: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
! 6733: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 6734: echo "$as_me:6734: checking for $ac_hdr that defines DIR" >&5
! 6735: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
! 6736: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 6737: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6738: else
1.7.2.1 ! millert 6739: cat >conftest.$ac_ext <<_ACEOF
! 6740: #line 6740 "configure"
1.1 millert 6741: #include "confdefs.h"
6742: #include <sys/types.h>
6743: #include <$ac_hdr>
1.7.2.1 ! millert 6744:
! 6745: int
! 6746: main ()
! 6747: {
! 6748: if ((DIR *) 0)
! 6749: return 0;
! 6750: ;
! 6751: return 0;
! 6752: }
! 6753: _ACEOF
! 6754: rm -f conftest.$ac_objext
! 6755: if { (eval echo "$as_me:6755: \"$ac_compile\"") >&5
! 6756: (eval $ac_compile) 2>&5
! 6757: ac_status=$?
! 6758: echo "$as_me:6758: \$? = $ac_status" >&5
! 6759: (exit $ac_status); } &&
! 6760: { ac_try='test -s conftest.$ac_objext'
! 6761: { (eval echo "$as_me:6761: \"$ac_try\"") >&5
! 6762: (eval $ac_try) 2>&5
! 6763: ac_status=$?
! 6764: echo "$as_me:6764: \$? = $ac_status" >&5
! 6765: (exit $ac_status); }; }; then
! 6766: eval "$as_ac_Header=yes"
! 6767: else
! 6768: echo "$as_me: failed program was:" >&5
! 6769: cat conftest.$ac_ext >&5
! 6770: eval "$as_ac_Header=no"
! 6771: fi
! 6772: rm -f conftest.$ac_objext conftest.$ac_ext
! 6773: fi
! 6774: echo "$as_me:6774: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6775: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6776: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6777: cat >>confdefs.h <<EOF
! 6778: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.1 millert 6779: EOF
1.7.2.1 ! millert 6780:
! 6781: ac_header_dirent=$ac_hdr; break
1.1 millert 6782: fi
1.7.2.1 ! millert 6783:
1.1 millert 6784: done
6785: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6786: if test $ac_header_dirent = dirent.h; then
1.7.2.1 ! millert 6787: echo "$as_me:6787: checking for opendir in -ldir" >&5
! 6788: echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
! 6789: if test "${ac_cv_lib_dir_opendir+set}" = set; then
! 6790: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6791: else
1.7.2.1 ! millert 6792: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6793: LIBS="-ldir $LIBS"
1.7.2.1 ! millert 6794: cat >conftest.$ac_ext <<_ACEOF
! 6795: #line 6795 "configure"
1.1 millert 6796: #include "confdefs.h"
1.7.2.1 ! millert 6797:
1.1 millert 6798: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 6799: #ifdef __cplusplus
! 6800: extern "C"
! 6801: #endif
1.1 millert 6802: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 6803: builtin and then its argument prototype would still apply. */
! 6804: char opendir ();
! 6805: int
! 6806: main ()
! 6807: {
! 6808: opendir ();
! 6809: ;
! 6810: return 0;
! 6811: }
! 6812: _ACEOF
! 6813: rm -f conftest.$ac_objext conftest$ac_exeext
! 6814: if { (eval echo "$as_me:6814: \"$ac_link\"") >&5
! 6815: (eval $ac_link) 2>&5
! 6816: ac_status=$?
! 6817: echo "$as_me:6817: \$? = $ac_status" >&5
! 6818: (exit $ac_status); } &&
! 6819: { ac_try='test -s conftest$ac_exeext'
! 6820: { (eval echo "$as_me:6820: \"$ac_try\"") >&5
! 6821: (eval $ac_try) 2>&5
! 6822: ac_status=$?
! 6823: echo "$as_me:6823: \$? = $ac_status" >&5
! 6824: (exit $ac_status); }; }; then
! 6825: ac_cv_lib_dir_opendir=yes
! 6826: else
! 6827: echo "$as_me: failed program was:" >&5
! 6828: cat conftest.$ac_ext >&5
! 6829: ac_cv_lib_dir_opendir=no
! 6830: fi
! 6831: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6832: LIBS=$ac_check_lib_save_LIBS
! 6833: fi
! 6834: echo "$as_me:6834: result: $ac_cv_lib_dir_opendir" >&5
! 6835: echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
! 6836: if test $ac_cv_lib_dir_opendir = yes; then
1.1 millert 6837: LIBS="$LIBS -ldir"
6838: fi
6839:
6840: else
1.7.2.1 ! millert 6841: echo "$as_me:6841: checking for opendir in -lx" >&5
! 6842: echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
! 6843: if test "${ac_cv_lib_x_opendir+set}" = set; then
! 6844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6845: else
1.7.2.1 ! millert 6846: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6847: LIBS="-lx $LIBS"
1.7.2.1 ! millert 6848: cat >conftest.$ac_ext <<_ACEOF
! 6849: #line 6849 "configure"
1.1 millert 6850: #include "confdefs.h"
1.7.2.1 ! millert 6851:
1.1 millert 6852: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 6853: #ifdef __cplusplus
! 6854: extern "C"
! 6855: #endif
1.1 millert 6856: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 6857: builtin and then its argument prototype would still apply. */
! 6858: char opendir ();
! 6859: int
! 6860: main ()
! 6861: {
! 6862: opendir ();
! 6863: ;
! 6864: return 0;
! 6865: }
! 6866: _ACEOF
! 6867: rm -f conftest.$ac_objext conftest$ac_exeext
! 6868: if { (eval echo "$as_me:6868: \"$ac_link\"") >&5
! 6869: (eval $ac_link) 2>&5
! 6870: ac_status=$?
! 6871: echo "$as_me:6871: \$? = $ac_status" >&5
! 6872: (exit $ac_status); } &&
! 6873: { ac_try='test -s conftest$ac_exeext'
! 6874: { (eval echo "$as_me:6874: \"$ac_try\"") >&5
! 6875: (eval $ac_try) 2>&5
! 6876: ac_status=$?
! 6877: echo "$as_me:6877: \$? = $ac_status" >&5
! 6878: (exit $ac_status); }; }; then
! 6879: ac_cv_lib_x_opendir=yes
! 6880: else
! 6881: echo "$as_me: failed program was:" >&5
! 6882: cat conftest.$ac_ext >&5
! 6883: ac_cv_lib_x_opendir=no
! 6884: fi
! 6885: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6886: LIBS=$ac_check_lib_save_LIBS
! 6887: fi
! 6888: echo "$as_me:6888: result: $ac_cv_lib_x_opendir" >&5
! 6889: echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
! 6890: if test $ac_cv_lib_x_opendir = yes; then
1.1 millert 6891: LIBS="$LIBS -lx"
6892: fi
6893:
6894: fi
6895:
1.7.2.1 ! millert 6896: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1 millert 6897: do
1.7.2.1 ! millert 6898: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6899: echo "$as_me:6899: checking for $ac_header" >&5
! 6900: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 6901: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 6902: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6903: else
! 6904: cat >conftest.$ac_ext <<_ACEOF
! 6905: #line 6905 "configure"
! 6906: #include "confdefs.h"
! 6907: #include <$ac_header>
! 6908: _ACEOF
! 6909: if { (eval echo "$as_me:6909: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6910: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6911: ac_status=$?
! 6912: egrep -v '^ *\+' conftest.er1 >conftest.err
! 6913: rm -f conftest.er1
! 6914: cat conftest.err >&5
! 6915: echo "$as_me:6915: \$? = $ac_status" >&5
! 6916: (exit $ac_status); } >/dev/null; then
! 6917: if test -s conftest.err; then
! 6918: ac_cpp_err=$ac_c_preproc_warn_flag
! 6919: else
! 6920: ac_cpp_err=
! 6921: fi
1.1 millert 6922: else
1.7.2.1 ! millert 6923: ac_cpp_err=yes
! 6924: fi
! 6925: if test -z "$ac_cpp_err"; then
! 6926: eval "$as_ac_Header=yes"
1.1 millert 6927: else
1.7.2.1 ! millert 6928: echo "$as_me: failed program was:" >&5
1.1 millert 6929: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 6930: eval "$as_ac_Header=no"
1.1 millert 6931: fi
1.7.2.1 ! millert 6932: rm -f conftest.err conftest.$ac_ext
1.1 millert 6933: fi
1.7.2.1 ! millert 6934: echo "$as_me:6934: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6935: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6936: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6937: cat >>confdefs.h <<EOF
! 6938: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 6939: EOF
1.7.2.1 ! millert 6940:
1.1 millert 6941: fi
6942: done
6943:
6944: if test "$OS" != "ultrix"; then
1.7.2.1 ! millert 6945: echo "$as_me:6945: checking POSIX termios" >&5
! 6946: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
! 6947: if test "${ac_cv_sys_posix_termios+set}" = set; then
! 6948: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6949: else
1.7.2.1 ! millert 6950: cat >conftest.$ac_ext <<_ACEOF
! 6951: #line 6951 "configure"
1.1 millert 6952: #include "confdefs.h"
1.7.2.1 ! millert 6953: #include <sys/types.h>
! 6954: #include <unistd.h>
! 6955: #include <termios.h>
! 6956: int
! 6957: main ()
! 6958: {
! 6959: /* SunOS 4.0.3 has termios.h but not the library calls. */
! 6960: tcgetattr(0, 0);
! 6961: ;
! 6962: return 0;
! 6963: }
! 6964: _ACEOF
! 6965: rm -f conftest.$ac_objext conftest$ac_exeext
! 6966: if { (eval echo "$as_me:6966: \"$ac_link\"") >&5
! 6967: (eval $ac_link) 2>&5
! 6968: ac_status=$?
! 6969: echo "$as_me:6969: \$? = $ac_status" >&5
! 6970: (exit $ac_status); } &&
! 6971: { ac_try='test -s conftest$ac_exeext'
! 6972: { (eval echo "$as_me:6972: \"$ac_try\"") >&5
! 6973: (eval $ac_try) 2>&5
! 6974: ac_status=$?
! 6975: echo "$as_me:6975: \$? = $ac_status" >&5
! 6976: (exit $ac_status); }; }; then
! 6977: ac_cv_sys_posix_termios=yes
! 6978: else
! 6979: echo "$as_me: failed program was:" >&5
! 6980: cat conftest.$ac_ext >&5
! 6981: ac_cv_sys_posix_termios=no
! 6982: fi
! 6983: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6984: fi
! 6985: echo "$as_me:6985: result: $ac_cv_sys_posix_termios" >&5
! 6986: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
! 6987:
! 6988: if test "$ac_cv_sys_posix_termios" = "yes"; then
! 6989:
! 6990: cat >>confdefs.h <<\EOF
! 6991: #define HAVE_TERMIOS_H 1
1.1 millert 6992: EOF
1.7.2.1 ! millert 6993:
! 6994: else
! 6995:
! 6996: for ac_header in termio.h
! 6997: do
! 6998: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6999: echo "$as_me:6999: checking for $ac_header" >&5
! 7000: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 7001: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 7002: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7003: else
! 7004: cat >conftest.$ac_ext <<_ACEOF
! 7005: #line 7005 "configure"
! 7006: #include "confdefs.h"
! 7007: #include <$ac_header>
! 7008: _ACEOF
! 7009: if { (eval echo "$as_me:7009: \"$ac_cpp conftest.$ac_ext\"") >&5
! 7010: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 7011: ac_status=$?
! 7012: egrep -v '^ *\+' conftest.er1 >conftest.err
! 7013: rm -f conftest.er1
! 7014: cat conftest.err >&5
! 7015: echo "$as_me:7015: \$? = $ac_status" >&5
! 7016: (exit $ac_status); } >/dev/null; then
! 7017: if test -s conftest.err; then
! 7018: ac_cpp_err=$ac_c_preproc_warn_flag
! 7019: else
! 7020: ac_cpp_err=
! 7021: fi
! 7022: else
! 7023: ac_cpp_err=yes
! 7024: fi
! 7025: if test -z "$ac_cpp_err"; then
! 7026: eval "$as_ac_Header=yes"
1.1 millert 7027: else
1.7.2.1 ! millert 7028: echo "$as_me: failed program was:" >&5
1.1 millert 7029: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 7030: eval "$as_ac_Header=no"
1.1 millert 7031: fi
1.7.2.1 ! millert 7032: rm -f conftest.err conftest.$ac_ext
1.1 millert 7033: fi
1.7.2.1 ! millert 7034: echo "$as_me:7034: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 7035: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 7036: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 7037: cat >>confdefs.h <<EOF
! 7038: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 7039: EOF
1.7.2.1 ! millert 7040:
1.1 millert 7041: fi
7042: done
7043:
1.7.2.1 ! millert 7044: fi
! 7045: fi
! 7046: if test "$with_logincap" = "yes"; then
! 7047:
! 7048: for ac_header in login_cap.h
1.1 millert 7049: do
1.7.2.1 ! millert 7050: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7051: echo "$as_me:7051: checking for $ac_header" >&5
! 7052: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 7053: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 7054: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7055: else
! 7056: cat >conftest.$ac_ext <<_ACEOF
! 7057: #line 7057 "configure"
! 7058: #include "confdefs.h"
! 7059: #include <$ac_header>
! 7060: _ACEOF
! 7061: if { (eval echo "$as_me:7061: \"$ac_cpp conftest.$ac_ext\"") >&5
! 7062: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 7063: ac_status=$?
! 7064: egrep -v '^ *\+' conftest.er1 >conftest.err
! 7065: rm -f conftest.er1
! 7066: cat conftest.err >&5
! 7067: echo "$as_me:7067: \$? = $ac_status" >&5
! 7068: (exit $ac_status); } >/dev/null; then
! 7069: if test -s conftest.err; then
! 7070: ac_cpp_err=$ac_c_preproc_warn_flag
! 7071: else
! 7072: ac_cpp_err=
! 7073: fi
1.1 millert 7074: else
1.7.2.1 ! millert 7075: ac_cpp_err=yes
! 7076: fi
! 7077: if test -z "$ac_cpp_err"; then
! 7078: eval "$as_ac_Header=yes"
1.1 millert 7079: else
1.7.2.1 ! millert 7080: echo "$as_me: failed program was:" >&5
1.1 millert 7081: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 7082: eval "$as_ac_Header=no"
1.1 millert 7083: fi
1.7.2.1 ! millert 7084: rm -f conftest.err conftest.$ac_ext
1.1 millert 7085: fi
1.7.2.1 ! millert 7086: echo "$as_me:7086: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 7087: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 7088: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 7089: cat >>confdefs.h <<EOF
! 7090: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 7091: EOF
7092:
1.7.2.1 ! millert 7093: fi
! 7094: done
1.1 millert 7095:
1.7.2.1 ! millert 7096: fi
! 7097: if test "$with_bsdauth" = "yes"; then
! 7098: echo "$as_me:7098: checking for bsd_auth.h" >&5
! 7099: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
! 7100: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 7101: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7102: else
! 7103: cat >conftest.$ac_ext <<_ACEOF
! 7104: #line 7104 "configure"
! 7105: #include "confdefs.h"
! 7106: #include <bsd_auth.h>
! 7107: _ACEOF
! 7108: if { (eval echo "$as_me:7108: \"$ac_cpp conftest.$ac_ext\"") >&5
! 7109: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 7110: ac_status=$?
! 7111: egrep -v '^ *\+' conftest.er1 >conftest.err
! 7112: rm -f conftest.er1
! 7113: cat conftest.err >&5
! 7114: echo "$as_me:7114: \$? = $ac_status" >&5
! 7115: (exit $ac_status); } >/dev/null; then
! 7116: if test -s conftest.err; then
! 7117: ac_cpp_err=$ac_c_preproc_warn_flag
! 7118: else
! 7119: ac_cpp_err=
! 7120: fi
1.1 millert 7121: else
1.7.2.1 ! millert 7122: ac_cpp_err=yes
! 7123: fi
! 7124: if test -z "$ac_cpp_err"; then
! 7125: ac_cv_header_bsd_auth_h=yes
! 7126: else
! 7127: echo "$as_me: failed program was:" >&5
1.1 millert 7128: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 7129: ac_cv_header_bsd_auth_h=no
1.1 millert 7130: fi
1.7.2.1 ! millert 7131: rm -f conftest.err conftest.$ac_ext
1.1 millert 7132: fi
1.7.2.1 ! millert 7133: echo "$as_me:7133: result: $ac_cv_header_bsd_auth_h" >&5
! 7134: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
! 7135: if test $ac_cv_header_bsd_auth_h = yes; then
1.1 millert 7136:
1.7.2.1 ! millert 7137: cat >>confdefs.h <<\EOF
! 7138: #define HAVE_BSD_AUTH_H 1
1.1 millert 7139: EOF
1.7.2.1 ! millert 7140: with_passwd=no; AUTH_OBJS=bsdauth.o
1.1 millert 7141: fi
7142:
7143: fi
1.7.2.1 ! millert 7144: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 millert 7145:
1.7.2.1 ! millert 7146: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 7147: inttypes.h stdint.h unistd.h
1.7 millert 7148: do
1.7.2.1 ! millert 7149: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7150: echo "$as_me:7150: checking for $ac_header" >&5
! 7151: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 7152: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 7153: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7154: else
! 7155: cat >conftest.$ac_ext <<_ACEOF
! 7156: #line 7156 "configure"
! 7157: #include "confdefs.h"
! 7158: $ac_includes_default
! 7159: #include <$ac_header>
! 7160: _ACEOF
! 7161: rm -f conftest.$ac_objext
! 7162: if { (eval echo "$as_me:7162: \"$ac_compile\"") >&5
! 7163: (eval $ac_compile) 2>&5
! 7164: ac_status=$?
! 7165: echo "$as_me:7165: \$? = $ac_status" >&5
! 7166: (exit $ac_status); } &&
! 7167: { ac_try='test -s conftest.$ac_objext'
! 7168: { (eval echo "$as_me:7168: \"$ac_try\"") >&5
! 7169: (eval $ac_try) 2>&5
! 7170: ac_status=$?
! 7171: echo "$as_me:7171: \$? = $ac_status" >&5
! 7172: (exit $ac_status); }; }; then
! 7173: eval "$as_ac_Header=yes"
! 7174: else
! 7175: echo "$as_me: failed program was:" >&5
! 7176: cat conftest.$ac_ext >&5
! 7177: eval "$as_ac_Header=no"
! 7178: fi
! 7179: rm -f conftest.$ac_objext conftest.$ac_ext
! 7180: fi
! 7181: echo "$as_me:7181: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 7182: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 7183: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 7184: cat >>confdefs.h <<EOF
! 7185: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7186: EOF
! 7187:
! 7188: fi
! 7189: done
! 7190:
! 7191: echo "$as_me:7191: checking for mode_t" >&5
! 7192: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
! 7193: if test "${ac_cv_type_mode_t+set}" = set; then
! 7194: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 7195: else
1.7.2.1 ! millert 7196: cat >conftest.$ac_ext <<_ACEOF
! 7197: #line 7197 "configure"
1.7 millert 7198: #include "confdefs.h"
1.7.2.1 ! millert 7199: $ac_includes_default
! 7200: int
! 7201: main ()
! 7202: {
! 7203: if ((mode_t *) 0)
! 7204: return 0;
! 7205: if (sizeof (mode_t))
! 7206: return 0;
! 7207: ;
! 7208: return 0;
! 7209: }
! 7210: _ACEOF
! 7211: rm -f conftest.$ac_objext
! 7212: if { (eval echo "$as_me:7212: \"$ac_compile\"") >&5
! 7213: (eval $ac_compile) 2>&5
! 7214: ac_status=$?
! 7215: echo "$as_me:7215: \$? = $ac_status" >&5
! 7216: (exit $ac_status); } &&
! 7217: { ac_try='test -s conftest.$ac_objext'
! 7218: { (eval echo "$as_me:7218: \"$ac_try\"") >&5
! 7219: (eval $ac_try) 2>&5
! 7220: ac_status=$?
! 7221: echo "$as_me:7221: \$? = $ac_status" >&5
! 7222: (exit $ac_status); }; }; then
! 7223: ac_cv_type_mode_t=yes
1.7 millert 7224: else
1.7.2.1 ! millert 7225: echo "$as_me: failed program was:" >&5
! 7226: cat conftest.$ac_ext >&5
! 7227: ac_cv_type_mode_t=no
! 7228: fi
! 7229: rm -f conftest.$ac_objext conftest.$ac_ext
! 7230: fi
! 7231: echo "$as_me:7231: result: $ac_cv_type_mode_t" >&5
! 7232: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
! 7233: if test $ac_cv_type_mode_t = yes; then
! 7234: :
1.7 millert 7235: else
1.7.2.1 ! millert 7236:
! 7237: cat >>confdefs.h <<EOF
! 7238: #define mode_t int
! 7239: EOF
1.7 millert 7240:
7241: fi
1.7.2.1 ! millert 7242:
! 7243: echo "$as_me:7243: checking for uid_t in sys/types.h" >&5
! 7244: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
! 7245: if test "${ac_cv_type_uid_t+set}" = set; then
! 7246: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 7247: else
1.7.2.1 ! millert 7248: cat >conftest.$ac_ext <<_ACEOF
! 7249: #line 7249 "configure"
1.7 millert 7250: #include "confdefs.h"
1.7.2.1 ! millert 7251: #include <sys/types.h>
! 7252:
! 7253: _ACEOF
! 7254: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 7255: egrep "uid_t" >/dev/null 2>&1; then
! 7256: ac_cv_type_uid_t=yes
1.7 millert 7257: else
1.7.2.1 ! millert 7258: ac_cv_type_uid_t=no
1.7 millert 7259: fi
7260: rm -f conftest*
1.7.2.1 ! millert 7261:
1.7 millert 7262: fi
1.7.2.1 ! millert 7263: echo "$as_me:7263: result: $ac_cv_type_uid_t" >&5
! 7264: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
! 7265: if test $ac_cv_type_uid_t = no; then
! 7266:
! 7267: cat >>confdefs.h <<\EOF
! 7268: #define uid_t int
! 7269: EOF
! 7270:
! 7271: cat >>confdefs.h <<\EOF
! 7272: #define gid_t int
1.7 millert 7273: EOF
7274:
7275: fi
7276:
1.7.2.1 ! millert 7277: echo "$as_me:7277: checking for sig_atomic_t" >&5
! 7278: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
! 7279: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
! 7280: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7281: else
1.7.2.1 ! millert 7282: cat >conftest.$ac_ext <<_ACEOF
! 7283: #line 7283 "configure"
1.1 millert 7284: #include "confdefs.h"
7285: #include <sys/types.h>
1.7.2.1 ! millert 7286: #include <signal.h>
! 7287:
! 7288: int
! 7289: main ()
! 7290: {
! 7291: if ((sig_atomic_t *) 0)
! 7292: return 0;
! 7293: if (sizeof (sig_atomic_t))
! 7294: return 0;
! 7295: ;
! 7296: return 0;
! 7297: }
! 7298: _ACEOF
! 7299: rm -f conftest.$ac_objext
! 7300: if { (eval echo "$as_me:7300: \"$ac_compile\"") >&5
! 7301: (eval $ac_compile) 2>&5
! 7302: ac_status=$?
! 7303: echo "$as_me:7303: \$? = $ac_status" >&5
! 7304: (exit $ac_status); } &&
! 7305: { ac_try='test -s conftest.$ac_objext'
! 7306: { (eval echo "$as_me:7306: \"$ac_try\"") >&5
! 7307: (eval $ac_try) 2>&5
! 7308: ac_status=$?
! 7309: echo "$as_me:7309: \$? = $ac_status" >&5
! 7310: (exit $ac_status); }; }; then
! 7311: ac_cv_type_sig_atomic_t=yes
1.1 millert 7312: else
1.7.2.1 ! millert 7313: echo "$as_me: failed program was:" >&5
! 7314: cat conftest.$ac_ext >&5
! 7315: ac_cv_type_sig_atomic_t=no
1.1 millert 7316: fi
1.7.2.1 ! millert 7317: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7318: fi
1.7.2.1 ! millert 7319: echo "$as_me:7319: result: $ac_cv_type_sig_atomic_t" >&5
! 7320: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
! 7321: if test $ac_cv_type_sig_atomic_t = yes; then
! 7322:
! 7323: cat >>confdefs.h <<EOF
! 7324: #define HAVE_SIG_ATOMIC_T 1
! 7325: EOF
! 7326:
! 7327: else
! 7328:
! 7329: cat >>confdefs.h <<\EOF
! 7330: #define sig_atomic_t int
1.1 millert 7331: EOF
7332:
7333: fi
7334:
1.7.2.1 ! millert 7335: echo "$as_me:7335: checking for sigaction_t" >&5
! 7336: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
! 7337: if test "${ac_cv_type_sigaction_t+set}" = set; then
! 7338: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7339: else
1.7.2.1 ! millert 7340: cat >conftest.$ac_ext <<_ACEOF
! 7341: #line 7341 "configure"
1.1 millert 7342: #include "confdefs.h"
7343: #include <sys/types.h>
1.7.2.1 ! millert 7344: #include <signal.h>
! 7345:
! 7346: int
! 7347: main ()
! 7348: {
! 7349: if ((sigaction_t *) 0)
! 7350: return 0;
! 7351: if (sizeof (sigaction_t))
! 7352: return 0;
! 7353: ;
! 7354: return 0;
! 7355: }
! 7356: _ACEOF
! 7357: rm -f conftest.$ac_objext
! 7358: if { (eval echo "$as_me:7358: \"$ac_compile\"") >&5
! 7359: (eval $ac_compile) 2>&5
! 7360: ac_status=$?
! 7361: echo "$as_me:7361: \$? = $ac_status" >&5
! 7362: (exit $ac_status); } &&
! 7363: { ac_try='test -s conftest.$ac_objext'
! 7364: { (eval echo "$as_me:7364: \"$ac_try\"") >&5
! 7365: (eval $ac_try) 2>&5
! 7366: ac_status=$?
! 7367: echo "$as_me:7367: \$? = $ac_status" >&5
! 7368: (exit $ac_status); }; }; then
! 7369: ac_cv_type_sigaction_t=yes
1.1 millert 7370: else
1.7.2.1 ! millert 7371: echo "$as_me: failed program was:" >&5
! 7372: cat conftest.$ac_ext >&5
! 7373: ac_cv_type_sigaction_t=no
1.1 millert 7374: fi
1.7.2.1 ! millert 7375: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7376: fi
1.7.2.1 ! millert 7377: echo "$as_me:7377: result: $ac_cv_type_sigaction_t" >&5
! 7378: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
! 7379: if test $ac_cv_type_sigaction_t = yes; then
1.1 millert 7380:
1.7.2.1 ! millert 7381: cat >>confdefs.h <<EOF
! 7382: #define HAVE_SIGACTION_T 1
1.1 millert 7383: EOF
7384:
1.7.2.1 ! millert 7385: cat >>confdefs.h <<\EOF
! 7386: #define HAVE_SIGACTION_T 1
1.1 millert 7387: EOF
7388:
7389: fi
7390:
1.7.2.1 ! millert 7391: echo "$as_me:7391: checking for size_t" >&5
! 7392: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 7393: if test "${sudo_cv_type_size_t+set}" = set; then
! 7394: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7395: else
1.7.2.1 ! millert 7396: cat >conftest.$ac_ext <<_ACEOF
! 7397: #line 7397 "configure"
1.1 millert 7398: #include "confdefs.h"
7399: #include <sys/types.h>
1.7.2.1 ! millert 7400: #include <stdio.h>
1.1 millert 7401: #if STDC_HEADERS
7402: #include <stdlib.h>
7403: #endif
7404: #if HAVE_UNISTD_H
7405: #include <unistd.h>
7406: #endif
1.7.2.1 ! millert 7407: _ACEOF
1.1 millert 7408: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409: egrep "size_t" >/dev/null 2>&1; then
7410: sudo_cv_type_size_t=yes
7411: else
7412: sudo_cv_type_size_t=no
7413: fi
7414: rm -f conftest*
7415:
7416: fi
1.7.2.1 ! millert 7417: echo "$as_me:7417: result: $sudo_cv_type_size_t" >&5
! 7418: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1 millert 7419: if test $sudo_cv_type_size_t = no; then
1.7.2.1 ! millert 7420:
! 7421: cat >>confdefs.h <<\EOF
1.1 millert 7422: #define size_t int
7423: EOF
7424:
7425: fi
7426:
1.7.2.1 ! millert 7427: echo "$as_me:7427: checking for ssize_t" >&5
! 7428: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
! 7429: if test "${sudo_cv_type_ssize_t+set}" = set; then
! 7430: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7431: else
1.7.2.1 ! millert 7432: cat >conftest.$ac_ext <<_ACEOF
! 7433: #line 7433 "configure"
1.1 millert 7434: #include "confdefs.h"
7435: #include <sys/types.h>
1.7.2.1 ! millert 7436: #include <stdio.h>
1.1 millert 7437: #if STDC_HEADERS
7438: #include <stdlib.h>
7439: #endif
7440: #if HAVE_UNISTD_H
7441: #include <unistd.h>
7442: #endif
1.7.2.1 ! millert 7443: _ACEOF
1.1 millert 7444: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445: egrep "ssize_t" >/dev/null 2>&1; then
7446: sudo_cv_type_ssize_t=yes
7447: else
7448: sudo_cv_type_ssize_t=no
7449: fi
7450: rm -f conftest*
7451:
7452: fi
1.7.2.1 ! millert 7453: echo "$as_me:7453: result: $sudo_cv_type_ssize_t" >&5
! 7454: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1 millert 7455: if test $sudo_cv_type_ssize_t = no; then
1.7.2.1 ! millert 7456:
! 7457: cat >>confdefs.h <<\EOF
1.1 millert 7458: #define ssize_t int
7459: EOF
7460:
7461: fi
7462:
1.7.2.1 ! millert 7463: echo "$as_me:7463: checking for dev_t" >&5
! 7464: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
! 7465: if test "${sudo_cv_type_dev_t+set}" = set; then
! 7466: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7467: else
1.7.2.1 ! millert 7468: cat >conftest.$ac_ext <<_ACEOF
! 7469: #line 7469 "configure"
1.1 millert 7470: #include "confdefs.h"
7471: #include <sys/types.h>
1.7.2.1 ! millert 7472: #include <stdio.h>
1.1 millert 7473: #if STDC_HEADERS
7474: #include <stdlib.h>
7475: #endif
7476: #if HAVE_UNISTD_H
7477: #include <unistd.h>
7478: #endif
1.7.2.1 ! millert 7479: _ACEOF
1.1 millert 7480: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481: egrep "dev_t" >/dev/null 2>&1; then
7482: sudo_cv_type_dev_t=yes
7483: else
7484: sudo_cv_type_dev_t=no
7485: fi
7486: rm -f conftest*
7487:
7488: fi
1.7.2.1 ! millert 7489: echo "$as_me:7489: result: $sudo_cv_type_dev_t" >&5
! 7490: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1 millert 7491: if test $sudo_cv_type_dev_t = no; then
1.7.2.1 ! millert 7492:
! 7493: cat >>confdefs.h <<\EOF
1.1 millert 7494: #define dev_t int
7495: EOF
7496:
7497: fi
7498:
1.7.2.1 ! millert 7499: echo "$as_me:7499: checking for ino_t" >&5
! 7500: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
! 7501: if test "${sudo_cv_type_ino_t+set}" = set; then
! 7502: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7503: else
1.7.2.1 ! millert 7504: cat >conftest.$ac_ext <<_ACEOF
! 7505: #line 7505 "configure"
1.1 millert 7506: #include "confdefs.h"
7507: #include <sys/types.h>
1.7.2.1 ! millert 7508: #include <stdio.h>
1.1 millert 7509: #if STDC_HEADERS
7510: #include <stdlib.h>
7511: #endif
7512: #if HAVE_UNISTD_H
7513: #include <unistd.h>
7514: #endif
1.7.2.1 ! millert 7515: _ACEOF
1.1 millert 7516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517: egrep "ino_t" >/dev/null 2>&1; then
7518: sudo_cv_type_ino_t=yes
7519: else
7520: sudo_cv_type_ino_t=no
7521: fi
7522: rm -f conftest*
7523:
7524: fi
1.7.2.1 ! millert 7525: echo "$as_me:7525: result: $sudo_cv_type_ino_t" >&5
! 7526: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1 millert 7527: if test $sudo_cv_type_ino_t = no; then
1.7.2.1 ! millert 7528:
! 7529: cat >>confdefs.h <<\EOF
1.1 millert 7530: #define ino_t unsigned int
7531: EOF
7532:
7533: fi
7534:
1.7.2.1 ! millert 7535: echo "$as_me:7535: checking for full void implementation" >&5
! 7536: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
! 7537: cat >conftest.$ac_ext <<_ACEOF
! 7538: #line 7538 "configure"
1.1 millert 7539: #include "confdefs.h"
7540:
1.7.2.1 ! millert 7541: int
! 7542: main ()
! 7543: {
1.1 millert 7544: void *foo;
7545: foo = (void *)0; (void *)"test";
1.7.2.1 ! millert 7546: ;
! 7547: return 0;
! 7548: }
! 7549: _ACEOF
! 7550: rm -f conftest.$ac_objext
! 7551: if { (eval echo "$as_me:7551: \"$ac_compile\"") >&5
! 7552: (eval $ac_compile) 2>&5
! 7553: ac_status=$?
! 7554: echo "$as_me:7554: \$? = $ac_status" >&5
! 7555: (exit $ac_status); } &&
! 7556: { ac_try='test -s conftest.$ac_objext'
! 7557: { (eval echo "$as_me:7557: \"$ac_try\"") >&5
! 7558: (eval $ac_try) 2>&5
! 7559: ac_status=$?
! 7560: echo "$as_me:7560: \$? = $ac_status" >&5
! 7561: (exit $ac_status); }; }; then
! 7562:
! 7563: cat >>confdefs.h <<\EOF
1.1 millert 7564: #define VOID void
7565: EOF
7566:
1.7.2.1 ! millert 7567: echo "$as_me:7567: result: yes" >&5
! 7568: echo "${ECHO_T}yes" >&6
1.1 millert 7569: else
1.7.2.1 ! millert 7570: echo "$as_me: failed program was:" >&5
! 7571: cat conftest.$ac_ext >&5
! 7572: cat >>confdefs.h <<\EOF
1.1 millert 7573: #define VOID char
7574: EOF
7575:
1.7.2.1 ! millert 7576: echo "$as_me:7576: result: no" >&5
! 7577: echo "${ECHO_T}no" >&6
1.1 millert 7578: fi
1.7.2.1 ! millert 7579: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7580:
1.7.2.1 ! millert 7581: echo "$as_me:7581: checking max length of uid_t" >&5
! 7582: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
! 7583: if test "${sudo_cv_uid_t_len+set}" = set; then
! 7584: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7585: else
7586: rm -f conftestdata
7587: if test "$cross_compiling" = yes; then
1.7.2.1 ! millert 7588: { { echo "$as_me:7588: error: cannot run test program while cross compiling" >&5
! 7589: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
! 7590: { (exit 1); exit 1; }; }
1.1 millert 7591: else
1.7.2.1 ! millert 7592: cat >conftest.$ac_ext <<_ACEOF
! 7593: #line 7593 "configure"
1.1 millert 7594: #include "confdefs.h"
7595: #include <stdio.h>
7596: #include <pwd.h>
7597: #include <limits.h>
7598: #include <sys/types.h>
7599: #include <sys/param.h>
7600: main() {
7601: FILE *f;
7602: char b[1024];
7603: uid_t u = (uid_t) -1;
7604:
7605: if ((f = fopen("conftestdata", "w")) == NULL)
7606: exit(1);
7607:
7608: (void) sprintf(b, "%u", u);
7609: (void) fprintf(f, "%d\n", strlen(b));
7610: (void) fclose(f);
7611: exit(0);
7612: }
1.7.2.1 ! millert 7613: _ACEOF
! 7614: rm -f conftest$ac_exeext
! 7615: if { (eval echo "$as_me:7615: \"$ac_link\"") >&5
! 7616: (eval $ac_link) 2>&5
! 7617: ac_status=$?
! 7618: echo "$as_me:7618: \$? = $ac_status" >&5
! 7619: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7620: { (eval echo "$as_me:7620: \"$ac_try\"") >&5
! 7621: (eval $ac_try) 2>&5
! 7622: ac_status=$?
! 7623: echo "$as_me:7623: \$? = $ac_status" >&5
! 7624: (exit $ac_status); }; }; then
1.1 millert 7625: sudo_cv_uid_t_len=`cat conftestdata`
7626: else
1.7.2.1 ! millert 7627: echo "$as_me: program exited with status $ac_status" >&5
! 7628: echo "$as_me: failed program was:" >&5
! 7629: cat conftest.$ac_ext >&5
! 7630: sudo_cv_uid_t_len=10
1.1 millert 7631: fi
1.7.2.1 ! millert 7632: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7633: fi
7634:
7635: fi
7636:
7637: rm -f conftestdata
1.7.2.1 ! millert 7638: echo "$as_me:7638: result: $sudo_cv_uid_t_len" >&5
! 7639: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
! 7640:
! 7641: cat >>confdefs.h <<EOF
1.1 millert 7642: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
7643: EOF
7644:
1.7.2.1 ! millert 7645: echo "$as_me:7645: checking for long long support" >&5
! 7646: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
! 7647: cat >conftest.$ac_ext <<_ACEOF
! 7648: #line 7648 "configure"
1.1 millert 7649: #include "confdefs.h"
7650:
1.7.2.1 ! millert 7651: int
! 7652: main ()
! 7653: {
1.1 millert 7654: long long foo = 1000; foo /= 10;
1.7.2.1 ! millert 7655: ;
! 7656: return 0;
! 7657: }
! 7658: _ACEOF
! 7659: rm -f conftest.$ac_objext conftest$ac_exeext
! 7660: if { (eval echo "$as_me:7660: \"$ac_link\"") >&5
! 7661: (eval $ac_link) 2>&5
! 7662: ac_status=$?
! 7663: echo "$as_me:7663: \$? = $ac_status" >&5
! 7664: (exit $ac_status); } &&
! 7665: { ac_try='test -s conftest$ac_exeext'
! 7666: { (eval echo "$as_me:7666: \"$ac_try\"") >&5
! 7667: (eval $ac_try) 2>&5
! 7668: ac_status=$?
! 7669: echo "$as_me:7669: \$? = $ac_status" >&5
! 7670: (exit $ac_status); }; }; then
! 7671:
! 7672: cat >>confdefs.h <<\EOF
1.1 millert 7673: #define HAVE_LONG_LONG 1
7674: EOF
7675:
7676: if test "$cross_compiling" = yes; then
1.7.2.1 ! millert 7677: { { echo "$as_me:7677: error: cannot run test program while cross compiling" >&5
! 7678: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
! 7679: { (exit 1); exit 1; }; }
1.1 millert 7680: else
1.7.2.1 ! millert 7681: cat >conftest.$ac_ext <<_ACEOF
! 7682: #line 7682 "configure"
1.1 millert 7683: #include "confdefs.h"
7684: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.7.2.1 ! millert 7685: _ACEOF
! 7686: rm -f conftest$ac_exeext
! 7687: if { (eval echo "$as_me:7687: \"$ac_link\"") >&5
! 7688: (eval $ac_link) 2>&5
! 7689: ac_status=$?
! 7690: echo "$as_me:7690: \$? = $ac_status" >&5
! 7691: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7692: { (eval echo "$as_me:7692: \"$ac_try\"") >&5
! 7693: (eval $ac_try) 2>&5
! 7694: ac_status=$?
! 7695: echo "$as_me:7695: \$? = $ac_status" >&5
! 7696: (exit $ac_status); }; }; then
! 7697:
! 7698: cat >>confdefs.h <<\EOF
1.1 millert 7699: #define LONG_IS_QUAD 1
7700: EOF
7701:
7702: else
1.7.2.1 ! millert 7703: echo "$as_me: program exited with status $ac_status" >&5
! 7704: echo "$as_me: failed program was:" >&5
! 7705: cat conftest.$ac_ext >&5
! 7706: fi
! 7707: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7708: fi
! 7709: echo "$as_me:7709: result: yes" >&5
! 7710: echo "${ECHO_T}yes" >&6
! 7711: else
! 7712: echo "$as_me: failed program was:" >&5
! 7713: cat conftest.$ac_ext >&5
! 7714: echo "$as_me:7714: result: no" >&5
! 7715: echo "${ECHO_T}no" >&6
! 7716: fi
! 7717: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7718: echo "$as_me:7718: checking for sa_len field in struct sockaddr" >&5
! 7719: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
! 7720: if test "${sudo_cv_sock_sa_len+set}" = set; then
! 7721: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7722: else
7723: if test "$cross_compiling" = yes; then
7724: sudo_cv_sock_sa_len=no
7725: else
1.7.2.1 ! millert 7726: cat >conftest.$ac_ext <<_ACEOF
! 7727: #line 7727 "configure"
1.1 millert 7728: #include "confdefs.h"
7729: #include <sys/types.h>
7730: #include <sys/socket.h>
7731: main() {
7732: struct sockaddr s;
7733: s.sa_len = 0;
7734: exit(0);
7735: }
1.7.2.1 ! millert 7736: _ACEOF
! 7737: rm -f conftest$ac_exeext
! 7738: if { (eval echo "$as_me:7738: \"$ac_link\"") >&5
! 7739: (eval $ac_link) 2>&5
! 7740: ac_status=$?
! 7741: echo "$as_me:7741: \$? = $ac_status" >&5
! 7742: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7743: { (eval echo "$as_me:7743: \"$ac_try\"") >&5
! 7744: (eval $ac_try) 2>&5
! 7745: ac_status=$?
! 7746: echo "$as_me:7746: \$? = $ac_status" >&5
! 7747: (exit $ac_status); }; }; then
1.1 millert 7748: sudo_cv_sock_sa_len=yes
7749: else
1.7.2.1 ! millert 7750: echo "$as_me: program exited with status $ac_status" >&5
! 7751: echo "$as_me: failed program was:" >&5
! 7752: cat conftest.$ac_ext >&5
! 7753: sudo_cv_sock_sa_len=no
1.1 millert 7754: fi
1.7.2.1 ! millert 7755: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7756: fi
7757: rm -f core core.* *.core
7758: fi
1.7.2.1 ! millert 7759: echo "$as_me:7759: result: $sudo_cv_sock_sa_len" >&5
! 7760: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1 millert 7761: if test $sudo_cv_sock_sa_len = yes; then
1.7.2.1 ! millert 7762:
! 7763: cat >>confdefs.h <<\EOF
1.1 millert 7764: #define HAVE_SA_LEN 1
7765: EOF
7766:
7767: fi
7768:
7769: case "$DEFS" in
7770: *"RETSIGTYPE"*) ;;
1.7.2.1 ! millert 7771: *) echo "$as_me:7771: checking return type of signal handlers" >&5
! 7772: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
! 7773: if test "${ac_cv_type_signal+set}" = set; then
! 7774: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7775: else
1.7.2.1 ! millert 7776: cat >conftest.$ac_ext <<_ACEOF
! 7777: #line 7777 "configure"
1.1 millert 7778: #include "confdefs.h"
7779: #include <sys/types.h>
7780: #include <signal.h>
7781: #ifdef signal
1.7.2.1 ! millert 7782: # undef signal
1.1 millert 7783: #endif
7784: #ifdef __cplusplus
7785: extern "C" void (*signal (int, void (*)(int)))(int);
7786: #else
7787: void (*signal ()) ();
7788: #endif
7789:
1.7.2.1 ! millert 7790: int
! 7791: main ()
! 7792: {
1.1 millert 7793: int i;
1.7.2.1 ! millert 7794: ;
! 7795: return 0;
! 7796: }
! 7797: _ACEOF
! 7798: rm -f conftest.$ac_objext
! 7799: if { (eval echo "$as_me:7799: \"$ac_compile\"") >&5
! 7800: (eval $ac_compile) 2>&5
! 7801: ac_status=$?
! 7802: echo "$as_me:7802: \$? = $ac_status" >&5
! 7803: (exit $ac_status); } &&
! 7804: { ac_try='test -s conftest.$ac_objext'
! 7805: { (eval echo "$as_me:7805: \"$ac_try\"") >&5
! 7806: (eval $ac_try) 2>&5
! 7807: ac_status=$?
! 7808: echo "$as_me:7808: \$? = $ac_status" >&5
! 7809: (exit $ac_status); }; }; then
1.1 millert 7810: ac_cv_type_signal=void
7811: else
1.7.2.1 ! millert 7812: echo "$as_me: failed program was:" >&5
! 7813: cat conftest.$ac_ext >&5
! 7814: ac_cv_type_signal=int
1.1 millert 7815: fi
1.7.2.1 ! millert 7816: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7817: fi
1.7.2.1 ! millert 7818: echo "$as_me:7818: result: $ac_cv_type_signal" >&5
! 7819: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1 millert 7820:
1.7.2.1 ! millert 7821: cat >>confdefs.h <<EOF
1.1 millert 7822: #define RETSIGTYPE $ac_cv_type_signal
7823: EOF
7824:
7825: ;;
7826: esac
1.7.2.1 ! millert 7827:
! 7828: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
! 7829: seteuid setegid strftime setrlimit initgroups fstat
1.1 millert 7830: do
1.7.2.1 ! millert 7831: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 7832: echo "$as_me:7832: checking for $ac_func" >&5
! 7833: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 7834: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 7835: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7836: else
1.7.2.1 ! millert 7837: cat >conftest.$ac_ext <<_ACEOF
! 7838: #line 7838 "configure"
1.1 millert 7839: #include "confdefs.h"
7840: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 7841: which can conflict with char $ac_func (); below. */
1.1 millert 7842: #include <assert.h>
7843: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 7844: #ifdef __cplusplus
! 7845: extern "C"
! 7846: #endif
1.1 millert 7847: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 7848: builtin and then its argument prototype would still apply. */
! 7849: char $ac_func ();
! 7850: char (*f) ();
1.1 millert 7851:
1.7.2.1 ! millert 7852: int
! 7853: main ()
! 7854: {
1.1 millert 7855: /* The GNU C library defines this for functions which it implements
7856: to always fail with ENOSYS. Some functions are actually named
7857: something starting with __ and the normal name is an alias. */
7858: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7859: choke me
7860: #else
1.7.2.1 ! millert 7861: f = $ac_func;
1.1 millert 7862: #endif
7863:
1.7.2.1 ! millert 7864: ;
! 7865: return 0;
! 7866: }
! 7867: _ACEOF
! 7868: rm -f conftest.$ac_objext conftest$ac_exeext
! 7869: if { (eval echo "$as_me:7869: \"$ac_link\"") >&5
! 7870: (eval $ac_link) 2>&5
! 7871: ac_status=$?
! 7872: echo "$as_me:7872: \$? = $ac_status" >&5
! 7873: (exit $ac_status); } &&
! 7874: { ac_try='test -s conftest$ac_exeext'
! 7875: { (eval echo "$as_me:7875: \"$ac_try\"") >&5
! 7876: (eval $ac_try) 2>&5
! 7877: ac_status=$?
! 7878: echo "$as_me:7878: \$? = $ac_status" >&5
! 7879: (exit $ac_status); }; }; then
! 7880: eval "$as_ac_var=yes"
! 7881: else
! 7882: echo "$as_me: failed program was:" >&5
! 7883: cat conftest.$ac_ext >&5
! 7884: eval "$as_ac_var=no"
! 7885: fi
! 7886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7887: fi
! 7888: echo "$as_me:7888: result: `eval echo '${'$as_ac_var'}'`" >&5
! 7889: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 7890: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 7891: cat >>confdefs.h <<EOF
! 7892: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 7893: EOF
7894:
7895: fi
7896: done
7897:
1.7.2.1 ! millert 7898: if test -z "$BROKEN_SETREUID"; then
! 7899:
! 7900: for ac_func in setreuid
1.1 millert 7901: do
1.7.2.1 ! millert 7902: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 7903: echo "$as_me:7903: checking for $ac_func" >&5
! 7904: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 7905: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 7906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7907: else
1.7.2.1 ! millert 7908: cat >conftest.$ac_ext <<_ACEOF
! 7909: #line 7909 "configure"
1.1 millert 7910: #include "confdefs.h"
7911: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 7912: which can conflict with char $ac_func (); below. */
1.1 millert 7913: #include <assert.h>
7914: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 7915: #ifdef __cplusplus
! 7916: extern "C"
! 7917: #endif
1.1 millert 7918: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 7919: builtin and then its argument prototype would still apply. */
! 7920: char $ac_func ();
! 7921: char (*f) ();
1.1 millert 7922:
1.7.2.1 ! millert 7923: int
! 7924: main ()
! 7925: {
1.1 millert 7926: /* The GNU C library defines this for functions which it implements
7927: to always fail with ENOSYS. Some functions are actually named
7928: something starting with __ and the normal name is an alias. */
7929: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7930: choke me
7931: #else
1.7.2.1 ! millert 7932: f = $ac_func;
1.1 millert 7933: #endif
7934:
1.7.2.1 ! millert 7935: ;
! 7936: return 0;
! 7937: }
! 7938: _ACEOF
! 7939: rm -f conftest.$ac_objext conftest$ac_exeext
! 7940: if { (eval echo "$as_me:7940: \"$ac_link\"") >&5
! 7941: (eval $ac_link) 2>&5
! 7942: ac_status=$?
! 7943: echo "$as_me:7943: \$? = $ac_status" >&5
! 7944: (exit $ac_status); } &&
! 7945: { ac_try='test -s conftest$ac_exeext'
! 7946: { (eval echo "$as_me:7946: \"$ac_try\"") >&5
! 7947: (eval $ac_try) 2>&5
! 7948: ac_status=$?
! 7949: echo "$as_me:7949: \$? = $ac_status" >&5
! 7950: (exit $ac_status); }; }; then
! 7951: eval "$as_ac_var=yes"
! 7952: else
! 7953: echo "$as_me: failed program was:" >&5
! 7954: cat conftest.$ac_ext >&5
! 7955: eval "$as_ac_var=no"
! 7956: fi
! 7957: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7958: fi
! 7959: echo "$as_me:7959: result: `eval echo '${'$as_ac_var'}'`" >&5
! 7960: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 7961: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 7962: cat >>confdefs.h <<EOF
! 7963: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 7964: EOF
7965:
7966: fi
7967: done
7968:
7969: fi
1.7.2.1 ! millert 7970: if test X"$with_interfaces" != X"no"; then
1.1 millert 7971:
1.7.2.1 ! millert 7972: for ac_func in getifaddrs
1.1 millert 7973: do
1.7.2.1 ! millert 7974: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 7975: echo "$as_me:7975: checking for $ac_func" >&5
! 7976: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 7977: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 7978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7979: else
1.7.2.1 ! millert 7980: cat >conftest.$ac_ext <<_ACEOF
! 7981: #line 7981 "configure"
1.1 millert 7982: #include "confdefs.h"
7983: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 7984: which can conflict with char $ac_func (); below. */
1.1 millert 7985: #include <assert.h>
7986: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 7987: #ifdef __cplusplus
! 7988: extern "C"
! 7989: #endif
1.1 millert 7990: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 7991: builtin and then its argument prototype would still apply. */
! 7992: char $ac_func ();
! 7993: char (*f) ();
1.1 millert 7994:
1.7.2.1 ! millert 7995: int
! 7996: main ()
! 7997: {
1.1 millert 7998: /* The GNU C library defines this for functions which it implements
7999: to always fail with ENOSYS. Some functions are actually named
8000: something starting with __ and the normal name is an alias. */
8001: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8002: choke me
8003: #else
1.7.2.1 ! millert 8004: f = $ac_func;
1.1 millert 8005: #endif
8006:
1.7.2.1 ! millert 8007: ;
! 8008: return 0;
! 8009: }
! 8010: _ACEOF
! 8011: rm -f conftest.$ac_objext conftest$ac_exeext
! 8012: if { (eval echo "$as_me:8012: \"$ac_link\"") >&5
! 8013: (eval $ac_link) 2>&5
! 8014: ac_status=$?
! 8015: echo "$as_me:8015: \$? = $ac_status" >&5
! 8016: (exit $ac_status); } &&
! 8017: { ac_try='test -s conftest$ac_exeext'
! 8018: { (eval echo "$as_me:8018: \"$ac_try\"") >&5
! 8019: (eval $ac_try) 2>&5
! 8020: ac_status=$?
! 8021: echo "$as_me:8021: \$? = $ac_status" >&5
! 8022: (exit $ac_status); }; }; then
! 8023: eval "$as_ac_var=yes"
! 8024: else
! 8025: echo "$as_me: failed program was:" >&5
! 8026: cat conftest.$ac_ext >&5
! 8027: eval "$as_ac_var=no"
! 8028: fi
! 8029: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8030: fi
! 8031: echo "$as_me:8031: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8032: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8033: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8034: cat >>confdefs.h <<EOF
! 8035: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8036: EOF
8037:
8038: fi
8039: done
8040:
8041: fi
1.7.2.1 ! millert 8042: if test -n "$SECUREWARE"; then
1.1 millert 8043:
1.7.2.1 ! millert 8044: for ac_func in bigcrypt set_auth_parameters initprivs
1.1 millert 8045: do
1.7.2.1 ! millert 8046: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8047: echo "$as_me:8047: checking for $ac_func" >&5
! 8048: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8049: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8050: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8051: else
1.7.2.1 ! millert 8052: cat >conftest.$ac_ext <<_ACEOF
! 8053: #line 8053 "configure"
1.1 millert 8054: #include "confdefs.h"
8055: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8056: which can conflict with char $ac_func (); below. */
1.1 millert 8057: #include <assert.h>
8058: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8059: #ifdef __cplusplus
! 8060: extern "C"
! 8061: #endif
1.1 millert 8062: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8063: builtin and then its argument prototype would still apply. */
! 8064: char $ac_func ();
! 8065: char (*f) ();
1.1 millert 8066:
1.7.2.1 ! millert 8067: int
! 8068: main ()
! 8069: {
1.1 millert 8070: /* The GNU C library defines this for functions which it implements
8071: to always fail with ENOSYS. Some functions are actually named
8072: something starting with __ and the normal name is an alias. */
8073: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074: choke me
8075: #else
1.7.2.1 ! millert 8076: f = $ac_func;
1.1 millert 8077: #endif
8078:
1.7.2.1 ! millert 8079: ;
! 8080: return 0;
! 8081: }
! 8082: _ACEOF
! 8083: rm -f conftest.$ac_objext conftest$ac_exeext
! 8084: if { (eval echo "$as_me:8084: \"$ac_link\"") >&5
! 8085: (eval $ac_link) 2>&5
! 8086: ac_status=$?
! 8087: echo "$as_me:8087: \$? = $ac_status" >&5
! 8088: (exit $ac_status); } &&
! 8089: { ac_try='test -s conftest$ac_exeext'
! 8090: { (eval echo "$as_me:8090: \"$ac_try\"") >&5
! 8091: (eval $ac_try) 2>&5
! 8092: ac_status=$?
! 8093: echo "$as_me:8093: \$? = $ac_status" >&5
! 8094: (exit $ac_status); }; }; then
! 8095: eval "$as_ac_var=yes"
! 8096: else
! 8097: echo "$as_me: failed program was:" >&5
! 8098: cat conftest.$ac_ext >&5
! 8099: eval "$as_ac_var=no"
! 8100: fi
! 8101: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8102: fi
! 8103: echo "$as_me:8103: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8104: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8105: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8106: cat >>confdefs.h <<EOF
! 8107: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8108: EOF
8109:
8110: fi
8111: done
8112:
8113: fi
1.7.2.1 ! millert 8114: if test -z "$BROKEN_GETCWD"; then
1.1 millert 8115:
1.7.2.1 ! millert 8116: for ac_func in getcwd
1.1 millert 8117: do
1.7.2.1 ! millert 8118: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8119: echo "$as_me:8119: checking for $ac_func" >&5
! 8120: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8121: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8123: else
1.7.2.1 ! millert 8124: cat >conftest.$ac_ext <<_ACEOF
! 8125: #line 8125 "configure"
1.1 millert 8126: #include "confdefs.h"
8127: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8128: which can conflict with char $ac_func (); below. */
1.1 millert 8129: #include <assert.h>
8130: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8131: #ifdef __cplusplus
! 8132: extern "C"
! 8133: #endif
1.1 millert 8134: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8135: builtin and then its argument prototype would still apply. */
! 8136: char $ac_func ();
! 8137: char (*f) ();
1.1 millert 8138:
1.7.2.1 ! millert 8139: int
! 8140: main ()
! 8141: {
1.1 millert 8142: /* The GNU C library defines this for functions which it implements
8143: to always fail with ENOSYS. Some functions are actually named
8144: something starting with __ and the normal name is an alias. */
8145: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146: choke me
8147: #else
1.7.2.1 ! millert 8148: f = $ac_func;
1.1 millert 8149: #endif
8150:
1.7.2.1 ! millert 8151: ;
! 8152: return 0;
! 8153: }
! 8154: _ACEOF
! 8155: rm -f conftest.$ac_objext conftest$ac_exeext
! 8156: if { (eval echo "$as_me:8156: \"$ac_link\"") >&5
! 8157: (eval $ac_link) 2>&5
! 8158: ac_status=$?
! 8159: echo "$as_me:8159: \$? = $ac_status" >&5
! 8160: (exit $ac_status); } &&
! 8161: { ac_try='test -s conftest$ac_exeext'
! 8162: { (eval echo "$as_me:8162: \"$ac_try\"") >&5
! 8163: (eval $ac_try) 2>&5
! 8164: ac_status=$?
! 8165: echo "$as_me:8165: \$? = $ac_status" >&5
! 8166: (exit $ac_status); }; }; then
! 8167: eval "$as_ac_var=yes"
! 8168: else
! 8169: echo "$as_me: failed program was:" >&5
! 8170: cat conftest.$ac_ext >&5
! 8171: eval "$as_ac_var=no"
! 8172: fi
! 8173: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8174: fi
! 8175: echo "$as_me:8175: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8176: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8177: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8178: cat >>confdefs.h <<EOF
! 8179: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8180: EOF
8181:
8182: else
1.7.2.1 ! millert 8183: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 8184: fi
8185: done
8186:
8187: fi
8188:
1.7.2.1 ! millert 8189: for ac_func in lockf flock
! 8190: do
! 8191: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8192: echo "$as_me:8192: checking for $ac_func" >&5
! 8193: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8194: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8195: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8196: else
1.7.2.1 ! millert 8197: cat >conftest.$ac_ext <<_ACEOF
! 8198: #line 8198 "configure"
1.1 millert 8199: #include "confdefs.h"
8200: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8201: which can conflict with char $ac_func (); below. */
1.1 millert 8202: #include <assert.h>
8203: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8204: #ifdef __cplusplus
! 8205: extern "C"
! 8206: #endif
1.1 millert 8207: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8208: builtin and then its argument prototype would still apply. */
! 8209: char $ac_func ();
! 8210: char (*f) ();
1.1 millert 8211:
1.7.2.1 ! millert 8212: int
! 8213: main ()
! 8214: {
1.1 millert 8215: /* The GNU C library defines this for functions which it implements
8216: to always fail with ENOSYS. Some functions are actually named
8217: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8218: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8219: choke me
8220: #else
1.7.2.1 ! millert 8221: f = $ac_func;
1.1 millert 8222: #endif
8223:
1.7.2.1 ! millert 8224: ;
! 8225: return 0;
! 8226: }
! 8227: _ACEOF
! 8228: rm -f conftest.$ac_objext conftest$ac_exeext
! 8229: if { (eval echo "$as_me:8229: \"$ac_link\"") >&5
! 8230: (eval $ac_link) 2>&5
! 8231: ac_status=$?
! 8232: echo "$as_me:8232: \$? = $ac_status" >&5
! 8233: (exit $ac_status); } &&
! 8234: { ac_try='test -s conftest$ac_exeext'
! 8235: { (eval echo "$as_me:8235: \"$ac_try\"") >&5
! 8236: (eval $ac_try) 2>&5
! 8237: ac_status=$?
! 8238: echo "$as_me:8238: \$? = $ac_status" >&5
! 8239: (exit $ac_status); }; }; then
! 8240: eval "$as_ac_var=yes"
! 8241: else
! 8242: echo "$as_me: failed program was:" >&5
! 8243: cat conftest.$ac_ext >&5
! 8244: eval "$as_ac_var=no"
! 8245: fi
! 8246: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8247: fi
! 8248: echo "$as_me:8248: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8249: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8250: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8251: cat >>confdefs.h <<EOF
! 8252: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8253: EOF
1.7.2.1 ! millert 8254: break
1.1 millert 8255: fi
1.7.2.1 ! millert 8256: done
1.1 millert 8257:
1.7.2.1 ! millert 8258: for ac_func in waitpid wait3
1.1 millert 8259: do
1.7.2.1 ! millert 8260: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8261: echo "$as_me:8261: checking for $ac_func" >&5
! 8262: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8263: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8264: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8265: else
1.7.2.1 ! millert 8266: cat >conftest.$ac_ext <<_ACEOF
! 8267: #line 8267 "configure"
1.1 millert 8268: #include "confdefs.h"
8269: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8270: which can conflict with char $ac_func (); below. */
1.1 millert 8271: #include <assert.h>
8272: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8273: #ifdef __cplusplus
! 8274: extern "C"
! 8275: #endif
1.1 millert 8276: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8277: builtin and then its argument prototype would still apply. */
! 8278: char $ac_func ();
! 8279: char (*f) ();
1.1 millert 8280:
1.7.2.1 ! millert 8281: int
! 8282: main ()
! 8283: {
1.1 millert 8284: /* The GNU C library defines this for functions which it implements
8285: to always fail with ENOSYS. Some functions are actually named
8286: something starting with __ and the normal name is an alias. */
8287: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288: choke me
8289: #else
1.7.2.1 ! millert 8290: f = $ac_func;
1.1 millert 8291: #endif
8292:
1.7.2.1 ! millert 8293: ;
! 8294: return 0;
! 8295: }
! 8296: _ACEOF
! 8297: rm -f conftest.$ac_objext conftest$ac_exeext
! 8298: if { (eval echo "$as_me:8298: \"$ac_link\"") >&5
! 8299: (eval $ac_link) 2>&5
! 8300: ac_status=$?
! 8301: echo "$as_me:8301: \$? = $ac_status" >&5
! 8302: (exit $ac_status); } &&
! 8303: { ac_try='test -s conftest$ac_exeext'
! 8304: { (eval echo "$as_me:8304: \"$ac_try\"") >&5
! 8305: (eval $ac_try) 2>&5
! 8306: ac_status=$?
! 8307: echo "$as_me:8307: \$? = $ac_status" >&5
! 8308: (exit $ac_status); }; }; then
! 8309: eval "$as_ac_var=yes"
! 8310: else
! 8311: echo "$as_me: failed program was:" >&5
! 8312: cat conftest.$ac_ext >&5
! 8313: eval "$as_ac_var=no"
! 8314: fi
! 8315: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8316: fi
! 8317: echo "$as_me:8317: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8318: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8319: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8320: cat >>confdefs.h <<EOF
! 8321: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8322: EOF
1.7.2.1 ! millert 8323: break
1.1 millert 8324: fi
8325: done
8326:
1.7.2.1 ! millert 8327: for ac_func in innetgr _innetgr
! 8328: do
! 8329: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8330: echo "$as_me:8330: checking for $ac_func" >&5
! 8331: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8332: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8333: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8334: else
1.7.2.1 ! millert 8335: cat >conftest.$ac_ext <<_ACEOF
! 8336: #line 8336 "configure"
1.1 millert 8337: #include "confdefs.h"
8338: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8339: which can conflict with char $ac_func (); below. */
1.1 millert 8340: #include <assert.h>
8341: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8342: #ifdef __cplusplus
! 8343: extern "C"
! 8344: #endif
1.1 millert 8345: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8346: builtin and then its argument prototype would still apply. */
! 8347: char $ac_func ();
! 8348: char (*f) ();
1.1 millert 8349:
1.7.2.1 ! millert 8350: int
! 8351: main ()
! 8352: {
1.1 millert 8353: /* The GNU C library defines this for functions which it implements
8354: to always fail with ENOSYS. Some functions are actually named
8355: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8356: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8357: choke me
8358: #else
1.7.2.1 ! millert 8359: f = $ac_func;
1.1 millert 8360: #endif
8361:
1.7.2.1 ! millert 8362: ;
! 8363: return 0;
! 8364: }
! 8365: _ACEOF
! 8366: rm -f conftest.$ac_objext conftest$ac_exeext
! 8367: if { (eval echo "$as_me:8367: \"$ac_link\"") >&5
! 8368: (eval $ac_link) 2>&5
! 8369: ac_status=$?
! 8370: echo "$as_me:8370: \$? = $ac_status" >&5
! 8371: (exit $ac_status); } &&
! 8372: { ac_try='test -s conftest$ac_exeext'
! 8373: { (eval echo "$as_me:8373: \"$ac_try\"") >&5
! 8374: (eval $ac_try) 2>&5
! 8375: ac_status=$?
! 8376: echo "$as_me:8376: \$? = $ac_status" >&5
! 8377: (exit $ac_status); }; }; then
! 8378: eval "$as_ac_var=yes"
! 8379: else
! 8380: echo "$as_me: failed program was:" >&5
! 8381: cat conftest.$ac_ext >&5
! 8382: eval "$as_ac_var=no"
! 8383: fi
! 8384: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8385: fi
! 8386: echo "$as_me:8386: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8387: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8388: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8389: cat >>confdefs.h <<EOF
! 8390: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8391: EOF
8392:
1.7.2.1 ! millert 8393: for ac_func in getdomainname
! 8394: do
! 8395: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8396: echo "$as_me:8396: checking for $ac_func" >&5
! 8397: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8398: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8399: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8400: else
1.7.2.1 ! millert 8401: cat >conftest.$ac_ext <<_ACEOF
! 8402: #line 8402 "configure"
1.1 millert 8403: #include "confdefs.h"
1.7.2.1 ! millert 8404: /* System header to define __stub macros and hopefully few prototypes
1.1 millert 8405: else
1.7.2.1 ! millert 8406: which can conflict with char $ac_func (); below. */
1.1 millert 8407: #include <assert.h>
8408: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8409: #ifdef __cplusplus
! 8410: extern "C"
! 8411: #endif
1.1 millert 8412: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8413: builtin and then its argument prototype would still apply. */
! 8414: char $ac_func ();
! 8415: char (*f) ();
1.1 millert 8416:
1.7.2.1 ! millert 8417: int
! 8418: main ()
! 8419: {
1.1 millert 8420: /* The GNU C library defines this for functions which it implements
8421: to always fail with ENOSYS. Some functions are actually named
8422: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8423: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8424: choke me
8425: #else
1.7.2.1 ! millert 8426: f = $ac_func;
1.1 millert 8427: #endif
8428:
1.7.2.1 ! millert 8429: ;
! 8430: return 0;
! 8431: }
! 8432: _ACEOF
! 8433: rm -f conftest.$ac_objext conftest$ac_exeext
! 8434: if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
! 8435: (eval $ac_link) 2>&5
! 8436: ac_status=$?
! 8437: echo "$as_me:8437: \$? = $ac_status" >&5
! 8438: (exit $ac_status); } &&
! 8439: { ac_try='test -s conftest$ac_exeext'
! 8440: { (eval echo "$as_me:8440: \"$ac_try\"") >&5
! 8441: (eval $ac_try) 2>&5
! 8442: ac_status=$?
! 8443: echo "$as_me:8443: \$? = $ac_status" >&5
! 8444: (exit $ac_status); }; }; then
! 8445: eval "$as_ac_var=yes"
! 8446: else
! 8447: echo "$as_me: failed program was:" >&5
! 8448: cat conftest.$ac_ext >&5
! 8449: eval "$as_ac_var=no"
! 8450: fi
! 8451: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8452: fi
! 8453: echo "$as_me:8453: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8454: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8455: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8456: cat >>confdefs.h <<EOF
! 8457: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8458: EOF
1.7.2.1 ! millert 8459:
1.1 millert 8460: fi
1.7.2.1 ! millert 8461: done
! 8462: break
1.1 millert 8463: fi
1.7.2.1 ! millert 8464: done
1.1 millert 8465:
1.7.2.1 ! millert 8466: for ac_func in lsearch
! 8467: do
! 8468: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8469: echo "$as_me:8469: checking for $ac_func" >&5
! 8470: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8471: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8472: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8473: else
1.7.2.1 ! millert 8474: cat >conftest.$ac_ext <<_ACEOF
! 8475: #line 8475 "configure"
1.1 millert 8476: #include "confdefs.h"
8477: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8478: which can conflict with char $ac_func (); below. */
1.1 millert 8479: #include <assert.h>
8480: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8481: #ifdef __cplusplus
! 8482: extern "C"
! 8483: #endif
1.1 millert 8484: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8485: builtin and then its argument prototype would still apply. */
! 8486: char $ac_func ();
! 8487: char (*f) ();
1.1 millert 8488:
1.7.2.1 ! millert 8489: int
! 8490: main ()
! 8491: {
1.1 millert 8492: /* The GNU C library defines this for functions which it implements
8493: to always fail with ENOSYS. Some functions are actually named
8494: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8495: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8496: choke me
8497: #else
1.7.2.1 ! millert 8498: f = $ac_func;
1.1 millert 8499: #endif
8500:
1.7.2.1 ! millert 8501: ;
! 8502: return 0;
! 8503: }
! 8504: _ACEOF
! 8505: rm -f conftest.$ac_objext conftest$ac_exeext
! 8506: if { (eval echo "$as_me:8506: \"$ac_link\"") >&5
! 8507: (eval $ac_link) 2>&5
! 8508: ac_status=$?
! 8509: echo "$as_me:8509: \$? = $ac_status" >&5
! 8510: (exit $ac_status); } &&
! 8511: { ac_try='test -s conftest$ac_exeext'
! 8512: { (eval echo "$as_me:8512: \"$ac_try\"") >&5
! 8513: (eval $ac_try) 2>&5
! 8514: ac_status=$?
! 8515: echo "$as_me:8515: \$? = $ac_status" >&5
! 8516: (exit $ac_status); }; }; then
! 8517: eval "$as_ac_var=yes"
! 8518: else
! 8519: echo "$as_me: failed program was:" >&5
! 8520: cat conftest.$ac_ext >&5
! 8521: eval "$as_ac_var=no"
! 8522: fi
! 8523: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8524: fi
! 8525: echo "$as_me:8525: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8526: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8527: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8528: cat >>confdefs.h <<EOF
! 8529: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8530: EOF
1.7.2.1 ! millert 8531:
! 8532: else
! 8533: echo "$as_me:8533: checking for lsearch in -lcompat" >&5
! 8534: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
! 8535: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
! 8536: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8537: else
! 8538: ac_check_lib_save_LIBS=$LIBS
! 8539: LIBS="-lcompat $LIBS"
! 8540: cat >conftest.$ac_ext <<_ACEOF
! 8541: #line 8541 "configure"
! 8542: #include "confdefs.h"
! 8543:
! 8544: /* Override any gcc2 internal prototype to avoid an error. */
! 8545: #ifdef __cplusplus
! 8546: extern "C"
! 8547: #endif
! 8548: /* We use char because int might match the return type of a gcc2
! 8549: builtin and then its argument prototype would still apply. */
! 8550: char lsearch ();
! 8551: int
! 8552: main ()
! 8553: {
! 8554: lsearch ();
! 8555: ;
! 8556: return 0;
! 8557: }
! 8558: _ACEOF
! 8559: rm -f conftest.$ac_objext conftest$ac_exeext
! 8560: if { (eval echo "$as_me:8560: \"$ac_link\"") >&5
! 8561: (eval $ac_link) 2>&5
! 8562: ac_status=$?
! 8563: echo "$as_me:8563: \$? = $ac_status" >&5
! 8564: (exit $ac_status); } &&
! 8565: { ac_try='test -s conftest$ac_exeext'
! 8566: { (eval echo "$as_me:8566: \"$ac_try\"") >&5
! 8567: (eval $ac_try) 2>&5
! 8568: ac_status=$?
! 8569: echo "$as_me:8569: \$? = $ac_status" >&5
! 8570: (exit $ac_status); }; }; then
! 8571: ac_cv_lib_compat_lsearch=yes
! 8572: else
! 8573: echo "$as_me: failed program was:" >&5
! 8574: cat conftest.$ac_ext >&5
! 8575: ac_cv_lib_compat_lsearch=no
! 8576: fi
! 8577: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8578: LIBS=$ac_check_lib_save_LIBS
! 8579: fi
! 8580: echo "$as_me:8580: result: $ac_cv_lib_compat_lsearch" >&5
! 8581: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
! 8582: if test $ac_cv_lib_compat_lsearch = yes; then
! 8583: echo "$as_me:8583: checking for search.h" >&5
! 8584: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
! 8585: if test "${ac_cv_header_search_h+set}" = set; then
! 8586: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8587: else
! 8588: cat >conftest.$ac_ext <<_ACEOF
! 8589: #line 8589 "configure"
! 8590: #include "confdefs.h"
! 8591: #include <search.h>
! 8592: _ACEOF
! 8593: if { (eval echo "$as_me:8593: \"$ac_cpp conftest.$ac_ext\"") >&5
! 8594: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 8595: ac_status=$?
! 8596: egrep -v '^ *\+' conftest.er1 >conftest.err
! 8597: rm -f conftest.er1
! 8598: cat conftest.err >&5
! 8599: echo "$as_me:8599: \$? = $ac_status" >&5
! 8600: (exit $ac_status); } >/dev/null; then
! 8601: if test -s conftest.err; then
! 8602: ac_cpp_err=$ac_c_preproc_warn_flag
! 8603: else
! 8604: ac_cpp_err=
! 8605: fi
! 8606: else
! 8607: ac_cpp_err=yes
! 8608: fi
! 8609: if test -z "$ac_cpp_err"; then
! 8610: ac_cv_header_search_h=yes
1.1 millert 8611: else
1.7.2.1 ! millert 8612: echo "$as_me: failed program was:" >&5
1.1 millert 8613: cat conftest.$ac_ext >&5
1.7.2.1 ! millert 8614: ac_cv_header_search_h=no
1.1 millert 8615: fi
1.7.2.1 ! millert 8616: rm -f conftest.err conftest.$ac_ext
1.1 millert 8617: fi
1.7.2.1 ! millert 8618: echo "$as_me:8618: result: $ac_cv_header_search_h" >&5
! 8619: echo "${ECHO_T}$ac_cv_header_search_h" >&6
! 8620: if test $ac_cv_header_search_h = yes; then
! 8621: cat >>confdefs.h <<\EOF
! 8622: #define HAVE_LSEARCH 1
1.1 millert 8623: EOF
1.7.2.1 ! millert 8624: LIBS="${LIBS} -lcompat"
! 8625: else
! 8626: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
! 8627: fi
1.1 millert 8628:
8629: else
1.7.2.1 ! millert 8630: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1 millert 8631: fi
8632:
8633: fi
1.7.2.1 ! millert 8634: done
1.1 millert 8635:
1.7.2.1 ! millert 8636: for ac_func in utime
! 8637: do
! 8638: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8639: echo "$as_me:8639: checking for $ac_func" >&5
! 8640: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8641: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8642: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8643: else
1.7.2.1 ! millert 8644: cat >conftest.$ac_ext <<_ACEOF
! 8645: #line 8645 "configure"
1.1 millert 8646: #include "confdefs.h"
8647: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8648: which can conflict with char $ac_func (); below. */
1.1 millert 8649: #include <assert.h>
8650: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8651: #ifdef __cplusplus
! 8652: extern "C"
! 8653: #endif
1.1 millert 8654: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8655: builtin and then its argument prototype would still apply. */
! 8656: char $ac_func ();
! 8657: char (*f) ();
1.1 millert 8658:
1.7.2.1 ! millert 8659: int
! 8660: main ()
! 8661: {
1.1 millert 8662: /* The GNU C library defines this for functions which it implements
8663: to always fail with ENOSYS. Some functions are actually named
8664: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8665: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8666: choke me
8667: #else
1.7.2.1 ! millert 8668: f = $ac_func;
1.1 millert 8669: #endif
8670:
1.7.2.1 ! millert 8671: ;
! 8672: return 0;
! 8673: }
! 8674: _ACEOF
! 8675: rm -f conftest.$ac_objext conftest$ac_exeext
! 8676: if { (eval echo "$as_me:8676: \"$ac_link\"") >&5
! 8677: (eval $ac_link) 2>&5
! 8678: ac_status=$?
! 8679: echo "$as_me:8679: \$? = $ac_status" >&5
! 8680: (exit $ac_status); } &&
! 8681: { ac_try='test -s conftest$ac_exeext'
! 8682: { (eval echo "$as_me:8682: \"$ac_try\"") >&5
! 8683: (eval $ac_try) 2>&5
! 8684: ac_status=$?
! 8685: echo "$as_me:8685: \$? = $ac_status" >&5
! 8686: (exit $ac_status); }; }; then
! 8687: eval "$as_ac_var=yes"
! 8688: else
! 8689: echo "$as_me: failed program was:" >&5
! 8690: cat conftest.$ac_ext >&5
! 8691: eval "$as_ac_var=no"
! 8692: fi
! 8693: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8694: fi
! 8695: echo "$as_me:8695: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8696: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8697: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8698: cat >>confdefs.h <<EOF
! 8699: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 8700: EOF
! 8701: echo "$as_me:8701: checking for POSIX utime" >&5
! 8702: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
! 8703: if test "${sudo_cv_func_utime_posix+set}" = set; then
! 8704: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8705: else
8706: rm -f conftestdata; > conftestdata
8707: if test "$cross_compiling" = yes; then
8708: sudo_cv_func_utime_posix=no
8709: else
1.7.2.1 ! millert 8710: cat >conftest.$ac_ext <<_ACEOF
! 8711: #line 8711 "configure"
1.1 millert 8712: #include "confdefs.h"
8713: #include <sys/types.h>
8714: #include <sys/time.h>
8715: #include <utime.h>
8716: main() {
8717: struct utimbuf ut;
8718: ut.actime = ut.modtime = time(0);
8719: utime("conftestdata", &ut);
8720: exit(0);
8721: }
1.7.2.1 ! millert 8722: _ACEOF
! 8723: rm -f conftest$ac_exeext
! 8724: if { (eval echo "$as_me:8724: \"$ac_link\"") >&5
! 8725: (eval $ac_link) 2>&5
! 8726: ac_status=$?
! 8727: echo "$as_me:8727: \$? = $ac_status" >&5
! 8728: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8729: { (eval echo "$as_me:8729: \"$ac_try\"") >&5
! 8730: (eval $ac_try) 2>&5
! 8731: ac_status=$?
! 8732: echo "$as_me:8732: \$? = $ac_status" >&5
! 8733: (exit $ac_status); }; }; then
1.1 millert 8734: sudo_cv_func_utime_posix=yes
8735: else
1.7.2.1 ! millert 8736: echo "$as_me: program exited with status $ac_status" >&5
! 8737: echo "$as_me: failed program was:" >&5
! 8738: cat conftest.$ac_ext >&5
! 8739: sudo_cv_func_utime_posix=no
1.1 millert 8740: fi
1.7.2.1 ! millert 8741: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 8742: fi
8743: rm -f core core.* *.core
8744: fi
1.7.2.1 ! millert 8745: echo "$as_me:8745: result: $sudo_cv_func_utime_posix" >&5
! 8746: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1 millert 8747: if test $sudo_cv_func_utime_posix = yes; then
1.7.2.1 ! millert 8748:
! 8749: cat >>confdefs.h <<\EOF
1.1 millert 8750: #define HAVE_UTIME_POSIX 1
8751: EOF
8752:
8753: fi
8754:
8755: else
1.7.2.1 ! millert 8756: LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1 millert 8757: fi
1.7.2.1 ! millert 8758: done
1.1 millert 8759:
1.7.2.1 ! millert 8760: echo "$as_me:8760: checking for working fnmatch with FNM_CASEFOLD" >&5
! 8761: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
! 8762: if test "${sudo_cv_func_fnmatch+set}" = set; then
! 8763: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8764: else
8765: rm -f conftestdata; > conftestdata
8766: if test "$cross_compiling" = yes; then
8767: sudo_cv_func_fnmatch=no
8768: else
1.7.2.1 ! millert 8769: cat >conftest.$ac_ext <<_ACEOF
! 8770: #line 8770 "configure"
1.1 millert 8771: #include "confdefs.h"
1.3 millert 8772: #include <fnmatch.h>
1.6 millert 8773: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3 millert 8774:
1.7.2.1 ! millert 8775: _ACEOF
! 8776: rm -f conftest$ac_exeext
! 8777: if { (eval echo "$as_me:8777: \"$ac_link\"") >&5
! 8778: (eval $ac_link) 2>&5
! 8779: ac_status=$?
! 8780: echo "$as_me:8780: \$? = $ac_status" >&5
! 8781: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8782: { (eval echo "$as_me:8782: \"$ac_try\"") >&5
! 8783: (eval $ac_try) 2>&5
! 8784: ac_status=$?
! 8785: echo "$as_me:8785: \$? = $ac_status" >&5
! 8786: (exit $ac_status); }; }; then
1.1 millert 8787: sudo_cv_func_fnmatch=yes
8788: else
1.7.2.1 ! millert 8789: echo "$as_me: program exited with status $ac_status" >&5
! 8790: echo "$as_me: failed program was:" >&5
! 8791: cat conftest.$ac_ext >&5
! 8792: sudo_cv_func_fnmatch=no
1.1 millert 8793: fi
1.7.2.1 ! millert 8794: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 8795: fi
8796: rm -f core core.* *.core
8797: fi
1.7.2.1 ! millert 8798: echo "$as_me:8798: result: $sudo_cv_func_fnmatch" >&5
! 8799: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1 millert 8800: if test $sudo_cv_func_fnmatch = yes; then
1.7.2.1 ! millert 8801:
! 8802: cat >>confdefs.h <<\EOF
1.1 millert 8803: #define HAVE_FNMATCH 1
8804: EOF
8805:
8806: else
1.7.2.1 ! millert 8807: LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1 millert 8808: fi
8809:
1.7.2.1 ! millert 8810: echo "$as_me:8810: checking for isblank" >&5
! 8811: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
! 8812: if test "${sudo_cv_func_isblank+set}" = set; then
! 8813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8814: else
1.7.2.1 ! millert 8815: cat >conftest.$ac_ext <<_ACEOF
! 8816: #line 8816 "configure"
1.1 millert 8817: #include "confdefs.h"
1.7.2.1 ! millert 8818: #include <ctype.h>
! 8819: int
! 8820: main ()
! 8821: {
! 8822: (void)isblank(1);
! 8823: ;
! 8824: return 0;
! 8825: }
! 8826: _ACEOF
! 8827: rm -f conftest.$ac_objext conftest$ac_exeext
! 8828: if { (eval echo "$as_me:8828: \"$ac_link\"") >&5
! 8829: (eval $ac_link) 2>&5
! 8830: ac_status=$?
! 8831: echo "$as_me:8831: \$? = $ac_status" >&5
! 8832: (exit $ac_status); } &&
! 8833: { ac_try='test -s conftest$ac_exeext'
! 8834: { (eval echo "$as_me:8834: \"$ac_try\"") >&5
! 8835: (eval $ac_try) 2>&5
! 8836: ac_status=$?
! 8837: echo "$as_me:8837: \$? = $ac_status" >&5
! 8838: (exit $ac_status); }; }; then
! 8839: sudo_cv_func_isblank=yes
! 8840: else
! 8841: echo "$as_me: failed program was:" >&5
! 8842: cat conftest.$ac_ext >&5
! 8843: sudo_cv_func_isblank=no
! 8844: fi
! 8845: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 8846: fi
1.7.2.1 ! millert 8847: echo "$as_me:8847: result: $sudo_cv_func_isblank" >&5
! 8848: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1 millert 8849:
1.7.2.1 ! millert 8850: if test "$sudo_cv_func_isblank" = "yes"; then
1.1 millert 8851:
1.7.2.1 ! millert 8852: cat >>confdefs.h <<\EOF
! 8853: #define HAVE_ISBLANK 1
1.1 millert 8854: EOF
8855:
1.7.2.1 ! millert 8856: fi
1.1 millert 8857:
1.7.2.1 ! millert 8858: for ac_func in strerror strcasecmp sigaction
! 8859: do
! 8860: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8861: echo "$as_me:8861: checking for $ac_func" >&5
! 8862: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8863: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8865: else
1.7.2.1 ! millert 8866: cat >conftest.$ac_ext <<_ACEOF
! 8867: #line 8867 "configure"
1.1 millert 8868: #include "confdefs.h"
8869: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8870: which can conflict with char $ac_func (); below. */
1.1 millert 8871: #include <assert.h>
8872: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8873: #ifdef __cplusplus
! 8874: extern "C"
1.1 millert 8875: #endif
8876: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8877: builtin and then its argument prototype would still apply. */
! 8878: char $ac_func ();
! 8879: char (*f) ();
1.1 millert 8880:
1.7.2.1 ! millert 8881: int
! 8882: main ()
! 8883: {
1.1 millert 8884: /* The GNU C library defines this for functions which it implements
8885: to always fail with ENOSYS. Some functions are actually named
8886: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8887: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8888: choke me
8889: #else
1.7.2.1 ! millert 8890: f = $ac_func;
1.1 millert 8891: #endif
8892:
1.7.2.1 ! millert 8893: ;
! 8894: return 0;
! 8895: }
! 8896: _ACEOF
! 8897: rm -f conftest.$ac_objext conftest$ac_exeext
! 8898: if { (eval echo "$as_me:8898: \"$ac_link\"") >&5
! 8899: (eval $ac_link) 2>&5
! 8900: ac_status=$?
! 8901: echo "$as_me:8901: \$? = $ac_status" >&5
! 8902: (exit $ac_status); } &&
! 8903: { ac_try='test -s conftest$ac_exeext'
! 8904: { (eval echo "$as_me:8904: \"$ac_try\"") >&5
! 8905: (eval $ac_try) 2>&5
! 8906: ac_status=$?
! 8907: echo "$as_me:8907: \$? = $ac_status" >&5
! 8908: (exit $ac_status); }; }; then
! 8909: eval "$as_ac_var=yes"
! 8910: else
! 8911: echo "$as_me: failed program was:" >&5
! 8912: cat conftest.$ac_ext >&5
! 8913: eval "$as_ac_var=no"
! 8914: fi
! 8915: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8916: fi
! 8917: echo "$as_me:8917: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8918: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8919: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8920: cat >>confdefs.h <<EOF
! 8921: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8922: EOF
8923:
8924: else
1.7.2.1 ! millert 8925: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 8926: fi
1.7.2.1 ! millert 8927: done
1.1 millert 8928:
1.7.2.1 ! millert 8929: for ac_func in snprintf vsnprintf asprintf vasprintf
! 8930: do
! 8931: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8932: echo "$as_me:8932: checking for $ac_func" >&5
! 8933: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 8934: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 8935: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8936: else
1.7.2.1 ! millert 8937: cat >conftest.$ac_ext <<_ACEOF
! 8938: #line 8938 "configure"
1.1 millert 8939: #include "confdefs.h"
8940: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 8941: which can conflict with char $ac_func (); below. */
1.1 millert 8942: #include <assert.h>
8943: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 8944: #ifdef __cplusplus
! 8945: extern "C"
! 8946: #endif
1.1 millert 8947: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 8948: builtin and then its argument prototype would still apply. */
! 8949: char $ac_func ();
! 8950: char (*f) ();
1.1 millert 8951:
1.7.2.1 ! millert 8952: int
! 8953: main ()
! 8954: {
1.1 millert 8955: /* The GNU C library defines this for functions which it implements
8956: to always fail with ENOSYS. Some functions are actually named
8957: something starting with __ and the normal name is an alias. */
1.7.2.1 ! millert 8958: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8959: choke me
8960: #else
1.7.2.1 ! millert 8961: f = $ac_func;
1.1 millert 8962: #endif
8963:
1.7.2.1 ! millert 8964: ;
! 8965: return 0;
! 8966: }
! 8967: _ACEOF
! 8968: rm -f conftest.$ac_objext conftest$ac_exeext
! 8969: if { (eval echo "$as_me:8969: \"$ac_link\"") >&5
! 8970: (eval $ac_link) 2>&5
! 8971: ac_status=$?
! 8972: echo "$as_me:8972: \$? = $ac_status" >&5
! 8973: (exit $ac_status); } &&
! 8974: { ac_try='test -s conftest$ac_exeext'
! 8975: { (eval echo "$as_me:8975: \"$ac_try\"") >&5
! 8976: (eval $ac_try) 2>&5
! 8977: ac_status=$?
! 8978: echo "$as_me:8978: \$? = $ac_status" >&5
! 8979: (exit $ac_status); }; }; then
! 8980: eval "$as_ac_var=yes"
! 8981: else
! 8982: echo "$as_me: failed program was:" >&5
! 8983: cat conftest.$ac_ext >&5
! 8984: eval "$as_ac_var=no"
! 8985: fi
! 8986: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8987: fi
! 8988: echo "$as_me:8988: result: `eval echo '${'$as_ac_var'}'`" >&5
! 8989: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 8990: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 8991: cat >>confdefs.h <<EOF
! 8992: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8993: EOF
8994:
8995: else
1.7.2.1 ! millert 8996: NEED_SNPRINTF=1
1.1 millert 8997: fi
1.7.2.1 ! millert 8998: done
1.1 millert 8999:
9000: if test -n "$NEED_SNPRINTF"; then
1.7.2.1 ! millert 9001: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1 millert 9002: fi
9003: if test -z "$LIB_CRYPT"; then
1.7.2.1 ! millert 9004: echo "$as_me:9004: checking for crypt" >&5
! 9005: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
! 9006: if test "${ac_cv_func_crypt+set}" = set; then
! 9007: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9008: else
1.7.2.1 ! millert 9009: cat >conftest.$ac_ext <<_ACEOF
! 9010: #line 9010 "configure"
1.1 millert 9011: #include "confdefs.h"
9012: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 9013: which can conflict with char crypt (); below. */
1.1 millert 9014: #include <assert.h>
9015: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9016: #ifdef __cplusplus
! 9017: extern "C"
! 9018: #endif
1.1 millert 9019: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9020: builtin and then its argument prototype would still apply. */
! 9021: char crypt ();
! 9022: char (*f) ();
1.1 millert 9023:
1.7.2.1 ! millert 9024: int
! 9025: main ()
! 9026: {
1.1 millert 9027: /* The GNU C library defines this for functions which it implements
9028: to always fail with ENOSYS. Some functions are actually named
9029: something starting with __ and the normal name is an alias. */
9030: #if defined (__stub_crypt) || defined (__stub___crypt)
9031: choke me
9032: #else
1.7.2.1 ! millert 9033: f = crypt;
1.1 millert 9034: #endif
9035:
1.7.2.1 ! millert 9036: ;
! 9037: return 0;
! 9038: }
! 9039: _ACEOF
! 9040: rm -f conftest.$ac_objext conftest$ac_exeext
! 9041: if { (eval echo "$as_me:9041: \"$ac_link\"") >&5
! 9042: (eval $ac_link) 2>&5
! 9043: ac_status=$?
! 9044: echo "$as_me:9044: \$? = $ac_status" >&5
! 9045: (exit $ac_status); } &&
! 9046: { ac_try='test -s conftest$ac_exeext'
! 9047: { (eval echo "$as_me:9047: \"$ac_try\"") >&5
! 9048: (eval $ac_try) 2>&5
! 9049: ac_status=$?
! 9050: echo "$as_me:9050: \$? = $ac_status" >&5
! 9051: (exit $ac_status); }; }; then
! 9052: ac_cv_func_crypt=yes
! 9053: else
! 9054: echo "$as_me: failed program was:" >&5
! 9055: cat conftest.$ac_ext >&5
! 9056: ac_cv_func_crypt=no
! 9057: fi
! 9058: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9059: fi
! 9060: echo "$as_me:9060: result: $ac_cv_func_crypt" >&5
! 9061: echo "${ECHO_T}$ac_cv_func_crypt" >&6
! 9062: if test $ac_cv_func_crypt = yes; then
1.1 millert 9063: :
9064: else
1.7.2.1 ! millert 9065: echo "$as_me:9065: checking for crypt in -lcrypt" >&5
! 9066: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
! 9067: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
! 9068: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9069: else
1.7.2.1 ! millert 9070: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9071: LIBS="-lcrypt $LIBS"
1.7.2.1 ! millert 9072: cat >conftest.$ac_ext <<_ACEOF
! 9073: #line 9073 "configure"
1.1 millert 9074: #include "confdefs.h"
1.7.2.1 ! millert 9075:
1.1 millert 9076: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9077: #ifdef __cplusplus
! 9078: extern "C"
! 9079: #endif
1.1 millert 9080: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9081: builtin and then its argument prototype would still apply. */
! 9082: char crypt ();
! 9083: int
! 9084: main ()
! 9085: {
! 9086: crypt ();
! 9087: ;
! 9088: return 0;
! 9089: }
! 9090: _ACEOF
! 9091: rm -f conftest.$ac_objext conftest$ac_exeext
! 9092: if { (eval echo "$as_me:9092: \"$ac_link\"") >&5
! 9093: (eval $ac_link) 2>&5
! 9094: ac_status=$?
! 9095: echo "$as_me:9095: \$? = $ac_status" >&5
! 9096: (exit $ac_status); } &&
! 9097: { ac_try='test -s conftest$ac_exeext'
! 9098: { (eval echo "$as_me:9098: \"$ac_try\"") >&5
! 9099: (eval $ac_try) 2>&5
! 9100: ac_status=$?
! 9101: echo "$as_me:9101: \$? = $ac_status" >&5
! 9102: (exit $ac_status); }; }; then
! 9103: ac_cv_lib_crypt_crypt=yes
! 9104: else
! 9105: echo "$as_me: failed program was:" >&5
! 9106: cat conftest.$ac_ext >&5
! 9107: ac_cv_lib_crypt_crypt=no
! 9108: fi
! 9109: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9110: LIBS=$ac_check_lib_save_LIBS
! 9111: fi
! 9112: echo "$as_me:9112: result: $ac_cv_lib_crypt_crypt" >&5
! 9113: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
! 9114: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 millert 9115: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
9116: else
1.7.2.1 ! millert 9117: echo "$as_me:9117: checking for crypt in -lcrypt_d" >&5
! 9118: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
! 9119: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
! 9120: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9121: else
1.7.2.1 ! millert 9122: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9123: LIBS="-lcrypt_d $LIBS"
1.7.2.1 ! millert 9124: cat >conftest.$ac_ext <<_ACEOF
! 9125: #line 9125 "configure"
1.1 millert 9126: #include "confdefs.h"
1.7.2.1 ! millert 9127:
1.1 millert 9128: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9129: #ifdef __cplusplus
! 9130: extern "C"
! 9131: #endif
1.1 millert 9132: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9133: builtin and then its argument prototype would still apply. */
! 9134: char crypt ();
! 9135: int
! 9136: main ()
! 9137: {
! 9138: crypt ();
! 9139: ;
! 9140: return 0;
! 9141: }
! 9142: _ACEOF
! 9143: rm -f conftest.$ac_objext conftest$ac_exeext
! 9144: if { (eval echo "$as_me:9144: \"$ac_link\"") >&5
! 9145: (eval $ac_link) 2>&5
! 9146: ac_status=$?
! 9147: echo "$as_me:9147: \$? = $ac_status" >&5
! 9148: (exit $ac_status); } &&
! 9149: { ac_try='test -s conftest$ac_exeext'
! 9150: { (eval echo "$as_me:9150: \"$ac_try\"") >&5
! 9151: (eval $ac_try) 2>&5
! 9152: ac_status=$?
! 9153: echo "$as_me:9153: \$? = $ac_status" >&5
! 9154: (exit $ac_status); }; }; then
! 9155: ac_cv_lib_crypt_d_crypt=yes
! 9156: else
! 9157: echo "$as_me: failed program was:" >&5
! 9158: cat conftest.$ac_ext >&5
! 9159: ac_cv_lib_crypt_d_crypt=no
! 9160: fi
! 9161: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9162: LIBS=$ac_check_lib_save_LIBS
! 9163: fi
! 9164: echo "$as_me:9164: result: $ac_cv_lib_crypt_d_crypt" >&5
! 9165: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
! 9166: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1 millert 9167: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
9168: else
1.7.2.1 ! millert 9169: echo "$as_me:9169: checking for crypt in -lufc" >&5
! 9170: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
! 9171: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
! 9172: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9173: else
1.7.2.1 ! millert 9174: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9175: LIBS="-lufc $LIBS"
1.7.2.1 ! millert 9176: cat >conftest.$ac_ext <<_ACEOF
! 9177: #line 9177 "configure"
1.1 millert 9178: #include "confdefs.h"
1.7.2.1 ! millert 9179:
1.1 millert 9180: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9181: #ifdef __cplusplus
! 9182: extern "C"
! 9183: #endif
1.1 millert 9184: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9185: builtin and then its argument prototype would still apply. */
! 9186: char crypt ();
! 9187: int
! 9188: main ()
! 9189: {
! 9190: crypt ();
! 9191: ;
! 9192: return 0;
! 9193: }
! 9194: _ACEOF
! 9195: rm -f conftest.$ac_objext conftest$ac_exeext
! 9196: if { (eval echo "$as_me:9196: \"$ac_link\"") >&5
! 9197: (eval $ac_link) 2>&5
! 9198: ac_status=$?
! 9199: echo "$as_me:9199: \$? = $ac_status" >&5
! 9200: (exit $ac_status); } &&
! 9201: { ac_try='test -s conftest$ac_exeext'
! 9202: { (eval echo "$as_me:9202: \"$ac_try\"") >&5
! 9203: (eval $ac_try) 2>&5
! 9204: ac_status=$?
! 9205: echo "$as_me:9205: \$? = $ac_status" >&5
! 9206: (exit $ac_status); }; }; then
! 9207: ac_cv_lib_ufc_crypt=yes
! 9208: else
! 9209: echo "$as_me: failed program was:" >&5
! 9210: cat conftest.$ac_ext >&5
! 9211: ac_cv_lib_ufc_crypt=no
! 9212: fi
! 9213: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9214: LIBS=$ac_check_lib_save_LIBS
! 9215: fi
! 9216: echo "$as_me:9216: result: $ac_cv_lib_ufc_crypt" >&5
! 9217: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
! 9218: if test $ac_cv_lib_ufc_crypt = yes; then
1.1 millert 9219: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
9220: fi
9221:
9222: fi
9223:
9224: fi
9225:
9226: fi
9227:
9228: fi
1.7.2.1 ! millert 9229: echo "$as_me:9229: checking for socket" >&5
! 9230: echo $ECHO_N "checking for socket... $ECHO_C" >&6
! 9231: if test "${ac_cv_func_socket+set}" = set; then
! 9232: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9233: else
1.7.2.1 ! millert 9234: cat >conftest.$ac_ext <<_ACEOF
! 9235: #line 9235 "configure"
1.1 millert 9236: #include "confdefs.h"
9237: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 9238: which can conflict with char socket (); below. */
1.1 millert 9239: #include <assert.h>
9240: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9241: #ifdef __cplusplus
! 9242: extern "C"
! 9243: #endif
1.1 millert 9244: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9245: builtin and then its argument prototype would still apply. */
! 9246: char socket ();
! 9247: char (*f) ();
1.1 millert 9248:
1.7.2.1 ! millert 9249: int
! 9250: main ()
! 9251: {
1.1 millert 9252: /* The GNU C library defines this for functions which it implements
9253: to always fail with ENOSYS. Some functions are actually named
9254: something starting with __ and the normal name is an alias. */
9255: #if defined (__stub_socket) || defined (__stub___socket)
9256: choke me
9257: #else
1.7.2.1 ! millert 9258: f = socket;
1.1 millert 9259: #endif
9260:
1.7.2.1 ! millert 9261: ;
! 9262: return 0;
! 9263: }
! 9264: _ACEOF
! 9265: rm -f conftest.$ac_objext conftest$ac_exeext
! 9266: if { (eval echo "$as_me:9266: \"$ac_link\"") >&5
! 9267: (eval $ac_link) 2>&5
! 9268: ac_status=$?
! 9269: echo "$as_me:9269: \$? = $ac_status" >&5
! 9270: (exit $ac_status); } &&
! 9271: { ac_try='test -s conftest$ac_exeext'
! 9272: { (eval echo "$as_me:9272: \"$ac_try\"") >&5
! 9273: (eval $ac_try) 2>&5
! 9274: ac_status=$?
! 9275: echo "$as_me:9275: \$? = $ac_status" >&5
! 9276: (exit $ac_status); }; }; then
! 9277: ac_cv_func_socket=yes
! 9278: else
! 9279: echo "$as_me: failed program was:" >&5
! 9280: cat conftest.$ac_ext >&5
! 9281: ac_cv_func_socket=no
! 9282: fi
! 9283: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9284: fi
! 9285: echo "$as_me:9285: result: $ac_cv_func_socket" >&5
! 9286: echo "${ECHO_T}$ac_cv_func_socket" >&6
! 9287: if test $ac_cv_func_socket = yes; then
1.1 millert 9288: :
9289: else
1.7.2.1 ! millert 9290: echo "$as_me:9290: checking for socket in -lsocket" >&5
! 9291: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
! 9292: if test "${ac_cv_lib_socket_socket+set}" = set; then
! 9293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9294: else
1.7.2.1 ! millert 9295: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9296: LIBS="-lsocket $LIBS"
1.7.2.1 ! millert 9297: cat >conftest.$ac_ext <<_ACEOF
! 9298: #line 9298 "configure"
1.1 millert 9299: #include "confdefs.h"
1.7.2.1 ! millert 9300:
1.1 millert 9301: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9302: #ifdef __cplusplus
! 9303: extern "C"
! 9304: #endif
1.1 millert 9305: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9306: builtin and then its argument prototype would still apply. */
! 9307: char socket ();
! 9308: int
! 9309: main ()
! 9310: {
! 9311: socket ();
! 9312: ;
! 9313: return 0;
! 9314: }
! 9315: _ACEOF
! 9316: rm -f conftest.$ac_objext conftest$ac_exeext
! 9317: if { (eval echo "$as_me:9317: \"$ac_link\"") >&5
! 9318: (eval $ac_link) 2>&5
! 9319: ac_status=$?
! 9320: echo "$as_me:9320: \$? = $ac_status" >&5
! 9321: (exit $ac_status); } &&
! 9322: { ac_try='test -s conftest$ac_exeext'
! 9323: { (eval echo "$as_me:9323: \"$ac_try\"") >&5
! 9324: (eval $ac_try) 2>&5
! 9325: ac_status=$?
! 9326: echo "$as_me:9326: \$? = $ac_status" >&5
! 9327: (exit $ac_status); }; }; then
! 9328: ac_cv_lib_socket_socket=yes
! 9329: else
! 9330: echo "$as_me: failed program was:" >&5
! 9331: cat conftest.$ac_ext >&5
! 9332: ac_cv_lib_socket_socket=no
! 9333: fi
! 9334: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9335: LIBS=$ac_check_lib_save_LIBS
! 9336: fi
! 9337: echo "$as_me:9337: result: $ac_cv_lib_socket_socket" >&5
! 9338: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
! 9339: if test $ac_cv_lib_socket_socket = yes; then
1.1 millert 9340: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9341: else
1.7.2.1 ! millert 9342: echo "$as_me:9342: checking for socket in -linet" >&5
! 9343: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
! 9344: if test "${ac_cv_lib_inet_socket+set}" = set; then
! 9345: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9346: else
1.7.2.1 ! millert 9347: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9348: LIBS="-linet $LIBS"
1.7.2.1 ! millert 9349: cat >conftest.$ac_ext <<_ACEOF
! 9350: #line 9350 "configure"
1.1 millert 9351: #include "confdefs.h"
1.7.2.1 ! millert 9352:
1.1 millert 9353: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9354: #ifdef __cplusplus
! 9355: extern "C"
! 9356: #endif
1.1 millert 9357: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9358: builtin and then its argument prototype would still apply. */
! 9359: char socket ();
! 9360: int
! 9361: main ()
! 9362: {
! 9363: socket ();
! 9364: ;
! 9365: return 0;
! 9366: }
! 9367: _ACEOF
! 9368: rm -f conftest.$ac_objext conftest$ac_exeext
! 9369: if { (eval echo "$as_me:9369: \"$ac_link\"") >&5
! 9370: (eval $ac_link) 2>&5
! 9371: ac_status=$?
! 9372: echo "$as_me:9372: \$? = $ac_status" >&5
! 9373: (exit $ac_status); } &&
! 9374: { ac_try='test -s conftest$ac_exeext'
! 9375: { (eval echo "$as_me:9375: \"$ac_try\"") >&5
! 9376: (eval $ac_try) 2>&5
! 9377: ac_status=$?
! 9378: echo "$as_me:9378: \$? = $ac_status" >&5
! 9379: (exit $ac_status); }; }; then
! 9380: ac_cv_lib_inet_socket=yes
! 9381: else
! 9382: echo "$as_me: failed program was:" >&5
! 9383: cat conftest.$ac_ext >&5
! 9384: ac_cv_lib_inet_socket=no
! 9385: fi
! 9386: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9387: LIBS=$ac_check_lib_save_LIBS
! 9388: fi
! 9389: echo "$as_me:9389: result: $ac_cv_lib_inet_socket" >&5
! 9390: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
! 9391: if test $ac_cv_lib_inet_socket = yes; then
1.1 millert 9392: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9393: else
1.7.2.1 ! millert 9394: { echo "$as_me:9394: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
! 9395: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
! 9396: echo "$as_me:9396: checking for socket in -lsocket" >&5
! 9397: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
! 9398: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
! 9399: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9400: else
1.7.2.1 ! millert 9401: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9402: LIBS="-lsocket -lnsl $LIBS"
1.7.2.1 ! millert 9403: cat >conftest.$ac_ext <<_ACEOF
! 9404: #line 9404 "configure"
1.1 millert 9405: #include "confdefs.h"
1.7.2.1 ! millert 9406:
1.1 millert 9407: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9408: #ifdef __cplusplus
! 9409: extern "C"
! 9410: #endif
1.1 millert 9411: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9412: builtin and then its argument prototype would still apply. */
! 9413: char socket ();
! 9414: int
! 9415: main ()
! 9416: {
! 9417: socket ();
! 9418: ;
! 9419: return 0;
! 9420: }
! 9421: _ACEOF
! 9422: rm -f conftest.$ac_objext conftest$ac_exeext
! 9423: if { (eval echo "$as_me:9423: \"$ac_link\"") >&5
! 9424: (eval $ac_link) 2>&5
! 9425: ac_status=$?
! 9426: echo "$as_me:9426: \$? = $ac_status" >&5
! 9427: (exit $ac_status); } &&
! 9428: { ac_try='test -s conftest$ac_exeext'
! 9429: { (eval echo "$as_me:9429: \"$ac_try\"") >&5
! 9430: (eval $ac_try) 2>&5
! 9431: ac_status=$?
! 9432: echo "$as_me:9432: \$? = $ac_status" >&5
! 9433: (exit $ac_status); }; }; then
! 9434: ac_cv_lib_socket_socket_lnsl=yes
! 9435: else
! 9436: echo "$as_me: failed program was:" >&5
! 9437: cat conftest.$ac_ext >&5
! 9438: ac_cv_lib_socket_socket_lnsl=no
! 9439: fi
! 9440: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9441: LIBS=$ac_check_lib_save_LIBS
! 9442: fi
! 9443: echo "$as_me:9443: result: $ac_cv_lib_socket_socket_lnsl" >&5
! 9444: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
! 9445: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1 millert 9446: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9447: fi
9448:
9449: fi
9450:
9451: fi
9452:
9453: fi
9454:
1.7.2.1 ! millert 9455: echo "$as_me:9455: checking for inet_addr" >&5
! 9456: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
! 9457: if test "${ac_cv_func_inet_addr+set}" = set; then
! 9458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9459: else
1.7.2.1 ! millert 9460: cat >conftest.$ac_ext <<_ACEOF
! 9461: #line 9461 "configure"
1.1 millert 9462: #include "confdefs.h"
9463: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 9464: which can conflict with char inet_addr (); below. */
1.1 millert 9465: #include <assert.h>
9466: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9467: #ifdef __cplusplus
! 9468: extern "C"
! 9469: #endif
1.1 millert 9470: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9471: builtin and then its argument prototype would still apply. */
! 9472: char inet_addr ();
! 9473: char (*f) ();
1.1 millert 9474:
1.7.2.1 ! millert 9475: int
! 9476: main ()
! 9477: {
1.1 millert 9478: /* The GNU C library defines this for functions which it implements
9479: to always fail with ENOSYS. Some functions are actually named
9480: something starting with __ and the normal name is an alias. */
9481: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
9482: choke me
9483: #else
1.7.2.1 ! millert 9484: f = inet_addr;
1.1 millert 9485: #endif
9486:
1.7.2.1 ! millert 9487: ;
! 9488: return 0;
! 9489: }
! 9490: _ACEOF
! 9491: rm -f conftest.$ac_objext conftest$ac_exeext
! 9492: if { (eval echo "$as_me:9492: \"$ac_link\"") >&5
! 9493: (eval $ac_link) 2>&5
! 9494: ac_status=$?
! 9495: echo "$as_me:9495: \$? = $ac_status" >&5
! 9496: (exit $ac_status); } &&
! 9497: { ac_try='test -s conftest$ac_exeext'
! 9498: { (eval echo "$as_me:9498: \"$ac_try\"") >&5
! 9499: (eval $ac_try) 2>&5
! 9500: ac_status=$?
! 9501: echo "$as_me:9501: \$? = $ac_status" >&5
! 9502: (exit $ac_status); }; }; then
! 9503: ac_cv_func_inet_addr=yes
! 9504: else
! 9505: echo "$as_me: failed program was:" >&5
! 9506: cat conftest.$ac_ext >&5
! 9507: ac_cv_func_inet_addr=no
! 9508: fi
! 9509: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9510: fi
! 9511: echo "$as_me:9511: result: $ac_cv_func_inet_addr" >&5
! 9512: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
! 9513: if test $ac_cv_func_inet_addr = yes; then
1.1 millert 9514: :
9515: else
1.7.2.1 ! millert 9516: echo "$as_me:9516: checking for __inet_addr" >&5
! 9517: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
! 9518: if test "${ac_cv_func___inet_addr+set}" = set; then
! 9519: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 9520: else
1.7.2.1 ! millert 9521: cat >conftest.$ac_ext <<_ACEOF
! 9522: #line 9522 "configure"
1.6 millert 9523: #include "confdefs.h"
9524: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 9525: which can conflict with char __inet_addr (); below. */
1.6 millert 9526: #include <assert.h>
9527: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9528: #ifdef __cplusplus
! 9529: extern "C"
! 9530: #endif
1.6 millert 9531: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9532: builtin and then its argument prototype would still apply. */
! 9533: char __inet_addr ();
! 9534: char (*f) ();
1.6 millert 9535:
1.7.2.1 ! millert 9536: int
! 9537: main ()
! 9538: {
1.6 millert 9539: /* The GNU C library defines this for functions which it implements
9540: to always fail with ENOSYS. Some functions are actually named
9541: something starting with __ and the normal name is an alias. */
9542: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
9543: choke me
9544: #else
1.7.2.1 ! millert 9545: f = __inet_addr;
1.6 millert 9546: #endif
9547:
1.7.2.1 ! millert 9548: ;
! 9549: return 0;
! 9550: }
! 9551: _ACEOF
! 9552: rm -f conftest.$ac_objext conftest$ac_exeext
! 9553: if { (eval echo "$as_me:9553: \"$ac_link\"") >&5
! 9554: (eval $ac_link) 2>&5
! 9555: ac_status=$?
! 9556: echo "$as_me:9556: \$? = $ac_status" >&5
! 9557: (exit $ac_status); } &&
! 9558: { ac_try='test -s conftest$ac_exeext'
! 9559: { (eval echo "$as_me:9559: \"$ac_try\"") >&5
! 9560: (eval $ac_try) 2>&5
! 9561: ac_status=$?
! 9562: echo "$as_me:9562: \$? = $ac_status" >&5
! 9563: (exit $ac_status); }; }; then
! 9564: ac_cv_func___inet_addr=yes
! 9565: else
! 9566: echo "$as_me: failed program was:" >&5
! 9567: cat conftest.$ac_ext >&5
! 9568: ac_cv_func___inet_addr=no
! 9569: fi
! 9570: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9571: fi
! 9572: echo "$as_me:9572: result: $ac_cv_func___inet_addr" >&5
! 9573: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
! 9574: if test $ac_cv_func___inet_addr = yes; then
1.6 millert 9575: :
9576: else
1.7.2.1 ! millert 9577: echo "$as_me:9577: checking for inet_addr in -lnsl" >&5
! 9578: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
! 9579: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
! 9580: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9581: else
1.7.2.1 ! millert 9582: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9583: LIBS="-lnsl $LIBS"
1.7.2.1 ! millert 9584: cat >conftest.$ac_ext <<_ACEOF
! 9585: #line 9585 "configure"
1.1 millert 9586: #include "confdefs.h"
1.7.2.1 ! millert 9587:
1.1 millert 9588: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9589: #ifdef __cplusplus
! 9590: extern "C"
! 9591: #endif
1.1 millert 9592: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9593: builtin and then its argument prototype would still apply. */
! 9594: char inet_addr ();
! 9595: int
! 9596: main ()
! 9597: {
! 9598: inet_addr ();
! 9599: ;
! 9600: return 0;
! 9601: }
! 9602: _ACEOF
! 9603: rm -f conftest.$ac_objext conftest$ac_exeext
! 9604: if { (eval echo "$as_me:9604: \"$ac_link\"") >&5
! 9605: (eval $ac_link) 2>&5
! 9606: ac_status=$?
! 9607: echo "$as_me:9607: \$? = $ac_status" >&5
! 9608: (exit $ac_status); } &&
! 9609: { ac_try='test -s conftest$ac_exeext'
! 9610: { (eval echo "$as_me:9610: \"$ac_try\"") >&5
! 9611: (eval $ac_try) 2>&5
! 9612: ac_status=$?
! 9613: echo "$as_me:9613: \$? = $ac_status" >&5
! 9614: (exit $ac_status); }; }; then
! 9615: ac_cv_lib_nsl_inet_addr=yes
! 9616: else
! 9617: echo "$as_me: failed program was:" >&5
! 9618: cat conftest.$ac_ext >&5
! 9619: ac_cv_lib_nsl_inet_addr=no
! 9620: fi
! 9621: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9622: LIBS=$ac_check_lib_save_LIBS
! 9623: fi
! 9624: echo "$as_me:9624: result: $ac_cv_lib_nsl_inet_addr" >&5
! 9625: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
! 9626: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1 millert 9627: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
9628: else
1.7.2.1 ! millert 9629: echo "$as_me:9629: checking for inet_addr in -linet" >&5
! 9630: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
! 9631: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
! 9632: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9633: else
1.7.2.1 ! millert 9634: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9635: LIBS="-linet $LIBS"
1.7.2.1 ! millert 9636: cat >conftest.$ac_ext <<_ACEOF
! 9637: #line 9637 "configure"
1.1 millert 9638: #include "confdefs.h"
1.7.2.1 ! millert 9639:
1.1 millert 9640: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9641: #ifdef __cplusplus
! 9642: extern "C"
! 9643: #endif
1.1 millert 9644: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9645: builtin and then its argument prototype would still apply. */
! 9646: char inet_addr ();
! 9647: int
! 9648: main ()
! 9649: {
! 9650: inet_addr ();
! 9651: ;
! 9652: return 0;
! 9653: }
! 9654: _ACEOF
! 9655: rm -f conftest.$ac_objext conftest$ac_exeext
! 9656: if { (eval echo "$as_me:9656: \"$ac_link\"") >&5
! 9657: (eval $ac_link) 2>&5
! 9658: ac_status=$?
! 9659: echo "$as_me:9659: \$? = $ac_status" >&5
! 9660: (exit $ac_status); } &&
! 9661: { ac_try='test -s conftest$ac_exeext'
! 9662: { (eval echo "$as_me:9662: \"$ac_try\"") >&5
! 9663: (eval $ac_try) 2>&5
! 9664: ac_status=$?
! 9665: echo "$as_me:9665: \$? = $ac_status" >&5
! 9666: (exit $ac_status); }; }; then
! 9667: ac_cv_lib_inet_inet_addr=yes
! 9668: else
! 9669: echo "$as_me: failed program was:" >&5
! 9670: cat conftest.$ac_ext >&5
! 9671: ac_cv_lib_inet_inet_addr=no
! 9672: fi
! 9673: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9674: LIBS=$ac_check_lib_save_LIBS
! 9675: fi
! 9676: echo "$as_me:9676: result: $ac_cv_lib_inet_inet_addr" >&5
! 9677: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
! 9678: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1 millert 9679: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9680: else
1.7.2.1 ! millert 9681: { echo "$as_me:9681: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
! 9682: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
! 9683: echo "$as_me:9683: checking for inet_addr in -lsocket" >&5
! 9684: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
! 9685: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
! 9686: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9687: else
1.7.2.1 ! millert 9688: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9689: LIBS="-lsocket -lnsl $LIBS"
1.7.2.1 ! millert 9690: cat >conftest.$ac_ext <<_ACEOF
! 9691: #line 9691 "configure"
1.1 millert 9692: #include "confdefs.h"
1.7.2.1 ! millert 9693:
1.1 millert 9694: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9695: #ifdef __cplusplus
! 9696: extern "C"
! 9697: #endif
1.1 millert 9698: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9699: builtin and then its argument prototype would still apply. */
! 9700: char inet_addr ();
! 9701: int
! 9702: main ()
! 9703: {
! 9704: inet_addr ();
! 9705: ;
! 9706: return 0;
! 9707: }
! 9708: _ACEOF
! 9709: rm -f conftest.$ac_objext conftest$ac_exeext
! 9710: if { (eval echo "$as_me:9710: \"$ac_link\"") >&5
! 9711: (eval $ac_link) 2>&5
! 9712: ac_status=$?
! 9713: echo "$as_me:9713: \$? = $ac_status" >&5
! 9714: (exit $ac_status); } &&
! 9715: { ac_try='test -s conftest$ac_exeext'
! 9716: { (eval echo "$as_me:9716: \"$ac_try\"") >&5
! 9717: (eval $ac_try) 2>&5
! 9718: ac_status=$?
! 9719: echo "$as_me:9719: \$? = $ac_status" >&5
! 9720: (exit $ac_status); }; }; then
! 9721: ac_cv_lib_socket_inet_addr_lnsl=yes
! 9722: else
! 9723: echo "$as_me: failed program was:" >&5
! 9724: cat conftest.$ac_ext >&5
! 9725: ac_cv_lib_socket_inet_addr_lnsl=no
! 9726: fi
! 9727: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9728: LIBS=$ac_check_lib_save_LIBS
! 9729: fi
! 9730: echo "$as_me:9730: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
! 9731: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
! 9732: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1 millert 9733: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9734: fi
9735:
9736: fi
9737:
9738: fi
9739:
9740: fi
9741:
1.6 millert 9742: fi
9743:
1.7.2.1 ! millert 9744: echo "$as_me:9744: checking for syslog" >&5
! 9745: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
! 9746: if test "${ac_cv_func_syslog+set}" = set; then
! 9747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9748: else
1.7.2.1 ! millert 9749: cat >conftest.$ac_ext <<_ACEOF
! 9750: #line 9750 "configure"
1.1 millert 9751: #include "confdefs.h"
9752: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 9753: which can conflict with char syslog (); below. */
1.1 millert 9754: #include <assert.h>
9755: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9756: #ifdef __cplusplus
! 9757: extern "C"
! 9758: #endif
1.1 millert 9759: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9760: builtin and then its argument prototype would still apply. */
! 9761: char syslog ();
! 9762: char (*f) ();
1.1 millert 9763:
1.7.2.1 ! millert 9764: int
! 9765: main ()
! 9766: {
1.1 millert 9767: /* The GNU C library defines this for functions which it implements
9768: to always fail with ENOSYS. Some functions are actually named
9769: something starting with __ and the normal name is an alias. */
9770: #if defined (__stub_syslog) || defined (__stub___syslog)
9771: choke me
9772: #else
1.7.2.1 ! millert 9773: f = syslog;
1.1 millert 9774: #endif
9775:
1.7.2.1 ! millert 9776: ;
! 9777: return 0;
! 9778: }
! 9779: _ACEOF
! 9780: rm -f conftest.$ac_objext conftest$ac_exeext
! 9781: if { (eval echo "$as_me:9781: \"$ac_link\"") >&5
! 9782: (eval $ac_link) 2>&5
! 9783: ac_status=$?
! 9784: echo "$as_me:9784: \$? = $ac_status" >&5
! 9785: (exit $ac_status); } &&
! 9786: { ac_try='test -s conftest$ac_exeext'
! 9787: { (eval echo "$as_me:9787: \"$ac_try\"") >&5
! 9788: (eval $ac_try) 2>&5
! 9789: ac_status=$?
! 9790: echo "$as_me:9790: \$? = $ac_status" >&5
! 9791: (exit $ac_status); }; }; then
! 9792: ac_cv_func_syslog=yes
! 9793: else
! 9794: echo "$as_me: failed program was:" >&5
! 9795: cat conftest.$ac_ext >&5
! 9796: ac_cv_func_syslog=no
! 9797: fi
! 9798: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9799: fi
! 9800: echo "$as_me:9800: result: $ac_cv_func_syslog" >&5
! 9801: echo "${ECHO_T}$ac_cv_func_syslog" >&6
! 9802: if test $ac_cv_func_syslog = yes; then
1.1 millert 9803: :
9804: else
1.7.2.1 ! millert 9805: echo "$as_me:9805: checking for syslog in -lsocket" >&5
! 9806: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
! 9807: if test "${ac_cv_lib_socket_syslog+set}" = set; then
! 9808: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9809: else
1.7.2.1 ! millert 9810: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9811: LIBS="-lsocket $LIBS"
1.7.2.1 ! millert 9812: cat >conftest.$ac_ext <<_ACEOF
! 9813: #line 9813 "configure"
1.1 millert 9814: #include "confdefs.h"
1.7.2.1 ! millert 9815:
1.1 millert 9816: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9817: #ifdef __cplusplus
! 9818: extern "C"
! 9819: #endif
1.1 millert 9820: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9821: builtin and then its argument prototype would still apply. */
! 9822: char syslog ();
! 9823: int
! 9824: main ()
! 9825: {
! 9826: syslog ();
! 9827: ;
! 9828: return 0;
! 9829: }
! 9830: _ACEOF
! 9831: rm -f conftest.$ac_objext conftest$ac_exeext
! 9832: if { (eval echo "$as_me:9832: \"$ac_link\"") >&5
! 9833: (eval $ac_link) 2>&5
! 9834: ac_status=$?
! 9835: echo "$as_me:9835: \$? = $ac_status" >&5
! 9836: (exit $ac_status); } &&
! 9837: { ac_try='test -s conftest$ac_exeext'
! 9838: { (eval echo "$as_me:9838: \"$ac_try\"") >&5
! 9839: (eval $ac_try) 2>&5
! 9840: ac_status=$?
! 9841: echo "$as_me:9841: \$? = $ac_status" >&5
! 9842: (exit $ac_status); }; }; then
! 9843: ac_cv_lib_socket_syslog=yes
! 9844: else
! 9845: echo "$as_me: failed program was:" >&5
! 9846: cat conftest.$ac_ext >&5
! 9847: ac_cv_lib_socket_syslog=no
! 9848: fi
! 9849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9850: LIBS=$ac_check_lib_save_LIBS
! 9851: fi
! 9852: echo "$as_me:9852: result: $ac_cv_lib_socket_syslog" >&5
! 9853: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
! 9854: if test $ac_cv_lib_socket_syslog = yes; then
1.1 millert 9855: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9856: else
1.7.2.1 ! millert 9857: echo "$as_me:9857: checking for syslog in -lnsl" >&5
! 9858: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
! 9859: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
! 9860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9861: else
1.7.2.1 ! millert 9862: ac_check_lib_save_LIBS=$LIBS
! 9863: LIBS="-lnsl $LIBS"
! 9864: cat >conftest.$ac_ext <<_ACEOF
! 9865: #line 9865 "configure"
! 9866: #include "confdefs.h"
1.1 millert 9867:
1.7.2.1 ! millert 9868: /* Override any gcc2 internal prototype to avoid an error. */
! 9869: #ifdef __cplusplus
! 9870: extern "C"
! 9871: #endif
! 9872: /* We use char because int might match the return type of a gcc2
! 9873: builtin and then its argument prototype would still apply. */
! 9874: char syslog ();
! 9875: int
! 9876: main ()
! 9877: {
! 9878: syslog ();
! 9879: ;
! 9880: return 0;
! 9881: }
! 9882: _ACEOF
! 9883: rm -f conftest.$ac_objext conftest$ac_exeext
! 9884: if { (eval echo "$as_me:9884: \"$ac_link\"") >&5
! 9885: (eval $ac_link) 2>&5
! 9886: ac_status=$?
! 9887: echo "$as_me:9887: \$? = $ac_status" >&5
! 9888: (exit $ac_status); } &&
! 9889: { ac_try='test -s conftest$ac_exeext'
! 9890: { (eval echo "$as_me:9890: \"$ac_try\"") >&5
! 9891: (eval $ac_try) 2>&5
! 9892: ac_status=$?
! 9893: echo "$as_me:9893: \$? = $ac_status" >&5
! 9894: (exit $ac_status); }; }; then
! 9895: ac_cv_lib_nsl_syslog=yes
! 9896: else
! 9897: echo "$as_me: failed program was:" >&5
! 9898: cat conftest.$ac_ext >&5
! 9899: ac_cv_lib_nsl_syslog=no
! 9900: fi
! 9901: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9902: LIBS=$ac_check_lib_save_LIBS
! 9903: fi
! 9904: echo "$as_me:9904: result: $ac_cv_lib_nsl_syslog" >&5
! 9905: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
! 9906: if test $ac_cv_lib_nsl_syslog = yes; then
1.1 millert 9907: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
9908: else
1.7.2.1 ! millert 9909: echo "$as_me:9909: checking for syslog in -linet" >&5
! 9910: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
! 9911: if test "${ac_cv_lib_inet_syslog+set}" = set; then
! 9912: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9913: else
1.7.2.1 ! millert 9914: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9915: LIBS="-linet $LIBS"
1.7.2.1 ! millert 9916: cat >conftest.$ac_ext <<_ACEOF
! 9917: #line 9917 "configure"
1.1 millert 9918: #include "confdefs.h"
1.7.2.1 ! millert 9919:
1.1 millert 9920: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 9921: #ifdef __cplusplus
! 9922: extern "C"
! 9923: #endif
1.1 millert 9924: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 9925: builtin and then its argument prototype would still apply. */
! 9926: char syslog ();
! 9927: int
! 9928: main ()
! 9929: {
! 9930: syslog ();
! 9931: ;
! 9932: return 0;
! 9933: }
! 9934: _ACEOF
! 9935: rm -f conftest.$ac_objext conftest$ac_exeext
! 9936: if { (eval echo "$as_me:9936: \"$ac_link\"") >&5
! 9937: (eval $ac_link) 2>&5
! 9938: ac_status=$?
! 9939: echo "$as_me:9939: \$? = $ac_status" >&5
! 9940: (exit $ac_status); } &&
! 9941: { ac_try='test -s conftest$ac_exeext'
! 9942: { (eval echo "$as_me:9942: \"$ac_try\"") >&5
! 9943: (eval $ac_try) 2>&5
! 9944: ac_status=$?
! 9945: echo "$as_me:9945: \$? = $ac_status" >&5
! 9946: (exit $ac_status); }; }; then
! 9947: ac_cv_lib_inet_syslog=yes
! 9948: else
! 9949: echo "$as_me: failed program was:" >&5
! 9950: cat conftest.$ac_ext >&5
! 9951: ac_cv_lib_inet_syslog=no
! 9952: fi
! 9953: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9954: LIBS=$ac_check_lib_save_LIBS
! 9955: fi
! 9956: echo "$as_me:9956: result: $ac_cv_lib_inet_syslog" >&5
! 9957: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
! 9958: if test $ac_cv_lib_inet_syslog = yes; then
1.1 millert 9959: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9960: fi
9961:
9962: fi
9963:
9964: fi
9965:
9966: fi
9967:
9968: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
9969: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9970: # for constant arguments. Useless!
1.7.2.1 ! millert 9971: echo "$as_me:9971: checking for working alloca.h" >&5
! 9972: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
! 9973: if test "${ac_cv_working_alloca_h+set}" = set; then
! 9974: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9975: else
1.7.2.1 ! millert 9976: cat >conftest.$ac_ext <<_ACEOF
! 9977: #line 9977 "configure"
1.1 millert 9978: #include "confdefs.h"
9979: #include <alloca.h>
1.7.2.1 ! millert 9980: int
! 9981: main ()
! 9982: {
! 9983: char *p = (char *) alloca (2 * sizeof (int));
! 9984: ;
! 9985: return 0;
! 9986: }
! 9987: _ACEOF
! 9988: rm -f conftest.$ac_objext conftest$ac_exeext
! 9989: if { (eval echo "$as_me:9989: \"$ac_link\"") >&5
! 9990: (eval $ac_link) 2>&5
! 9991: ac_status=$?
! 9992: echo "$as_me:9992: \$? = $ac_status" >&5
! 9993: (exit $ac_status); } &&
! 9994: { ac_try='test -s conftest$ac_exeext'
! 9995: { (eval echo "$as_me:9995: \"$ac_try\"") >&5
! 9996: (eval $ac_try) 2>&5
! 9997: ac_status=$?
! 9998: echo "$as_me:9998: \$? = $ac_status" >&5
! 9999: (exit $ac_status); }; }; then
! 10000: ac_cv_working_alloca_h=yes
! 10001: else
! 10002: echo "$as_me: failed program was:" >&5
! 10003: cat conftest.$ac_ext >&5
! 10004: ac_cv_working_alloca_h=no
! 10005: fi
! 10006: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10007: fi
! 10008: echo "$as_me:10008: result: $ac_cv_working_alloca_h" >&5
! 10009: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
! 10010: if test $ac_cv_working_alloca_h = yes; then
1.1 millert 10011:
1.7.2.1 ! millert 10012: cat >>confdefs.h <<\EOF
1.1 millert 10013: #define HAVE_ALLOCA_H 1
10014: EOF
10015:
10016: fi
10017:
1.7.2.1 ! millert 10018: echo "$as_me:10018: checking for alloca" >&5
! 10019: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
! 10020: if test "${ac_cv_func_alloca_works+set}" = set; then
! 10021: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10022: else
1.7.2.1 ! millert 10023: cat >conftest.$ac_ext <<_ACEOF
! 10024: #line 10024 "configure"
1.1 millert 10025: #include "confdefs.h"
10026: #ifdef __GNUC__
10027: # define alloca __builtin_alloca
10028: #else
1.7.2.1 ! millert 10029: # ifdef _MSC_VER
! 10030: # include <malloc.h>
! 10031: # define alloca _alloca
1.1 millert 10032: # else
1.7.2.1 ! millert 10033: # if HAVE_ALLOCA_H
! 10034: # include <alloca.h>
1.1 millert 10035: # else
1.7.2.1 ! millert 10036: # ifdef _AIX
! 10037: #pragma alloca
! 10038: # else
! 10039: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1 millert 10040: char *alloca ();
1.7.2.1 ! millert 10041: # endif
1.1 millert 10042: # endif
10043: # endif
10044: # endif
10045: #endif
10046:
1.7.2.1 ! millert 10047: int
! 10048: main ()
! 10049: {
! 10050: char *p = (char *) alloca (1);
! 10051: ;
! 10052: return 0;
! 10053: }
! 10054: _ACEOF
! 10055: rm -f conftest.$ac_objext conftest$ac_exeext
! 10056: if { (eval echo "$as_me:10056: \"$ac_link\"") >&5
! 10057: (eval $ac_link) 2>&5
! 10058: ac_status=$?
! 10059: echo "$as_me:10059: \$? = $ac_status" >&5
! 10060: (exit $ac_status); } &&
! 10061: { ac_try='test -s conftest$ac_exeext'
! 10062: { (eval echo "$as_me:10062: \"$ac_try\"") >&5
! 10063: (eval $ac_try) 2>&5
! 10064: ac_status=$?
! 10065: echo "$as_me:10065: \$? = $ac_status" >&5
! 10066: (exit $ac_status); }; }; then
1.1 millert 10067: ac_cv_func_alloca_works=yes
10068: else
1.7.2.1 ! millert 10069: echo "$as_me: failed program was:" >&5
! 10070: cat conftest.$ac_ext >&5
! 10071: ac_cv_func_alloca_works=no
1.1 millert 10072: fi
1.7.2.1 ! millert 10073: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 10074: fi
1.7.2.1 ! millert 10075: echo "$as_me:10075: result: $ac_cv_func_alloca_works" >&5
! 10076: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1 millert 10077:
10078: if test $ac_cv_func_alloca_works = yes; then
1.7.2.1 ! millert 10079:
! 10080: cat >>confdefs.h <<\EOF
1.1 millert 10081: #define HAVE_ALLOCA 1
10082: EOF
10083:
1.7.2.1 ! millert 10084: else
1.1 millert 10085: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1.7.2.1 ! millert 10086: # that cause trouble. Some versions do not even contain alloca or
! 10087: # contain a buggy version. If you still want to use their alloca,
! 10088: # use ar to extract alloca.o from them instead of compiling alloca.c.
! 10089:
! 10090: ALLOCA=alloca.$ac_objext
! 10091:
! 10092: cat >>confdefs.h <<\EOF
1.1 millert 10093: #define C_ALLOCA 1
10094: EOF
10095:
1.7.2.1 ! millert 10096: echo "$as_me:10096: checking whether \`alloca.c' needs Cray hooks" >&5
! 10097: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
! 10098: if test "${ac_cv_os_cray+set}" = set; then
! 10099: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10100: else
1.7.2.1 ! millert 10101: cat >conftest.$ac_ext <<_ACEOF
! 10102: #line 10102 "configure"
1.1 millert 10103: #include "confdefs.h"
10104: #if defined(CRAY) && ! defined(CRAY2)
10105: webecray
10106: #else
10107: wenotbecray
10108: #endif
10109:
1.7.2.1 ! millert 10110: _ACEOF
1.1 millert 10111: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10112: egrep "webecray" >/dev/null 2>&1; then
10113: ac_cv_os_cray=yes
10114: else
10115: ac_cv_os_cray=no
10116: fi
10117: rm -f conftest*
10118:
10119: fi
1.7.2.1 ! millert 10120: echo "$as_me:10120: result: $ac_cv_os_cray" >&5
! 10121: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1 millert 10122: if test $ac_cv_os_cray = yes; then
1.7.2.1 ! millert 10123: for ac_func in _getb67 GETB67 getb67; do
! 10124: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 10125: echo "$as_me:10125: checking for $ac_func" >&5
! 10126: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 10127: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 10128: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10129: else
1.7.2.1 ! millert 10130: cat >conftest.$ac_ext <<_ACEOF
! 10131: #line 10131 "configure"
1.1 millert 10132: #include "confdefs.h"
10133: /* System header to define __stub macros and hopefully few prototypes,
1.7.2.1 ! millert 10134: which can conflict with char $ac_func (); below. */
1.1 millert 10135: #include <assert.h>
10136: /* Override any gcc2 internal prototype to avoid an error. */
1.7.2.1 ! millert 10137: #ifdef __cplusplus
! 10138: extern "C"
! 10139: #endif
1.1 millert 10140: /* We use char because int might match the return type of a gcc2
1.7.2.1 ! millert 10141: builtin and then its argument prototype would still apply. */
! 10142: char $ac_func ();
! 10143: char (*f) ();
1.1 millert 10144:
1.7.2.1 ! millert 10145: int
! 10146: main ()
! 10147: {
1.1 millert 10148: /* The GNU C library defines this for functions which it implements
10149: to always fail with ENOSYS. Some functions are actually named
10150: something starting with __ and the normal name is an alias. */
10151: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10152: choke me
10153: #else
1.7.2.1 ! millert 10154: f = $ac_func;
1.1 millert 10155: #endif
10156:
1.7.2.1 ! millert 10157: ;
! 10158: return 0;
! 10159: }
! 10160: _ACEOF
! 10161: rm -f conftest.$ac_objext conftest$ac_exeext
! 10162: if { (eval echo "$as_me:10162: \"$ac_link\"") >&5
! 10163: (eval $ac_link) 2>&5
! 10164: ac_status=$?
! 10165: echo "$as_me:10165: \$? = $ac_status" >&5
! 10166: (exit $ac_status); } &&
! 10167: { ac_try='test -s conftest$ac_exeext'
! 10168: { (eval echo "$as_me:10168: \"$ac_try\"") >&5
! 10169: (eval $ac_try) 2>&5
! 10170: ac_status=$?
! 10171: echo "$as_me:10171: \$? = $ac_status" >&5
! 10172: (exit $ac_status); }; }; then
! 10173: eval "$as_ac_var=yes"
! 10174: else
! 10175: echo "$as_me: failed program was:" >&5
! 10176: cat conftest.$ac_ext >&5
! 10177: eval "$as_ac_var=no"
! 10178: fi
! 10179: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10180: fi
! 10181: echo "$as_me:10181: result: `eval echo '${'$as_ac_var'}'`" >&5
! 10182: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 10183: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 millert 10184:
1.7.2.1 ! millert 10185: cat >>confdefs.h <<EOF
1.1 millert 10186: #define CRAY_STACKSEG_END $ac_func
10187: EOF
10188:
1.7.2.1 ! millert 10189: break
1.1 millert 10190: fi
10191:
1.7.2.1 ! millert 10192: done
1.1 millert 10193: fi
10194:
1.7.2.1 ! millert 10195: echo "$as_me:10195: checking stack direction for C alloca" >&5
! 10196: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
! 10197: if test "${ac_cv_c_stack_direction+set}" = set; then
! 10198: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10199: else
10200: if test "$cross_compiling" = yes; then
10201: ac_cv_c_stack_direction=0
10202: else
1.7.2.1 ! millert 10203: cat >conftest.$ac_ext <<_ACEOF
! 10204: #line 10204 "configure"
1.1 millert 10205: #include "confdefs.h"
1.7.2.1 ! millert 10206: int
1.1 millert 10207: find_stack_direction ()
10208: {
10209: static char *addr = 0;
10210: auto char dummy;
10211: if (addr == 0)
10212: {
10213: addr = &dummy;
10214: return find_stack_direction ();
10215: }
10216: else
10217: return (&dummy > addr) ? 1 : -1;
10218: }
1.7.2.1 ! millert 10219:
! 10220: int
1.1 millert 10221: main ()
10222: {
1.7.2.1 ! millert 10223: exit (find_stack_direction () < 0);
1.1 millert 10224: }
1.7.2.1 ! millert 10225: _ACEOF
! 10226: rm -f conftest$ac_exeext
! 10227: if { (eval echo "$as_me:10227: \"$ac_link\"") >&5
! 10228: (eval $ac_link) 2>&5
! 10229: ac_status=$?
! 10230: echo "$as_me:10230: \$? = $ac_status" >&5
! 10231: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 10232: { (eval echo "$as_me:10232: \"$ac_try\"") >&5
! 10233: (eval $ac_try) 2>&5
! 10234: ac_status=$?
! 10235: echo "$as_me:10235: \$? = $ac_status" >&5
! 10236: (exit $ac_status); }; }; then
1.1 millert 10237: ac_cv_c_stack_direction=1
10238: else
1.7.2.1 ! millert 10239: echo "$as_me: program exited with status $ac_status" >&5
! 10240: echo "$as_me: failed program was:" >&5
! 10241: cat conftest.$ac_ext >&5
! 10242: ac_cv_c_stack_direction=-1
1.1 millert 10243: fi
1.7.2.1 ! millert 10244: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10245: fi
10246: fi
1.7.2.1 ! millert 10247: echo "$as_me:10247: result: $ac_cv_c_stack_direction" >&5
! 10248: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1 millert 10249:
1.7.2.1 ! millert 10250: cat >>confdefs.h <<EOF
1.1 millert 10251: #define STACK_DIRECTION $ac_cv_c_stack_direction
10252: EOF
10253:
10254: fi
10255:
10256: fi
10257:
10258: if test "$with_kerb5" = "yes"; then
1.7.2.1 ! millert 10259:
! 10260: cat >>confdefs.h <<\EOF
1.1 millert 10261: #define HAVE_KERB5 1
10262: EOF
10263:
10264: if test -f "/usr/local/include/krb5.h"; then
10265: CPPFLAGS="$CPPFLAGS -I/usr/local/include"
10266: elif test -f "/usr/local/kerberos/include/krb5.h"; then
10267: CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
1.7.2.1 ! millert 10268: elif test -f "/usr/krb5/include/krb5.h"; then
! 10269: CPPFLAGS="$CPPFLAGS -I/usr/krb5/include"
1.1 millert 10270: elif test -f "/usr/local/krb5/include/krb5.h"; then
10271: CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
10272: else
10273: echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10274: fi
10275:
10276: if test -f "/usr/local/lib/libkrb5.a"; then
10277: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10278: elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
10279: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
1.7.2.1 ! millert 10280: elif test -f "/usr/krb5/lib/libkrb5.a"; then
! 10281: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/krb5/lib"
1.1 millert 10282: elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
10283: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
10284: else
10285: echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10286: fi
10287:
10288: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
10289: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
10290: fi
10291:
1.5 millert 10292: if test "$with_pam" = "yes"; then
1.7.2.1 ! millert 10293: echo "$as_me:10293: checking for main in -ldl" >&5
! 10294: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
! 10295: if test "${ac_cv_lib_dl_main+set}" = set; then
! 10296: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 millert 10297: else
1.7.2.1 ! millert 10298: ac_check_lib_save_LIBS=$LIBS
1.5 millert 10299: LIBS="-ldl $LIBS"
1.7.2.1 ! millert 10300: cat >conftest.$ac_ext <<_ACEOF
! 10301: #line 10301 "configure"
1.5 millert 10302: #include "confdefs.h"
10303:
1.7.2.1 ! millert 10304: int
! 10305: main ()
! 10306: {
! 10307: main ();
! 10308: ;
! 10309: return 0;
! 10310: }
! 10311: _ACEOF
! 10312: rm -f conftest.$ac_objext conftest$ac_exeext
! 10313: if { (eval echo "$as_me:10313: \"$ac_link\"") >&5
! 10314: (eval $ac_link) 2>&5
! 10315: ac_status=$?
! 10316: echo "$as_me:10316: \$? = $ac_status" >&5
! 10317: (exit $ac_status); } &&
! 10318: { ac_try='test -s conftest$ac_exeext'
! 10319: { (eval echo "$as_me:10319: \"$ac_try\"") >&5
! 10320: (eval $ac_try) 2>&5
! 10321: ac_status=$?
! 10322: echo "$as_me:10322: \$? = $ac_status" >&5
! 10323: (exit $ac_status); }; }; then
! 10324: ac_cv_lib_dl_main=yes
! 10325: else
! 10326: echo "$as_me: failed program was:" >&5
! 10327: cat conftest.$ac_ext >&5
! 10328: ac_cv_lib_dl_main=no
! 10329: fi
! 10330: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10331: LIBS=$ac_check_lib_save_LIBS
! 10332: fi
! 10333: echo "$as_me:10333: result: $ac_cv_lib_dl_main" >&5
! 10334: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
! 10335: if test $ac_cv_lib_dl_main = yes; then
1.5 millert 10336: SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
10337: else
10338: SUDO_LIBS="${SUDO_LIBS} -lpam"
10339: fi
1.7.2.1 ! millert 10340: ac_cv_lib_dl=ac_cv_lib_dl_main
1.5 millert 10341:
10342: fi
10343:
1.1 millert 10344: if test "$with_kerb4" = "yes"; then
1.7.2.1 ! millert 10345:
! 10346: cat >>confdefs.h <<\EOF
1.1 millert 10347: #define HAVE_KERB4 1
10348: EOF
10349:
10350: if test -f "/usr/include/kerberosIV/krb.h"; then
10351: CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
10352: elif test -f "/usr/local/include/kerberosIV/krb.h"; then
10353: CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
10354: elif test -f "/usr/kerberos/include/krb.h"; then
10355: CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
10356: elif test -f "/usr/local/kerberos/include/krb.h"; then
10357: CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
10358: else
10359: echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10360: fi
10361:
10362: if test -d "/usr/kerberos/lib"; then
10363: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
10364: elif test -d "/usr/lib/kerberos"; then
10365: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
10366: elif test -f "/usr/local/lib/libkrb.a"; then
10367: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10368: elif test ! -f "/usr/lib/libkrb.a"; then
10369: echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10370: fi
10371:
1.7.2.1 ! millert 10372: echo "$as_me:10372: checking for main in -ldes" >&5
! 10373: echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
! 10374: if test "${ac_cv_lib_des_main+set}" = set; then
! 10375: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10376: else
1.7.2.1 ! millert 10377: ac_check_lib_save_LIBS=$LIBS
1.1 millert 10378: LIBS="-ldes $LIBS"
1.7.2.1 ! millert 10379: cat >conftest.$ac_ext <<_ACEOF
! 10380: #line 10380 "configure"
1.1 millert 10381: #include "confdefs.h"
10382:
1.7.2.1 ! millert 10383: int
! 10384: main ()
! 10385: {
! 10386: main ();
! 10387: ;
! 10388: return 0;
! 10389: }
! 10390: _ACEOF
! 10391: rm -f conftest.$ac_objext conftest$ac_exeext
! 10392: if { (eval echo "$as_me:10392: \"$ac_link\"") >&5
! 10393: (eval $ac_link) 2>&5
! 10394: ac_status=$?
! 10395: echo "$as_me:10395: \$? = $ac_status" >&5
! 10396: (exit $ac_status); } &&
! 10397: { ac_try='test -s conftest$ac_exeext'
! 10398: { (eval echo "$as_me:10398: \"$ac_try\"") >&5
! 10399: (eval $ac_try) 2>&5
! 10400: ac_status=$?
! 10401: echo "$as_me:10401: \$? = $ac_status" >&5
! 10402: (exit $ac_status); }; }; then
! 10403: ac_cv_lib_des_main=yes
! 10404: else
! 10405: echo "$as_me: failed program was:" >&5
! 10406: cat conftest.$ac_ext >&5
! 10407: ac_cv_lib_des_main=no
! 10408: fi
! 10409: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10410: LIBS=$ac_check_lib_save_LIBS
! 10411: fi
! 10412: echo "$as_me:10412: result: $ac_cv_lib_des_main" >&5
! 10413: echo "${ECHO_T}$ac_cv_lib_des_main" >&6
! 10414: if test $ac_cv_lib_des_main = yes; then
1.1 millert 10415: SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
10416: else
10417: SUDO_LIBS="${SUDO_LIBS} -lkrb"
10418: fi
1.7.2.1 ! millert 10419: ac_cv_lib_des=ac_cv_lib_des_main
1.1 millert 10420:
10421: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
10422: fi
10423:
10424: if test "$with_AFS" = "yes"; then
10425:
10426: # looks like the "standard" place for AFS libs is /usr/afsws/lib
10427: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
10428: for i in $AFSLIBDIRS; do
10429: if test -d ${i}; then
10430: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
10431: FOUND_AFSLIBDIR=true
10432: fi
10433: done
10434: if test -z "$FOUND_AFSLIBDIR"; then
10435: echo 'Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options.'
10436: fi
10437:
10438: # Order is important here. Note that we build AFS_LIBS from right to left
10439: # since AFS_LIBS may be initialized with BSD compat libs that must go last
10440: AFS_LIBS="-laudit ${AFS_LIBS}"
10441: for i in $AFSLIBDIRS; do
10442: if test -f ${i}/util.a; then
10443: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
10444: FOUND_UTIL_A=true
10445: break;
10446: fi
10447: done
10448: if test -z "$FOUND_UTIL_A"; then
10449: AFS_LIBS="-lutil ${AFS_LIBS}"
10450: fi
10451: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
10452:
10453: # AFS includes may live in /usr/include on some machines...
10454: for i in /usr/afsws/include; do
10455: if test -d ${i}; then
10456: CPPFLAGS="${CPPFLAGS} -I${i}"
10457: FOUND_AFSINCDIR=true
10458: fi
10459: done
10460:
10461: if test -z "$FOUND_AFSLIBDIR"; then
10462: echo 'Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options.'
10463: fi
10464: fi
10465:
10466: if test "$with_DCE" = "yes"; then
10467: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
10468: SUDO_LIBS="${SUDO_LIBS} -ldce"
10469: fi
10470:
10471: if test "$with_skey" = "yes"; then
10472: SUDO_LIBS="${SUDO_LIBS} -lskey"
10473: if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
10474: :
10475: elif test -f /usr/local/include/skey.h; then
10476: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10477: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10478: elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
10479: CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
10480: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
10481: else
10482: echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS'
10483: fi
1.7.2.1 ! millert 10484: echo "$as_me:10484: checking for skeyaccess in -lskey" >&5
! 10485: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
! 10486: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
! 10487: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10488: else
! 10489: ac_check_lib_save_LIBS=$LIBS
! 10490: LIBS="-lskey $LIBS"
! 10491: cat >conftest.$ac_ext <<_ACEOF
! 10492: #line 10492 "configure"
! 10493: #include "confdefs.h"
! 10494:
! 10495: /* Override any gcc2 internal prototype to avoid an error. */
! 10496: #ifdef __cplusplus
! 10497: extern "C"
! 10498: #endif
! 10499: /* We use char because int might match the return type of a gcc2
! 10500: builtin and then its argument prototype would still apply. */
! 10501: char skeyaccess ();
! 10502: int
! 10503: main ()
! 10504: {
! 10505: skeyaccess ();
! 10506: ;
! 10507: return 0;
! 10508: }
! 10509: _ACEOF
! 10510: rm -f conftest.$ac_objext conftest$ac_exeext
! 10511: if { (eval echo "$as_me:10511: \"$ac_link\"") >&5
! 10512: (eval $ac_link) 2>&5
! 10513: ac_status=$?
! 10514: echo "$as_me:10514: \$? = $ac_status" >&5
! 10515: (exit $ac_status); } &&
! 10516: { ac_try='test -s conftest$ac_exeext'
! 10517: { (eval echo "$as_me:10517: \"$ac_try\"") >&5
! 10518: (eval $ac_try) 2>&5
! 10519: ac_status=$?
! 10520: echo "$as_me:10520: \$? = $ac_status" >&5
! 10521: (exit $ac_status); }; }; then
! 10522: ac_cv_lib_skey_skeyaccess=yes
! 10523: else
! 10524: echo "$as_me: failed program was:" >&5
! 10525: cat conftest.$ac_ext >&5
! 10526: ac_cv_lib_skey_skeyaccess=no
! 10527: fi
! 10528: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10529: LIBS=$ac_check_lib_save_LIBS
! 10530: fi
! 10531: echo "$as_me:10531: result: $ac_cv_lib_skey_skeyaccess" >&5
! 10532: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
! 10533: if test $ac_cv_lib_skey_skeyaccess = yes; then
! 10534:
! 10535: cat >>confdefs.h <<\EOF
! 10536: #define HAVE_SKEYACCESS 1
! 10537: EOF
! 10538:
! 10539: fi
! 10540:
1.1 millert 10541: fi
10542:
10543: if test "$with_opie" = "yes"; then
10544: SUDO_LIBS="${SUDO_LIBS} -lopie"
10545: if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
10546: :
10547: elif test -f /usr/local/include/opie.h; then
10548: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10549: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10550: else
10551: echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
10552: fi
10553: fi
10554:
10555: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
10556: if test "$with_SecurID" != "yes"; then
10557: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
10558: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
10559: elif test -f /usr/ace/examples/sdiclient.a; then
10560: SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
10561: CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
10562: else
10563: SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
10564: CPPFLAGS="${CPPFLAGS} -I/usr/ace"
10565: fi
10566: fi
10567:
10568: if test "$with_fwtk" = "yes"; then
10569: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
10570: fi
10571:
10572: if test "$with_authenticate" = "yes"; then
10573: SUDO_LIBS="${SUDO_LIBS} -ls"
10574: fi
10575:
1.7.2.1 ! millert 10576: echo "$as_me:10576: checking for log file location" >&5
! 10577: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1 millert 10578: if test -n "$with_logpath"; then
1.7.2.1 ! millert 10579: echo "$as_me:10579: result: $with_logpath" >&5
! 10580: echo "${ECHO_T}$with_logpath" >&6
! 10581: cat >>confdefs.h <<EOF
1.1 millert 10582: #define _PATH_SUDO_LOGFILE "$with_logpath"
10583: EOF
10584:
10585: elif test -d "/var/log"; then
1.7.2.1 ! millert 10586: echo "$as_me:10586: result: /var/log/sudo.log" >&5
! 10587: echo "${ECHO_T}/var/log/sudo.log" >&6
! 10588: cat >>confdefs.h <<\EOF
1.1 millert 10589: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
10590: EOF
10591:
10592: elif test -d "/var/adm"; then
1.7.2.1 ! millert 10593: echo "$as_me:10593: result: /var/adm/sudo.log" >&5
! 10594: echo "${ECHO_T}/var/adm/sudo.log" >&6
! 10595: cat >>confdefs.h <<\EOF
1.1 millert 10596: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
10597: EOF
10598:
10599: elif test -d "/usr/adm"; then
1.7.2.1 ! millert 10600: echo "$as_me:10600: result: /usr/adm/sudo.log" >&5
! 10601: echo "${ECHO_T}/usr/adm/sudo.log" >&6
! 10602: cat >>confdefs.h <<\EOF
1.1 millert 10603: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
10604: EOF
10605:
10606: else
1.7.2.1 ! millert 10607: echo "$as_me:10607: result: unknown" >&5
! 10608: echo "${ECHO_T}unknown" >&6
1.1 millert 10609: fi
10610:
1.7.2.1 ! millert 10611: echo "$as_me:10611: checking for timestamp file location" >&5
! 10612: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1 millert 10613: if test -n "$with_timedir"; then
1.7.2.1 ! millert 10614: echo "$as_me:10614: result: $with_timedir" >&5
! 10615: echo "${ECHO_T}$with_timedir" >&6
! 10616: cat >>confdefs.h <<EOF
1.1 millert 10617: #define _PATH_SUDO_TIMEDIR "$with_timedir"
10618: EOF
10619:
1.7.2.1 ! millert 10620: timedir="$with_timedir"
1.1 millert 10621: elif test -d "/var/run"; then
1.7.2.1 ! millert 10622: echo "$as_me:10622: result: /var/run/sudo" >&5
! 10623: echo "${ECHO_T}/var/run/sudo" >&6
! 10624: cat >>confdefs.h <<\EOF
1.1 millert 10625: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
10626: EOF
10627:
1.7.2.1 ! millert 10628: timedir="/var/run/sudo"
1.6 millert 10629: else
1.7.2.1 ! millert 10630: echo "$as_me:10630: result: /tmp/.odus" >&5
! 10631: echo "${ECHO_T}/tmp/.odus" >&6
! 10632: cat >>confdefs.h <<\EOF
1.1 millert 10633: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
10634: EOF
10635:
1.7.2.1 ! millert 10636: timedir="/tmp/.odus"
1.1 millert 10637: fi
10638:
10639: if test "$with_passwd" = "no"; then
1.7.2.1 ! millert 10640: cat >>confdefs.h <<\EOF
! 10641: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.1 millert 10642: EOF
10643:
10644: if test -z "$AUTH_OBJS"; then
1.7.2.1 ! millert 10645: { { echo "$as_me:10645: error: no authentication methods defined." >&5
! 10646: echo "$as_me: error: no authentication methods defined." >&2;}
! 10647: { (exit 1); exit 1; }; }
1.1 millert 10648: fi
10649: else
10650: if test -n "$SECUREWARE"; then
10651: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
10652: else
10653: AUTH_OBJS="${AUTH_OBJS} passwd.o"
10654: fi
10655: fi
10656:
10657: if test -n "$LIBS"; then
10658: L="$LIBS"
10659: LIBS=
10660: for l in ${L}; do
10661: dupe=0
10662: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
10663: test $l = $sl && dupe=1
10664: done
10665: test $dupe = 0 && LIBS="${LIBS} $l"
10666: done
10667: fi
10668:
10669: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
10670:
1.7.2.1 ! millert 10671: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
! 10672: cat >confcache <<\_ACEOF
1.1 millert 10673: # This file is a shell script that caches the results of configure
10674: # tests run on this system so they can be shared between configure
1.7.2.1 ! millert 10675: # scripts and configure runs, see configure's option --config-cache.
! 10676: # It is not useful on other systems. If it contains results you don't
! 10677: # want to keep, you may remove or edit it.
1.1 millert 10678: #
1.7.2.1 ! millert 10679: # config.status only pays attention to the cache file if you give it
! 10680: # the --recheck option to rerun configure.
1.1 millert 10681: #
1.7.2.1 ! millert 10682: # `ac_cv_env_foo' variables (set or unset) will be overriden when
! 10683: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 10684: # following values.
! 10685:
! 10686: _ACEOF
! 10687:
1.1 millert 10688: # The following way of writing the cache mishandles newlines in values,
10689: # but we know of no workaround that is simple, portable, and efficient.
10690: # So, don't put newlines in cache variables' values.
10691: # Ultrix sh set writes to stderr and can't be redirected directly,
10692: # and sets the high bit in the cache file unless we assign to the vars.
1.7.2.1 ! millert 10693: {
! 10694: (set) 2>&1 |
! 10695: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 10696: *ac_space=\ *)
! 10697: # `set' does not quote correctly, so add quotes (double-quote
! 10698: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 10699: sed -n \
! 10700: "s/'/'\\\\''/g;
! 10701: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 10702: ;;
! 10703: *)
! 10704: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 10705: sed -n \
! 10706: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 10707: ;;
! 10708: esac;
! 10709: } |
! 10710: sed '
! 10711: t clear
! 10712: : clear
! 10713: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 10714: t end
! 10715: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 10716: : end' >>confcache
! 10717: if cmp -s $cache_file confcache; then :; else
1.1 millert 10718: if test -w $cache_file; then
1.7.2.1 ! millert 10719: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
! 10720: cat confcache >$cache_file
1.1 millert 10721: else
10722: echo "not updating unwritable cache $cache_file"
10723: fi
10724: fi
10725: rm -f confcache
10726:
10727: test "x$prefix" = xNONE && prefix=$ac_default_prefix
10728: # Let make expand exec_prefix.
10729: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10730:
1.7.2.1 ! millert 10731: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 10732: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 10733: # trailing colons and then remove the whole line if VPATH becomes empty
! 10734: # (actually we leave an empty line to preserve line numbers).
1.1 millert 10735: if test "x$srcdir" = x.; then
1.7.2.1 ! millert 10736: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 10737: s/:*\$(srcdir):*/:/;
! 10738: s/:*\${srcdir}:*/:/;
! 10739: s/:*@srcdir@:*/:/;
! 10740: s/^\([^=]*=[ ]*\):*/\1/;
! 10741: s/:*$//;
! 10742: s/^[^=]*=[ ]*$//;
! 10743: }'
1.1 millert 10744: fi
10745:
10746: DEFS=-DHAVE_CONFIG_H
10747:
10748: : ${CONFIG_STATUS=./config.status}
1.7.2.1 ! millert 10749: ac_clean_files_save=$ac_clean_files
! 10750: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 10751: { echo "$as_me:10751: creating $CONFIG_STATUS" >&5
! 10752: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 10753: cat >$CONFIG_STATUS <<_ACEOF
! 10754: #! $SHELL
1.1 millert 10755: # Generated automatically by configure.
10756: # Run this file to recreate the current configuration.
10757: # Compiler output produced by configure, useful for debugging
1.7.2.1 ! millert 10758: # configure, is in config.log if it exists.
1.1 millert 10759:
1.7.2.1 ! millert 10760: debug=false
! 10761: SHELL=\${CONFIG_SHELL-$SHELL}
! 10762: ac_cs_invocation="\$0 \$@"
! 10763:
! 10764: _ACEOF
! 10765:
! 10766: cat >>$CONFIG_STATUS <<\_ACEOF
! 10767: # Be Bourne compatible
! 10768: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 10769: emulate sh
! 10770: NULLCMD=:
! 10771: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 10772: set -o posix
! 10773: fi
! 10774:
! 10775: # Name of the executable.
! 10776: as_me=`echo "$0" |sed 's,.*[\\/],,'`
! 10777:
! 10778: if expr a : '\(a\)' >/dev/null 2>&1; then
! 10779: as_expr=expr
! 10780: else
! 10781: as_expr=false
! 10782: fi
! 10783:
! 10784: rm -f conf$$ conf$$.exe conf$$.file
! 10785: echo >conf$$.file
! 10786: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 10787: # We could just check for DJGPP; but this test a) works b) is more generic
! 10788: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 10789: if test -f conf$$.exe; then
! 10790: # Don't use ln at all; we don't have any links
! 10791: as_ln_s='cp -p'
! 10792: else
! 10793: as_ln_s='ln -s'
! 10794: fi
! 10795: elif ln conf$$.file conf$$ 2>/dev/null; then
! 10796: as_ln_s=ln
! 10797: else
! 10798: as_ln_s='cp -p'
! 10799: fi
! 10800: rm -f conf$$ conf$$.exe conf$$.file
! 10801:
! 10802: as_executable_p="test -f"
! 10803:
! 10804: # Support unset when possible.
! 10805: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 10806: as_unset=unset
! 10807: else
! 10808: as_unset=false
! 10809: fi
! 10810:
! 10811: # NLS nuisances.
! 10812: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
! 10813: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
! 10814: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
! 10815: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
! 10816: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
! 10817: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
! 10818: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
! 10819: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
! 10820:
! 10821: # IFS
! 10822: # We need space, tab and new line, in precisely that order.
! 10823: as_nl='
! 10824: '
! 10825: IFS=" $as_nl"
! 10826:
! 10827: # CDPATH.
! 10828: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
! 10829:
! 10830: exec 6>&1
! 10831:
! 10832: _ACEOF
! 10833:
! 10834: # Files that config.status was made for.
! 10835: if test -n "$ac_config_files"; then
! 10836: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 10837: fi
! 10838:
! 10839: if test -n "$ac_config_headers"; then
! 10840: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 10841: fi
! 10842:
! 10843: if test -n "$ac_config_links"; then
! 10844: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 10845: fi
! 10846:
! 10847: if test -n "$ac_config_commands"; then
! 10848: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 10849: fi
! 10850:
! 10851: cat >>$CONFIG_STATUS <<\EOF
! 10852:
! 10853: ac_cs_usage="\
! 10854: \`$as_me' instantiates files from templates according to the
! 10855: current configuration.
! 10856:
! 10857: Usage: $0 [OPTIONS] [FILE]...
! 10858:
! 10859: -h, --help print this help, then exit
! 10860: -V, --version print version number, then exit
! 10861: -d, --debug don't remove temporary files
! 10862: --recheck update $as_me by reconfiguring in the same conditions
! 10863: --file=FILE[:TEMPLATE]
! 10864: instantiate the configuration file FILE
! 10865: --header=FILE[:TEMPLATE]
! 10866: instantiate the configuration header FILE
! 10867:
! 10868: Configuration files:
! 10869: $config_files
! 10870:
! 10871: Configuration headers:
! 10872: $config_headers
! 10873:
! 10874: Report bugs to <bug-autoconf@gnu.org>."
! 10875: EOF
! 10876:
! 10877: cat >>$CONFIG_STATUS <<EOF
! 10878: ac_cs_version="\\
! 10879: sudo config.status 1.6.5
! 10880: configured by $0, generated by GNU Autoconf 2.52,
! 10881: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
! 10882:
! 10883: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 10884: Free Software Foundation, Inc.
! 10885: This config.status script is free software; the Free Software Foundation
! 10886: gives unlimited permission to copy, distribute and modify it."
! 10887: srcdir=$srcdir
! 10888: EOF
! 10889:
! 10890: cat >>$CONFIG_STATUS <<\EOF
! 10891: # If no file are specified by the user, then we need to provide default
! 10892: # value. By we need to know if files were specified by the user.
! 10893: ac_need_defaults=:
! 10894: while test $# != 0
1.1 millert 10895: do
1.7.2.1 ! millert 10896: case $1 in
! 10897: --*=*)
! 10898: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 10899: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
! 10900: shift
! 10901: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
! 10902: shift
! 10903: ;;
! 10904: -*);;
! 10905: *) # This is not an option, so the user has probably given explicit
! 10906: # arguments.
! 10907: ac_need_defaults=false;;
! 10908: esac
! 10909:
! 10910: case $1 in
! 10911: # Handling of the options.
! 10912: EOF
! 10913: cat >>$CONFIG_STATUS <<EOF
1.1 millert 10914: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.7.2.1 ! millert 10915: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
! 10916: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
! 10917: EOF
! 10918: cat >>$CONFIG_STATUS <<\EOF
! 10919: --version | --vers* | -V )
! 10920: echo "$ac_cs_version"; exit 0 ;;
! 10921: --he | --h)
! 10922: # Conflict between --help and --header
! 10923: { { echo "$as_me:10923: error: ambiguous option: $1
! 10924: Try \`$0 --help' for more information." >&5
! 10925: echo "$as_me: error: ambiguous option: $1
! 10926: Try \`$0 --help' for more information." >&2;}
! 10927: { (exit 1); exit 1; }; };;
! 10928: --help | --hel | -h )
! 10929: echo "$ac_cs_usage"; exit 0 ;;
! 10930: --debug | --d* | -d )
! 10931: debug=: ;;
! 10932: --file | --fil | --fi | --f )
! 10933: shift
! 10934: CONFIG_FILES="$CONFIG_FILES $1"
! 10935: ac_need_defaults=false;;
! 10936: --header | --heade | --head | --hea )
! 10937: shift
! 10938: CONFIG_HEADERS="$CONFIG_HEADERS $1"
! 10939: ac_need_defaults=false;;
! 10940:
! 10941: # This is an error.
! 10942: -*) { { echo "$as_me:10942: error: unrecognized option: $1
! 10943: Try \`$0 --help' for more information." >&5
! 10944: echo "$as_me: error: unrecognized option: $1
! 10945: Try \`$0 --help' for more information." >&2;}
! 10946: { (exit 1); exit 1; }; } ;;
! 10947:
! 10948: *) ac_config_targets="$ac_config_targets $1" ;;
! 10949:
1.1 millert 10950: esac
1.7.2.1 ! millert 10951: shift
1.1 millert 10952: done
10953:
1.7.2.1 ! millert 10954: exec 5>>config.log
! 10955: cat >&5 << _ACEOF
! 10956:
! 10957: ## ----------------------- ##
! 10958: ## Running config.status. ##
! 10959: ## ----------------------- ##
! 10960:
! 10961: This file was extended by $as_me (sudo 1.6.5) 2.52, executed with
! 10962: CONFIG_FILES = $CONFIG_FILES
! 10963: CONFIG_HEADERS = $CONFIG_HEADERS
! 10964: CONFIG_LINKS = $CONFIG_LINKS
! 10965: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 10966: > $ac_cs_invocation
! 10967: on `(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 millert 10968:
1.7.2.1 ! millert 10969: _ACEOF
1.1 millert 10970: EOF
10971:
1.7.2.1 ! millert 10972: cat >>$CONFIG_STATUS <<\EOF
! 10973: for ac_config_target in $ac_config_targets
! 10974: do
! 10975: case "$ac_config_target" in
! 10976: # Handling of arguments.
! 10977: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 10978: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
! 10979: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
! 10980: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
! 10981: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
! 10982: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
! 10983: *) { { echo "$as_me:10983: error: invalid argument: $ac_config_target" >&5
! 10984: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 10985: { (exit 1); exit 1; }; };;
! 10986: esac
! 10987: done
! 10988:
! 10989: # If the user did not use the arguments to specify the items to instantiate,
! 10990: # then the envvar interface is used. Set only those that are not.
! 10991: # We use the long form for the default assignment because of an extremely
! 10992: # bizarre bug on SunOS 4.1.3.
! 10993: if $ac_need_defaults; then
! 10994: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 10995: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 10996: fi
! 10997:
! 10998: # Create a temporary directory, and hook for its removal unless debugging.
! 10999: $debug ||
! 11000: {
! 11001: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 11002: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 11003: }
! 11004:
! 11005: # Create a (secure) tmp directory for tmp files.
! 11006: : ${TMPDIR=/tmp}
! 11007: {
! 11008: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
! 11009: test -n "$tmp" && test -d "$tmp"
! 11010: } ||
! 11011: {
! 11012: tmp=$TMPDIR/cs$$-$RANDOM
! 11013: (umask 077 && mkdir $tmp)
! 11014: } ||
! 11015: {
! 11016: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
! 11017: { (exit 1); exit 1; }
! 11018: }
1.1 millert 11019:
11020: EOF
11021:
1.7.2.1 ! millert 11022: cat >>$CONFIG_STATUS <<EOF
1.1 millert 11023:
1.7.2.1 ! millert 11024: #
! 11025: # CONFIG_FILES section.
! 11026: #
! 11027:
! 11028: # No need to generate the scripts if there are no CONFIG_FILES.
! 11029: # This happens for instance when ./config.status config.h
! 11030: if test -n "\$CONFIG_FILES"; then
! 11031: # Protect against being on the right side of a sed subst in config.status.
! 11032: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 11033: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 11034: s,@SHELL@,$SHELL,;t t
! 11035: s,@exec_prefix@,$exec_prefix,;t t
! 11036: s,@prefix@,$prefix,;t t
! 11037: s,@program_transform_name@,$program_transform_name,;t t
! 11038: s,@bindir@,$bindir,;t t
! 11039: s,@sbindir@,$sbindir,;t t
! 11040: s,@libexecdir@,$libexecdir,;t t
! 11041: s,@datadir@,$datadir,;t t
! 11042: s,@sysconfdir@,$sysconfdir,;t t
! 11043: s,@sharedstatedir@,$sharedstatedir,;t t
! 11044: s,@localstatedir@,$localstatedir,;t t
! 11045: s,@libdir@,$libdir,;t t
! 11046: s,@includedir@,$includedir,;t t
! 11047: s,@oldincludedir@,$oldincludedir,;t t
! 11048: s,@infodir@,$infodir,;t t
! 11049: s,@mandir@,$mandir,;t t
! 11050: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 11051: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 11052: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 11053: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 11054: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 11055: s,@build_alias@,$build_alias,;t t
! 11056: s,@host_alias@,$host_alias,;t t
! 11057: s,@target_alias@,$target_alias,;t t
! 11058: s,@ECHO_C@,$ECHO_C,;t t
! 11059: s,@ECHO_N@,$ECHO_N,;t t
! 11060: s,@ECHO_T@,$ECHO_T,;t t
! 11061: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 11062: s,@DEFS@,$DEFS,;t t
! 11063: s,@LIBS@,$LIBS,;t t
! 11064: s,@CFLAGS@,$CFLAGS,;t t
! 11065: s,@PROGS@,$PROGS,;t t
! 11066: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 11067: s,@LDFLAGS@,$LDFLAGS,;t t
! 11068: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
! 11069: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
! 11070: s,@NET_LIBS@,$NET_LIBS,;t t
! 11071: s,@AFS_LIBS@,$AFS_LIBS,;t t
! 11072: s,@OSDEFS@,$OSDEFS,;t t
! 11073: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
! 11074: s,@LIBOBJS@,$LIBOBJS,;t t
! 11075: s,@MANTYPE@,$MANTYPE,;t t
! 11076: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
! 11077: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
! 11078: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
! 11079: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
! 11080: s,@DEV@,$DEV,;t t
! 11081: s,@mansectsu@,$mansectsu,;t t
! 11082: s,@mansectform@,$mansectform,;t t
! 11083: s,@mansrcdir@,$mansrcdir,;t t
! 11084: s,@timedir@,$timedir,;t t
! 11085: s,@timeout@,$timeout,;t t
! 11086: s,@password_timeout@,$password_timeout,;t t
! 11087: s,@sudo_umask@,$sudo_umask,;t t
! 11088: s,@passprompt@,$passprompt,;t t
! 11089: s,@long_otp_prompt@,$long_otp_prompt,;t t
! 11090: s,@lecture@,$lecture,;t t
! 11091: s,@logfac@,$logfac,;t t
! 11092: s,@goodpri@,$goodpri,;t t
! 11093: s,@badpri@,$badpri,;t t
! 11094: s,@loglen@,$loglen,;t t
! 11095: s,@ignore_dot@,$ignore_dot,;t t
! 11096: s,@mail_no_user@,$mail_no_user,;t t
! 11097: s,@mail_no_host@,$mail_no_host,;t t
! 11098: s,@mail_no_perms@,$mail_no_perms,;t t
! 11099: s,@mailto@,$mailto,;t t
! 11100: s,@mailsub@,$mailsub,;t t
! 11101: s,@badpass_message@,$badpass_message,;t t
! 11102: s,@fqdn@,$fqdn,;t t
! 11103: s,@runas_default@,$runas_default,;t t
! 11104: s,@env_editor@,$env_editor,;t t
! 11105: s,@passwd_tries@,$passwd_tries,;t t
! 11106: s,@tty_tickets@,$tty_tickets,;t t
! 11107: s,@insults@,$insults,;t t
! 11108: s,@EGREPPROG@,$EGREPPROG,;t t
! 11109: s,@CC@,$CC,;t t
! 11110: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 11111: s,@EXEEXT@,$EXEEXT,;t t
! 11112: s,@OBJEXT@,$OBJEXT,;t t
! 11113: s,@CPP@,$CPP,;t t
! 11114: s,@UNAMEPROG@,$UNAMEPROG,;t t
! 11115: s,@TRPROG@,$TRPROG,;t t
! 11116: s,@SEDPROG@,$SEDPROG,;t t
! 11117: s,@NROFFPROG@,$NROFFPROG,;t t
! 11118: s,@build@,$build,;t t
! 11119: s,@build_cpu@,$build_cpu,;t t
! 11120: s,@build_vendor@,$build_vendor,;t t
! 11121: s,@build_os@,$build_os,;t t
! 11122: s,@host@,$host,;t t
! 11123: s,@host_cpu@,$host_cpu,;t t
! 11124: s,@host_vendor@,$host_vendor,;t t
! 11125: s,@host_os@,$host_os,;t t
! 11126: s,@YACC@,$YACC,;t t
! 11127: s,@ALLOCA@,$ALLOCA,;t t
! 11128: CEOF
! 11129:
! 11130: EOF
! 11131:
! 11132: cat >>$CONFIG_STATUS <<\EOF
! 11133: # Split the substitutions into bite-sized pieces for seds with
! 11134: # small command number limits, like on Digital OSF/1 and HP-UX.
! 11135: ac_max_sed_lines=48
! 11136: ac_sed_frag=1 # Number of current file.
! 11137: ac_beg=1 # First line for current file.
! 11138: ac_end=$ac_max_sed_lines # Line after last line for current file.
! 11139: ac_more_lines=:
! 11140: ac_sed_cmds=
! 11141: while $ac_more_lines; do
! 11142: if test $ac_beg -gt 1; then
! 11143: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 11144: else
! 11145: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
! 11146: fi
! 11147: if test ! -s $tmp/subs.frag; then
! 11148: ac_more_lines=false
1.1 millert 11149: else
1.7.2.1 ! millert 11150: # The purpose of the label and of the branching condition is to
! 11151: # speed up the sed processing (if there are no `@' at all, there
! 11152: # is no need to browse any of the substitutions).
! 11153: # These are the two extra sed commands mentioned above.
! 11154: (echo ':t
! 11155: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
! 11156: if test -z "$ac_sed_cmds"; then
! 11157: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
! 11158: else
! 11159: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
! 11160: fi
! 11161: ac_sed_frag=`expr $ac_sed_frag + 1`
! 11162: ac_beg=$ac_end
! 11163: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 millert 11164: fi
1.7.2.1 ! millert 11165: done
! 11166: if test -z "$ac_sed_cmds"; then
! 11167: ac_sed_cmds=cat
1.1 millert 11168: fi
1.7.2.1 ! millert 11169: fi # test -n "$CONFIG_FILES"
1.1 millert 11170:
11171: EOF
1.7.2.1 ! millert 11172: cat >>$CONFIG_STATUS <<\EOF
! 11173: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 millert 11174: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.7.2.1 ! millert 11175: case $ac_file in
! 11176: - | *:- | *:-:* ) # input from stdin
! 11177: cat >$tmp/stdin
! 11178: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 11179: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 11180: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 11181: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 11182: * ) ac_file_in=$ac_file.in ;;
1.1 millert 11183: esac
11184:
1.7.2.1 ! millert 11185: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 11186: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 11187: X"$ac_file" : 'X\(//\)[^/]' \| \
! 11188: X"$ac_file" : 'X\(//\)$' \| \
! 11189: X"$ac_file" : 'X\(/\)' \| \
! 11190: . : '\(.\)' 2>/dev/null ||
! 11191: echo X"$ac_file" |
! 11192: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 11193: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 11194: /^X\(\/\/\)$/{ s//\1/; q; }
! 11195: /^X\(\/\).*/{ s//\1/; q; }
! 11196: s/.*/./; q'`
1.1 millert 11197: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.7.2.1 ! millert 11198: { case "$ac_dir" in
! 11199: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
! 11200: *) as_incr_dir=.;;
! 11201: esac
! 11202: as_dummy="$ac_dir"
! 11203: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
! 11204: case $as_mkdir_dir in
! 11205: # Skip DOS drivespec
! 11206: ?:) as_incr_dir=$as_mkdir_dir ;;
! 11207: *)
! 11208: as_incr_dir=$as_incr_dir/$as_mkdir_dir
! 11209: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
! 11210: ;;
! 11211: esac
! 11212: done; }
! 11213:
! 11214: ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1.1 millert 11215: # A "../" for each directory in $ac_dir_suffix.
1.7.2.1 ! millert 11216: ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1.1 millert 11217: else
11218: ac_dir_suffix= ac_dots=
11219: fi
11220:
1.7.2.1 ! millert 11221: case $srcdir in
! 11222: .) ac_srcdir=.
! 11223: if test -z "$ac_dots"; then
! 11224: ac_top_srcdir=.
! 11225: else
! 11226: ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
! 11227: fi ;;
! 11228: [\\/]* | ?:[\\/]* )
! 11229: ac_srcdir=$srcdir$ac_dir_suffix;
! 11230: ac_top_srcdir=$srcdir ;;
1.1 millert 11231: *) # Relative path.
1.7.2.1 ! millert 11232: ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
! 11233: ac_top_srcdir=$ac_dots$srcdir ;;
1.1 millert 11234: esac
11235:
1.7.2.1 ! millert 11236: if test x"$ac_file" != x-; then
! 11237: { echo "$as_me:11237: creating $ac_file" >&5
! 11238: echo "$as_me: creating $ac_file" >&6;}
! 11239: rm -f "$ac_file"
! 11240: fi
! 11241: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 11242: # use $as_me), people would be surprised to read:
! 11243: # /* config.h. Generated automatically by config.status. */
! 11244: configure_input="Generated automatically from `echo $ac_file_in |
! 11245: sed 's,.*/,,'` by configure."
! 11246:
! 11247: # First look for the input files in the build tree, otherwise in the
! 11248: # src tree.
! 11249: ac_file_inputs=`IFS=:
! 11250: for f in $ac_file_in; do
! 11251: case $f in
! 11252: -) echo $tmp/stdin ;;
! 11253: [\\/$]*)
! 11254: # Absolute (can't be DOS-style, as IFS=:)
! 11255: test -f "$f" || { { echo "$as_me:11255: error: cannot find input file: $f" >&5
! 11256: echo "$as_me: error: cannot find input file: $f" >&2;}
! 11257: { (exit 1); exit 1; }; }
! 11258: echo $f;;
! 11259: *) # Relative
! 11260: if test -f "$f"; then
! 11261: # Build tree
! 11262: echo $f
! 11263: elif test -f "$srcdir/$f"; then
! 11264: # Source tree
! 11265: echo $srcdir/$f
! 11266: else
! 11267: # /dev/null tree
! 11268: { { echo "$as_me:11268: error: cannot find input file: $f" >&5
! 11269: echo "$as_me: error: cannot find input file: $f" >&2;}
! 11270: { (exit 1); exit 1; }; }
! 11271: fi;;
! 11272: esac
! 11273: done` || { (exit 1); exit 1; }
! 11274: EOF
! 11275: cat >>$CONFIG_STATUS <<EOF
! 11276: sed "$ac_vpsub
! 11277: $extrasub
! 11278: EOF
! 11279: cat >>$CONFIG_STATUS <<\EOF
! 11280: :t
! 11281: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 11282: s,@configure_input@,$configure_input,;t t
! 11283: s,@srcdir@,$ac_srcdir,;t t
! 11284: s,@top_srcdir@,$ac_top_srcdir,;t t
! 11285: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 11286: rm -f $tmp/stdin
! 11287: if test x"$ac_file" != x-; then
! 11288: mv $tmp/out $ac_file
! 11289: else
! 11290: cat $tmp/out
! 11291: rm -f $tmp/out
! 11292: fi
1.1 millert 11293:
1.7.2.1 ! millert 11294: done
! 11295: EOF
! 11296: cat >>$CONFIG_STATUS <<\EOF
1.1 millert 11297:
1.7.2.1 ! millert 11298: #
! 11299: # CONFIG_HEADER section.
! 11300: #
1.1 millert 11301:
11302: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11303: # NAME is the cpp macro being defined and VALUE is the value it is being given.
11304: #
11305: # ac_d sets the value in "#define NAME VALUE" lines.
1.7.2.1 ! millert 11306: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 11307: ac_dB='[ ].*$,\1#\2'
! 11308: ac_dC=' '
! 11309: ac_dD=',;t'
! 11310: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 11311: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 11312: ac_uB='$,\1#\2define\3'
1.1 millert 11313: ac_uC=' '
1.7.2.1 ! millert 11314: ac_uD=',;t'
1.1 millert 11315:
1.7.2.1 ! millert 11316: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 millert 11317: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.7.2.1 ! millert 11318: case $ac_file in
! 11319: - | *:- | *:-:* ) # input from stdin
! 11320: cat >$tmp/stdin
! 11321: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 11322: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 11323: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 11324: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 11325: * ) ac_file_in=$ac_file.in ;;
1.1 millert 11326: esac
11327:
1.7.2.1 ! millert 11328: test x"$ac_file" != x- && { echo "$as_me:11328: creating $ac_file" >&5
! 11329: echo "$as_me: creating $ac_file" >&6;}
1.1 millert 11330:
1.7.2.1 ! millert 11331: # First look for the input files in the build tree, otherwise in the
! 11332: # src tree.
! 11333: ac_file_inputs=`IFS=:
! 11334: for f in $ac_file_in; do
! 11335: case $f in
! 11336: -) echo $tmp/stdin ;;
! 11337: [\\/$]*)
! 11338: # Absolute (can't be DOS-style, as IFS=:)
! 11339: test -f "$f" || { { echo "$as_me:11339: error: cannot find input file: $f" >&5
! 11340: echo "$as_me: error: cannot find input file: $f" >&2;}
! 11341: { (exit 1); exit 1; }; }
! 11342: echo $f;;
! 11343: *) # Relative
! 11344: if test -f "$f"; then
! 11345: # Build tree
! 11346: echo $f
! 11347: elif test -f "$srcdir/$f"; then
! 11348: # Source tree
! 11349: echo $srcdir/$f
! 11350: else
! 11351: # /dev/null tree
! 11352: { { echo "$as_me:11352: error: cannot find input file: $f" >&5
! 11353: echo "$as_me: error: cannot find input file: $f" >&2;}
! 11354: { (exit 1); exit 1; }; }
! 11355: fi;;
! 11356: esac
! 11357: done` || { (exit 1); exit 1; }
! 11358: # Remove the trailing spaces.
! 11359: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 millert 11360:
11361: EOF
11362:
1.7.2.1 ! millert 11363: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 11364: # `conftest.undefs', that substitutes the proper values into
! 11365: # config.h.in to produce config.h. The first handles `#define'
! 11366: # templates, and the second `#undef' templates.
! 11367: # And first: Protect against being on the right side of a sed subst in
! 11368: # config.status. Protect against being in an unquoted here document
! 11369: # in config.status.
! 11370: rm -f conftest.defines conftest.undefs
! 11371: # Using a here document instead of a string reduces the quoting nightmare.
! 11372: # Putting comments in sed scripts is not portable.
! 11373: #
! 11374: # `end' is used to avoid that the second main sed command (meant for
! 11375: # 0-ary CPP macros) applies to n-ary macro definitions.
! 11376: # See the Autoconf documentation for `clear'.
! 11377: cat >confdef2sed.sed <<\EOF
! 11378: s/[\\&,]/\\&/g
! 11379: s,[\\$`],\\&,g
! 11380: t clear
! 11381: : clear
! 11382: s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
! 11383: t end
! 11384: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 11385: : end
! 11386: EOF
! 11387: # If some macros were called several times there might be several times
! 11388: # the same #defines, which is useless. Nevertheless, we may not want to
! 11389: # sort them, since we want the *last* AC-DEFINE to be honored.
! 11390: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 11391: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 11392: rm -f confdef2sed.sed
1.1 millert 11393:
11394: # This sed command replaces #undef with comments. This is necessary, for
11395: # example, in the case of _POSIX_SOURCE, which is predefined and required
11396: # on some systems where configure will not decide to define it.
1.7.2.1 ! millert 11397: cat >>conftest.undefs <<\EOF
! 11398: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.1 millert 11399: EOF
11400:
1.7.2.1 ! millert 11401: # Break up conftest.defines because some shells have a limit on the size
! 11402: # of here documents, and old seds have small limits too (100 cmds).
! 11403: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 11404: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 11405: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 11406: echo ' :' >>$CONFIG_STATUS
! 11407: rm -f conftest.tail
! 11408: while grep . conftest.defines >/dev/null
! 11409: do
! 11410: # Write a limited-size here document to $tmp/defines.sed.
! 11411: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 11412: # Speed up: don't consider the non `#define' lines.
! 11413: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 11414: # Work around the forget-to-reset-the-flag bug.
! 11415: echo 't clr' >>$CONFIG_STATUS
! 11416: echo ': clr' >>$CONFIG_STATUS
! 11417: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 11418: echo 'CEOF
! 11419: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 11420: rm -f $tmp/in
! 11421: mv $tmp/out $tmp/in
! 11422: ' >>$CONFIG_STATUS
! 11423: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 11424: rm -f conftest.defines
! 11425: mv conftest.tail conftest.defines
! 11426: done
! 11427: rm -f conftest.defines
! 11428: echo ' fi # egrep' >>$CONFIG_STATUS
! 11429: echo >>$CONFIG_STATUS
! 11430:
! 11431: # Break up conftest.undefs because some shells have a limit on the size
! 11432: # of here documents, and old seds have small limits too (100 cmds).
! 11433: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 millert 11434: rm -f conftest.tail
1.7.2.1 ! millert 11435: while grep . conftest.undefs >/dev/null
1.1 millert 11436: do
1.7.2.1 ! millert 11437: # Write a limited-size here document to $tmp/undefs.sed.
! 11438: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 11439: # Speed up: don't consider the non `#undef'
! 11440: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 11441: # Work around the forget-to-reset-the-flag bug.
! 11442: echo 't clr' >>$CONFIG_STATUS
! 11443: echo ': clr' >>$CONFIG_STATUS
! 11444: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 millert 11445: echo 'CEOF
1.7.2.1 ! millert 11446: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 11447: rm -f $tmp/in
! 11448: mv $tmp/out $tmp/in
! 11449: ' >>$CONFIG_STATUS
! 11450: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 11451: rm -f conftest.undefs
! 11452: mv conftest.tail conftest.undefs
! 11453: done
! 11454: rm -f conftest.undefs
! 11455:
! 11456: cat >>$CONFIG_STATUS <<\EOF
! 11457: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 11458: # use $as_me), people would be surprised to read:
! 11459: # /* config.h. Generated automatically by config.status. */
! 11460: if test x"$ac_file" = x-; then
! 11461: echo "/* Generated automatically by configure. */" >$tmp/config.h
1.1 millert 11462: else
1.7.2.1 ! millert 11463: echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
! 11464: fi
! 11465: cat $tmp/in >>$tmp/config.h
! 11466: rm -f $tmp/in
! 11467: if test x"$ac_file" != x-; then
! 11468: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
! 11469: { echo "$as_me:11469: $ac_file is unchanged" >&5
! 11470: echo "$as_me: $ac_file is unchanged" >&6;}
! 11471: else
! 11472: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 11473: X"$ac_file" : 'X\(//\)[^/]' \| \
! 11474: X"$ac_file" : 'X\(//\)$' \| \
! 11475: X"$ac_file" : 'X\(/\)' \| \
! 11476: . : '\(.\)' 2>/dev/null ||
! 11477: echo X"$ac_file" |
! 11478: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 11479: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 11480: /^X\(\/\/\)$/{ s//\1/; q; }
! 11481: /^X\(\/\).*/{ s//\1/; q; }
! 11482: s/.*/./; q'`
1.1 millert 11483: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.7.2.1 ! millert 11484: { case "$ac_dir" in
! 11485: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
! 11486: *) as_incr_dir=.;;
! 11487: esac
! 11488: as_dummy="$ac_dir"
! 11489: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
! 11490: case $as_mkdir_dir in
! 11491: # Skip DOS drivespec
! 11492: ?:) as_incr_dir=$as_mkdir_dir ;;
! 11493: *)
! 11494: as_incr_dir=$as_incr_dir/$as_mkdir_dir
! 11495: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
! 11496: ;;
! 11497: esac
! 11498: done; }
! 11499:
! 11500: fi
! 11501: rm -f $ac_file
! 11502: mv $tmp/config.h $ac_file
1.1 millert 11503: fi
1.7.2.1 ! millert 11504: else
! 11505: cat $tmp/config.h
! 11506: rm -f $tmp/config.h
1.1 millert 11507: fi
1.7.2.1 ! millert 11508: done
1.1 millert 11509: EOF
11510:
1.7.2.1 ! millert 11511: cat >>$CONFIG_STATUS <<\EOF
1.1 millert 11512:
1.7.2.1 ! millert 11513: { (exit 0); exit 0; }
1.1 millert 11514: EOF
11515: chmod +x $CONFIG_STATUS
1.7.2.1 ! millert 11516: ac_clean_files=$ac_clean_files_save
1.1 millert 11517:
1.7.2.1 ! millert 11518: # configure is writing to config.log, and then calls config.status.
! 11519: # config.status does its own redirection, appending to config.log.
! 11520: # Unfortunately, on DOS this fails, as config.log is still kept open
! 11521: # by configure, so config.status won't be able to write to it; its
! 11522: # output is simply discarded. So we exec the FD to /dev/null,
! 11523: # effectively closing config.log, so it can be properly (re)opened and
! 11524: # appended to by config.status. When coming back to configure, we
! 11525: # need to make the FD available again.
! 11526: if test "$no_create" != yes; then
! 11527: ac_cs_success=:
! 11528: exec 5>/dev/null
! 11529: $SHELL $CONFIG_STATUS || ac_cs_success=false
! 11530: exec 5>>config.log
! 11531: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
! 11532: # would make configure fail if this is the last instruction.
! 11533: $ac_cs_success || { (exit 1); exit 1; }
! 11534: fi
1.1 millert 11535:
11536: if test "$with_pam" = "yes"; then
11537: echo ""
11538: case $host in
11539: *-*-linux*)
11540: echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
11541: ;;
11542: esac
11543: echo ""
11544: fi
1.7.2.1 ! millert 11545: