aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2017-04-22 23:08:17 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2017-04-22 23:37:20 +0900
commit048625cf2b36a91bcf04c5a1adc02fc5803491ca (patch)
tree5f328c5237ea412b17c7c7f3d5c8132115c7e790 /m4
parent9d2418ae3a0b9577fdea0bac90802d8c0147f7f4 (diff)
downloadportable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.tar.gz
portable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.tar.bz2
portable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.zip
Add freezero support
Diffstat (limited to 'm4')
-rw-r--r--m4/check-libc.m48
1 files changed, 6 insertions, 2 deletions
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], [
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 getpagesize inet_ntop inet_pton memmem readpassphrase]) 5AC_CHECK_FUNCS([asprintf freezero getpagesize inet_ntop inet_pton memmem])
6AC_CHECK_FUNCS([reallocarray recallocarray]) 6AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray])
7AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) 7AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
8AC_CHECK_FUNCS([timegm _mkgmtime]) 8AC_CHECK_FUNCS([timegm _mkgmtime])
9AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) 9AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
10AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes])
10AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes]) 11AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes])
11AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes]) 12AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes])
12AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes]) 13AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes])
@@ -170,6 +171,9 @@ fi
170if test "x$ac_cv_func_explicit_bzero" = "xno" ; then 171if test "x$ac_cv_func_explicit_bzero" = "xno" ; then
171 echo explicit_bzero >> $crypto_p_sym 172 echo explicit_bzero >> $crypto_p_sym
172fi 173fi
174if test "x$ac_cv_func_freezero" = "xno" ; then
175 echo freezero >> $crypto_p_sym
176fi
173if test "x$ac_cv_func_inet_pton" = "xno" ; then 177if test "x$ac_cv_func_inet_pton" = "xno" ; then
174 echo inet_pton >> $crypto_p_sym 178 echo inet_pton >> $crypto_p_sym
175fi 179fi