From 048625cf2b36a91bcf04c5a1adc02fc5803491ca Mon Sep 17 00:00:00 2001 From: kinichiro Date: Sat, 22 Apr 2017 23:08:17 +0900 Subject: Add freezero support --- m4/check-libc.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index 066b394..d9b7b88 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 @@ -2,11 +2,12 @@ AC_DEFUN([CHECK_LIBC_COMPAT], [ # Check for libc headers AC_CHECK_HEADERS([err.h readpassphrase.h]) # Check for general libc functions -AC_CHECK_FUNCS([asprintf getpagesize inet_ntop inet_pton memmem readpassphrase]) -AC_CHECK_FUNCS([reallocarray recallocarray]) +AC_CHECK_FUNCS([asprintf freezero getpagesize inet_ntop inet_pton memmem]) +AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) AC_CHECK_FUNCS([timegm _mkgmtime]) AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) +AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes]) AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes]) AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes]) AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes]) @@ -170,6 +171,9 @@ fi if test "x$ac_cv_func_explicit_bzero" = "xno" ; then echo explicit_bzero >> $crypto_p_sym fi +if test "x$ac_cv_func_freezero" = "xno" ; then + echo freezero >> $crypto_p_sym +fi if test "x$ac_cv_func_inet_pton" = "xno" ; then echo inet_pton >> $crypto_p_sym fi -- cgit v1.2.3-55-g6feb