[MPlayer-cvslog] CVS: main configure,1.997,1.998
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Tue May 10 02:38:49 CEST 2005
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv30172
Modified Files:
configure
Log Message:
look if round function exist in math.h & define HAVE_ROUND. patch by Steven M. Schultz <sms at 2BSD.COM>
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.997
retrieving revision 1.998
diff -u -r1.997 -r1.998
--- configure 9 May 2005 21:39:17 -0000 1.997
+++ configure 10 May 2005 00:38:46 -0000 1.998
@@ -2410,6 +2410,19 @@
fi
echores "$_lrintf"
+echocheck "round"
+cat > $TMPC << EOF
+#include <math.h>
+int main(void) { (void) round(0.0); return 0; }
+EOF
+_round=no
+cc_check $_ld_lm && _round=yes
+if test "$_round" = yes ; then
+ _def_round="#define HAVE_ROUND 1"
+else
+ _def_round="#undef HAVE_ROUND"
+fi
+echores "$_round"
echocheck "nanosleep"
# also check for nanosleep
@@ -7406,6 +7419,9 @@
/* C99 lrintf function available */
$_def_lrintf
+/* round function is available */
+$_def_round
+
/* yes, we have inttypes.h */
#define HAVE_INTTYPES_H 1
More information about the MPlayer-cvslog
mailing list