[vlc-devel] commit: Fix lrintf check ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 23 19:43:23 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 20:43:17 2009 +0300| [1f579327087ca62de0b51b6f0120d7ae8ee38639] | committer: Rémi Denis-Courmont 

Fix lrintf check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f579327087ca62de0b51b6f0120d7ae8ee38639
---

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7be1bfa..e461bbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -561,7 +561,7 @@ dnl Check for system libs needed
 need_libc=false
 
 dnl Check for usual libc functions
-AC_CHECK_FUNCS([gettimeofday isatty sigrelse getpwuid_r memalign posix_memalign if_nametoindex getenv putenv setenv ctime_r lrintf daemon fork lstat posix_fadvise posix_madvise uselocale])
+AC_CHECK_FUNCS([gettimeofday isatty sigrelse getpwuid_r memalign posix_memalign if_nametoindex getenv putenv setenv ctime_r daemon fork lstat posix_fadvise posix_madvise uselocale])
 AC_FUNC_ALLOCA
 AC_CHECK_FUNCS(fcntl)
 AC_REPLACE_FUNCS([asprintf atof atoll getcwd gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtoll vasprintf swab])
@@ -732,6 +732,10 @@ AC_CHECK_LIB(m,exp,[
 AC_CHECK_LIB(m,round,[
   VLC_ADD_LIBS([dbus],[-lm])
 ])
+AC_CHECK_LIB(m,lrintf, [
+  AC_DEFINE(HAVE_LRINTF, 1, [Define to 1 if you have the lrintf function])
+  VLC_ADD_LIBS([skins2],[-lm])
+])
 AC_CHECK_LIB(m,sqrtf,[
   VLC_ADD_LIBS([x264],[-lm])
 ])




More information about the vlc-devel mailing list