From e11bc3509d4bf91b7516782289abb4c74a55bae6 Mon Sep 17 00:00:00 2001 From: Shreyas Ananthan Date: Wed, 3 Jun 2020 13:13:35 -0400 Subject: [PATCH] Fix parallel NetCDF checks in configure.ac for spectrum MPI Closes #1751 --- configure.ac | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index eda4dd485..2db93f9e2 100644 --- a/configure.ac +++ b/configure.ac @@ -1177,8 +1177,7 @@ if test "x$enable_pnetcdf" = xyes; then # Pnetcdf did not support utf-8 until 1.6.0 AC_MSG_CHECKING([Is libpnetcdf version 1.6.0 or later?]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ -#include + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ #if (PNETCDF_VERSION_MAJOR*1000 + PNETCDF_VERSION_MINOR < 1006) choke me #endif @@ -1229,8 +1228,7 @@ if test "x$enable_pnetcdf" = xyes; then UD_CHECK_HEADER_PATH([pnetcdf.h]) AC_MSG_CHECKING([if erange-fill is enabled in PnetCDF]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ -#include + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ #if !defined(PNETCDF_ERANGE_FILL) || PNETCDF_ERANGE_FILL == 0 choke me #endif]])], [enable_erange_fill_pnetcdf=yes], [enable_erange_fill_pnetcdf=no]) @@ -1246,8 +1244,7 @@ if test "x$enable_pnetcdf" = xyes; then fi AC_MSG_CHECKING([if relax-coord-bound is enabled in PnetCDF]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ -#include + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ #if !defined(PNETCDF_RELAX_COORD_BOUND) || PNETCDF_RELAX_COORD_BOUND == 0 choke me #endif]])], [relax_coord_bound_pnetcdf=yes], [relax_coord_bound_pnetcdf=no])