From 9af487d851087b38cd0fd2de54680e73fa0eab2c Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 30 Jun 2010 22:29:35 +0000 Subject: Use gmake if necessary. Support AIX, where we need to use the 64-bit mode. git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/GSL/trunk@11 9e23cc15-e5c8-4d65-9080-beda90ea645b --- GSL.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GSL.sh b/GSL.sh index efa5e92..f33128e 100644 --- a/GSL.sh +++ b/GSL.sh @@ -58,9 +58,12 @@ if [ -z "${GSL_DIR}" ]; then INSTALL_DIR=${SCRATCH_BUILD} GSL_DIR=${INSTALL_DIR}/${NAME} - # Clean up environment + # Set up environment unset LIBS unset MAKEFLAGS + if echo '' ${ARFLAGS} | grep 64 > /dev/null 2>&1; then + export OBJECT_MODE=64 + fi ( exec >&2 # Redirect stdout to stderr @@ -74,6 +77,9 @@ if [ -z "${GSL_DIR}" ]; then else echo "GSL: Building enclosed GSL library" + # Should we use gmake or make? + MAKE=$(gmake --help > /dev/null 2>&1 && echo gmake || echo make) + echo "GSL: Unpacking archive..." rm -rf build-${NAME} mkdir build-${NAME} @@ -90,10 +96,10 @@ if [ -z "${GSL_DIR}" ]; then ./configure --prefix=${GSL_DIR} echo "GSL: Building..." - make + ${MAKE} echo "GSL: Installing..." - make install + ${MAKE} install popd echo 'done' > done-${NAME} -- cgit v1.2.3