DEFS=`sed -n 's/^#undef[        ]*\([^         ]*\)/\1/p' defines.h.in`
#DEFS=read
FILES=`find .. -type f -name "*.c*" -o -name "*.h"|grep -v defines.h`

for i in $DEFS
do
	if grep -q "\<$i\>" $FILES
		then
			grep "\<$i\>" defines.h.all
		fi
done > newdefines.h.in
