sh ./configure --with-purify
This will prefix $(CC) with a literal "purify", so the purify program must be in your path for this to work.