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

6
configure vendored
View File

@ -6376,6 +6376,11 @@ done
UNAME=`uname`
if [ $UNAME != "AROS" ]; then
if test -c "/dev/random"; then
$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
@ -6394,6 +6399,7 @@ $as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5

View File

@ -171,6 +171,16 @@ dnl ##############################################
dnl check for various RNG/PRNG devices
dnl ##############################################
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
@ -183,6 +193,7 @@ if test -c "/dev/arandom"; then
AC_DEFINE(HAVE_DEV_ARANDOM, [1], [Has /dev/arandom])
fi
fi
dnl ##############################################
dnl Checks for various platform specific libraries