netcdf-c/ljna
2014-05-10 15:16:20 -06:00

34 lines
660 B
Bash

#!/bin/bash
# Define where the installation will be
PREFIX=/home/dmh/opt/jna
#PREFIX=/opt/netcdf
# Define where to look for e.g. libz or libhdf5
LIBDIR=/usr/local/lib
CFLAGS=""
CPPFLAGS="-I${PREFIX}/include"
LDFLAGS="-L${LIBDIR} -lhdf5_hl -lhdf5 -lz $LDFLAGS"
LD_LIBRARY_PATH="${LIBDIR}:$LD_LIBRARY_PATH"
MAKE=make
FLAGS="--prefix ${PREFIX}"
FLAGS="$FLAGS --disable-examples"
FLAGS="$FLAGS --disable-utilities"
FLAGS="$FLAGS --enable-shared"
#FLAGS="$FLAGS --enable-jna"
export PATH
export CC
export CPPFLAGS
export CFLAGS
export LDFLAGS
export LD_LIBRARY_PATH
if test -f Makefile ; then ${MAKE} distclean >/dev/null 2>&1 ; fi
sh ./configure ${FLAGS}