mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
check for lrintf to avoid trouble compiling lavc!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8112 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f2a024e6c
commit
4bd3d1a5bd
18
configure
vendored
18
configure
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user