configure.ac: check for strlcpy
Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
@@ -434,6 +434,7 @@ if test "$with_libbsd" != "no"; then
|
||||
AC_DEFINE(WITH_LIBBSD, 1, [Build shadow with libbsd support])
|
||||
else
|
||||
AC_DEFINE(WITH_LIBBSD, 0, [Build shadow without libbsd support])
|
||||
AC_CHECK_FUNC(strlcpy, [], [AC_MSG_ERROR([strlcpy is required from glibc >= 2.38 or libbsd])])
|
||||
fi
|
||||
AM_CONDITIONAL(WITH_LIBBSD, test x$with_libbsd = xyes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user