diff options
author | Serge Hallyn <serge@hallyn.com> | 2023-08-14 08:27:30 -0500 |
---|---|---|
committer | Serge Hallyn <serge@hallyn.com> | 2023-08-14 09:08:35 -0500 |
commit | ebad5f840a53d6824b1ee65f420837aa2a496380 (patch) | |
tree | e7bc1d6c3ff64bd2d33a03ae64dd355ab9e46282 | |
parent | ae2a4507ed145b511f65db051448097d09fef02a (diff) |
configure.ac: check for strlcpy
Signed-off-by: Serge Hallyn <serge@hallyn.com>
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3dac478e..815cd840 100644 --- a/configure.ac +++ b/configure.ac @@ -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) |