diff options
-rw-r--r-- | BLAS.sh | 12 | ||||
-rw-r--r-- | configuration.ccl | 2 |
2 files changed, 12 insertions, 2 deletions
@@ -58,7 +58,17 @@ if [ -z "${BLAS_DIR}" -o "${BLAS_DIR}" = 'BUILD' ]; then TARNAME=lapack-3.3.1 SRCDIR=$(dirname $0) BUILD_DIR=${SCRATCH_BUILD}/build/${THORN} - INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN} + if [ -z "${BLAS_INSTALL_DIR}" ]; then + echo "BEGIN MESSAGE" + echo "BLAS install directory, BLAS_INSTALL_DIR, not set. Installing in the default configuration location. " + echo "END MESSAGE" + INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN} + else + echo "BEGIN MESSAGE" + echo "BLAS install directory, BLAS_INSTALL_DIR, selected. Installing BLAS at ${BLAS_INSTALL_DIR} " + echo "END MESSAGE" + INSTALL_DIR=${BLAS_INSTALL_DIR} + fi DONE_FILE=${SCRATCH_BUILD}/done/${THORN} BLAS_DIR=${INSTALL_DIR} diff --git a/configuration.ccl b/configuration.ccl index ba23870..30b30af 100644 --- a/configuration.ccl +++ b/configuration.ccl @@ -4,5 +4,5 @@ PROVIDES BLAS { SCRIPT BLAS.sh LANG bash - OPTIONS BLAS_DIR BLAS_LIBS + OPTIONS BLAS_DIR BLAS_INSTALL_DIR BLAS_LIBS } |