From 289406c7594c1aba6b637123e539716d2eb53ee5 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Mon, 27 Oct 2003 21:43:20 +0000 Subject: Add check for lrintf which would otherwise be redefined in libavcodec/dsputil.h CVS patchset: 5620 CVS date: 2003/10/27 21:43:20 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit v1.2.3