1. Download; untar and configure
./configure FFT_LIBS="-L/opt/apps/fftw/3.2.2/lib -lfftw3f" BLAS_LIBS="-L/opt/apps/ibm/essl/5.1/lib64 -lessl" LAPACK_LIBS="-L/opt/apps/ibm/essl/5.1/lib64 -lessl -llapack" LIBDIRS="/opt/apps/fftw/3.2.2/lib /opt/apps/ibm/essl/5.1/lib64/" MPIF90=mpif90 CFLAGS="-O3 -q64" FC=mpif90 F77=mpif90 F90=mpif90 CC=mpicc FFLAGS="-q64" --enable-parallel
2. Edit make.sys and replace F90, F77, CC with xlf90_r, xlf_r and xlc_r respectively.
3. make all