From d4c941ea8b1dc07a14efce656bff58d31a14c985 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 3 Aug 2019 16:05:21 -0700 Subject: Add strlcat & strlcpy fallbacks if not provided by libc nor libbsd Implementations copied from the Xserver Signed-off-by: Alan Coopersmith --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9df20cb..970d9a3 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,9 @@ AC_CHECK_HEADERS([endian.h poll.h sys/poll.h]) # Checks for library functions. AC_CHECK_FUNCS([poll readlink]) +AC_SEARCH_LIBS([strlcat], [bsd]) +AC_CONFIG_LIBOBJ_DIR([src/util]) +AC_REPLACE_FUNCS([strlcat strlcpy]) # If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config # must first be located explicitly. -- cgit v1.2.1