Use a configure command instead of working things out in the Makefile.