telephony/net/freeswitch/patches/libs-srtp-configure-ac.patch
Mazi Lo 24f45c9b31 FreeSWITCH:
1. Update to FS git 6eb59c711989774fb797d1c447e3d63aac84826b.
  2. Disable mod_perl due to recent changes in perl package.
  3. Disable mod_verto (required mod_perl).
  4. Remove numbering scheme from patches.

Signed-off-by: Mazi Lo <openwrt.mazilo@recursor.net>
2015-04-07 11:09:48 -04:00

18 lines
575 B
Diff

--- a/libs/srtp/configure.ac
+++ b/libs/srtp/configure.ac
@@ -130,9 +130,12 @@ if test "$enable_kernel_linux" = "yes";
fi
AC_MSG_RESULT($enable_kernel_linux)
-dnl Check for /dev/urandom
-AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom,
- [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)])
+
+dnl Check for /dev/urandom ONLY when NOT cross compiling
+if test "$cross_compiling" != yes; then
+ AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom,
+ [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)])
+fi
dnl Checks for header files.
AC_HEADER_STDC