configure: Don't try to enable the log2 function on msvcrt
authorMartin Storsjö <martin@martin.st>
Mon, 10 Sep 2012 12:34:51 +0000 (15:34 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 10 Sep 2012 14:23:32 +0000 (17:23 +0300)
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@martin.st>
configure

index ae8e765..d5809aa 100755 (executable)
--- 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"