Move first_prereq test to m4 code.