From 285791c42fd147228a75b4a25843e87618085def Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 12 Mar 2003 22:07:26 +0000 Subject: [PATCH] Add stlc{at,py} for those w/o it. --- config.h.in | 10 ++++++++-- configure | 4 +++- configure.in | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config.h.in b/config.h.in index 04a74b8e5..66b039c54 100644 --- a/config.h.in +++ b/config.h.in @@ -252,6 +252,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + +/* Define to 1 if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR @@ -392,8 +398,8 @@ /* Define to send mail when the user is not allowed to run a command. */ #undef SEND_MAIL_WHEN_NOT_OK -/* Define to send mail when the user is not allowed to run sudo on this - host. */ +/* Define to send mail when the user is not allowed to run sudo on this host. + */ #undef SEND_MAIL_WHEN_NO_HOST /* Define to send mail when the user is not in the sudoers file. */ diff --git a/configure b/configure index 1c606a8da..cecb237ea 100755 --- a/configure +++ b/configure @@ -10751,7 +10751,9 @@ _ACEOF -for ac_func in strerror strcasecmp sigaction + + +for ac_func in strerror strcasecmp sigaction strlcpy strlcat do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index 261b68664..2369dd7f1 100644 --- a/configure.in +++ b/configure.in @@ -1619,7 +1619,7 @@ AC_CHECK_FUNCS(lsearch, , [AC_CHECK_LIB(compat, lsearch, AC_CHECK_HEADER(search. AC_CHECK_FUNCS(utime, [SUDO_FUNC_UTIME_POSIX], [AC_LIBOBJ(utime)]) SUDO_FUNC_FNMATCH(AC_DEFINE(HAVE_FNMATCH, 1, [Define if you have the `fnmatch' function.]), AC_LIBOBJ(fnmatch)) SUDO_FUNC_ISBLANK -AC_REPLACE_FUNCS(strerror strcasecmp sigaction) +AC_REPLACE_FUNCS(strerror strcasecmp sigaction strlcpy strlcat) AC_CHECK_FUNCS(snprintf vsnprintf asprintf vasprintf, , [NEED_SNPRINTF=1]) dnl dnl If NEED_SNPRINTF is set, add snprintf.c to LIBOBJS -- 2.40.0