diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-16 19:09:06 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:10:47 +0200 |
commit | 5b62426443531d1a58732782a2fadb5765f99d80 (patch) | |
tree | de45ca94393ee191084118357a9f076099aafe8b | |
parent | 53bb25e2e733a2a6756b3ec7e4ab549cabab40c8 (diff) | |
download | mpv-5b62426443531d1a58732782a2fadb5765f99d80.tar.bz2 mpv-5b62426443531d1a58732782a2fadb5765f99d80.tar.xz |
configure: Add header_check convenience function
Used to check for header availability.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31436 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -81,6 +81,15 @@ cxx_check() { compile_check $TMPCPP $@ -lstdc++ } +header_check() { + cat > $TMPC << EOF +#include <$1> +int main(void) { return 0; } +EOF + shift + compile_check $TMPC $@ +} + yasm_check() { echo >> "$TMPLOG" cat "$TMPS" >> "$TMPLOG" |