Ah it turns out that I can ask PETSc to do it.

On 24 May 2020, at 17:10, Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:


Hi folks,
  I need to build a Firedrake-compatible FFTW. Where can I find all the correct C compiler libraries and mpich etc?

all the best
--cjc

Professor Colin Cotter (he/him)
Department of Mathematics
755, Huxley Building
Imperial College London
South Kensington Campus
United Kingdom of Great Britain and Northern Ireland
+44 2075943468