      SET(HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIR})
      SET(HDF5_C_LIBRARY ${HDF5_LIB})
      SET(HDF5_HL_LIBRARY ${HDF5_HL_LIB})
-diff -ruN netcdf-4.3.2/RELEASE_NOTES.md netcdf-4.3.2-new/RELEASE_NOTES.md
---- netcdf-4.3.2/RELEASE_NOTES.md	2014-04-23 15:35:20.000000000 -0600
-+++ netcdf-4.3.2-new/RELEASE_NOTES.md	2014-10-14 17:25:06.000000000 -0600
-@@ -5,6 +5,8 @@
- 
- This file contains a high-level description of this package's evolution. Releases are in reverse chronological order (most recent first). Note that, as of netcdf 4.2, the netcdf-c++ and netcdf-fortran libraries have been separated into their own libraries.
- 
-+* When the NC_MPIPOSIX flag is given for parallel I/O access and the HDF5 library does not have the MPI-POSIX VFD configured in, the NC_MPIPOSIX flag is transparently aliased to the NC_MPIIO flag within the netCDF-4 library.
-+
- ## 4.3.2 Released 2014-04-23
- 
- * As part of an ongoing project, the Doxygen-generated netcdf documentation has been reorganized.  The goal is to make the documentation easier to parse, and to eliminate redundant material.  This project is ongoing.
+@@ -620,8 +620,15 @@
+     # Find out if HDF5 was built with parallel support.
+     # Do that by checking for the targets H5Pget_fapl_mpiposx and
+     # H5Pget_fapl_mpio in ${HDF5_LIB}.
++    set(CMAKE_REQUIRED_LIBRARIES_SAV ${CMAKE_REQUIRED_LIBRARIES})
++    if (NOT WIN32)
++      set(CMAKE_REQUIRED_LIBRARIES ${HDF5_hdf5_LIBRARY}
++        ${CMAKE_REQUIRED_LIBRARIES} dl z m
++      )
++    endif ()
+     CHECK_LIBRARY_EXISTS(${HDF5_hdf5_LIBRARY} H5Pget_fapl_mpiposix "" HDF5_IS_PARALLEL_MPIPOSIX)
+     CHECK_LIBRARY_EXISTS(${HDF5_hdf5_LIBRARY} H5Pget_fapl_mpio "" HDF5_IS_PARALLEL_MPIO)
++    set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_SAV})
+ 
+     IF(HDF5_IS_PARALLEL_MPIPOSIX OR HDF5_IS_PARALLEL_MPIO)
+       SET(HDF5_IS_PARALLEL ON)
 diff -ruN netcdf-4.3.2/liblib/CMakeLists.txt netcdf-4.3.2-new/liblib/CMakeLists.txt
 --- netcdf-4.3.2/liblib/CMakeLists.txt	2014-04-23 15:35:20.000000000 -0600
-+++ netcdf-4.3.2-new/liblib/CMakeLists.txt	2014-10-14 17:25:06.000000000 -0600
++++ netcdf-4.3.2-new/liblib/CMakeLists.txt	2014-11-12 10:13:32.029009722 -0700
 @@ -51,13 +51,14 @@
    IF(NOT MSVC)
      # Some version of cmake define HDF5_hdf5_LIBRARY instead of

    if (mpi_rank == 0)
       printf("*** Testing parallel IO for raw-data with MPIPOSIX-IO (driver)...");
    facc_type = NC_NETCDF4|NC_MPIPOSIX;

 if [ -z $has_dap ]; then
diff -ruN netcdf-4.3.2/nc_test4/tst_nc4perf.c netcdf-4.3.2-new/nc_test4/tst_nc4perf.c
--- netcdf-4.3.2/nc_test4/tst_nc4perf.c	2014-04-23 15:35:20.000000000 -0600
+++ netcdf-4.3.2-new/nc_test4/tst_nc4perf.c	2014-11-12 10:13:32.032009617 -0700
@@ -244,6 +244,11 @@
    return 0;
 }
