summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2019-10-19 09:32:41 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-06-12 16:46:17 -0700
commitce7a3265019e4d66198c1581d9e8c859c34e8ef1 (patch)
treed16c1e13968388e8722d270e706f7a4549051430
parent9529d2351fe52ffaaf9342343865073d5c5b6802 (diff)
configure: define HAVE_LIBBSD when libbsd was found
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e497325..d4d8aa4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,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])
+if test "$ac_cv_search_strlcat" = "-lbsd"; then
+ AC_DEFINE(HAVE_LIBBSD,1,[Has libbsd])
+fi
AC_CONFIG_LIBOBJ_DIR([src/util])
AC_REPLACE_FUNCS([reallocarray realpath strlcat strlcpy])