aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbmundim <bmundim@9e23cc15-e5c8-4d65-9080-beda90ea645b>2011-07-23 04:54:38 +0000
committerbmundim <bmundim@9e23cc15-e5c8-4d65-9080-beda90ea645b>2011-07-23 04:54:38 +0000
commit99417bf1652284935a455bf6045b0b42b47467a8 (patch)
tree1cce04cdb78246afa5921f63104d838a04f5f4fd
parent0820423a116a89f291a8a476e35b1291efdf8c83 (diff)
Introduce GSL_INSTALL_DIR as a configuration option.
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/GSL/trunk@19 9e23cc15-e5c8-4d65-9080-beda90ea645b
-rw-r--r--GSL.sh12
-rw-r--r--configuration.ccl2
2 files changed, 12 insertions, 2 deletions
diff --git a/GSL.sh b/GSL.sh
index ae80640..1bee624 100644
--- a/GSL.sh
+++ b/GSL.sh
@@ -61,7 +61,17 @@ if [ -z "${GSL_DIR}" -o "${GSL_DIR}" = 'BUILD' ]; then
NAME=gsl-1.14
SRCDIR=$(dirname $0)
BUILD_DIR=${SCRATCH_BUILD}/build/${THORN}
- INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
+ if [ -z "${GSL_INSTALL_DIR}" ]; then
+ echo "BEGIN MESSAGE"
+ echo "GSL install directory, GSL_INSTALL_DIR, not set. Installing in the default configuration location. "
+ echo "END MESSAGE"
+ INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
+ else
+ echo "BEGIN MESSAGE"
+ echo "GSL install directory, GSL_INSTALL_DIR, selected. Installing GSL at ${GSL_INSTALL_DIR} "
+ echo "END MESSAGE"
+ INSTALL_DIR=${GSL_INSTALL_DIR}
+ fi
DONE_FILE=${SCRATCH_BUILD}/done/${THORN}
GSL_DIR=${INSTALL_DIR}
diff --git a/configuration.ccl b/configuration.ccl
index 25be2cc..2f7130f 100644
--- a/configuration.ccl
+++ b/configuration.ccl
@@ -4,5 +4,5 @@ PROVIDES GSL
{
SCRIPT GSL.sh
LANG bash
- OPTIONS GSL_DIR GSL_LIBS
+ OPTIONS GSL_DIR GSL_INSTALL_DIR GSL_LIBS
}