From: Timo Sirainen Date: Thu, 10 Jul 2003 00:40:25 +0000 (+0300) Subject: test -e isn't standard. Use test -c + -s for checking /dev/urandom. X-Git-Tag: 1.1.alpha1~4497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f598a5ce4f627f6c357b472c38f829ecd2e5cc;p=thirdparty%2Fdovecot%2Fcore.git test -e isn't standard. Use test -c + -s for checking /dev/urandom. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index c9dde80926..cd45c55122 100644 --- a/configure.in +++ b/configure.in @@ -496,7 +496,7 @@ AC_DEFINE_UNQUOTED(INDEX_ALIGN_SIZE, $index_align, Required index alignment) dnl * find random source AC_MSG_CHECKING([for /dev/urandom]) -if test -e /dev/urandom; then +if test -c /dev/urandom -o -s /dev/urandom; then AC_MSG_RESULT(yes) AC_DEFINE(HAVE_DEV_URANDOM,, Define if you have /dev/urandom) have_random_source=yes