summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-10 00:38:46 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-10 00:38:46 +0000
commitf30e57671945c338258ea48ddb3f94f9a82fad7f (patch)
treef48e4a66f9e4a8a12c26819e210aa978324a8061 /configure
parent0116001cd569bc7ee5704b61319ecc60bed33b22 (diff)
downloadmpv-f30e57671945c338258ea48ddb3f94f9a82fad7f.tar.bz2
mpv-f30e57671945c338258ea48ddb3f94f9a82fad7f.tar.xz
look if round function exist in math.h & define HAVE_ROUND. patch by Steven M. Schultz <sms@2BSD.COM>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 3b28ee9227..0c23ccc56e 100755
--- a/configure
+++ b/configure
@@ -2410,6 +2410,19 @@ else
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 @@ $_def_vcd
/* C99 lrintf function available */
$_def_lrintf
+/* round function is available */
+$_def_round
+
/* yes, we have inttypes.h */
#define HAVE_INTTYPES_H 1