Make the probe for RNG sources at runtime since the configure script isn't

compatible with cross-compiling.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@744 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-04-18 15:16:24 +00:00
parent e4b2a47bb1
commit c22a0c12e4
4 changed files with 65 additions and 65 deletions

View file

@ -396,26 +396,6 @@ AC_SUBST(LIRC_CFLAGS)
AC_SUBST(LIRC_LIBS)
AM_CONDITIONAL([HAVE_LIRC], [test "x$HAVE_LIRC" = x1])
### /dev/random ###
AC_MSG_CHECKING([whether a random device is available])
rnd="no"
if test -e /dev/urandom ; then
rnd=/dev/urandom
else
if test -e /dev/random ; then
rnd=/dev/random
fi
fi
if test "x$rnd" != "no" ; then
AC_DEFINE_UNQUOTED([RANDOM_DEVICE], ["$rnd"], [Random device])
fi
AC_MSG_RESULT([$rnd])
###################################
# Output #
###################################