check-instincludes.sh revision 247bf378605811d695e968dbe930a7fc45c0038e
#
*
*
# $Id$
#
# Check the installed bind9 header files to make sure that no header
# depends on another header having been included first, and that
# they all compile as C++.
#
case $# in
1) ;;
*) echo "usage: sh util/check-instincludes.sh <prefix>" >&2;
exit 1;
;;
esac
prefix=$1
test -f ./configure.in || {
echo "$0: run from top of bind9 source tree" >&2;
exit 1;
}
status=0
echo "Checking header independence and C++ compatibility..."
# Make a list of header files.
# Check each header.
while read h
do
echo " - <$h>"
# Build a test program.
cat <<EOF >test.cc
#include <$h>
EOF
# Compile the test program.
if
then
:
else
status=1
fi
done <$tmp
exit $status