updated configure to do the prerequisite checking