[polypaudio-commits] r718 - /trunk/configure.ac

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 16 02:12:32 PDT 2006


Author: lennart
Date: Sun Apr 16 11:12:31 2006
New Revision: 718

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=718&root=polypaudio&view=rev
Log:
* add new check for $RANDOM_DEVICE
* move AC_SYS_LARGEFILE to avoid autoconf warning

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/configure.ac?rev=718&root=polypaudio&r1=717&r2=718&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Apr 16 11:12:31 2006
@@ -36,10 +36,6 @@
    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
 fi
 
-#### Large File-Support (LFS) ####
-
-AC_SYS_LARGEFILE
-
 #### Checks for programs. ####
 
 # CC
@@ -234,6 +230,10 @@
 
 ACX_PTHREAD
 
+#### Large File-Support (LFS) ####
+
+AC_SYS_LARGEFILE
+
 ###################################
 #      External libraries         #
 ###################################
@@ -373,6 +373,26 @@
 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               #




More information about the pulseaudio-commits mailing list