Skip to content
Snippets Groups Projects
Commit 01972c7c authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Improve test for netcdf_par.h to also work without wrapper compiler.

parent 2b9ecc1e
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -252,7 +252,9 @@ dnl test properties of MPI system
[Defined to 1 if NetCDF parallel open supports NC_PNETCDF])])
AC_MSG_RESULT([$acx_temp])])])
AS_IF([test x"$ENABLE_NC4" = xyes],
[AC_CHECK_HEADERS([netcdf_par.h],
[saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MPI_C_INCLUDE"
AC_CHECK_HEADERS([netcdf_par.h],
[AC_CHECK_DECL([MPI_Bcast],
[HAVE_PARALLEL_NC4=1],
[AC_MSG_WARN([The supplied netCDF library does not support MPI parallel invocations])],
......@@ -273,7 +275,7 @@ dnl test properties of MPI system
[AC_MSG_NOTICE([The supplied netCDF library does not support nc_inq_format_extended.])],
[AC_INCLUDES_DEFAULT
@%:@include <netcdf.h>])])
])
CFLAGS=$saved_CFLAGS])
],
[MPI_LAUNCH="`pwd`/util/serialrun"
AC_SUBST([MPI_LAUNCH])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment