aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-03-16 18:53:12 -0500
committerBrent Cook <bcook@openbsd.org>2017-03-16 18:53:12 -0500
commit8622dc7536040a041d709a7d2e6717735c84e4da (patch)
tree84527ca95ea5d5cedc9175a331e7dbe283091058 /m4
parent27f08790305216e5730c5bb5352db9f616c4c56f (diff)
parent5297e9d486d4c0119e697d80eb53c8ef298f0bd7 (diff)
downloadportable-8622dc7536040a041d709a7d2e6717735c84e4da.tar.gz
portable-8622dc7536040a041d709a7d2e6717735c84e4da.tar.bz2
portable-8622dc7536040a041d709a7d2e6717735c84e4da.zip
Land #288, update conditions under which getentropy, arc4random* are exported
Diffstat (limited to 'm4')
-rw-r--r--m4/check-libc.m412
1 files changed, 4 insertions, 8 deletions
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 ..."
152chmod u+w $srcdir/crypto 152chmod u+w $srcdir/crypto
153cp $crypto_sym $crypto_p_sym 153cp $crypto_sym $crypto_p_sym
154chmod u+w $crypto_p_sym 154chmod u+w $crypto_p_sym
155if test "x$ac_cv_func_arc4random" = "xno" ; then
156 echo arc4random >> $crypto_p_sym
157fi
158if test "x$ac_cv_func_arc4random_buf" = "xno" ; then 155if test "x$ac_cv_func_arc4random_buf" = "xno" ; then
156 echo arc4random >> $crypto_p_sym
159 echo arc4random_buf >> $crypto_p_sym 157 echo arc4random_buf >> $crypto_p_sym
160fi
161if test "x$ac_cv_func_arc4random_uniform" = "xno" ; then
162 echo arc4random_uniform >> $crypto_p_sym 158 echo arc4random_uniform >> $crypto_p_sym
159 if test "x$ac_cv_func_getentropy" = "xno" ; then
160 echo getentropy >> $crypto_p_sym
161 fi
163fi 162fi
164if test "x$ac_cv_func_asprintf" = "xno" ; then 163if test "x$ac_cv_func_asprintf" = "xno" ; then
165 echo asprintf >> $crypto_p_sym 164 echo asprintf >> $crypto_p_sym
@@ -168,9 +167,6 @@ fi
168if test "x$ac_cv_func_explicit_bzero" = "xno" ; then 167if test "x$ac_cv_func_explicit_bzero" = "xno" ; then
169 echo explicit_bzero >> $crypto_p_sym 168 echo explicit_bzero >> $crypto_p_sym
170fi 169fi
171if test "x$ac_cv_func_getentropy" = "xno" ; then
172 echo getentropy >> $crypto_p_sym
173fi
174if test "x$ac_cv_func_inet_pton" = "xno" ; then 170if test "x$ac_cv_func_inet_pton" = "xno" ; then
175 echo inet_pton >> $crypto_p_sym 171 echo inet_pton >> $crypto_p_sym
176fi 172fi