diff --git a/configure b/configure index 2d13e8b..6a9c917 100755 --- a/configure +++ b/configure @@ -6376,24 +6376,30 @@ done -if test -c "/dev/random"; then +UNAME=`uname` + + +if [ $UNAME != "AROS" ]; then + + if test -c "/dev/random"; then $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h -fi + fi -if test -c "/dev/urandom"; then + if test -c "/dev/urandom"; then $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h -fi + fi -if test -c "/dev/arandom"; then + if test -c "/dev/arandom"; then $as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h -fi + fi +fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5 diff --git a/configure.ac b/configure.ac index ca3439d..3876be6 100644 --- a/configure.ac +++ b/configure.ac @@ -171,18 +171,29 @@ dnl ############################################## dnl check for various RNG/PRNG devices dnl ############################################## -if test -c "/dev/random"; then +UNAME=`uname` + +dnl ############################################## +dnl AROS pops up a "Please insert disk" dialog for /dev +dnl if script looks for devices (which don't exist) +dnl so don't even try looking. +dnl ############################################## + +if [[ $UNAME != "AROS" ]]; then + + if test -c "/dev/random"; then AC_DEFINE(HAVE_DEV_RANDOM, [1], [Has /dev/random]) -fi + fi -if test -c "/dev/urandom"; then + if test -c "/dev/urandom"; then AC_DEFINE(HAVE_DEV_URANDOM, [1], [Has /dev/urandom]) -fi + fi -if test -c "/dev/arandom"; then + if test -c "/dev/arandom"; then AC_DEFINE(HAVE_DEV_ARANDOM, [1], [Has /dev/arandom]) -fi + fi +fi dnl ############################################## dnl Checks for various platform specific libraries