From 4bd3d1a5bd4107ef59831e3dcd3aa643b8b66058 Mon Sep 17 00:00:00 2001 From: rfelker Date: Tue, 5 Nov 2002 07:34:55 +0000 Subject: [PATCH] check for lrintf to avoid trouble compiling lavc! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8112 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 +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