summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-22 12:37:06 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-22 12:37:06 -0500
commit54259e50a5241d8cc82824fa0f0711eef36ec9f5 (patch)
tree6ff033a0fbc653d03c49f1d1ab8aad49ab02a20d /configure.ac
parent48520cf629f17243e7662e302f61ef10e849a920 (diff)
downloadportable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.tar.gz
portable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.tar.bz2
portable-54259e50a5241d8cc82824fa0f0711eef36ec9f5.zip
include a proper check for memmem when configuring unit tests
This allows the proper compatibility header definition to be exposed.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 06ecda5..961cf18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,6 +117,11 @@ AC_CHECK_FUNC(strtonum,
117 AC_DEFINE(NO_STRTONUM) 117 AC_DEFINE(NO_STRTONUM)
118 AM_CONDITIONAL(NO_STRTONUM, true)) 118 AM_CONDITIONAL(NO_STRTONUM, true))
119 119
120AC_CHECK_FUNC(memmem,
121 AM_CONDITIONAL(NO_MEMMEM, false),
122 AC_DEFINE(NO_MEMMEM)
123 AM_CONDITIONAL(NO_MEMMEM, true))
124
120AC_CHECK_FUNC(explicit_bzero, 125AC_CHECK_FUNC(explicit_bzero,
121 AM_CONDITIONAL(NO_EXPLICIT_BZERO, false), 126 AM_CONDITIONAL(NO_EXPLICIT_BZERO, false),
122 AC_DEFINE(NO_EXPLICIT_BZERO) 127 AC_DEFINE(NO_EXPLICIT_BZERO)