History

configure: fix tests for 2-arg math functions

Mans Rullgard committed 14 years ago

Commit 1aa07aa1 parent ca7f5911 file · +9 −3Browse files

Unified · Split

configure+9−3
@@ -785,11 +785,13 @@ EOF · 784 unmodified lines
785check_mathfunc(){785check_mathfunc(){
786 log check_mathfunc "$@"786 log check_mathfunc "$@"
787 func=$1787 func=$1
788 shift788 narg=$2
789 shift 2
790 test $narg = 2 && args="f, g" || args="f"
789 disable $func791 disable $func
790 check_ld "$@" <<EOF && enable $func792 check_ld "$@" <<EOF && enable $func
791#include <math.h>793#include <math.h>
792float foo(float f) { return $func(f); }794float foo(float f, float g) { return $func($args); }
793int main(void){ return 0; }795int main(void){ return 0; }
794EOF796EOF
795}797}
@@ -3306,8 +3308,12 @@ done · 2510 unmodified lines
3306check_lib math.h sin -lm && LIBM="-lm"3308check_lib math.h sin -lm && LIBM="-lm"
3307enabled vaapi && require vaapi va/va.h vaInitialize -lva3309enabled vaapi && require vaapi va/va.h vaInitialize -lva
3308 3310
3311atan2f_args=2
3312ldexpf_args=2
3313powf_args=2
3314
3309for func in $MATH_FUNCS; do3315for func in $MATH_FUNCS; do
3310 check_mathfunc $func3316 eval check_mathfunc $func \${${func}_args:-1}
3311done3317done
3312 3318
3313# these are off by default, so fail if requested and not available3319# these are off by default, so fail if requested and not available

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t