From: Daniel Stenberg Date: Mon, 30 May 2011 09:57:28 +0000 (+0200) Subject: configure.ac: skip /dev/urandom check when cross-compiling X-Git-Tag: curl-7_21_7~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a87102c7923bb29302b6ad9f3811af92e19b4e91;p=thirdparty%2Fcurl.git configure.ac: skip /dev/urandom check when cross-compiling Bug: http://curl.haxx.se/bug/view.cgi?id=3307835 --- diff --git a/configure.ac b/configure.ac index 0a155eb37a..819008eeca 100644 --- a/configure.ac +++ b/configure.ac @@ -1624,8 +1624,12 @@ if test X"$OPENSSL_ENABLED" = X"1"; then [read randomness from FILE (default=/dev/urandom)]), [ RANDOM_FILE="$withval" ], [ - dnl Check for random device - AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] ) + if test x$cross_compiling != xyes; then + dnl Check for random device + AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] ) + else + AC_MSG_WARN([skipped the /dev/urandom detection when cross-compiling]) + fi ] ) if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then