./configure --prefix="/usr"--disable-netcdf--enable-fortran--disable-shared--with-zlib="/usr"--with-szlib="/usr"--with-jpeg="/usr"&& make -j4&& make install
# FIXME: CFLAGS & CXXFLAGS - do we need to unset?
# add hdf5
RUN cd /build &&tar xzf hdf5-${HDF5_VERSION}.tar.gz &&\
cd hdf5-${HDF5_VERSION}&&\
./configure --prefix="/usr"--disable-shared--with-pic--with-zlib="/usr"--enable-cxx--enable-fortran--with-pthread--with-szlib="/usr"&& make -j4&& make install
# add netcdf
# FIXME: failing with...
# configure: error: Can't find or link to the hdf5 library. Use --disable-netcdf-4, or see config.log for errors.
# but we don't need it for clavrx so skip for now
#
#RUN cd /build && tar xzf netcdf-${NETCDF4_VERSION}.tar.gz && \
# cd netcdf-${NETCDF4_VERSION} && \
# ./configure --prefix="/usr" --enable-hdf4 --enable-hdf4-file-tests --enable-fortran --disable-shared --disable-doxygen --disable-dap --with-pic && make -j4 && make install