mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
33 lines
646 B
Bash
33 lines
646 B
Bash
#!/bin/bash
|
|
|
|
PREFIX=/home/dmh/opt/jna
|
|
#LIBDIR="${PREFIX}/lib"
|
|
LIBDIR="/usr/local/lib"
|
|
|
|
CFLAGS=""
|
|
CPPFLAGS="-I/usr/local/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
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS="$FLAGS"
|
|
export DISTCHECK_CONFIGURE_FLAGS
|
|
|
|
if test -f Makefile ; then ${MAKE} distclean >/dev/null 2>&1 ; fi
|
|
sh ./configure ${FLAGS}
|