This is required to check whether the libraries are present with their full path.

Yes, these are defined at this stage, since the toolchain modules (and deps) are loaded already here.

Are there any alternatives to figure out the full path of the libs or another way of checking whether the FFTW interfaces are available? I think not...