@ -668,6 +668,17 @@ int main(void){ $func(); }
EOF
EOF
}
}
check_mathfunc(){
log check_func "$@"
func=$1
shift
disable $func
check_ld "$@" <<EOF && enable $func
#include <math.h>
int main(void){ $func(0); return 0; }
EOF
}
check_func_headers(){
check_func_headers(){
log check_func_headers "$@"
log check_func_headers "$@"
headers=$1
headers=$1
@ -2519,16 +2530,16 @@ done
check_lib math.h sin -lm
check_lib math.h sin -lm
check_lib va/va.h vaInitialize -lva
check_lib va/va.h vaInitialize -lva
check_func exp2
check_math func exp2
check_func exp2f
check_math func exp2f
check_func llrint
check_math func llrint
check_func log2
check_math func log2
check_func log2f
check_math func log2f
check_func lrint
check_math func lrint
check_func lrintf
check_math func lrintf
check_func round
check_math func round
check_func roundf
check_math func roundf
check_func truncf
check_math func truncf
# these are off by default, so fail if requested and not available
# these are off by default, so fail if requested and not available
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32