configure: Add function to check for particular function in header

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31593 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego
2010-11-02 04:13:00 +02:00
committed by Uoti Urpala
parent 9ac700bc1a
commit bd5aaa5468
Vendored
+9
View File
@@ -81,6 +81,15 @@ cxx_check() {
compile_check $TMPCPP $@ -lstdc++
}
function_check() {
cat > $TMPC << EOF
#include <$1>
int main(void) { $2; }
EOF
shift
compile_check $TMPC $@
}
header_check() {
cat > $TMPC << EOF
#include <$1>