summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-05 07:34:55 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-05 07:34:55 +0000
commit4bd3d1a5bd4107ef59831e3dcd3aa643b8b66058 (patch)
tree6205633ec6bf03a53f6255ceafadba2458c89910 /configure
parent5f2a024e6cc7fc352bfa20af83a98f99337ae59e (diff)
downloadmpv-4bd3d1a5bd4107ef59831e3dcd3aa643b8b66058.tar.bz2
mpv-4bd3d1a5bd4107ef59831e3dcd3aa643b8b66058.tar.xz
check for lrintf to avoid trouble compiling lavc!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8112 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index d1fd9dedad..c115175070 100755
--- a/configure
+++ b/configure
@@ -1575,6 +1575,21 @@ fi
echores "$_posix4"
+echocheck "lrintf"
+cat > $TMPC << EOF
+#include <math.h>
+int main(void) { (void) lrintf(0.0); return 0; }
+EOF
+_lrintf=no
+cc_check -lm && _lrintf=yes
+if test "$_lrintf" = yes ; then
+ _def_lrintf="#define HAVE_LRINTF 1"
+else
+ _def_lrintf="#undef HAVE_LRINTF"
+fi
+echores "$_lrintf"
+
+
echocheck "nanosleep"
# also check for nanosleep
cat > $TMPC << EOF
@@ -4863,6 +4878,9 @@ $_def_vcd
**
*---------------------------------------------------------------------------*/
+/* C99 lrintf function available */
+$_def_lrintf
+
/* nanosleep support */
$_def_nanosleep