summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bind/acconfig.h3
-rw-r--r--usr.sbin/bind/config.h.in3
-rw-r--r--usr.sbin/bind/configure.in7
3 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/bind/acconfig.h b/usr.sbin/bind/acconfig.h
index e479a5541f2..58e90bc5d92 100644
--- a/usr.sbin/bind/acconfig.h
+++ b/usr.sbin/bind/acconfig.h
@@ -76,6 +76,9 @@
/* define if gai_strerror() exists */
#undef HAVE_GAISTRERROR
+/* define if arc4random() exists */
+#undef HAVE_ARC4RANDOM
+
/* define if pthread_setconcurrency() should be called to tell the
* OS how many threads we might want to run.
*/
diff --git a/usr.sbin/bind/config.h.in b/usr.sbin/bind/config.h.in
index 8ff97bff148..07b6bb99a56 100644
--- a/usr.sbin/bind/config.h.in
+++ b/usr.sbin/bind/config.h.in
@@ -87,6 +87,9 @@
/* define if gai_strerror() exists */
#undef HAVE_GAISTRERROR
+/* define if arc4random() exists */
+#undef HAVE_ARC4RANDOM
+
/* define if pthread_setconcurrency() should be called to tell the
* OS how many threads we might want to run.
*/
diff --git a/usr.sbin/bind/configure.in b/usr.sbin/bind/configure.in
index e259a153aa3..b54ba18f6a5 100644
--- a/usr.sbin/bind/configure.in
+++ b/usr.sbin/bind/configure.in
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-AC_REVISION($Revision: 1.1 $)
+AC_REVISION($Revision: 1.2 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
@@ -479,6 +479,11 @@ case "$use_randomdev" in
esac
#
+# Do we have arc4random() ?
+#
+AC_CHECK_FUNC(arc4random, AC_DEFINE(HAVE_ARC4RANDOM))
+
+#
# Begin pthreads checking.
#
# First, decide whether to use multithreading or not.