Don't look for stuff in /dev on AROS during configure, as this pops up an ugly 'Please insert disk' dialog box.

This commit is contained in:
Brian Cox 2017-09-26 00:46:56 -07:00
parent 249c2cd33f
commit 9bdb855d9a
2 changed files with 29 additions and 12 deletions

18
configure vendored
View File

@ -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

View File

@ -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