install aec gnu
module load gcc/9.3.0
export COMPILER=gcc.9.3.0
export CC=gcc
export CXX=g++
export FC=gfortran
#export SYS=OS_15.3
parentdir="$(dirname "$(pwd)")"
export BUILDDIR=$parentdir
echo "building in "$BUILDDIR
export PREFIX=/sw/dataformats/aec/1.0.6/skl/$COMPILER
echo "building for "$PREFIX
echo "Press ENTER to configure";read aaa
export CFLAGS=" Â -O3 -fPIC"
export CXXFLAGS="-O3 -fPIC"
export FCFLAGS=" -O3 -fPIC"
export LDLAGS="-O3 -fPIC"
../libaec-v1.0.6/configure --prefix=$PREFIX --libdir=$PREFIX/lib64
echo "Press ENTER to run make";read aaa
make -j2
echo "Press ENTER to run make check";read aaa
make check 2>&1 | tee check.out
echo "Press ENTER to run make install";read aaa
make install
echo "Do not forget to run make clean!"