aboutsummaryrefslogtreecommitdiff
path: root/configure.ac.tpl
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-08-02 21:43:56 -0500
committerBrent Cook <bcook@openbsd.org>2014-08-02 21:59:36 -0500
commit00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b (patch)
tree436aa6d610c361c8e4b502f2ffdcf923ab3b647c /configure.ac.tpl
parentc95574be9296988962cb1358c969144dc382061b (diff)
downloadportable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.tar.gz
portable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.tar.bz2
portable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.zip
conditionally build strnlen if needed.
it is only used by strndup prodded by Sortie@
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 b557687..87a571d 100644
--- a/configure.ac.tpl
+++ b/configure.ac.tpl
@@ -72,6 +72,11 @@ AC_CHECK_FUNC(strndup,
72 AC_DEFINE(NO_STRNDUP) 72 AC_DEFINE(NO_STRNDUP)
73 AM_CONDITIONAL(NO_STRNDUP, true)) 73 AM_CONDITIONAL(NO_STRNDUP, true))
74 74
75AC_CHECK_FUNC(strnlen,
76 AM_CONDITIONAL(NO_STRNLEN, false),
77 AC_DEFINE(NO_STRNLEN)
78 AM_CONDITIONAL(NO_STRNLEN, true))
79
75AC_CHECK_FUNC(asprintf, 80AC_CHECK_FUNC(asprintf,
76 AM_CONDITIONAL(NO_ASPRINTF, false), 81 AM_CONDITIONAL(NO_ASPRINTF, false),
77 AC_DEFINE(NO_ASPRINTF) 82 AC_DEFINE(NO_ASPRINTF)