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

Martin Storsjö git at libav.org
Mon Sep 10 16:23:40 CEST 2012


Module: libav
Branch: master
Commit: 88a3569917c817ecaa9982cea1f022b34d986390

Author:    Martin Storsjö <martin at martin.st>
Committer: Martin Storsjö <martin at martin.st>
Date:      Mon Sep 10 15:34:51 2012 +0300

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>

---

 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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 libav-commits mailing list