2015-12-12 14:26:50 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
run()
|
|
|
|
{
|
|
|
|
echo "$@"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
incdir="${top_srcdir}/include"
|
|
|
|
|
|
|
|
for inc in $(cd $incdir; find -name '*.h' | sort | cut -c3-); do
|
2016-01-07 17:26:12 +01:00
|
|
|
cat >headers-system-gen.c <<SOURCE
|
2015-12-12 14:26:50 +01:00
|
|
|
#include <$inc>
|
|
|
|
int main() { return 0; }
|
|
|
|
SOURCE
|
|
|
|
|
|
|
|
echo "testing header $inc"
|
2023-04-17 23:59:19 +02:00
|
|
|
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o headers-system
|
2015-12-12 14:26:50 +01:00
|
|
|
echo
|
|
|
|
|
2023-04-17 23:59:19 +02:00
|
|
|
rm -f headers-system
|
2016-01-07 17:26:12 +01:00
|
|
|
rm -f headers-system-gen.*
|
2015-12-12 14:26:50 +01:00
|
|
|
done
|