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
785785 check_mathfunc(){
786786 log check_mathfunc "$@"
787787 func=$1
788− shift
788+ narg=$2
789+ shift 2
790+ test $narg = 2 && args="f, g" || args="f"
789791 disable $func
790792 check_ld "$@" <<EOF && enable $func
791793 #include <math.h>
792−float foo(float f) { return $func(f); }
794+float foo(float f, float g) { return $func($args); }
793795 int main(void){ return 0; }
794796 EOF
795797 }
@@ -3306,8 +3308,12 @@ done · 2510 unmodified lines
33063308 check_lib math.h sin -lm && LIBM="-lm"
33073309 enabled vaapi && require vaapi va/va.h vaInitialize -lva
33083310
3311+atan2f_args=2
3312+ldexpf_args=2
3313+powf_args=2
3314+
33093315 for func in $MATH_FUNCS; do
3310− check_mathfunc $func
3316+ eval check_mathfunc $func \${${func}_args:-1}
33113317 done
33123318
33133319 # 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