aboutsummaryrefslogtreecommitdiff
path: root/configure.ac.tpl
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-27 06:11:56 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-28 07:07:23 -0500
commit0a74a4d4648f8655ad4862f28d995fcf2865b3b2 (patch)
treee59f4c643104f98fe504604e590f458edbb8fd24 /configure.ac.tpl
parentfb67b92eb2bf94816facee5469a7015101b3a07e (diff)
downloadportable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.gz
portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.bz2
portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.zip
add strndup/strnlen compat functions from OpenBSD
Diffstat (limited to 'configure.ac.tpl')
-rw-r--r--configure.ac.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac.tpl b/configure.ac.tpl
index 8e85e9b..61476cf 100644
--- a/configure.ac.tpl
+++ b/configure.ac.tpl
@@ -64,6 +64,11 @@ AC_CHECK_FUNC(strlcat,[AC_SEARCH_LIBS(strlcat,, [NO_STRLCAT=],
64AC_SUBST(NO_STRLCAT) 64AC_SUBST(NO_STRLCAT)
65AM_CONDITIONAL(NO_STRLCAT, test "x$NO_STRLCAT" = "xyes") 65AM_CONDITIONAL(NO_STRLCAT, test "x$NO_STRLCAT" = "xyes")
66 66
67AC_CHECK_FUNC(strndup,[AC_SEARCH_LIBS(strndup,, [NO_STRNDUP=],
68 [NO_STRNDUP=yes])], [NO_STRNDUP=yes])
69AC_SUBST(NO_STRNDUP)
70AM_CONDITIONAL(NO_STRNDUP, test "x$NO_STRNDUP" = "xyes")
71
67AC_CHECK_FUNC(reallocarray,[AC_SEARCH_LIBS(reallocarray,, [NO_REALLOCARRAY=], 72AC_CHECK_FUNC(reallocarray,[AC_SEARCH_LIBS(reallocarray,, [NO_REALLOCARRAY=],
68 [NO_REALLOCARRAY=yes])], [NO_REALLOCARRAY=yes]) 73 [NO_REALLOCARRAY=yes])], [NO_REALLOCARRAY=yes])
69AC_SUBST(NO_REALLOCARRAY) 74AC_SUBST(NO_REALLOCARRAY)