comparison configure @ 31527:0ac68f6f3974

Add convenience function to check for the availability of system functions.
author diego
date Thu, 01 Jul 2010 10:14:30 +0000
parents ec8cb01e57d1
children 66e766e31d92
comparison
equal deleted inserted replaced
31526:ec8cb01e57d1 31527:0ac68f6f3974
77 compile_check $TMPC $@ 77 compile_check $TMPC $@
78 } 78 }
79 79
80 cxx_check() { 80 cxx_check() {
81 compile_check $TMPCPP $@ -lstdc++ 81 compile_check $TMPCPP $@ -lstdc++
82 }
83
84 function_check() {
85 cat > $TMPC << EOF
86 #include <$1>
87 int main(void) { $2; }
88 EOF
89 shift
90 compile_check $TMPC $@
82 } 91 }
83 92
84 header_check() { 93 header_check() {
85 cat > $TMPC << EOF 94 cat > $TMPC << EOF
86 #include <$1> 95 #include <$1>