def METHOD_NAME(libname):
    """Helper function to check whether FFTW library with specified name exists."""
    return any(os.path.exists(os.path.join(d, "lib%s.a" % libname)) for d in fft_lib_dirs)