Make configure portable between automake 1.11 and later versions
Testing suggestion from automake mailing list