AT_SETUP([Checking for present config.h include]) AT_KEYWORDS([CodeCheck,MemDebug]) m4_include(atlocal) ok="" echo `pwd` echo "${#ok[*]} are ok to not contain config.h: ${ok[*]}." liste=`find ${abs_top_srcdir}/src -name '*.?pp'` for file in $liste do # check whether its one of the excluded ones found=0 for item in $ok do if test "$item" == "`basename $file`" then found=1 break fi done # if not, check whether it contains the include if test $found -eq 0 then AT_CHECK([egrep -q '^#include.*config.h' $file], 0, [ignore], [ignore], [echo "Could not find config.h include in $file."]) fi done AT_CLEANUP