Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-15 12:22:06 +0400
committerMåns Rullgård <mans@mansr.com>2009-07-15 12:22:06 +0400
commitad420e25e221072710242ff50eab1ad0374f2507 (patch)
tree515a0ca51236dd5703734ded0b2b84c7e9db67da /configure
parent73c1326809b3da1e701aad46a36943e2d65db52a (diff)
Use normal check_func test for math functions
Originally committed as revision 19434 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index a700220fbc..45ccfd9013 100755
--- a/configure
+++ b/configure
@@ -2127,13 +2127,13 @@ done
check_lib math.h sin -lm
check_lib va/va.h vaInitialize -lva
-# test for C99 functions in math.h
-for func in llrint log2 lrint lrintf round roundf truncf; do
- check_exec <<EOF && enable $func || disable $func
-#include <math.h>
-int main(void) { return ($func(3.999f) > 0)?0:1; }
-EOF
-done
+check_func llrint
+check_func log2
+check_func lrint
+check_func lrintf
+check_func round
+check_func roundf
+check_func truncf
# these are off by default, so fail if requested and not available
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32