Apropos to the discussion here:
http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg10988.html
The current repo head fixes the fortran and cxx version 3 options, but the
cxx version 4 interface installs ncxx4-config instead of ncxx-config. In
this case, I get:
$ nc-config --all
This netCDF 4.2 has been built with the following features:
--cc -> /usr/bin/gcc-4.2
--cflags -> -I/usr/local/Cellar/netcdf/4.2/include
--libs -> -L/usr/local/Cellar/netcdf/4.2/lib -lnetcdf
--cxx ->
--has-c++ ->
--fc -> /usr/local/bin/gfortran
--fflags -> -Os -w -pipe -march=core2 -msse4
-I/usr/local/Cellar/netcdf/4.2/include
--flibs -> -L/usr/local/Cellar/netcdf/4.2/lib -lnetcdff
-L/usr/local/Cellar/netcdf/4.2/lib -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local/Cellar/netcdf/4.2
--includedir-> /usr/local/Cellar/netcdf/4.2/include
--version -> netCDF 4.2