diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh
index 3777c3c455576cf48658d987ac9fca641d62e4aa..c620d7e8c3e27c4ab1b8342994f5d1a8ea971037 100755
--- a/ShellB3/shallbethree.sh
+++ b/ShellB3/shallbethree.sh
@@ -502,7 +502,7 @@ mk_hdf5() {
   echo building hdf5 for $BASE
   test -n "$SZLIB" && SZOPTS="--with-szlib=$SZLIB" || SZOPTS=""
   (cd build/hdf5-${HDF5VER} \
-   && ./configure --prefix=$BASE --enable-shared --enable-cxx --with-pic --with-zlib=$ZLIB --with-pthread $SZOPTS \
+   && ./configure --prefix=$BASE --enable-shared --enable-cxx --enable-fortran --enable-fortran2003 --with-pic --with-zlib=$ZLIB --with-pthread $SZOPTS \
    && make -j8 \
    && make install ) \
    || oops "hdf5 build failed"