aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--m4/check-libc.m470
1 files changed, 70 insertions, 0 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4
index 466a70e..b58f0b1 100644
--- a/m4/check-libc.m4
+++ b/m4/check-libc.m4
@@ -141,3 +141,73 @@ if test "x$ac_cv_have___va_copy" = "xyes" ; then
141 AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists]) 141 AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists])
142fi 142fi
143]) 143])
144
145AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [
146crypto_sym=$srcdir/crypto/crypto.sym
147crypto_p_sym=$srcdir/crypto/crypto_portable.sym
148echo "generating $crypto_p_sym ..."
149chmod u+w $srcdir/crypto
150cp $crypto_sym $crypto_p_sym
151chmod u+w $crypto_p_sym
152if test "x$ac_cv_func_arc4random" = "xno" ; then
153 echo arc4random >> $crypto_p_sym
154fi
155if test "x$ac_cv_func_arc4random_buf" = "xno" ; then
156 echo arc4random_buf >> $crypto_p_sym
157fi
158if test "x$ac_cv_func_arc4random_uniform" = "xno" ; then
159 echo arc4random_uniform >> $crypto_p_sym
160fi
161if test "x$ac_cv_func_asprintf" = "xno" ; then
162 echo asprintf >> $crypto_p_sym
163 echo vasprintf >> $crypto_p_sym
164fi
165if test "x$ac_cv_func_explicit_bzero" = "xno" ; then
166 echo explicit_bzero >> $crypto_p_sym
167fi
168if test "x$ac_cv_func_getentropy" = "xno" ; then
169 echo getentropy >> $crypto_p_sym
170fi
171if test "x$ac_cv_func_inet_pton" = "xno" ; then
172 echo inet_pton >> $crypto_p_sym
173fi
174if test "x$ac_cv_func_reallocarray" = "xno" ; then
175 echo reallocarray >> $crypto_p_sym
176fi
177if test "x$ac_cv_func_strlcat" = "xno" ; then
178 echo strlcat >> $crypto_p_sym
179fi
180if test "x$ac_cv_func_strlcpy" = "xno" ; then
181 echo strlcpy >> $crypto_p_sym
182fi
183if test "x$ac_cv_func_strndup" = "xno" ; then
184 echo strndup >> $crypto_p_sym
185fi
186if test "x$ac_cv_func_strnlen" = "xno" ; then
187 echo strnlen >> $crypto_p_sym
188fi
189if test "x$ac_cv_func_timegm" = "xno" ; then
190 echo timegm >> $crypto_p_sym
191fi
192if test "x$ac_cv_func_timingsafe_bcmp" = "xno" ; then
193 echo timingsafe_bcmp >> $crypto_p_sym
194fi
195if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then
196 echo timingsafe_memcmp >> $crypto_p_sym
197fi
198if test "x$HOST_OS" = "xwin" ; then
199 echo posix_perror >> $crypto_p_sym
200 echo posix_fopen >> $crypto_p_sym
201 echo posix_fgets >> $crypto_p_sym
202 echo posix_rename >> $crypto_p_sym
203 echo posix_connect >> $crypto_p_sym
204 echo posix_close >> $crypto_p_sym
205 echo posix_read >> $crypto_p_sym
206 echo posix_write >> $crypto_p_sym
207 echo posix_getsockopt >> $crypto_p_sym
208 echo posix_setsockopt >> $crypto_p_sym
209
210 grep -v BIO_s_log $crypto_p_sym > $crypto_p_sym.tmp
211 mv $crypto_p_sym.tmp $crypto_p_sym
212fi
213])