diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2019-10-19 09:32:41 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-06-12 16:46:17 -0700 |
commit | ce7a3265019e4d66198c1581d9e8c859c34e8ef1 (patch) | |
tree | d16c1e13968388e8722d270e706f7a4549051430 | |
parent | 9529d2351fe52ffaaf9342343865073d5c5b6802 (diff) |
configure: define HAVE_LIBBSD when libbsd was found
-rw-r--r-- | configure.ac | 3 |
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]) |