#!/bin/sh ############################################################ # Copyright (c) 2009-2010 by Aleksey Cheusov # # See LICENSE file in the distribution. ############################################################ set -e LC_ALL=C export LC_ALL ################################################## # options usage (){ cat < "$tmpc" < int main () { return 0; } EOF if $CC -c -o "${tmpo}" $CPPFLAGS $CFLAGS "${tmpc}" 2>"${tmperr}" then echo 1 else echo 0 fi } check_and_cache "checking for header $1" "$cache" "$@" ################################################## # clean-ups cleanup ################################################## # finishing if test "$ret" -eq 1; then printme 'yes\n' 1>&2 else printme 'no\n' 1>&2 fi echo $ret