dnl * find random source
AC_MSG_CHECKING([for /dev/urandom])
-if test -c /dev/urandom -o -s /dev/urandom; then
+if test -c /dev/urandom || test -s /dev/urandom; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_DEV_URANDOM,, Define if you have /dev/urandom)
have_random_source=yes
],, -lgcrypt)
fi
-if test "$want_openssl" = "yes" -a "$have_ssl" = "no"; then
+if test "$want_openssl" = "yes" && test "$have_ssl" = "no"; then
if pkg-config --exists openssl; then
PKG_CHECK_MODULES(SSL, openssl)
CFLAGS="$CFLAGS $SSL_CFLAGS"