diff --git a/nc-config.in b/nc-config.in index 590f421ce..95ea06bec 100644 --- a/nc-config.in +++ b/nc-config.in @@ -14,9 +14,9 @@ includedir=${prefix}/include 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@" diff --git a/nc_test4/bm_many_atts.c b/nc_test4/bm_many_atts.c index b7385ad7e..974d81eae 100644 --- a/nc_test4/bm_many_atts.c +++ b/nc_test4/bm_many_atts.c @@ -1,4 +1,3 @@ - /* Copyright 2010, UCAR/Unidata See COPYRIGHT file for copying and redistribution conditions. diff --git a/nc_test4/tst_h_many_atts.c b/nc_test4/tst_h_many_atts.c index a10c390f3..e6476c862 100644 --- a/nc_test4/tst_h_many_atts.c +++ b/nc_test4/tst_h_many_atts.c @@ -51,7 +51,7 @@ int main() { printf("\n*** Checking many attributes in HDF5 file.\n"); - printf("*** Checking some more simple atts..."); + printf("*** Checking some more simple atts...\n"); { #define NUM_ATTS 10000 hid_t fcpl_id, hdfid, grpid; @@ -85,12 +85,12 @@ main() H5P_DEFAULT, H5P_DEFAULT)) < 0) ERR; if (H5Awrite(attid1, H5T_NATIVE_INT, &one) < 0) ERR; /* if (H5Aclose(attid1) < 0) ERR;*/ - if(i % 1000 == 0) + if((i + 1) % 1000 == 0) { /* only print every 1000th attribute name */ if (gettimeofday(&end_time, NULL)) ERR; if (timeval_subtract(&diff_time, &end_time, &start_time)) ERR; sec = diff_time.tv_sec + 1.0e-6 * diff_time.tv_usec; - printf("%i\t%.3g sec\n", i, sec); + printf("%i\t%.3g sec\n", i + 1, sec); } }