aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-03 15:21:12 +0100
committerKim Alvefur <zash@zash.se>2017-12-03 15:21:12 +0100
commit49ac287d45c921717ed928d73198fb10df3b7785 (patch)
tree7bf81f4d70bac58ed3522b88d14c3c0dbeb9c487 /configure
parenta2f2567e8fa4a8c9cdca1f1a909c287b2935f899 (diff)
downloadprosody-49ac287d45c921717ed928d73198fb10df3b7785.tar.gz
prosody-49ac287d45c921717ed928d73198fb10df3b7785.zip
util.crand: Make it possible to use arc4random on Linux (needs libbsd)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index c26f78ed..13f7eff3 100755
--- a/configure
+++ b/configure
@@ -528,6 +528,8 @@ OPENSSL_LIBS="-l$OPENSSL_LIB"
if [ "$PRNG" = "OPENSSL" ]; then
PRNGLIBS=$OPENSSL_LIBS
+elif [ "$PRNG" = "ARC4RANDOM" -a "$(uname)" = "Linux" ]; then
+ PRNGLIBS="-lbsd"
fi
# Write config