Thanks to Roy for the help. Here's the script that worked for me.
iceberg:netcdf-4.1.2-beta1 hellyj$ more ~/bin/makeNetCDF_OSX.bash
#!/bin/bash
make distclean
#
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
echo "DYLD_LIBRARY_PATH:$DYLD_LIBRARY_PATH"
export CC=/usr/bin/cc
#export CFLAGS='-m32'
#export CPPFLAGS=-Df2cFortran
export F77=gfortran
export FC=gfortran
export FCFLAGS=-qsuffix=cpp=f90
./configure --prefix=/usr/local/netcdf-4.1.2beta --enable-netcdf-4 --enable-f90
--with-hdf5=/usr/local/hdf5-1.8.4-patch1
Cheers.
--------------
John Helly, UCSD / San Diego Supercomputer Center / Scripps Institution of
Oceanography, Climate, Atmospheric Science, and Physical Oceanography / +01 760
840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) /
/www.sdsc.edu/~hellyj