Enable NRL OPIE OTP (One Time Password) support.
--with-otp-only
- When validating the user, only allow a One Time Password (OTP)
- passkey via S/Key or OPIE. Do not compare against the passwd
- file or use any other authentication scheme.
+ This option is now just an alias for --without-passwd.
--with-long-otp-prompt
When validating with a One Time Password scheme (S/Key or OPIE), a
#### Start of system configuration section. ####
srcdir = @srcdir@
+authdir = $(srcdir)/auth
VPATH = @srcdir@
# Compiler & tools to use
# C preprocessor flags
CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
-# Usually -g or -O
+# Usually -O and/or -g
CFLAGS = @CFLAGS@
# Flags to pass to the link stage
PROGS = @PROGS@
-SRCS = alloc.c check.c fileops.c find_path.c getspwuid.c goodpath.c \
- interfaces.c logging.c parse.c parse.lex parse.yacc sudo.c \
- sudo_setenv.c tgetpass.c version.c visudo.c $(AUTH_SRCS)
+SRCS = alloc.c alloca.c check.c fileops.c find_path.c fnmatch.c getcwd.c \
+ getspwuid.c goodpath.c interfaces.c lex.yy.c lsearch.c logging.c \
+ parse.c parse.lex parse.yacc putenv.c snprintf.c strerror.c sudo.c \
+ sudo.tab.c sudo_setenv.c testsudoers.c tgetpass.c utime.c version.c \
+ visudo.c $(AUTH_SRCS)
AUTH_SRCS = auth/afs.c auth/aix_auth.c auth/dce.c auth/fwtk.c auth/kerb4.c \
auth/kerb5.c auth/pam.c auth/passwd.c auth/rfc1938.c \
auth/secureware.c auth/securid.c auth/sia.c auth/sudo_auth.c
+HDRS = compat.h ins_2001.h ins_classic.h ins_csops.h ins_goons.h insults.h \
+ interfaces.h logging.h sudo.h sudo.tab.h version.h auth/sudo_auth.h \
+ emul/fnmatch.h emul/search.h emul/utime.h
+
AUTH_OBJS = sudo_auth.o @AUTH_OBJS@
PARSEOBJS = sudo.tab.o lex.yy.o alloc.o
LIBOBJS = @LIBOBJS@ @ALLOCA@
-HDRS = compat.h ins_2001.h ins_classic.h ins_csops.h ins_goons.h insults.h \
- interfaces.h logging.h sudo.h version.h
-
VERSION = 1.6
DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES FAQ HISTORY INSTALL INSTALL.configure \
LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \
- UPGRADE acsite.m4 aixcrypt.exp alloca.c config.guess config.h.in \
- config.sub configure configure.in fnmatch.3 fnmatch.c getcwd.c \
- indent.pro install-sh lex.yy.c lsearch.c mkinstalldirs \
- pathnames.h.in putenv.c sample.pam sample.sudoers snprintf.c \
- strerror.c sudo.cat sudo.man sudo.pod sudo.tab.c sudo.tab.c \
- sudoers sudoers.cat sudoers.man sudoers.pod testsudoers.c utime.c \
- visudo.cat visudo.man visudo.pod auth/sudo_auth.h emul/fnmatch.h \
- emul/search.h emul/utime.h
+ UPGRADE acsite.m4 aixcrypt.exp config.guess config.h.in config.sub \
+ configure configure.in fnmatch.3 indent.pro install-sh \
+ mkinstalldirs pathnames.h.in sample.pam sample.sudoers sudo.cat \
+ sudo.man sudo.pod sudoers sudoers.cat sudoers.man sudoers.pod \
+ visudo.cat visudo.man visudo.pod
+
+SUDODEP = $(srcdir)/sudo.h $(srcdir)/compat.h $(srcdir)/logging.h \
+ config.h pathnames.h
+
+AUTHDEP = $(SUDODEP) $(authdir)/sudo_auth.h
+
+INSDEP = $(srcdir)/ins_2001.h $(srcdir)/ins_classic.h $(srcdir)/ins_csops.h \
+ $(srcdir)/ins_goons.h $(srcdir)/insults.h
all: $(PROGS)
testsudoers: $(TESTOBJS) $(LIBOBJS)
$(CC) -o $@ $(TESTOBJS) $(LIBOBJS) $(VISUDO_LDFLAGS) $(VISUDO_LIBS)
-# Uncomment the following if you intend to modify parse.yacc
-#sudo.tab.c sudo.tab.h: parse.yacc
-# rm -f sudo.tab.h sudo.tab.c
-# $(YACC) -d -b sudo $(srcdir)/parse.yacc
+# Uncomment the following if you want "make clean" to clean the parser
+@DEV@PARSESRCS = sudo.tab.h sudo.tab.c lex.yy.c
-sudo.tab.o: $(HDRS) config.h pathnames.h sudo.tab.h sudo.tab.c
+# Uncomment the following if you intend to modify parse.yacc
+@DEV@sudo.tab.c sudo.tab.h: parse.yacc
+@DEV@ rm -f sudo.tab.h sudo.tab.c
+@DEV@ $(YACC) -d -b sudo $(srcdir)/parse.yacc
# Uncomment the following if you intend to modify parse.lex
-#lex.yy.c: parse.lex
-# rm -f lex.yy.c
-# $(LEX) $(srcdir)/parse.lex
-
-lex.yy.o: $(HDRS) config.h pathnames.h sudo.tab.h lex.yy.c
-
-$(PARSEOBJS): parse.h
-
-$(SUDOBJS) $(LIBOBJS): $(HDRS) config.h pathnames.h
+@DEV@lex.yy.c: parse.lex
+@DEV@ rm -f lex.yy.c
+@DEV@ $(LEX) $(srcdir)/parse.lex
+
+# Dependencies (not counting auth functions)
+alloc.o: alloc.c $(SUDODEP)
+check.o: check.c $(SUDODEP)
+fileops.o: fileops.c $(SUDODEP)
+find_path.o: find_path.c $(SUDODEP)
+getspwuid.o: getspwuid.c $(SUDODEP)
+goodpath.o: goodpath.c $(SUDODEP)
+logging.o: logging.c $(SUDODEP)
+sudo_setenv.o: sudo_setenv.c $(SUDODEP)
+tgetpass.o: tgetpass.c $(SUDODEP)
+visudo.o: visudo.c $(SUDODEP) version.h
+sudo.o: sudo.c $(SUDODEP) interfaces.h
+interfaces.o: interfaces.c $(SUDODEP) interfaces.h
+testsudoers.o: testsudoers.c $(SUDODEP) parse.h interfaces.h
+parse.o: parse.c $(SUDODEP) parse.h interfaces.h
+lex.yy.o: lex.yy.c $(SUDODEP) parse.h sudo.tab.h
+sudo.tab.o: sudo.tab.c $(SUDODEP) parse.h
+version.o: version.c $(SUDODEP) version.h auth/sudo_auth.h
+fnmatch.o: fnmatch.c config.h compat.h emul/fnmatch.h
+getcwd.o: getcwd.c config.h compat.h
+lsearch.o: lsearch.c config.h compat.h emul/search.h
+putenv.o: putenv.c config.h compat.h
+snprintf.o: snprintf.c config.h compat.h
+strerror.o: strerror.c config.h
+utime.o: utime.c config.h pathnames.h compat.h emul/utime.h
# Authentication functions live in "auth" dir and so need extra care
-$(AUTH_OBJS): logging.h sudo.h auth/sudo_auth.h
-sudo_auth.o: $(srcdir)/auth/sudo_auth.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/sudo_auth.c
-afs.o: $(srcdir)/auth/afs.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/afs.c
-aix_auth.o: $(srcdir)/auth/aix_auth.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/aix_auth.c
-dce.o: $(srcdir)/auth/dce.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/dce.c
-fwtk.o: $(srcdir)/auth/fwtk.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/fwtk.c
-kerb4.o: $(srcdir)/auth/kerb4.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/kerb4.c
-kerb5.o: $(srcdir)/auth/kerb5.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/kerb5.c
-pam.o: $(srcdir)/auth/pam.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/pam.c
-passwd.o: $(srcdir)/auth/passwd.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/passwd.c
-rfc1938.o: $(srcdir)/auth/rfc1938.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/rfc1938.c
-secureware.o: $(srcdir)/auth/secureware.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/secureware.c
-securid.o: $(srcdir)/auth/securid.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/securid.c
-sia.o: $(srcdir)/auth/sia.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/auth/sia.c
+sudo_auth.o: $(authdir)/sudo_auth.c $(AUTHDEP) $(INSDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sudo_auth.c
+afs.o: $(authdir)/afs.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/afs.c
+aix_auth.o: $(authdir)/aix_auth.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/aix_auth.c
+dce.o: $(authdir)/dce.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/dce.c
+fwtk.o: $(authdir)/fwtk.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/fwtk.c
+kerb4.o: $(authdir)/kerb4.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb4.c
+kerb5.o: $(authdir)/kerb5.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb5.c
+pam.o: $(authdir)/pam.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/pam.c
+passwd.o: $(authdir)/passwd.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/passwd.c
+rfc1938.o: $(authdir)/rfc1938.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/rfc1938.c
+secureware.o: $(authdir)/secureware.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/secureware.c
+securid.o: $(authdir)/securid.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/securid.c
+sia.o: $(authdir)/sia.c $(AUTHDEP)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sia.c
sudo.html: $(srcdir)/sudo.pod
@rm -f $(srcdir)/$@
etags $(SRCS)
clean:
- -rm -f *.o $(PROGS) testsudoers core sudo.core visudo.core testsudoers.core
+ -rm -f *.o $(PROGS) testsudoers core sudo.core visudo.core \
+ testsudoers.core $(PARSESRCS)
mostlyclean: clean
distclean: clean
- rm -f Makefile pathnames.h config.h config.status config.cache config.log pod2html-dircache pod2html-itemcache
+ -rm -f Makefile pathnames.h config.h config.status config.cache \
+ config.log pod2html-dircache pod2html-itemcache $(PARSESRCS)
clobber: distclean
or POSIX will do), a working C compiler, and the make utility.
If you wish to modify the parser then you will need flex version
-2.5.2 or later and a version of bison or yacc (sudo comes with a
+2.5.2 or later and either bison or byacc (sudo comes with a
pre-flex'd tokenizer and pre-yacc'd grammar parser). You'll also
have to uncomment a few lines from the Makefile. You can get flex
via anonymous ftp from ftp://ftp.ee.lbl.gov/pub/flex* as well as
/* Define if you want a two line OTP (skey/opie) prompt. */
#undef LONG_OTP_PROMPT
-/* Define if you want to validate users via OTP (skey/opie) only. */
-#undef OTP_ONLY
-
/* Define if you use SecurID. */
#undef HAVE_SECURID
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
+ac_help="$ac_help
+ --with-otp-only deprecated"
ac_help="$ac_help
--with-CC C compiler to use"
ac_help="$ac_help
--with-libpath additional places to look for libraries"
ac_help="$ac_help
--with-libraries additional libraries to link with"
+ac_help="$ac_help
+ --with-devel add developement options"
ac_help="$ac_help
--with-csops add CSOps standard options"
ac_help="$ac_help
--with-skey enable S/Key support "
ac_help="$ac_help
--with-opie enable OPIE support "
-ac_help="$ac_help
- --with-otp-only validate user via OTP (skey/opie) only"
ac_help="$ac_help
--with-long-otp-prompt use a two line OTP (skey/opie) prompt"
ac_help="$ac_help
echo "Configuring Sudo version 1.6"
PROGS="sudo visudo"
+CPPFLAGS=""
SUDO_LDFLAGS=""
VISUDO_LDFLAGS=""
SUDO_LIBS=""
VISUDO_LIBS=""
AFS_LIBS=""
-CPPFLAGS=""
OSDEFS=""
AUTH_OBJS=""
LIBOBJS=""
SUDOERS_MODE=0440
SUDOERS_UID=0
SUDOERS_GID=0
+DEV="#"
+
CHECKSHADOW=true
CHECKSIA=true
test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
+# Check whether --with-otp-only or --without-otp-only was given.
+if test "${with_otp_only+set}" = set; then
+ withval="$with_otp_only"
+ case $with_otp_only in
+ yes) with_passwd=no
+ cat >> confdefs.h <<\EOF
+#define WITHOUT_PASSWD 1
+EOF
+
+ echo "configure: warning: --with-otp-only option deprecated, treating as --without-passwd" 1>&2
+ ;;
+esac
+fi
+
+
+
# Check whether --with-CC or --without-CC was given.
if test "${with_CC+set}" = set; then
withval="$with_CC"
fi
+# Check whether --with-devel or --without-devel was given.
+if test "${with_devel+set}" = set; then
+ withval="$with_devel"
+ case $with_devel in
+ yes) echo 'Setting up for developement: -Wall, flex, yacc'
+ DEV=""
+ ;;
+ no) ;;
+ *) echo "Ignoring unknown argument to --with-devel: $with_csops"
+ ;;
+esac
+fi
+
+
# Check whether --with-csops or --without-csops was given.
if test "${with_csops+set}" = set; then
withval="$with_csops"
EOF
echo $ac_n "checking whether to use shadow/passwd file authentication""... $ac_c" 1>&6
-echo "configure:793: checking whether to use shadow/passwd file authentication" >&5
+echo "configure:827: checking whether to use shadow/passwd file authentication" >&5
echo "$ac_t""no" 1>&6
;;
*) echo "Sorry, --with-passwd does not take an argument."
EOF
echo $ac_n "checking whether to try S/Key authentication""... $ac_c" 1>&6
-echo "configure:816: checking whether to try S/Key authentication" >&5
+echo "configure:850: checking whether to try S/Key authentication" >&5
echo "$ac_t""yes" 1>&6
AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
;;
EOF
echo $ac_n "checking whether to try NRL OPIE authentication""... $ac_c" 1>&6
-echo "configure:840: checking whether to try NRL OPIE authentication" >&5
+echo "configure:874: checking whether to try NRL OPIE authentication" >&5
echo "$ac_t""yes" 1>&6
AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
;;
fi
-# Check whether --with-otp-only or --without-otp-only was given.
-if test "${with_otp_only+set}" = set; then
- withval="$with_otp_only"
- case $with_otp_only in
- yes) cat >> confdefs.h <<\EOF
-#define OTP_ONLY 1
-EOF
-
- echo $ac_n "checking whether to use OTP as the sole authentication method""... $ac_c" 1>&6
-echo "configure:860: checking whether to use OTP as the sole authentication method" >&5
- echo "$ac_t""yes" 1>&6
- ;;
- no) ;;
- *) echo "Sorry, --with-otp-only does not take an argument."
- exit 1
- ;;
-esac
-fi
-
-
# Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
if test "${with_long_otp_prompt+set}" = set; then
withval="$with_long_otp_prompt"
EOF
echo $ac_n "checking whether to use a two line prompt for OTP authentication""... $ac_c" 1>&6
-echo "configure:880: checking whether to use a two line prompt for OTP authentication" >&5
+echo "configure:894: checking whether to use a two line prompt for OTP authentication" >&5
echo "$ac_t""yes" 1>&6
;;
no) ;;
EOF
echo $ac_n "checking whether to use SecurID for authentication""... $ac_c" 1>&6
-echo "configure:901: checking whether to use SecurID for authentication" >&5
+echo "configure:915: checking whether to use SecurID for authentication" >&5
echo "$ac_t""yes" 1>&6
with_passwd=no
AUTH_OBJS="securid.o"
EOF
echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
-echo "configure:919: checking whether to use FWTK AuthSRV for authentication" >&5
+echo "configure:933: checking whether to use FWTK AuthSRV for authentication" >&5
echo "$ac_t""yes" 1>&6
with_passwd=no
AUTH_OBJS="fwtk.o"
EOF
echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
-echo "configure:930: checking whether to use FWTK AuthSRV for authentication" >&5
+echo "configure:944: checking whether to use FWTK AuthSRV for authentication" >&5
echo "$ac_t""yes" 1>&6
SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
withval="$with_kerb4"
case $with_kerb4 in
yes) echo $ac_n "checking whether to try Kerberos 4 authentication""... $ac_c" 1>&6
-echo "configure:947: checking whether to try Kerberos 4 authentication" >&5
+echo "configure:961: checking whether to try Kerberos 4 authentication" >&5
echo "$ac_t""yes" 1>&6
;;
no) ;;
withval="$with_kerb5"
case $with_kerb5 in
yes) echo $ac_n "checking whether to try Kerberos 5 authentication""... $ac_c" 1>&6
-echo "configure:963: checking whether to try Kerberos 5 authentication" >&5
+echo "configure:977: checking whether to try Kerberos 5 authentication" >&5
echo "$ac_t""yes" 1>&6
;;
no) ;;
EOF
echo $ac_n "checking whether to use AIX general authentication""... $ac_c" 1>&6
-echo "configure:983: checking whether to use AIX general authentication" >&5
+echo "configure:997: checking whether to use AIX general authentication" >&5
echo "$ac_t""yes" 1>&6
with_passwd=no
AUTH_OBJS="authenticate.o"
EOF
echo $ac_n "checking whether to use PAM authentication""... $ac_c" 1>&6
-echo "configure:1005: checking whether to use PAM authentication" >&5
+echo "configure:1019: checking whether to use PAM authentication" >&5
echo "$ac_t""yes" 1>&6
with_passwd=no
AUTH_OBJS="pam.o"
EOF
echo $ac_n "checking whether to try AFS (kerberos) authentication""... $ac_c" 1>&6
-echo "configure:1027: checking whether to try AFS (kerberos) authentication" >&5
+echo "configure:1041: checking whether to try AFS (kerberos) authentication" >&5
echo "$ac_t""yes" 1>&6
AUTH_OBJS="${AUTH_OBJS} afs.o"
;;
EOF
echo $ac_n "checking whether to try DCE (kerberos) authentication""... $ac_c" 1>&6
-echo "configure:1048: checking whether to try DCE (kerberos) authentication" >&5
+echo "configure:1062: checking whether to try DCE (kerberos) authentication" >&5
echo "$ac_t""yes" 1>&6
AUTH_OBJS="${AUTH_OBJS} dce.o"
;;
echo $ac_n "checking whether to lecture users the first time they run sudo""... $ac_c" 1>&6
-echo "configure:1061: checking whether to lecture users the first time they run sudo" >&5
+echo "configure:1075: checking whether to lecture users the first time they run sudo" >&5
# Check whether --with-lecture or --without-lecture was given.
if test "${with_lecture+set}" = set; then
withval="$with_lecture"
echo $ac_n "checking whether sudo should log via syslog or to a file""... $ac_c" 1>&6
-echo "configure:1084: checking whether sudo should log via syslog or to a file" >&5
+echo "configure:1098: checking whether sudo should log via syslog or to a file" >&5
# Check whether --with-logging or --without-logging was given.
if test "${with_logging+set}" = set; then
withval="$with_logging"
echo $ac_n "checking which syslog facility sudo should log with""... $ac_c" 1>&6
-echo "configure:1126: checking which syslog facility sudo should log with" >&5
+echo "configure:1140: checking which syslog facility sudo should log with" >&5
# Check whether --with-logfac or --without-logfac was given.
if test "${with_logfac+set}" = set; then
withval="$with_logfac"
echo $ac_n "checking at which syslog priority to log commands""... $ac_c" 1>&6
-echo "configure:1153: checking at which syslog priority to log commands" >&5
+echo "configure:1167: checking at which syslog priority to log commands" >&5
# Check whether --with-goodpri or --without-goodpri was given.
if test "${with_goodpri+set}" = set; then
withval="$with_goodpri"
echo $ac_n "checking at which syslog priority to log failures""... $ac_c" 1>&6
-echo "configure:1180: checking at which syslog priority to log failures" >&5
+echo "configure:1194: checking at which syslog priority to log failures" >&5
# Check whether --with-badpri or --without-badpri was given.
if test "${with_badpri+set}" = set; then
withval="$with_badpri"
echo $ac_n "checking how long a line in the log file should be""... $ac_c" 1>&6
-echo "configure:1221: checking how long a line in the log file should be" >&5
+echo "configure:1235: checking how long a line in the log file should be" >&5
# Check whether --with-loglen or --without-loglen was given.
if test "${with_loglen+set}" = set; then
withval="$with_loglen"
echo $ac_n "checking whether sudo should ignore '.' or '' in \$PATH""... $ac_c" 1>&6
-echo "configure:1251: checking whether sudo should ignore '.' or '' in \$PATH" >&5
+echo "configure:1265: checking whether sudo should ignore '.' or '' in \$PATH" >&5
# Check whether --with-ignore-dot or --without-ignore-dot was given.
if test "${with_ignore_dot+set}" = set; then
withval="$with_ignore_dot"
echo $ac_n "checking who should get the mail that sudo sends""... $ac_c" 1>&6
-echo "configure:1274: checking who should get the mail that sudo sends" >&5
+echo "configure:1288: checking who should get the mail that sudo sends" >&5
# Check whether --with-alertmail or --without-alertmail was given.
if test "${with_alertmail+set}" = set; then
withval="$with_alertmail"
EOF
echo $ac_n "checking sudo mail subject""... $ac_c" 1>&6
-echo "configure:1313: checking sudo mail subject" >&5
+echo "configure:1327: checking sudo mail subject" >&5
echo "$ac_t""Using alert mail subject: $with_mailsubject" 1>&6
;;
esac
echo $ac_n "checking whether to send mail when a user is not in sudoers""... $ac_c" 1>&6
-echo "configure:1326: checking whether to send mail when a user is not in sudoers" >&5
+echo "configure:1340: checking whether to send mail when a user is not in sudoers" >&5
# Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
if test "${with_mail_if_no_user+set}" = set; then
withval="$with_mail_if_no_user"
echo $ac_n "checking whether to send mail when a user tries a disallowed command""... $ac_c" 1>&6
-echo "configure:1352: checking whether to send mail when a user tries a disallowed command" >&5
+echo "configure:1366: checking whether to send mail when a user tries a disallowed command" >&5
# Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
if test "${with_mail_if_noperms+set}" = set; then
withval="$with_mail_if_noperms"
echo $ac_n "checking for bad password prompt""... $ac_c" 1>&6
-echo "configure:1375: checking for bad password prompt" >&5
+echo "configure:1389: checking for bad password prompt" >&5
# Check whether --with-passprompt or --without-passprompt was given.
if test "${with_passprompt+set}" = set; then
withval="$with_passprompt"
echo $ac_n "checking for bad password message""... $ac_c" 1>&6
-echo "configure:1401: checking for bad password message" >&5
+echo "configure:1415: checking for bad password message" >&5
# Check whether --with-badpass-message or --without-badpass-message was given.
if test "${with_badpass_message+set}" = set; then
withval="$with_badpass_message"
echo $ac_n "checking whether to expect fully qualified hosts in sudoers""... $ac_c" 1>&6
-echo "configure:1427: checking whether to expect fully qualified hosts in sudoers" >&5
+echo "configure:1441: checking whether to expect fully qualified hosts in sudoers" >&5
# Check whether --with-fqdn or --without-fqdn was given.
if test "${with_fqdn+set}" = set; then
withval="$with_fqdn"
echo $ac_n "checking for umask programs should be run with""... $ac_c" 1>&6
-echo "configure:1537: checking for umask programs should be run with" >&5
+echo "configure:1551: checking for umask programs should be run with" >&5
# Check whether --with-umask or --without-umask was given.
if test "${with_umask+set}" = set; then
withval="$with_umask"
echo $ac_n "checking for default user to run commands as""... $ac_c" 1>&6
-echo "configure:1566: checking for default user to run commands as" >&5
+echo "configure:1580: checking for default user to run commands as" >&5
# Check whether --with-runas-default or --without-runas-default was given.
if test "${with_runas_default+set}" = set; then
withval="$with_runas_default"
EOF
echo $ac_n "checking for group to be exempt from password""... $ac_c" 1>&6
-echo "configure:1607: checking for group to be exempt from password" >&5
+echo "configure:1621: checking for group to be exempt from password" >&5
echo "$ac_t""$with_exempt" 1>&6
;;
esac
echo $ac_n "checking for editor that visudo should use""... $ac_c" 1>&6
-echo "configure:1615: checking for editor that visudo should use" >&5
+echo "configure:1629: checking for editor that visudo should use" >&5
# Check whether --with-editor or --without-editor was given.
if test "${with_editor+set}" = set; then
withval="$with_editor"
echo $ac_n "checking whether to obey EDITOR and VISUAL environment variables""... $ac_c" 1>&6
-echo "configure:1642: checking whether to obey EDITOR and VISUAL environment variables" >&5
+echo "configure:1656: checking whether to obey EDITOR and VISUAL environment variables" >&5
# Check whether --with-env-editor or --without-env-editor was given.
if test "${with_env_editor+set}" = set; then
withval="$with_env_editor"
echo $ac_n "checking number of tries a user gets to enter their password""... $ac_c" 1>&6
-echo "configure:1665: checking number of tries a user gets to enter their password" >&5
+echo "configure:1679: checking number of tries a user gets to enter their password" >&5
# Check whether --with-passwd-tries or --without-passwd-tries was given.
if test "${with_passwd_tries+set}" = set; then
withval="$with_passwd_tries"
echo $ac_n "checking time in minutes after which sudo will ask for a password again""... $ac_c" 1>&6
-echo "configure:1698: checking time in minutes after which sudo will ask for a password again" >&5
+echo "configure:1712: checking time in minutes after which sudo will ask for a password again" >&5
# Check whether --with-timeout or --without-timeout was given.
if test "${with_timeout+set}" = set; then
withval="$with_timeout"
echo $ac_n "checking time in minutes after the password prompt will time out""... $ac_c" 1>&6
-echo "configure:1734: checking time in minutes after the password prompt will time out" >&5
+echo "configure:1748: checking time in minutes after the password prompt will time out" >&5
# Check whether --with-password-timeout or --without-password-timeout was given.
if test "${with_password_timeout+set}" = set; then
withval="$with_password_timeout"
echo $ac_n "checking whether to use execvp or execv""... $ac_c" 1>&6
-echo "configure:1770: checking whether to use execvp or execv" >&5
+echo "configure:1784: checking whether to use execvp or execv" >&5
# Check whether --with-execv or --without-execv was given.
if test "${with_execv+set}" = set; then
withval="$with_execv"
echo $ac_n "checking whether to use per-tty ticket files""... $ac_c" 1>&6
-echo "configure:1793: checking whether to use per-tty ticket files" >&5
+echo "configure:1807: checking whether to use per-tty ticket files" >&5
# Check whether --with-tty-tickets or --without-tty-tickets was given.
if test "${with_tty_tickets+set}" = set; then
withval="$with_tty_tickets"
echo $ac_n "checking whether to include insults""... $ac_c" 1>&6
-echo "configure:1816: checking whether to include insults" >&5
+echo "configure:1830: checking whether to include insults" >&5
# Check whether --with-insults or --without-insults was given.
if test "${with_insults+set}" = set; then
withval="$with_insults"
if test "$with_insults" = "yes"; then
echo $ac_n "checking which insult sets to include""... $ac_c" 1>&6
-echo "configure:1927: checking which insult sets to include" >&5
+echo "configure:1941: checking which insult sets to include" >&5
i=""
test "$with_goons_insults" = "yes" && i="goons ${i}"
test "$with_hal_insults" = "yes" && i="hal ${i}"
fi
echo $ac_n "checking whether to override the user's path""... $ac_c" 1>&6
-echo "configure:1937: checking whether to override the user's path" >&5
+echo "configure:1951: checking whether to override the user's path" >&5
# Check whether --with-secure-path or --without-secure-path was given.
if test "${with_secure_path+set}" = set; then
withval="$with_secure_path"
echo $ac_n "checking whether to get ip addresses from the network interfaces""... $ac_c" 1>&6
-echo "configure:1963: checking whether to get ip addresses from the network interfaces" >&5
+echo "configure:1977: checking whether to get ip addresses from the network interfaces" >&5
# Check whether --with-interfaces or --without-interfaces was given.
if test "${with_interfaces+set}" = set; then
withval="$with_interfaces"
echo $ac_n "checking whether to do user authentication by default""... $ac_c" 1>&6
-echo "configure:1987: checking whether to do user authentication by default" >&5
+echo "configure:2001: checking whether to do user authentication by default" >&5
# Check whether --enable-authentication or --disable-authentication was given.
if test "${enable_authentication+set}" = set; then
enableval="$enable_authentication"
echo $ac_n "checking whether to disable shadow password support""... $ac_c" 1>&6
-echo "configure:2011: checking whether to disable shadow password support" >&5
+echo "configure:2025: checking whether to disable shadow password support" >&5
# Check whether --enable-shadow or --disable-shadow was given.
if test "${enable_shadow+set}" = set; then
enableval="$enable_shadow"
echo $ac_n "checking whether root should be allowed to use sudo""... $ac_c" 1>&6
-echo "configure:2032: checking whether root should be allowed to use sudo" >&5
+echo "configure:2046: checking whether root should be allowed to use sudo" >&5
# Check whether --enable-root-sudo or --disable-root-sudo was given.
if test "${enable_root_sudo+set}" = set; then
enableval="$enable_root_sudo"
echo $ac_n "checking whether to log the hostname in the log file""... $ac_c" 1>&6
-echo "configure:2056: checking whether to log the hostname in the log file" >&5
+echo "configure:2070: checking whether to log the hostname in the log file" >&5
# Check whether --enable-log-host or --disable-log-host was given.
if test "${enable_log_host+set}" = set; then
enableval="$enable_log_host"
echo $ac_n "checking whether to wrap long lines in the log file""... $ac_c" 1>&6
-echo "configure:2080: checking whether to wrap long lines in the log file" >&5
+echo "configure:2094: checking whether to wrap long lines in the log file" >&5
# Check whether --enable-log-wrap or --disable-log-wrap was given.
if test "${enable_log_wrap+set}" = set; then
enableval="$enable_log_wrap"
echo $ac_n "checking whether to invoke a shell if sudo is given no arguments""... $ac_c" 1>&6
-echo "configure:2113: checking whether to invoke a shell if sudo is given no arguments" >&5
+echo "configure:2127: checking whether to invoke a shell if sudo is given no arguments" >&5
# Check whether --enable-noargs-shell or --disable-noargs-shell was given.
if test "${enable_noargs_shell+set}" = set; then
enableval="$enable_noargs_shell"
echo $ac_n "checking whether to set \$HOME to target user in shell mode""... $ac_c" 1>&6
-echo "configure:2137: checking whether to set \$HOME to target user in shell mode" >&5
+echo "configure:2151: checking whether to set \$HOME to target user in shell mode" >&5
# Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
if test "${enable_shell_sets_home+set}" = set; then
enableval="$enable_shell_sets_home"
echo $ac_n "checking whether to disable 'command not found' messages""... $ac_c" 1>&6
-echo "configure:2161: checking whether to disable 'command not found' messages" >&5
+echo "configure:2175: checking whether to disable 'command not found' messages" >&5
# Check whether --enable-path_info or --disable-path_info was given.
if test "${enable_path_info+set}" = set; then
enableval="$enable_path_info"
# Extract the first word of "egrep", so it can be a program name with args.
set dummy egrep; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2187: checking for $ac_word" >&5
+echo "configure:2201: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_EGREPPROG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2222: checking for $ac_word" >&5
+echo "configure:2236: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2251: checking for $ac_word" >&5
+echo "configure:2265: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:2299: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:2313: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
-#line 2309 "configure"
+#line 2323 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:2333: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:2347: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:2338: checking whether we are using GNU C" >&5
+echo "configure:2352: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:2362: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:2376: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_prog_cc_cross="no"
cross_compiling="no"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:2392: checking how to run the C preprocessor" >&5
+echo "configure:2406: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 2407 "configure"
+#line 2421 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 2424 "configure"
+#line 2438 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
-echo "configure:2453: checking for POSIXized ISC" >&5
+echo "configure:2467: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
fi
+if test "$with_devel" = "yes" -a -n "$GCC"; then
+ CFLAGS="${CFLAGS} -Wall"
+fi
+
# Extract the first word of "uname", so it can be a program name with args.
set dummy uname; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2477: checking for $ac_word" >&5
+echo "configure:2495: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_UNAMEPROG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "tr", so it can be a program name with args.
set dummy tr; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2505: checking for $ac_word" >&5
+echo "configure:2523: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_TRPROG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "sed", so it can be a program name with args.
set dummy sed; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2533: checking for $ac_word" >&5
+echo "configure:2551: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_SEDPROG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2561: checking for $ac_word" >&5
+echo "configure:2579: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_NROFFPROG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:2616: checking host system type" >&5
+echo "configure:2634: checking host system type" >&5
host_alias=$host
case "$host_alias" in
exit 1
else
echo $ac_n "checking previous host type""... $ac_c" 1>&6
-echo "configure:2645: checking previous host type" >&5
+echo "configure:2663: checking previous host type" >&5
if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# check for password adjunct functions (shadow passwords)
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getpwanam""... $ac_c" 1>&6
-echo "configure:2680: checking for getpwanam" >&5
+echo "configure:2698: checking for getpwanam" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpwanam'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2685 "configure"
+#line 2703 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpwanam(); below. */
; return 0; }
EOF
-if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getpwanam=yes"
else
for ac_func in issecure
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2728: checking for $ac_func" >&5
+echo "configure:2746: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2733 "configure"
+#line 2751 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
*-*-hiuxmpp*)
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
-echo "configure:2805: checking for getprpwnam in -lsec" >&5
+echo "configure:2823: checking for getprpwnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2817 "configure"
+#line 2835 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
-echo "configure:2850: checking for getprpwnam in -lsecurity" >&5
+echo "configure:2868: checking for getprpwnam in -lsecurity" >&5
if test -n ""; then
ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsecurity $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2862 "configure"
+#line 2880 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
-echo "configure:2908: checking for getprpwnam in -lsec" >&5
+echo "configure:2926: checking for getprpwnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2920 "configure"
+#line 2938 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
#define HAVE_GETPRPWNAM 1
EOF
echo $ac_n "checking for iscomsec in -lsec""... $ac_c" 1>&6
-echo "configure:2950: checking for iscomsec in -lsec" >&5
+echo "configure:2968: checking for iscomsec in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'iscomsec | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2962 "configure"
+#line 2980 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
iscomsec()
; return 0; }
EOF
-if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
for ac_func in getspwuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3039: checking for $ac_func" >&5
+echo "configure:3057: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3044 "configure"
+#line 3062 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
echo $ac_n "checking whether to disable sia support on Digital UNIX""... $ac_c" 1>&6
-echo "configure:3144: checking whether to disable sia support on Digital UNIX" >&5
+echo "configure:3162: checking whether to disable sia support on Digital UNIX" >&5
# Check whether --enable-sia or --disable-sia was given.
if test "${enable_sia+set}" = set; then
enableval="$enable_sia"
# unless overridden on the command line
if test "$CHECKSIA" = "true"; then
echo $ac_n "checking for sia_ses_init""... $ac_c" 1>&6
-echo "configure:3168: checking for sia_ses_init" >&5
+echo "configure:3186: checking for sia_ses_init" >&5
if eval "test \"`echo '$''{'ac_cv_func_sia_ses_init'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3173 "configure"
+#line 3191 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sia_ses_init(); below. */
; return 0; }
EOF
-if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_sia_ses_init=yes"
else
fi
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
-echo "configure:3225: checking for getprpwnam in -lsecurity" >&5
+echo "configure:3243: checking for getprpwnam in -lsecurity" >&5
if test -n ""; then
ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsecurity $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3237 "configure"
+#line 3255 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
# -ldb includes bogus versions of snprintf/vsnprintf
echo $ac_n "checking for snprintf""... $ac_c" 1>&6
-echo "configure:3278: checking for snprintf" >&5
+echo "configure:3296: checking for snprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3283 "configure"
+#line 3301 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char snprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_snprintf=yes"
else
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
-echo "configure:3330: checking for vsnprintf" >&5
+echo "configure:3348: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3335 "configure"
+#line 3353 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
# 4.x and higher need -ldb too...
echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
-echo "configure:3383: checking for dbopen in -ldb" >&5
+echo "configure:3401: checking for dbopen in -ldb" >&5
if test -n ""; then
ac_lib_var=`echo db'_'dbopen | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-ldb $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3395 "configure"
+#line 3413 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
dbopen()
; return 0; }
EOF
-if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
for ac_func in dispcrypt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3430: checking for $ac_func" >&5
+echo "configure:3448: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3435 "configure"
+#line 3453 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
done
echo $ac_n "checking for broken /usr/include/prot.h""... $ac_c" 1>&6
-echo "configure:3483: checking for broken /usr/include/prot.h" >&5
+echo "configure:3501: checking for broken /usr/include/prot.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 3485 "configure"
+#line 3503 "configure"
#include "confdefs.h"
#include <sys/types.h>
exit(0);
; return 0; }
EOF
-if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""no" 1>&6
else
# IRIX <= 4 needs -lsun
if test "$OSREV" -le 4; then
echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
-echo "configure:3542: checking for getpwnam in -lsun" >&5
+echo "configure:3560: checking for getpwnam in -lsun" >&5
if test -n ""; then
ac_lib_var=`echo sun'_'getpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsun $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3554 "configure"
+#line 3572 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getpwnam()
; return 0; }
EOF
-if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
# Some Linux versions need to link with -lshadow
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getspnam""... $ac_c" 1>&6
-echo "configure:3591: checking for getspnam" >&5
+echo "configure:3609: checking for getspnam" >&5
if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3596 "configure"
+#line 3614 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getspnam(); below. */
; return 0; }
EOF
-if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getspnam=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
-echo "configure:3640: checking for getspnam in -lshadow" >&5
+echo "configure:3658: checking for getspnam in -lshadow" >&5
if test -n ""; then
ac_lib_var=`echo shadow'_'getspnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lshadow $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3652 "configure"
+#line 3670 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getspnam()
; return 0; }
EOF
-if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
-echo "configure:3702: checking for getprpwnam in -lsec" >&5
+echo "configure:3720: checking for getprpwnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3714 "configure"
+#line 3732 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
OS="ultrix"
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getauthuid in -lauth""... $ac_c" 1>&6
-echo "configure:3755: checking for getauthuid in -lauth" >&5
+echo "configure:3773: checking for getauthuid in -lauth" >&5
if test -n ""; then
ac_lib_var=`echo auth'_'getauthuid | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lauth $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3767 "configure"
+#line 3785 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getauthuid()
; return 0; }
EOF
-if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
-echo "configure:3818: checking for getspnam in -lsec" >&5
+echo "configure:3836: checking for getspnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3830 "configure"
+#line 3848 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getspnam()
; return 0; }
EOF
-if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
*-*-sco*)
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
-echo "configure:3870: checking for getprpwnam in -lprot" >&5
+echo "configure:3888: checking for getprpwnam in -lprot" >&5
if test -n "-lx"; then
ac_lib_var=`echo prot'_'getprpwnam-lx | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lprot -lx $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3882 "configure"
+#line 3900 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
-echo "configure:3917: checking for getspnam in -lgen" >&5
+echo "configure:3935: checking for getspnam in -lgen" >&5
if test -n ""; then
ac_lib_var=`echo gen'_'getspnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lgen $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3929 "configure"
+#line 3947 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getspnam()
; return 0; }
EOF
-if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
*-sequent-sysv*)
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
-echo "configure:3969: checking for getspnam in -lsec" >&5
+echo "configure:3987: checking for getspnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3981 "configure"
+#line 3999 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getspnam()
; return 0; }
EOF
-if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getspnam""... $ac_c" 1>&6
-echo "configure:4040: checking for getspnam" >&5
+echo "configure:4058: checking for getspnam" >&5
if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4045 "configure"
+#line 4063 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getspnam(); below. */
; return 0; }
EOF
-if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getspnam=yes"
else
fi
if test "$CHECKSHADOW" = "true"; then
echo $ac_n "checking for getprpwnam""... $ac_c" 1>&6
-echo "configure:4093: checking for getprpwnam" >&5
+echo "configure:4111: checking for getprpwnam" >&5
if eval "test \"`echo '$''{'ac_cv_func_getprpwnam'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4098 "configure"
+#line 4116 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getprpwnam(); below. */
; return 0; }
EOF
-if { (eval echo configure:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getprpwnam=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
-echo "configure:4142: checking for getprpwnam in -lsec" >&5
+echo "configure:4160: checking for getprpwnam in -lsec" >&5
if test -n ""; then
ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4154 "configure"
+#line 4172 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
-echo "configure:4187: checking for getprpwnam in -lsecurity" >&5
+echo "configure:4205: checking for getprpwnam in -lsecurity" >&5
if test -n ""; then
ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsecurity $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4199 "configure"
+#line 4217 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
-echo "configure:4232: checking for getprpwnam in -lprot" >&5
+echo "configure:4250: checking for getprpwnam in -lprot" >&5
if test -n ""; then
ac_lib_var=`echo prot'_'getprpwnam | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lprot $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4244 "configure"
+#line 4262 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
getprpwnam()
; return 0; }
EOF
-if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:4288: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:4306: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
-#line 4294 "configure"
+#line 4312 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
-#line 4312 "configure"
+#line 4330 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:4334: checking for working const" >&5
+echo "configure:4352: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4339 "configure"
+#line 4357 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
-if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4413: checking for $ac_word" >&5
+echo "configure:4431: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -z "$with_sendmail"; then
echo $ac_n "checking for sendmail""... $ac_c" 1>&6
-echo "configure:4444: checking for sendmail" >&5
+echo "configure:4462: checking for sendmail" >&5
if test -f "/usr/sbin/sendmail"; then
echo "$ac_t""/usr/sbin/sendmail" 1>&6
cat >> confdefs.h <<\EOF
fi
echo $ac_n "checking for mv""... $ac_c" 1>&6
-echo "configure:4487: checking for mv" >&5
+echo "configure:4505: checking for mv" >&5
if test -f "/usr/bin/mv"; then
echo "$ac_t""/usr/bin/mv" 1>&6
cat >> confdefs.h <<\EOF
fi
echo $ac_n "checking for bourne shell""... $ac_c" 1>&6
-echo "configure:4517: checking for bourne shell" >&5
+echo "configure:4535: checking for bourne shell" >&5
if test -f "/bin/sh"; then
echo "$ac_t""/bin/sh" 1>&6
cat >> confdefs.h <<\EOF
fi
echo $ac_n "checking for vi""... $ac_c" 1>&6
-echo "configure:4571: checking for vi" >&5
+echo "configure:4589: checking for vi" >&5
if test -f "/usr/bin/vi"; then
echo "$ac_t""/usr/bin/vi" 1>&6
cat >> confdefs.h <<\EOF
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:4607: checking for ANSI C header files" >&5
+echo "configure:4625: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4612 "configure"
+#line 4630 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 4637 "configure"
+#line 4655 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 4655 "configure"
+#line 4673 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
:
else
cat > conftest.$ac_ext <<EOF
-#line 4676 "configure"
+#line 4694 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
exit (0); }
EOF
-if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
:
else
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:4715: checking for $ac_hdr that defines DIR" >&5
+echo "configure:4733: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4720 "configure"
+#line 4738 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
DIR *dirp = 0;
; return 0; }
EOF
-if { (eval echo configure:4728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:4753: checking for opendir in -ldir" >&5
+echo "configure:4771: checking for opendir in -ldir" >&5
if test -n ""; then
ac_lib_var=`echo dir'_'opendir | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4765 "configure"
+#line 4783 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
opendir()
; return 0; }
EOF
-if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:4798: checking for opendir in -lx" >&5
+echo "configure:4816: checking for opendir in -lx" >&5
if test -n ""; then
ac_lib_var=`echo x'_'opendir | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4810 "configure"
+#line 4828 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
opendir()
; return 0; }
EOF
-if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4847: checking for $ac_hdr" >&5
+echo "configure:4865: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4852 "configure"
+#line 4870 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4888: checking for $ac_hdr" >&5
+echo "configure:4906: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4893 "configure"
+#line 4911 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4928: checking for $ac_hdr" >&5
+echo "configure:4946: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4933 "configure"
+#line 4951 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
for ac_func in tcgetattr
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4961: checking for $ac_func" >&5
+echo "configure:4979: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4966 "configure"
+#line 4984 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:5020: checking for mode_t" >&5
+echo "configure:5038: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5025 "configure"
+#line 5043 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
fi
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:5053: checking for uid_t in sys/types.h" >&5
+echo "configure:5071: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5058 "configure"
+#line 5076 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:5087: checking for size_t" >&5
+echo "configure:5105: checking for size_t" >&5
if eval "test \"`echo '$''{'sudo_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5092 "configure"
+#line 5110 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
fi
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
-echo "configure:5122: checking for ssize_t" >&5
+echo "configure:5140: checking for ssize_t" >&5
if eval "test \"`echo '$''{'sudo_cv_type_ssize_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5127 "configure"
+#line 5145 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
fi
echo $ac_n "checking for dev_t""... $ac_c" 1>&6
-echo "configure:5157: checking for dev_t" >&5
+echo "configure:5175: checking for dev_t" >&5
if eval "test \"`echo '$''{'sudo_cv_type_dev_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5162 "configure"
+#line 5180 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
fi
echo $ac_n "checking for ino_t""... $ac_c" 1>&6
-echo "configure:5192: checking for ino_t" >&5
+echo "configure:5210: checking for ino_t" >&5
if eval "test \"`echo '$''{'sudo_cv_type_ino_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5197 "configure"
+#line 5215 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
fi
echo $ac_n "checking for full void implementation""... $ac_c" 1>&6
-echo "configure:5227: checking for full void implementation" >&5
+echo "configure:5245: checking for full void implementation" >&5
cat > conftest.$ac_ext <<EOF
-#line 5229 "configure"
+#line 5247 "configure"
#include "confdefs.h"
int main() {
foo = (void *)0; (void *)"test";
; return 0; }
EOF
-if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define VOID void
rm -f conftest*
echo $ac_n "checking max length of uid_t""... $ac_c" 1>&6
-echo "configure:5257: checking max length of uid_t" >&5
+echo "configure:5275: checking max length of uid_t" >&5
if eval "test \"`echo '$''{'sudo_cv_uid_t_len'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 5266 "configure"
+#line 5284 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <pwd.h>
exit(0);
}
EOF
-if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
sudo_cv_uid_t_len=`cat conftestdata`
else
echo $ac_n "checking for sa_len field in struct sockaddr""... $ac_c" 1>&6
-echo "configure:5310: checking for sa_len field in struct sockaddr" >&5
+echo "configure:5328: checking for sa_len field in struct sockaddr" >&5
if eval "test \"`echo '$''{'sudo_cv_sock_sa_len'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
sudo_cv_sock_sa_len=no
else
cat > conftest.$ac_ext <<EOF
-#line 5318 "configure"
+#line 5336 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
exit(0);
}
EOF
-if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
sudo_cv_sock_sa_len=yes
else
case "$DEFS" in
*"RETSIGTYPE"*) ;;
*) echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:5353: checking return type of signal handlers" >&5
+echo "configure:5371: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5358 "configure"
+#line 5376 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
int i;
; return 0; }
EOF
-if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
for ac_func in strchr strrchr memcpy memset sysconf sigaction tzset strcasecmp seteuid ftruncate
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5397: checking for $ac_func" >&5
+echo "configure:5415: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5402 "configure"
+#line 5420 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
for ac_func in bigcrypt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5453: checking for $ac_func" >&5
+echo "configure:5471: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5458 "configure"
+#line 5476 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
for ac_func in set_auth_parameters
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5508: checking for $ac_func" >&5
+echo "configure:5526: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5513 "configure"
+#line 5531 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
for ac_func in initprivs
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5563: checking for $ac_func" >&5
+echo "configure:5581: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5568 "configure"
+#line 5586 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
if test -z "$BROKEN_GETCWD"; then
echo $ac_n "checking for getcwd""... $ac_c" 1>&6
-echo "configure:5618: checking for getcwd" >&5
+echo "configure:5636: checking for getcwd" >&5
if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5623 "configure"
+#line 5641 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getcwd(); below. */
; return 0; }
EOF
-if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getcwd=yes"
else
fi
echo $ac_n "checking for lockf""... $ac_c" 1>&6
-echo "configure:5671: checking for lockf" >&5
+echo "configure:5689: checking for lockf" >&5
if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5676 "configure"
+#line 5694 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char lockf(); below. */
; return 0; }
EOF
-if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_lockf=yes"
else
for ac_func in flock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5722: checking for $ac_func" >&5
+echo "configure:5740: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5727 "configure"
+#line 5745 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
echo $ac_n "checking for waitpid""... $ac_c" 1>&6
-echo "configure:5777: checking for waitpid" >&5
+echo "configure:5795: checking for waitpid" >&5
if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5782 "configure"
+#line 5800 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char waitpid(); below. */
; return 0; }
EOF
-if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_waitpid=yes"
else
for ac_func in wait3
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5828: checking for $ac_func" >&5
+echo "configure:5846: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5833 "configure"
+#line 5851 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
echo $ac_n "checking for innetgr""... $ac_c" 1>&6
-echo "configure:5883: checking for innetgr" >&5
+echo "configure:5901: checking for innetgr" >&5
if eval "test \"`echo '$''{'ac_cv_func_innetgr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5888 "configure"
+#line 5906 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char innetgr(); below. */
; return 0; }
EOF
-if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_innetgr=yes"
else
for ac_func in getdomainname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5931: checking for $ac_func" >&5
+echo "configure:5949: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5936 "configure"
+#line 5954 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
echo $ac_n "checking for lsearch""... $ac_c" 1>&6
-echo "configure:5988: checking for lsearch" >&5
+echo "configure:6006: checking for lsearch" >&5
if eval "test \"`echo '$''{'ac_cv_func_lsearch'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5993 "configure"
+#line 6011 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char lsearch(); below. */
; return 0; }
EOF
-if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_lsearch=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for lsearch in -lcompat""... $ac_c" 1>&6
-echo "configure:6037: checking for lsearch in -lcompat" >&5
+echo "configure:6055: checking for lsearch in -lcompat" >&5
if test -n ""; then
ac_lib_var=`echo compat'_'lsearch | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lcompat $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6049 "configure"
+#line 6067 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
lsearch()
; return 0; }
EOF
-if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "$ac_t""yes" 1>&6
ac_safe=`echo "search.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for search.h""... $ac_c" 1>&6
-echo "configure:6077: checking for search.h" >&5
+echo "configure:6095: checking for search.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6082 "configure"
+#line 6100 "configure"
#include "confdefs.h"
#include <search.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
fi
echo $ac_n "checking for setenv""... $ac_c" 1>&6
-echo "configure:6120: checking for setenv" >&5
+echo "configure:6138: checking for setenv" >&5
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6125 "configure"
+#line 6143 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char setenv(); below. */
; return 0; }
EOF
-if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_setenv=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for putenv""... $ac_c" 1>&6
-echo "configure:6169: checking for putenv" >&5
+echo "configure:6187: checking for putenv" >&5
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6174 "configure"
+#line 6192 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char putenv(); below. */
; return 0; }
EOF
-if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_putenv=yes"
else
fi
echo $ac_n "checking for utime""... $ac_c" 1>&6
-echo "configure:6223: checking for utime" >&5
+echo "configure:6241: checking for utime" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6228 "configure"
+#line 6246 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char utime(); below. */
; return 0; }
EOF
-if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_utime=yes"
else
EOF
echo $ac_n "checking for POSIX utime""... $ac_c" 1>&6
-echo "configure:6270: checking for POSIX utime" >&5
+echo "configure:6288: checking for POSIX utime" >&5
if eval "test \"`echo '$''{'sudo_cv_func_utime_posix'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
sudo_cv_func_utime_posix=no
else
cat > conftest.$ac_ext <<EOF
-#line 6279 "configure"
+#line 6297 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
exit(0);
}
EOF
-if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
sudo_cv_func_utime_posix=yes
else
fi
echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
-echo "configure:6319: checking for working fnmatch" >&5
+echo "configure:6337: checking for working fnmatch" >&5
if eval "test \"`echo '$''{'sudo_cv_func_fnmatch'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
sudo_cv_func_fnmatch=no
else
cat > conftest.$ac_ext <<EOF
-#line 6328 "configure"
+#line 6346 "configure"
#include "confdefs.h"
main() {
exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", 0));
}
EOF
-if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
sudo_cv_func_fnmatch=yes
else
for ac_func in strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:6361: checking for $ac_func" >&5
+echo "configure:6379: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6366 "configure"
+#line 6384 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo $ac_n "checking for snprintf""... $ac_c" 1>&6
-echo "configure:6416: checking for snprintf" >&5
+echo "configure:6434: checking for snprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6421 "configure"
+#line 6439 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char snprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_snprintf=yes"
else
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
-echo "configure:6468: checking for vsnprintf" >&5
+echo "configure:6486: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6473 "configure"
+#line 6491 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
fi
echo $ac_n "checking for asprintf""... $ac_c" 1>&6
-echo "configure:6520: checking for asprintf" >&5
+echo "configure:6538: checking for asprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_asprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6525 "configure"
+#line 6543 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char asprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_asprintf=yes"
else
fi
echo $ac_n "checking for vasprintf""... $ac_c" 1>&6
-echo "configure:6572: checking for vasprintf" >&5
+echo "configure:6590: checking for vasprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6577 "configure"
+#line 6595 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vasprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_vasprintf=yes"
else
fi
if test -z "$LIB_CRYPT"; then
echo $ac_n "checking for crypt""... $ac_c" 1>&6
-echo "configure:6628: checking for crypt" >&5
+echo "configure:6646: checking for crypt" >&5
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6633 "configure"
+#line 6651 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char crypt(); below. */
; return 0; }
EOF
-if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_crypt=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
-echo "configure:6674: checking for crypt in -lcrypt" >&5
+echo "configure:6692: checking for crypt in -lcrypt" >&5
if test -n ""; then
ac_lib_var=`echo crypt'_'crypt | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lcrypt $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6686 "configure"
+#line 6704 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
crypt()
; return 0; }
EOF
-if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for crypt in -lcrypt_d""... $ac_c" 1>&6
-echo "configure:6716: checking for crypt in -lcrypt_d" >&5
+echo "configure:6734: checking for crypt in -lcrypt_d" >&5
if test -n ""; then
ac_lib_var=`echo crypt_d'_'crypt | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lcrypt_d $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6728 "configure"
+#line 6746 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
crypt()
; return 0; }
EOF
-if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for crypt in -lufc""... $ac_c" 1>&6
-echo "configure:6758: checking for crypt in -lufc" >&5
+echo "configure:6776: checking for crypt in -lufc" >&5
if test -n ""; then
ac_lib_var=`echo ufc'_'crypt | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lufc $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6770 "configure"
+#line 6788 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
crypt()
; return 0; }
EOF
-if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
echo $ac_n "checking for socket""... $ac_c" 1>&6
-echo "configure:6809: checking for socket" >&5
+echo "configure:6827: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6814 "configure"
+#line 6832 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. */
; return 0; }
EOF
-if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_socket=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:6855: checking for socket in -lsocket" >&5
+echo "configure:6873: checking for socket in -lsocket" >&5
if test -n ""; then
ac_lib_var=`echo socket'_'socket | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6867 "configure"
+#line 6885 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
socket()
; return 0; }
EOF
-if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
-echo "configure:6897: checking for socket in -linet" >&5
+echo "configure:6915: checking for socket in -linet" >&5
if test -n ""; then
ac_lib_var=`echo inet'_'socket | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6909 "configure"
+#line 6927 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
socket()
; return 0; }
EOF
-if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "$ac_t""no" 1>&6
echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:6940: checking for socket in -lsocket" >&5
+echo "configure:6958: checking for socket in -lsocket" >&5
if test -n "-lnsl"; then
ac_lib_var=`echo socket'_'socket-lnsl | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket -lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6952 "configure"
+#line 6970 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
socket()
; return 0; }
EOF
-if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
-echo "configure:6990: checking for inet_addr" >&5
+echo "configure:7008: checking for inet_addr" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6995 "configure"
+#line 7013 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_addr(); below. */
; return 0; }
EOF
-if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_addr=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
-echo "configure:7036: checking for inet_addr in -lnsl" >&5
+echo "configure:7054: checking for inet_addr in -lnsl" >&5
if test -n ""; then
ac_lib_var=`echo nsl'_'inet_addr | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7048 "configure"
+#line 7066 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
inet_addr()
; return 0; }
EOF
-if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for inet_addr in -linet""... $ac_c" 1>&6
-echo "configure:7078: checking for inet_addr in -linet" >&5
+echo "configure:7096: checking for inet_addr in -linet" >&5
if test -n ""; then
ac_lib_var=`echo inet'_'inet_addr | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7090 "configure"
+#line 7108 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
inet_addr()
; return 0; }
EOF
-if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "$ac_t""no" 1>&6
echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
-echo "configure:7121: checking for inet_addr in -lsocket" >&5
+echo "configure:7139: checking for inet_addr in -lsocket" >&5
if test -n "-lnsl"; then
ac_lib_var=`echo socket'_'inet_addr-lnsl | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket -lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7133 "configure"
+#line 7151 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
inet_addr()
; return 0; }
EOF
-if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
echo $ac_n "checking for syslog""... $ac_c" 1>&6
-echo "configure:7171: checking for syslog" >&5
+echo "configure:7189: checking for syslog" >&5
if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7176 "configure"
+#line 7194 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char syslog(); below. */
; return 0; }
EOF
-if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_syslog=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
-echo "configure:7217: checking for syslog in -lsocket" >&5
+echo "configure:7235: checking for syslog in -lsocket" >&5
if test -n ""; then
ac_lib_var=`echo socket'_'syslog | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7229 "configure"
+#line 7247 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
syslog()
; return 0; }
EOF
-if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for syslog in -lnsl""... $ac_c" 1>&6
-echo "configure:7259: checking for syslog in -lnsl" >&5
+echo "configure:7277: checking for syslog in -lnsl" >&5
if test -n ""; then
ac_lib_var=`echo nsl'_'syslog | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7271 "configure"
+#line 7289 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
syslog()
; return 0; }
EOF
-if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for syslog in -linet""... $ac_c" 1>&6
-echo "configure:7301: checking for syslog in -linet" >&5
+echo "configure:7319: checking for syslog in -linet" >&5
if test -n ""; then
ac_lib_var=`echo inet'_'syslog | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7313 "configure"
+#line 7331 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
syslog()
; return 0; }
EOF
-if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
-echo "configure:7354: checking for working alloca.h" >&5
+echo "configure:7372: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7359 "configure"
+#line 7377 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
-if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
-echo "configure:7387: checking for alloca" >&5
+echo "configure:7405: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7392 "configure"
+#line 7410 "configure"
#include "confdefs.h"
#ifdef __GNUC__
char *p = (char *) alloca(1);
; return 0; }
EOF
-if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_func_alloca_works=yes
else
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
-echo "configure:7447: checking whether alloca needs Cray hooks" >&5
+echo "configure:7465: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7452 "configure"
+#line 7470 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:7477: checking for $ac_func" >&5
+echo "configure:7495: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7482 "configure"
+#line 7500 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
-echo "configure:7532: checking stack direction for C alloca" >&5
+echo "configure:7550: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
-#line 7540 "configure"
+#line 7558 "configure"
#include "confdefs.h"
find_stack_direction ()
{
exit (find_stack_direction() < 0);
}
EOF
-if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_c_stack_direction=1
else
fi
echo $ac_n "checking for facilitynames and prioritynames in syslog.h""... $ac_c" 1>&6
-echo "configure:7583: checking for facilitynames and prioritynames in syslog.h" >&5
+echo "configure:7601: checking for facilitynames and prioritynames in syslog.h" >&5
if eval "test \"`echo '$''{'sudo_cv_syslog_names'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7589 "configure"
+#line 7607 "configure"
#include "confdefs.h"
#define SYSLOG_NAMES
CODE *p=&prioritynames[0]; CODE *f=&facilitynames[0];
; return 0; }
EOF
-if { (eval echo configure:7600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
sudo_cv_syslog_names=yes
else
if test "$with_kerb5" = "yes"; then
echo $ac_n "checking for krb5_get_init_creds_opt in -lkrb5""... $ac_c" 1>&6
-echo "configure:7622: checking for krb5_get_init_creds_opt in -lkrb5" >&5
+echo "configure:7640: checking for krb5_get_init_creds_opt in -lkrb5" >&5
if test -n ""; then
ac_lib_var=`echo krb5'_'krb5_get_init_creds_opt | sed 'y% ./+-%___p_%'`
else
ac_save_LIBS="$LIBS"
LIBS="-lkrb5 $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7634 "configure"
+#line 7652 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
krb5_get_init_creds_opt()
; return 0; }
EOF
-if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$with_kerb5" = "yes"; then
echo $ac_n "checking for -lkrb4""... $ac_c" 1>&6
-echo "configure:7704: checking for -lkrb4" >&5
+echo "configure:7722: checking for -lkrb4" >&5
if eval "test \"`echo '$''{'ac_cv_lib_krb4'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lkrb4 $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7711 "configure"
+#line 7729 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_lib_krb4=yes
else
fi
echo $ac_n "checking for -ldes""... $ac_c" 1>&6
-echo "configure:7739: checking for -ldes" >&5
+echo "configure:7757: checking for -ldes" >&5
if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-ldes $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7746 "configure"
+#line 7764 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_lib_des=yes
else
SUDO_LIBS="${SUDO_LIBS} -ldes425 -lkrb5 -lcrypto -lcom_err"
else
echo $ac_n "checking for -ldes""... $ac_c" 1>&6
-echo "configure:7774: checking for -ldes" >&5
+echo "configure:7792: checking for -ldes" >&5
if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-ldes $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7781 "configure"
+#line 7799 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_lib_des=yes
else
fi
echo $ac_n "checking for log file location""... $ac_c" 1>&6
-echo "configure:7912: checking for log file location" >&5
+echo "configure:7930: checking for log file location" >&5
if test -n "$with_logpath"; then
echo "$ac_t""$with_logpath" 1>&6
cat >> confdefs.h <<EOF
fi
echo $ac_n "checking for timestamp file location""... $ac_c" 1>&6
-echo "configure:7942: checking for timestamp file location" >&5
+echo "configure:7960: checking for timestamp file location" >&5
if test -n "$with_timedir"; then
echo "$ac_t""$with_timedir" 1>&6
cat >> confdefs.h <<EOF
s%@SUDOERS_MODE@%$SUDOERS_MODE%g
s%@SUDOERS_UID@%$SUDOERS_UID%g
s%@SUDOERS_GID@%$SUDOERS_GID%g
+s%@DEV@%$DEV%g
s%@EGREPPROG@%$EGREPPROG%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
dnl
dnl Variables that get substituted in the Makefile
dnl
+AC_SUBST(CFLAGS)dnl must not initialize CFLAGS, it is magic
PROGS="sudo visudo"
-AC_SUBST(CFLAGS)dnl
AC_SUBST(PROGS)dnl
+CPPFLAGS=""
+AC_SUBST(CPPFLAGS)dnl
SUDO_LDFLAGS=""
AC_SUBST(SUDO_LDFLAGS)dnl
VISUDO_LDFLAGS=""
AC_SUBST(VISUDO_LIBS)dnl
AFS_LIBS=""
AC_SUBST(AFS_LIBS)dnl
-CPPFLAGS=""
-AC_SUBST(CPPFLAGS)dnl
OSDEFS=""
AC_SUBST(OSDEFS)dnl
AUTH_OBJS=""
AC_SUBST(SUDOERS_UID)dnl
SUDOERS_GID=0
AC_SUBST(SUDOERS_GID)dnl
+DEV="#"
+AC_SUBST(DEV)
CHECKSHADOW=true
CHECKSIA=true
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
+dnl
+dnl Deprecated --with options (these all warn or generate an error)
+dnl
+
+AC_ARG_WITH(otp-only, [ --with-otp-only deprecated],
+[case $with_otp_only in
+ yes) with_passwd=no
+ AC_DEFINE(WITHOUT_PASSWD)
+ AC_MSG_WARN([--with-otp-only option deprecated, treating as --without-passwd])
+ ;;
+esac])
+
dnl
dnl Options for --with
dnl
;;
esac])
+AC_ARG_WITH(devel, [ --with-devel add developement options],
+[case $with_devel in
+ yes) echo 'Setting up for developement: -Wall, flex, yacc'
+ DEV=""
+ ;;
+ no) ;;
+ *) echo "Ignoring unknown argument to --with-devel: $with_csops"
+ ;;
+esac])
+
AC_ARG_WITH(csops, [ --with-csops add CSOps standard options],
[case $with_csops in
yes) echo 'Adding CSOps standard options'
;;
esac])
-AC_ARG_WITH(otp-only, [ --with-otp-only validate user via OTP (skey/opie) only],
-[case $with_otp_only in
- yes) AC_DEFINE(OTP_ONLY)
- AC_MSG_CHECKING(whether to use OTP as the sole authentication method)
- AC_MSG_RESULT(yes)
- ;;
- no) ;;
- *) echo "Sorry, --with-otp-only does not take an argument."
- exit 1
- ;;
-esac])
-
AC_ARG_WITH(long-otp-prompt, [ --with-long-otp-prompt use a two line OTP (skey/opie) prompt],
[case $with_long_otp_prompt in
yes) AC_DEFINE(LONG_OTP_PROMPT)
AC_ISC_POSIX
dnl
-dnl find programs we use
+dnl It is now safe to modify CFLAGS
+dnl
+if test "$with_devel" = "yes" -a -n "$GCC"; then
+ CFLAGS="${CFLAGS} -Wall"
+fi
+
+dnl
+dnl Find programs we use
dnl
AC_CHECK_PROG(UNAMEPROG, uname, uname, )
AC_CHECK_PROG(TRPROG, tr, tr, )
char *pw_shell;
if ((pw_shell = getenv("SHELL")) == NULL)
- pw_shell = pw -> pw_shell;
+ pw_shell = pw->pw_shell;
#ifdef _PATH_BSHELL
/* empty string "" means bourne shell */
spw = getprpwnam(pw->pw_name);
if (spw != NULL && spw->ufld.fd_encrypt != NULL) {
# ifdef __alpha
- crypt_type = spw -> ufld.fd_oldcrypt;
+ crypt_type = spw->ufld.fd_oldcrypt;
# endif /* __alpha */
- return(spw -> ufld.fd_encrypt);
+ return(spw->ufld.fd_encrypt);
}
}
#endif /* HAVE_GETPRPWNAM */
{
struct spwd *spw;
- if ((spw = getspnam(pw -> pw_name)) && spw -> sp_pwdp)
- return(spw -> sp_pwdp);
+ if ((spw = getspnam(pw->pw_name)) && spw->sp_pwdp)
+ return(spw->sp_pwdp);
}
#endif /* HAVE_GETSPNAM */
#ifdef HAVE_GETSPWUID
{
struct s_passwd *spw;
- if ((spw = getspwuid(pw -> pw_uid)) && spw -> pw_passwd)
- return(spw -> pw_passwd);
+ if ((spw = getspwuid(pw->pw_uid)) && spw->pw_passwd)
+ return(spw->pw_passwd);
}
#endif /* HAVE_GETSPWUID */
#ifdef HAVE_GETPWANAM
{
struct passwd_adjunct *spw;
- if ((spw = getpwanam(pw -> pw_name)) && spw -> pwa_passwd)
- return(spw -> pwa_passwd);
+ if ((spw = getpwanam(pw->pw_name)) && spw->pwa_passwd)
+ return(spw->pwa_passwd);
}
#endif /* HAVE_GETPWANAM */
#ifdef HAVE_GETAUTHUID
{
AUTHORIZATION *spw;
- if ((spw = getauthuid(pw -> pw_uid)) && spw -> a_password)
- return(spw -> a_password);
+ if ((spw = getauthuid(pw->pw_uid)) && spw->a_password)
+ return(spw->a_password);
}
#endif /* HAVE_GETAUTHUID */
YY_RULE_SETUP
#line 205 "parse.lex"
{
- /* Runas_Alias that user can run command as or ALL */
- fill(yytext, yyleng);
+ /* Runas_Alias user can run command as or ALL */
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
} else {
+ fill(yytext, yyleng);
LEXTRACE("ALIAS ");
return(ALIAS);
}
YY_RULE_SETUP
#line 240 "parse.lex"
{
- fill(yytext, yyleng);
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
} else {
+ fill(yytext, yyleng);
LEXTRACE("ALIAS ");
return(ALIAS);
}
}
<GOTRUNAS>[[:upper:]][[:upper:][:digit:]_]* {
- /* Runas_Alias that user can run command as or ALL */
- fill(yytext, yyleng);
+ /* Runas_Alias user can run command as or ALL */
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
} else {
+ fill(yytext, yyleng);
LEXTRACE("ALIAS ");
return(ALIAS);
}
} /* a pathname */
[[:upper:]][[:upper:][:digit:]_]* {
- fill(yytext, yyleng);
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
} else {
+ fill(yytext, yyleng);
LEXTRACE("ALIAS ");
return(ALIAS);
}
/*
* Protoypes
*/
-extern int command_matches __P((char *, char *, char *, char *));
extern int addr_matches __P((char *));
+extern int command_matches __P((char *, char *, char *, char *));
extern int netgr_matches __P((char *, char *, char *));
extern int usergr_matches __P((char *, char *));
-static aliasinfo *find_alias __P((char *, int));
static int add_alias __P((char *, int, int));
-static int more_aliases __P((void));
static void append __P((char *, char **, size_t *, size_t *, char *));
static void expand_ga_list __P((void));
static void expand_match_list __P((void));
+static aliasinfo *find_alias __P((char *, int));
+static int more_aliases __P((void));
void init_parser __P((void));
void yyerror __P((char *));
}
%start file /* special start symbol */
+%token <command> COMMAND /* absolute pathname w/ optional args */
%token <string> ALIAS /* an UPPERCASE alias name */
%token <string> NTWKADDR /* w.x.y.z */
%token <string> FQHOST /* foo.bar.com */
%token <string> NETGROUP /* a netgroup (+NAME) */
%token <string> USERGROUP /* a usergroup (%NAME) */
%token <string> NAME /* a mixed-case name */
-/* XXX - may want to make this back into a tok but if so, don't allocate
- space in parse.lex via fill() */
-%token <string> ALL /* ALL keyword */
-%token <tok> RUNAS /* a mixed-case runas name */
+%token <tok> RUNAS /* ( runas_list ) */
%token <tok> NOPASSWD /* no passwd req for command */
%token <tok> PASSWD /* passwd req for command (default) */
-%token <command> COMMAND /* an absolute pathname */
+%token <tok> ALL /* ALL keyword */
%token <tok> COMMENT /* comment and/or carriage return */
%token <tok> HOSTALIAS /* Host_Alias keyword */
%token <tok> CMNDALIAS /* Cmnd_Alias keyword */
* -1) No match (don't change the value of *_matches)
*/
%type <BOOLEAN> cmnd
-%type <BOOLEAN> hostspec
+%type <BOOLEAN> host
%type <BOOLEAN> runasuser
%type <BOOLEAN> user
}
;
-ophostspec : hostspec {
+ophost : host {
if ($1 != -1)
host_matches = $1;
}
- | '!' hostspec {
+ | '!' host {
if ($2 != -1)
- host_matches = !$2;
+ host_matches = ! $2;
}
-hostspec : ALL {
+host : ALL {
$$ = TRUE;
- free($1);
}
| NTWKADDR {
if (addr_matches($1))
}
} cmnd {
if ($3 != -1)
- cmnd_matches = !$3;
+ cmnd_matches = ! $3;
}
;
}
} runasuser {
if ($3 != -1)
- runas_matches = !$3;
+ runas_matches = ! $3;
}
runasuser : NAME {
| ALL {
if (printmatches == TRUE) {
if (in_alias == TRUE)
- append_entries($1, ", ");
+ append_entries("ALL", ", ");
else if (host_matches == TRUE &&
user_matches == TRUE)
- append_runas($1, ", ");
+ append_runas("ALL", ", ");
}
$$ = TRUE;
- free($1);
}
;
cmnd : ALL {
if (printmatches == TRUE) {
if (in_alias == TRUE)
- append_entries($1, ", ");
+ append_entries("ALL", ", ");
else if (host_matches == TRUE &&
user_matches == TRUE) {
- append_cmnd($1, NULL);
+ append_cmnd("ALL", NULL);
expand_match_list();
}
}
$$ = TRUE;
- free($1);
if (safe_cmnd)
free(safe_cmnd);
}
;
-hostlist : ophostspec
- | hostlist ',' ophostspec
+hostlist : ophost
+ | hostlist ',' ophost
;
cmndaliases : cmndalias
}
| '!' user {
if ($2 != -1)
- user_matches = !$2;
+ user_matches = ! $2;
}
user : NAME {
}
| ALL {
$$ = TRUE;
- free($1);
}
;
/*
* Protoypes
*/
-extern int command_matches __P((char *, char *, char *, char *));
extern int addr_matches __P((char *));
+extern int command_matches __P((char *, char *, char *, char *));
extern int netgr_matches __P((char *, char *, char *));
extern int usergr_matches __P((char *, char *));
-static aliasinfo *find_alias __P((char *, int));
static int add_alias __P((char *, int, int));
-static int more_aliases __P((void));
static void append __P((char *, char **, size_t *, size_t *, char *));
static void expand_ga_list __P((void));
static void expand_match_list __P((void));
+static aliasinfo *find_alias __P((char *, int));
+static int more_aliases __P((void));
void init_parser __P((void));
void yyerror __P((char *));
int tok;
} YYSTYPE;
#line 233 "sudo.tab.c"
-#define ALIAS 257
-#define NTWKADDR 258
-#define FQHOST 259
-#define NETGROUP 260
-#define USERGROUP 261
-#define NAME 262
-#define ALL 263
+#define COMMAND 257
+#define ALIAS 258
+#define NTWKADDR 259
+#define FQHOST 260
+#define NETGROUP 261
+#define USERGROUP 262
+#define NAME 263
#define RUNAS 264
#define NOPASSWD 265
#define PASSWD 266
-#define COMMAND 267
+#define ALL 267
#define COMMENT 268
#define HOSTALIAS 269
#define CMNDALIAS 270
0, 66, 0, 0, 0, 0, 0, 0, 0, 0,
69, 21, 17, 20, 18, 19, 16, 0, 0, 14,
0, 11, 0, 50, 0, 47, 0, 53, 0, 63,
- 0, 59, 67, 15, 0, 0, 0, 0, 44, 43,
- 45, 26, 25, 56, 0, 0, 38, 37, 36, 35,
+ 0, 59, 67, 15, 0, 0, 0, 0, 45, 44,
+ 43, 26, 25, 56, 0, 0, 38, 37, 36, 35,
39, 33, 32, 0, 30, 12, 0, 0, 22, 0,
51, 0, 0, 0, 0, 0, 0, 41, 42, 0,
27, 57, 34, 31, 23, 24,
92, 84, 85, 94, 13, 33, 16, 35, 75, 22,
39, 19, 37, 32,
};
-short yysindex[] = { -248,
- -258, 0, -243, -242, -241, -227, -248, 0, -8, 0,
- 0, -17, 0, 0, -11, 0, 0, -10, 0, 0,
- -9, 0, 0, 0, 0, 0, 0, 0, -224, 0,
- 170, 0, -19, -243, -7, -242, -6, -241, -5, -227,
- 0, 0, 0, 0, 0, 0, 0, -8, -231, 0,
- -1, 0, -42, 0, 177, 0, -21, 0, -8, 0,
- 184, 0, 0, 0, 177, -214, 177, 9, 0, 0,
- 0, 0, 0, 0, 14, 16, 0, 0, 0, 0,
- 0, 0, 0, 17, 0, 0, 184, 19, 0, -259,
- 0, -254, -21, -217, 184, 17, -214, 0, 0, -21,
+short yysindex[] = { -243,
+ -265, 0, -252, -249, -246, -242, -243, 0, -16, 0,
+ 0, -36, 0, 0, -35, 0, 0, -28, 0, 0,
+ -25, 0, 0, 0, 0, 0, 0, 0, -214, 0,
+ -33, 0, -29, -252, -21, -249, -19, -246, -18, -242,
+ 0, 0, 0, 0, 0, 0, 0, -16, -222, 0,
+ -12, 0, -42, 0, -23, 0, -26, 0, -16, 0,
+ -9, 0, 0, 0, -23, -210, -23, 6, 0, 0,
+ 0, 0, 0, 0, 11, 12, 0, 0, 0, 0,
+ 0, 0, 0, 14, 0, 0, -9, 19, 0, -245,
+ 0, -253, -26, -201, -9, 14, -210, 0, 0, -26,
0, 0, 0, 0, 0, 0,
};
-short yyrindex[] = { 192,
- 0, 0, 0, 0, 0, 0, 192, 0, 0, 0,
+short yyrindex[] = { 169,
+ 0, 0, 0, 0, 0, 0, 169, 0, 0, 0,
0, 86, 0, 0, 103, 0, 0, 120, 0, 0,
137, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
154, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, -33, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 176, 0, 1, 0, 0,
0, 0, 0, 0, 18, 35, 0, 0, 0, 0,
- 0, 0, 0, 52, 0, 0, 0, 69, 0, -16,
- 0, 0, 0, 0, 0, -28, -33, 0, 0, 0,
+ 0, 0, 0, 52, 0, 0, 0, 69, 0, -2,
+ 0, 0, 0, 0, 0, 180, 176, 0, 0, 0,
0, 0, 0, 0, 0, 0,
};
short yygindex[] = { 0,
- -30, 15, -29, 37, 60, 11, 0, 0, 0, 0,
- 0, 0, 6, 20, 0, 5, -24, 0, 0, -89,
- 0, -13, -18, 0, 44, 0, 43, 0, 0, 40,
- 0, 45, 0, 33,
+ -27, 15, -24, 38, 64, 13, 0, 0, 0, 0,
+ 0, 0, 8, 20, 0, 7, -20, 0, 0, -85,
+ 0, -8, -17, 0, 46, 0, 45, 0, 0, 42,
+ 0, 49, 0, 36,
};
-#define YYTABLESIZE 455
-short yytable[] = { 28,
- 49, 67, 69, 102, 29, 98, 99, 1, 70, 10,
- 106, 72, 71, 11, 14, 17, 40, 55, 66, 2,
- 3, 4, 5, 6, 29, 42, 43, 44, 45, 20,
- 46, 47, 24, 49, 65, 25, 26, 27, 28, 77,
- 34, 55, 78, 79, 80, 81, 36, 38, 40, 87,
- 55, 61, 67, 57, 59, 61, 65, 93, 49, 48,
- 95, 101, 97, 64, 103, 41, 23, 65, 13, 76,
- 86, 91, 105, 96, 68, 55, 104, 56, 58, 62,
- 63, 0, 60, 0, 61, 8, 0, 0, 0, 0,
+#define YYTABLESIZE 447
+short yytable[] = { 49,
+ 49, 67, 10, 69, 70, 11, 72, 102, 14, 49,
+ 48, 17, 1, 71, 106, 20, 29, 55, 66, 98,
+ 99, 34, 36, 82, 2, 3, 4, 5, 6, 38,
+ 40, 55, 40, 49, 65, 42, 43, 44, 45, 57,
+ 46, 59, 61, 24, 47, 65, 25, 26, 27, 67,
+ 55, 61, 28, 87, 93, 48, 77, 95, 49, 78,
+ 79, 80, 97, 64, 101, 81, 41, 65, 13, 103,
+ 23, 76, 86, 91, 68, 55, 105, 104, 96, 56,
+ 58, 62, 0, 63, 61, 8, 60, 0, 0, 0,
0, 0, 65, 0, 0, 0, 0, 0, 0, 0,
0, 13, 9, 0, 0, 0, 0, 0, 0, 61,
0, 0, 0, 0, 0, 0, 0, 0, 8, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 49, 0, 0, 0, 0, 0, 0, 49,
- 0, 0, 0, 48, 0, 0, 82, 0, 0, 0,
- 0, 0, 0, 28, 5, 0, 0, 0, 29, 28,
- 0, 28, 28, 28, 29, 69, 29, 29, 29, 0,
- 40, 70, 0, 0, 0, 71, 40, 0, 24, 0,
- 40, 25, 26, 27, 28, 0, 49, 49, 0, 0,
- 49, 49, 49, 49, 0, 0, 0, 0, 49, 49,
- 49, 49, 49, 55, 55, 0, 0, 55, 55, 55,
- 55, 0, 0, 0, 0, 55, 55, 55, 55, 55,
- 65, 65, 0, 0, 65, 65, 65, 65, 0, 0,
- 0, 0, 65, 65, 65, 65, 65, 61, 61, 0,
- 0, 61, 61, 61, 61, 0, 0, 0, 0, 61,
- 61, 61, 61, 61, 13, 13, 0, 0, 13, 13,
- 13, 13, 0, 0, 0, 0, 13, 13, 13, 13,
- 13, 8, 8, 0, 0, 8, 8, 8, 8, 0,
- 0, 0, 0, 8, 8, 8, 8, 8, 9, 9,
- 0, 0, 9, 9, 9, 9, 0, 0, 0, 0,
- 9, 9, 9, 9, 9, 7, 7, 0, 0, 7,
- 7, 7, 7, 0, 0, 0, 0, 7, 7, 7,
- 7, 7, 10, 10, 0, 0, 10, 10, 10, 10,
- 0, 0, 0, 0, 10, 10, 10, 10, 10, 6,
- 6, 0, 0, 6, 6, 6, 6, 0, 0, 0,
- 0, 6, 6, 6, 6, 6, 42, 43, 44, 45,
- 0, 46, 47, 42, 43, 44, 45, 0, 46, 47,
- 77, 0, 0, 78, 79, 80, 81, 0, 5, 0,
- 0, 5, 5, 5, 5,
+ 0, 5, 0, 0, 0, 0, 0, 0, 28, 0,
+ 0, 0, 29, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 42, 43, 44, 45, 0, 46,
+ 69, 70, 0, 47, 42, 43, 44, 45, 0, 46,
+ 71, 24, 0, 47, 25, 26, 27, 0, 77, 0,
+ 28, 78, 79, 80, 40, 40, 49, 81, 49, 0,
+ 0, 49, 49, 49, 40, 0, 0, 49, 49, 49,
+ 49, 49, 49, 55, 0, 55, 0, 0, 55, 55,
+ 55, 0, 0, 0, 55, 55, 55, 55, 55, 55,
+ 65, 0, 65, 0, 0, 65, 65, 65, 0, 0,
+ 0, 65, 65, 65, 65, 65, 65, 61, 0, 61,
+ 0, 0, 61, 61, 61, 0, 0, 0, 61, 61,
+ 61, 61, 61, 61, 13, 0, 13, 0, 0, 13,
+ 13, 13, 0, 0, 0, 13, 13, 13, 13, 13,
+ 13, 8, 0, 8, 0, 0, 8, 8, 8, 0,
+ 0, 0, 8, 8, 8, 8, 8, 8, 9, 0,
+ 9, 0, 0, 9, 9, 9, 0, 0, 0, 9,
+ 9, 9, 9, 9, 9, 7, 0, 7, 0, 0,
+ 7, 7, 7, 0, 0, 0, 7, 7, 7, 7,
+ 7, 7, 10, 0, 10, 0, 0, 10, 10, 10,
+ 0, 0, 0, 10, 10, 10, 10, 10, 10, 6,
+ 0, 6, 0, 0, 6, 6, 6, 0, 0, 0,
+ 6, 6, 6, 6, 6, 6, 5, 0, 0, 5,
+ 5, 5, 28, 28, 0, 5, 29, 29, 0, 0,
+ 28, 28, 28, 0, 29, 29, 29,
};
short yycheck[] = { 33,
- 0, 44, 257, 93, 33, 265, 266, 256, 263, 268,
- 100, 33, 267, 257, 257, 257, 33, 0, 61, 268,
- 269, 270, 271, 272, 33, 257, 258, 259, 260, 257,
- 262, 263, 257, 33, 0, 260, 261, 262, 263, 257,
- 58, 61, 260, 261, 262, 263, 58, 58, 58, 264,
- 33, 0, 44, 61, 61, 61, 58, 44, 58, 44,
- 44, 92, 44, 49, 94, 29, 7, 33, 0, 59,
- 65, 67, 97, 87, 55, 58, 95, 34, 36, 40,
- 48, -1, 38, -1, 33, 0, -1, -1, -1, -1,
+ 0, 44, 268, 257, 258, 258, 33, 93, 258, 33,
+ 44, 258, 256, 267, 100, 258, 33, 0, 61, 265,
+ 266, 58, 58, 33, 268, 269, 270, 271, 272, 58,
+ 33, 61, 58, 33, 0, 258, 259, 260, 261, 61,
+ 263, 61, 61, 258, 267, 58, 261, 262, 263, 44,
+ 33, 0, 267, 264, 44, 44, 258, 44, 58, 261,
+ 262, 263, 44, 49, 92, 267, 29, 33, 0, 94,
+ 7, 59, 65, 67, 55, 58, 97, 95, 87, 34,
+ 36, 40, -1, 48, 33, 0, 38, -1, -1, -1,
-1, -1, 58, -1, -1, -1, -1, -1, -1, -1,
-1, 33, 0, -1, -1, -1, -1, -1, -1, 58,
-1, -1, -1, -1, -1, -1, -1, -1, 33, 0,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 33, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 33, -1, -1, -1, -1, -1, -1, 33,
- -1, -1, -1, 44, -1, -1, 33, -1, -1, -1,
- -1, -1, -1, 257, 33, -1, -1, -1, 257, 263,
- -1, 265, 266, 267, 263, 257, 265, 266, 267, -1,
- 257, 263, -1, -1, -1, 267, 263, -1, 257, -1,
- 267, 260, 261, 262, 263, -1, 256, 257, -1, -1,
- 260, 261, 262, 263, -1, -1, -1, -1, 268, 269,
- 270, 271, 272, 256, 257, -1, -1, 260, 261, 262,
- 263, -1, -1, -1, -1, 268, 269, 270, 271, 272,
- 256, 257, -1, -1, 260, 261, 262, 263, -1, -1,
- -1, -1, 268, 269, 270, 271, 272, 256, 257, -1,
- -1, 260, 261, 262, 263, -1, -1, -1, -1, 268,
- 269, 270, 271, 272, 256, 257, -1, -1, 260, 261,
- 262, 263, -1, -1, -1, -1, 268, 269, 270, 271,
- 272, 256, 257, -1, -1, 260, 261, 262, 263, -1,
- -1, -1, -1, 268, 269, 270, 271, 272, 256, 257,
- -1, -1, 260, 261, 262, 263, -1, -1, -1, -1,
- 268, 269, 270, 271, 272, 256, 257, -1, -1, 260,
- 261, 262, 263, -1, -1, -1, -1, 268, 269, 270,
- 271, 272, 256, 257, -1, -1, 260, 261, 262, 263,
- -1, -1, -1, -1, 268, 269, 270, 271, 272, 256,
- 257, -1, -1, 260, 261, 262, 263, -1, -1, -1,
- -1, 268, 269, 270, 271, 272, 257, 258, 259, 260,
- -1, 262, 263, 257, 258, 259, 260, -1, 262, 263,
- 257, -1, -1, 260, 261, 262, 263, -1, 257, -1,
- -1, 260, 261, 262, 263,
+ -1, 33, -1, -1, -1, -1, -1, -1, 33, -1,
+ -1, -1, 33, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 258, 259, 260, 261, -1, 263,
+ 257, 258, -1, 267, 258, 259, 260, 261, -1, 263,
+ 267, 258, -1, 267, 261, 262, 263, -1, 258, -1,
+ 267, 261, 262, 263, 257, 258, 256, 267, 258, -1,
+ -1, 261, 262, 263, 267, -1, -1, 267, 268, 269,
+ 270, 271, 272, 256, -1, 258, -1, -1, 261, 262,
+ 263, -1, -1, -1, 267, 268, 269, 270, 271, 272,
+ 256, -1, 258, -1, -1, 261, 262, 263, -1, -1,
+ -1, 267, 268, 269, 270, 271, 272, 256, -1, 258,
+ -1, -1, 261, 262, 263, -1, -1, -1, 267, 268,
+ 269, 270, 271, 272, 256, -1, 258, -1, -1, 261,
+ 262, 263, -1, -1, -1, 267, 268, 269, 270, 271,
+ 272, 256, -1, 258, -1, -1, 261, 262, 263, -1,
+ -1, -1, 267, 268, 269, 270, 271, 272, 256, -1,
+ 258, -1, -1, 261, 262, 263, -1, -1, -1, 267,
+ 268, 269, 270, 271, 272, 256, -1, 258, -1, -1,
+ 261, 262, 263, -1, -1, -1, 267, 268, 269, 270,
+ 271, 272, 256, -1, 258, -1, -1, 261, 262, 263,
+ -1, -1, -1, 267, 268, 269, 270, 271, 272, 256,
+ -1, 258, -1, -1, 261, 262, 263, -1, -1, -1,
+ 267, 268, 269, 270, 271, 272, 258, -1, -1, 261,
+ 262, 263, 257, 258, -1, 267, 257, 258, -1, -1,
+ 265, 266, 267, -1, 265, 266, 267,
};
#define YYFINAL 7
#ifndef YYDEBUG
#if YYDEBUG
char *yyname[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-"'!'",0,0,0,0,0,0,0,0,0,0,"','",0,"'.'",0,0,0,0,0,0,0,0,0,0,0,"':'",0,0,"'='",0,
+"'!'",0,0,0,0,0,0,0,0,0,0,"','",0,0,0,0,0,0,0,0,0,0,0,0,0,"':'",0,0,"'='",0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"ALIAS",
-"NTWKADDR","FQHOST","NETGROUP","USERGROUP","NAME","ALL","RUNAS","NOPASSWD",
-"PASSWD","COMMAND","COMMENT","HOSTALIAS","CMNDALIAS","USERALIAS","RUNASALIAS",
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"COMMAND",
+"ALIAS","NTWKADDR","FQHOST","NETGROUP","USERGROUP","NAME","RUNAS","NOPASSWD",
+"PASSWD","ALL","COMMENT","HOSTALIAS","CMNDALIAS","USERALIAS","RUNASALIAS",
"ERROR",
};
char *yyrule[] = {
"privileges : privilege",
"privileges : privileges ':' privilege",
"privilege : hostlist '=' cmndspeclist",
-"ophostspec : hostspec",
-"ophostspec : '!' hostspec",
-"hostspec : ALL",
-"hostspec : NTWKADDR",
-"hostspec : NETGROUP",
-"hostspec : NAME",
-"hostspec : FQHOST",
-"hostspec : ALIAS",
+"ophost : host",
+"ophost : '!' host",
+"host : ALL",
+"host : NTWKADDR",
+"host : NETGROUP",
+"host : NAME",
+"host : FQHOST",
+"host : ALIAS",
"cmndspeclist : cmndspec",
"cmndspeclist : cmndspeclist ',' cmndspec",
"cmndspec : runasspec nopasswd opcmnd",
"hostaliases : hostaliases ':' hostalias",
"$$4 :",
"hostalias : ALIAS $$4 '=' hostlist",
-"hostlist : ophostspec",
-"hostlist : hostlist ',' ophostspec",
+"hostlist : ophost",
+"hostlist : hostlist ',' ophost",
"cmndaliases : cmndalias",
"cmndaliases : cmndaliases ':' cmndalias",
"$$5 :",
short *yysslim;
YYSTYPE *yyvs;
int yystacksize;
-#line 741 "parse.yacc"
+#line 735 "parse.yacc"
#define MOREALIASES (32)
aliasinfo *aliases = NULL;
if (printmatches == TRUE)
expand_match_list();
}
-#line 881 "sudo.tab.c"
+#line 879 "sudo.tab.c"
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
#if defined(__cplusplus) || __STDC__
static int yygrowstack(void)
switch (yyn)
{
case 3:
-#line 256 "parse.yacc"
+#line 254 "parse.yacc"
{ ; }
break;
case 4:
-#line 258 "parse.yacc"
+#line 256 "parse.yacc"
{ yyerrok; }
break;
case 5:
-#line 259 "parse.yacc"
+#line 257 "parse.yacc"
{ push; }
break;
case 6:
-#line 259 "parse.yacc"
+#line 257 "parse.yacc"
{
while (top && user_matches != TRUE)
pop;
}
break;
case 7:
-#line 264 "parse.yacc"
+#line 262 "parse.yacc"
{ ; }
break;
case 8:
-#line 266 "parse.yacc"
+#line 264 "parse.yacc"
{ ; }
break;
case 9:
-#line 268 "parse.yacc"
+#line 266 "parse.yacc"
{ ; }
break;
case 10:
-#line 270 "parse.yacc"
+#line 268 "parse.yacc"
{ ; }
break;
case 13:
-#line 278 "parse.yacc"
+#line 276 "parse.yacc"
{
/*
* We already did a push if necessary in
}
break;
case 14:
-#line 290 "parse.yacc"
+#line 288 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
host_matches = yyvsp[0].BOOLEAN;
}
break;
case 15:
-#line 294 "parse.yacc"
+#line 292 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
- host_matches = !yyvsp[0].BOOLEAN;
+ host_matches = ! yyvsp[0].BOOLEAN;
}
break;
case 16:
-#line 299 "parse.yacc"
+#line 297 "parse.yacc"
{
yyval.BOOLEAN = TRUE;
- free(yyvsp[0].string);
}
break;
case 17:
-#line 303 "parse.yacc"
+#line 300 "parse.yacc"
{
if (addr_matches(yyvsp[0].string))
yyval.BOOLEAN = TRUE;
}
break;
case 18:
-#line 310 "parse.yacc"
+#line 307 "parse.yacc"
{
if (netgr_matches(yyvsp[0].string, user_host, NULL))
yyval.BOOLEAN = TRUE;
}
break;
case 19:
-#line 317 "parse.yacc"
+#line 314 "parse.yacc"
{
if (strcasecmp(user_shost, yyvsp[0].string) == 0)
yyval.BOOLEAN = TRUE;
}
break;
case 20:
-#line 324 "parse.yacc"
+#line 321 "parse.yacc"
{
if (strcasecmp(user_host, yyvsp[0].string) == 0)
yyval.BOOLEAN = TRUE;
}
break;
case 21:
-#line 331 "parse.yacc"
+#line 328 "parse.yacc"
{
aliasinfo *aip = find_alias(yyvsp[0].string, HOST_ALIAS);
}
break;
case 24:
-#line 353 "parse.yacc"
+#line 350 "parse.yacc"
{
/*
* Push the entry onto the stack if it is worth
}
break;
case 25:
-#line 367 "parse.yacc"
+#line 364 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
cmnd_matches = yyvsp[0].BOOLEAN;
}
break;
case 26:
-#line 371 "parse.yacc"
+#line 368 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
}
break;
case 27:
-#line 379 "parse.yacc"
+#line 376 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
- cmnd_matches = !yyvsp[0].BOOLEAN;
+ cmnd_matches = ! yyvsp[0].BOOLEAN;
}
break;
case 28:
-#line 385 "parse.yacc"
+#line 382 "parse.yacc"
{
if (printmatches == TRUE && host_matches == TRUE &&
user_matches == TRUE) {
}
break;
case 29:
-#line 408 "parse.yacc"
+#line 405 "parse.yacc"
{ ; }
break;
case 32:
-#line 415 "parse.yacc"
+#line 412 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
runas_matches = yyvsp[0].BOOLEAN;
}
break;
case 33:
-#line 419 "parse.yacc"
+#line 416 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
}
break;
case 34:
-#line 427 "parse.yacc"
+#line 424 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
- runas_matches = !yyvsp[0].BOOLEAN;
+ runas_matches = ! yyvsp[0].BOOLEAN;
}
break;
case 35:
-#line 432 "parse.yacc"
+#line 429 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
}
break;
case 36:
-#line 446 "parse.yacc"
+#line 443 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
}
break;
case 37:
-#line 460 "parse.yacc"
+#line 457 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
}
break;
case 38:
-#line 474 "parse.yacc"
+#line 471 "parse.yacc"
{
aliasinfo *aip = find_alias(yyvsp[0].string, RUNAS_ALIAS);
}
break;
case 39:
-#line 497 "parse.yacc"
+#line 494 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
- append_entries(yyvsp[0].string, ", ");
+ append_entries("ALL", ", ");
else if (host_matches == TRUE &&
user_matches == TRUE)
- append_runas(yyvsp[0].string, ", ");
+ append_runas("ALL", ", ");
}
yyval.BOOLEAN = TRUE;
- free(yyvsp[0].string);
}
break;
case 40:
-#line 510 "parse.yacc"
+#line 506 "parse.yacc"
{
/* Inherit NOPASSWD/PASSWD status. */
if (printmatches == TRUE && host_matches == TRUE &&
}
break;
case 41:
-#line 520 "parse.yacc"
+#line 516 "parse.yacc"
{
no_passwd = TRUE;
if (printmatches == TRUE && host_matches == TRUE &&
}
break;
case 42:
-#line 526 "parse.yacc"
+#line 522 "parse.yacc"
{
no_passwd = FALSE;
if (printmatches == TRUE && host_matches == TRUE &&
}
break;
case 43:
-#line 534 "parse.yacc"
+#line 530 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE)
- append_entries(yyvsp[0].string, ", ");
+ append_entries("ALL", ", ");
else if (host_matches == TRUE &&
user_matches == TRUE) {
- append_cmnd(yyvsp[0].string, NULL);
+ append_cmnd("ALL", NULL);
expand_match_list();
}
}
yyval.BOOLEAN = TRUE;
- free(yyvsp[0].string);
if (safe_cmnd)
free(safe_cmnd);
}
break;
case 44:
-#line 552 "parse.yacc"
+#line 547 "parse.yacc"
{
aliasinfo *aip;
}
break;
case 45:
-#line 575 "parse.yacc"
+#line 570 "parse.yacc"
{
if (printmatches == TRUE) {
if (in_alias == TRUE) {
}
break;
case 48:
-#line 607 "parse.yacc"
+#line 602 "parse.yacc"
{ push; }
break;
case 49:
-#line 607 "parse.yacc"
+#line 602 "parse.yacc"
{
if (host_matches != -1 &&
!add_alias(yyvsp[-3].string, HOST_ALIAS, host_matches))
}
break;
case 54:
-#line 623 "parse.yacc"
+#line 618 "parse.yacc"
{
push;
if (printmatches == TRUE) {
}
break;
case 55:
-#line 631 "parse.yacc"
+#line 626 "parse.yacc"
{
if (cmnd_matches != -1 &&
!add_alias(yyvsp[-3].string, CMND_ALIAS, cmnd_matches))
}
break;
case 56:
-#line 643 "parse.yacc"
+#line 638 "parse.yacc"
{ ; }
break;
case 60:
-#line 651 "parse.yacc"
+#line 646 "parse.yacc"
{
push;
if (printmatches == TRUE) {
}
break;
case 61:
-#line 659 "parse.yacc"
+#line 654 "parse.yacc"
{
if (runas_matches != -1 &&
!add_alias(yyvsp[-3].string, RUNAS_ALIAS, runas_matches))
}
break;
case 64:
-#line 675 "parse.yacc"
+#line 670 "parse.yacc"
{ push; }
break;
case 65:
-#line 675 "parse.yacc"
+#line 670 "parse.yacc"
{
if (user_matches != -1 &&
!add_alias(yyvsp[-3].string, USER_ALIAS, user_matches))
}
break;
case 66:
-#line 684 "parse.yacc"
+#line 679 "parse.yacc"
{ ; }
break;
case 68:
-#line 688 "parse.yacc"
+#line 683 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
user_matches = yyvsp[0].BOOLEAN;
}
break;
case 69:
-#line 692 "parse.yacc"
+#line 687 "parse.yacc"
{
if (yyvsp[0].BOOLEAN != -1)
- user_matches = !yyvsp[0].BOOLEAN;
+ user_matches = ! yyvsp[0].BOOLEAN;
}
break;
case 70:
-#line 697 "parse.yacc"
+#line 692 "parse.yacc"
{
if (strcmp(yyvsp[0].string, user_name) == 0)
yyval.BOOLEAN = TRUE;
}
break;
case 71:
-#line 704 "parse.yacc"
+#line 699 "parse.yacc"
{
if (usergr_matches(yyvsp[0].string, user_name))
yyval.BOOLEAN = TRUE;
}
break;
case 72:
-#line 711 "parse.yacc"
+#line 706 "parse.yacc"
{
if (netgr_matches(yyvsp[0].string, NULL, user_name))
yyval.BOOLEAN = TRUE;
}
break;
case 73:
-#line 718 "parse.yacc"
+#line 713 "parse.yacc"
{
aliasinfo *aip = find_alias(yyvsp[0].string, USER_ALIAS);
}
break;
case 74:
-#line 734 "parse.yacc"
+#line 729 "parse.yacc"
{
yyval.BOOLEAN = TRUE;
- free(yyvsp[0].string);
}
break;
-#line 1639 "sudo.tab.c"
+#line 1633 "sudo.tab.c"
}
yyssp -= yym;
yystate = *yyssp;
-#define ALIAS 257
-#define NTWKADDR 258
-#define FQHOST 259
-#define NETGROUP 260
-#define USERGROUP 261
-#define NAME 262
-#define ALL 263
+#define COMMAND 257
+#define ALIAS 258
+#define NTWKADDR 259
+#define FQHOST 260
+#define NETGROUP 261
+#define USERGROUP 262
+#define NAME 263
#define RUNAS 264
#define NOPASSWD 265
#define PASSWD 266
-#define COMMAND 267
+#define ALL 267
#define COMMENT 268
#define HOSTALIAS 269
#define CMNDALIAS 270