1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 0d0b768272e9a8b092826cc593a1cc6924d65995 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= <bjorn@mork.no>
Date: Thu, 21 Sep 2023 15:46:57 +0200
Subject: [PATCH] cross-compile with /dev/urandom support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The option to disable detection will also disable runtime support.
Pretty useless...
Shortcut this nonsense. We do have /dev/random and /dev/urandom
Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
configure.ac | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
--- a/configure.ac
+++ b/configure.ac
@@ -763,11 +763,8 @@ AC_ARG_WITH([random-device],
])
AC_MSG_RESULT([${ac_with_random_device=yes}])
-if test x"${ac_with_random_device}" = xyes; then
- AC_CHECK_FILE([/dev/urandom], AC_DEFINE([HAVE_DEVURANDOM], [1], [Define that you found /dev/urandom]))
- AC_CHECK_FILE([/dev/random], AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random]))
-fi
-
+AC_DEFINE([HAVE_DEVURANDOM], [1], [Define that you found /dev/urandom])
+AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random])
dnl Option to install pkg-config support files
|