LAPACK_LIBS="-L/lapack-folder -llapack -lrefblas"
./configure CC=$CC F77=$F77 LAPACK_LIBS="$LAPACK_LIBS" \
BLAS_LIBS="$BLAS_LIBS" FFT_LIBS="$FL" --enable-openmp
If you don't have fftw libs type in a terminal "sudo port install fftw-3". Follow the steps from previous post to get consistent mpi commands. iii), Build your module typing "make X", where X = pw, ph, pwcond, etc. Note: There is an ATLAS package that can be installed with port, but I don't know yet how much it will speed up the computations.