then :
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
+fi
+ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
+if test "x$ac_cv_func_getentropy" = xyes
+then :
+ printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
+
fi
AC_PROG_RANLIB
AC_PROG_INSTALL
-AC_CHECK_FUNCS(poll)
+AC_CHECK_FUNCS(poll getentropy)
ADNS_C_GETFUNC(socket,socket)
ADNS_C_GETFUNC(inet_ntoa,nsl)
#undef HAVEUSE_RPCTYPES_H
+/* Define to 1 if you have the 'getentropy' function. */
+#undef HAVE_GETENTROPY
+
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H