--- netcdf-4.0.1.orig/libsrc4/Makefile.am 2009-03-26 21:03:16.000000000 +0100 +++ netcdf-4.0.1/libsrc4/Makefile.am 2009-09-10 22:34:48.245041376 +0200 @@ -67,6 +67,7 @@ libnetcdf_la_SOURCES = nc4attr.c nc4internal.c nc4var.c netcdf3.h \ nc4dim.c nc4internal.h ncfunc.c nc4file.c netcdf.h error.c error.h \ nc4grp.c nc4type.c nc4hdf.c +libnetcdf_la_LIBADD += -lhdf5_hl # If we are not building separate fortran libraries, then include # their functions in the C library. --- netcdf-4.0.1.orig/cxx4/Makefile.am 2007-08-13 18:05:17.000000000 +0200 +++ netcdf-4.0.1/cxx4/Makefile.am 2009-09-10 23:45:06.335707145 +0200 @@ -42,6 +42,7 @@ # Library source. libnetcdf_c__4_la_SOURCES = ncatt.cpp ncdim.cpp ncexception.cpp \ ncfile.cpp ncgroup.cpp ncvar.cpp ncvalues.cpp ncvalues.h +libnetcdf_c__4_la_LIBADD = $(top_builddir)/libsrc4/libnetcdf.la TESTFILES = tst_suiterunner$(EXEEXT) tst_file$(EXEEXT) tst_filerw$(EXEEXT) tst_simple$(EXEEXT) tst_suiterunner_SOURCES = tst_suite.cpp tst_suiterunner.cpp tst_suite.h