I found disable-dap -disable-netcdf-4 NOT possible for netcdf-c to let install netcdf-fortran later versions but what makes me confusing is that they are suggesting to use this method.
Looks like it works for me, with netCDF C netcdf-4.4.1.1 and netCDF-fortran-4.4.4.
BTW, the 4.1’s are quite early, in the transition to separate netCDF Fortran (where, among other things they silently removed the older CALL NC()* Fortran interfaces. Perhaps a more recent set of netCDFs would fix the problem.
I would be surprised to see if that works with netcdf-c-4.7.1 (and a big surprise if you can install just netcdf-c-4.7.0 with disable dap and disable-netcdf-4) and netcdf-fortran-4.5.1 (the latest ones, they didn’t work in my case, meaning make check does not succeed in netcdf-fortran install). I will try with the versions you mentioned too.