aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-03-16 19:23:36 -0500
committerBrent Cook <bcook@openbsd.org>2017-03-16 19:23:36 -0500
commitd5b247cc4fe0f3dd6cc4f7084af7f290ba41e669 (patch)
treeecff511a1a175c88222a9c83872920d512671717 /m4
parent8f69fe98dba08e22dd1341cbaad91745c8bf7ad7 (diff)
parentc61c9821e8417243a5a0cf691415f5e5626f2b3b (diff)
downloadportable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.gz
portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.bz2
portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.zip
Land #297, Add recallocarray
Diffstat (limited to 'm4')
-rw-r--r--m4/check-libc.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4
index 53ffce6..f9ddf73 100644
--- a/m4/check-libc.m4
+++ b/m4/check-libc.m4
@@ -2,15 +2,18 @@ AC_DEFUN([CHECK_LIBC_COMPAT], [
2# Check for libc headers 2# Check for libc headers
3AC_CHECK_HEADERS([err.h readpassphrase.h]) 3AC_CHECK_HEADERS([err.h readpassphrase.h])
4# Check for general libc functions 4# Check for general libc functions
5AC_CHECK_FUNCS([asprintf inet_ntop inet_pton memmem readpassphrase]) 5AC_CHECK_FUNCS([asprintf getpagesize inet_ntop inet_pton memmem readpassphrase])
6AC_CHECK_FUNCS([reallocarray strlcat strlcpy strndup strnlen strsep strtonum]) 6AC_CHECK_FUNCS([reallocarray recallocarray])
7AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
7AC_CHECK_FUNCS([timegm _mkgmtime]) 8AC_CHECK_FUNCS([timegm _mkgmtime])
8AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) 9AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
10AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes])
9AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes]) 11AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes])
10AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes]) 12AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes])
11AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) 13AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes])
12AM_CONDITIONAL([HAVE_READPASSPHRASE], [test "x$ac_cv_func_readpassphrase" = xyes]) 14AM_CONDITIONAL([HAVE_READPASSPHRASE], [test "x$ac_cv_func_readpassphrase" = xyes])
13AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes]) 15AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes])
16AM_CONDITIONAL([HAVE_RECALLOCARRAY], [test "x$ac_cv_func_recallocarray" = xyes])
14AM_CONDITIONAL([HAVE_STRLCAT], [test "x$ac_cv_func_strlcat" = xyes]) 17AM_CONDITIONAL([HAVE_STRLCAT], [test "x$ac_cv_func_strlcat" = xyes])
15AM_CONDITIONAL([HAVE_STRLCPY], [test "x$ac_cv_func_strlcpy" = xyes]) 18AM_CONDITIONAL([HAVE_STRLCPY], [test "x$ac_cv_func_strlcpy" = xyes])
16AM_CONDITIONAL([HAVE_STRNDUP], [test "x$ac_cv_func_strndup" = xyes]) 19AM_CONDITIONAL([HAVE_STRNDUP], [test "x$ac_cv_func_strndup" = xyes])
@@ -173,6 +176,9 @@ fi
173if test "x$ac_cv_func_reallocarray" = "xno" ; then 176if test "x$ac_cv_func_reallocarray" = "xno" ; then
174 echo reallocarray >> $crypto_p_sym 177 echo reallocarray >> $crypto_p_sym
175fi 178fi
179if test "x$ac_cv_func_recallocarray" = "xno" ; then
180 echo recallocarray >> $crypto_p_sym
181fi
176if test "x$ac_cv_func_strlcat" = "xno" ; then 182if test "x$ac_cv_func_strlcat" = "xno" ; then
177 echo strlcat >> $crypto_p_sym 183 echo strlcat >> $crypto_p_sym
178fi 184fi