You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
814 B
38 lines
814 B
2 years ago
|
#! /bin/sh
|
||
|
|
||
|
### The following assumes you are building in a subdirectory of ACCESS Root
|
||
|
if [ "X$ACCESS" == "X" ] ; then
|
||
|
ACCESS=$(cd ../../..; pwd)
|
||
|
echo "ACCESS set to ${ACCESS}"
|
||
|
fi
|
||
|
|
||
|
MPI="${MPI:-NO}"
|
||
|
PARALLEL="${MPI:-NO}"
|
||
|
|
||
|
rm -f config.cache
|
||
|
export CFLAGS="-I${ACCESS}/include"
|
||
|
export CPPFLAGS="-DNDEBUG ${CFLAGS}"
|
||
|
|
||
|
# Find the hdf5 library
|
||
|
export LDFLAGS="-L${ACCESS}/lib"
|
||
|
|
||
|
if [ "$PARALLEL" == "NO" ] ; then
|
||
|
export CC='gcc'
|
||
|
PNETCDF=""
|
||
|
PARALLEL_TESTS=""
|
||
|
else
|
||
|
export CC='mpicc'
|
||
|
PNETCDF="--enable-pnetcdf"
|
||
|
PARALLEL_TESTS="--enable-parallel-tests"
|
||
|
fi
|
||
|
|
||
|
SHARED="--enable-shared"
|
||
|
|
||
|
./configure --enable-netcdf-4 ${PNETCDF} ${SHARED} ${PARALLEL_TESTS} --disable-v2 --disable-fsync --prefix=${ACCESS} --disable-dap $1
|
||
|
|
||
|
echo ""
|
||
|
echo " MPI: ${MPI}"
|
||
|
echo "COMPILER: ${CC}"
|
||
|
echo " ACCESS: ${ACCESS}"
|
||
|
echo ""
|