Move dependency generation commands into configure.