From 5297e9d486d4c0119e697d80eb53c8ef298f0bd7 Mon Sep 17 00:00:00 2001 From: kinichiro Date: Mon, 20 Feb 2017 10:28:49 +0900 Subject: Fix condition of arc4random* and getentropy for Cygwin build - Fix the condition of exporting getentropy - Modify the CMake condition of including arc4random_uniform as same as autoconf --- m4/check-libc.m4 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'm4') diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index c66364e..53ffce6 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 @@ -152,14 +152,13 @@ echo "generating $crypto_p_sym ..." chmod u+w $srcdir/crypto cp $crypto_sym $crypto_p_sym chmod u+w $crypto_p_sym -if test "x$ac_cv_func_arc4random" = "xno" ; then - echo arc4random >> $crypto_p_sym -fi if test "x$ac_cv_func_arc4random_buf" = "xno" ; then + echo arc4random >> $crypto_p_sym echo arc4random_buf >> $crypto_p_sym -fi -if test "x$ac_cv_func_arc4random_uniform" = "xno" ; then echo arc4random_uniform >> $crypto_p_sym + if test "x$ac_cv_func_getentropy" = "xno" ; then + echo getentropy >> $crypto_p_sym + fi fi if test "x$ac_cv_func_asprintf" = "xno" ; then echo asprintf >> $crypto_p_sym @@ -168,9 +167,6 @@ fi if test "x$ac_cv_func_explicit_bzero" = "xno" ; then echo explicit_bzero >> $crypto_p_sym fi -if test "x$ac_cv_func_getentropy" = "xno" ; then - echo getentropy >> $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