# HG changeset patch # User diego # Date 1277979270 0 # Node ID 0ac68f6f3974ae08a8fa48506d3e08017831aa11 # Parent ec8cb01e57d1f8d2573202be27a572d0ac43168a Add convenience function to check for the availability of system functions. diff -r ec8cb01e57d1 -r 0ac68f6f3974 configure --- a/configure Thu Jul 01 09:00:54 2010 +0000 +++ b/configure Thu Jul 01 10:14:30 2010 +0000 @@ -81,6 +81,15 @@ 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>