fixing pull/126, part 5; improve check-configure makefile