Right now, nc-config doesn't give you the cppflags and ldflags for hdf5
(or any of the other dependencies), just netcdf. The following change
fixes this.
--- nc-config.in.orig 2010-11-12 06:18:18.000000000 -0700
+++ nc-config.in 2010-11-12 06:27:47.000000000 -0700
@@ -14,9 +14,9 @@
cc="@CC@"
cxx="@CXX@"
fc="@FC@"
-cflags=" -I${includedir}"
+cflags=" -I${includedir} @EXTERN_CPPFLAGS@"
fflags="@FFLAGS@ @MOD_FLAG@${includedir}"
-libs="-L${libdir} @NC_LIBS@"
+libs="-L${libdir} @NC_LIBS@ @EXTERN_LDFLAGS@"
flibs="-L${libdir} @NC_FLIBS@"
has_dap="@HAS_DAP@"
has_nc2="@HAS_NC2@"
-Jeff