changeset 8111:b3b2951cbc1c

check for lrintf to avoid trouble compiling lavc!
author rfelker
date Tue, 05 Nov 2002 07:34:55 +0000
parents 884d233c25d5
children 6d97e935a071
files configure
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Nov 05 01:21:35 2002 +0000
+++ b/configure	Tue Nov 05 07:34:55 2002 +0000
@@ -1575,6 +1575,21 @@
 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 @@
 **
 *---------------------------------------------------------------------------*/
 
+/* C99 lrintf function available */
+$_def_lrintf
+
 /* nanosleep support */
 $_def_nanosleep