[FFmpeg-cvslog] configure: Don't try to enable the log2 function on msvcrt

Martin Storsjö git at videolan.org
Tue Sep 11 15:34:43 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Sep 10 15:34:51 2012 +0300| [88a3569917c817ecaa9982cea1f022b34d986390] | committer: Martin Storsjö

configure: Don't try to enable the log2 function on msvcrt

Some msvcrt versions (the static 64 bit libc in MSVC 10) have
a log2 function, but there is no declaration for it in the headers.
Therefore, the normal configure check might find it, but it can fail
during build or at runtime, depending on whether implicit function
declarations are an error or not.

Therefore simply ignore this function on this platform.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88a3569917c817ecaa9982cea1f022b34d986390
---

 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index ae8e765..d5809aa 100755
--- a/configure
+++ b/configure
@@ -1381,6 +1381,8 @@ need_memalign="altivec neon sse"
 
 symver_if_any="symver_asm_label symver_gnu_asm"
 
+log2_deps="!msvcrt"
+
 # subsystems
 dct_select="rdft"
 mdct_select="fft"



More information about the ffmpeg-cvslog mailing list