summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b58c53a61..57384c14d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -231,6 +231,11 @@ AC_SUBST(LIBFFMPEG_CFLAGS)
LIBMPEG2_CFLAGS=""
LIBFFMPEG_CFLAGS="-DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_ENCODERS -DCONFIG_DECODERS"
+AC_CHECK_DECL(lrintf,[AC_DEFINE(HAVE_LRINTF,1,[Define this if the 'lrintf' function is declared in math.h])],,[
+#define _ISOC9X_SOURCE
+#include "math.h"
+])
+
AC_ARG_ENABLE(altivec,
[ --disable-altivec Use assembly codes for Motorola 74xx CPUs],
enable_altivec=no,