diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d72ea3a..a4e659e 100644 --- a/configure.in +++ b/configure.in @@ -1308,6 +1308,12 @@ AC_ARG_ENABLE([threadsafe], [Enable thread safe capability])], THREADSAFE=$enableval) +dnl The --enable-threadsafe flag is not compatible with --enable-cxx. +dnl If the user tried to specify both flags, throw an error. +if test "X${HDF_CXX}" != "X" && test "X${THREADSAFE}" != "X"; then + AC_MSG_ERROR([--enable-cxx and --enable-threadsafe flags are incompatible]) +fi + case "X-$THREADSAFE" in X-|X-no) AC_MSG_RESULT([no]) @@ -2027,6 +2033,17 @@ AC_ARG_ENABLE([parallel], [AC_HELP_STRING([--enable-parallel], [Search for MPI-IO and MPI support files])]) +dnl The --enable-parallel flag is not compatible with --enable-cxx. +dnl If the user tried to specify both flags, throw an error. +if test "X${HDF_CXX}" != "X" && test "X${enable-parallel}" != "X"; then + AC_MSG_ERROR([--enable-cxx and --enable-parallel flags are incompatible]) +fi + +dnl --enable-parallel is also incompatible with --enable-threadsafe. +if test "X${THREADSAFE}" != "X" && test "X${enable-parallel}" != "X"; then + AC_MSG_ERROR([--enable-threadsafe and --enable-parallel flags are incompatible]) +fi + AC_MSG_CHECKING([for parallel support files]) case "X-$enable_parallel" in X-|X-no|X-none) @@ -2237,7 +2254,15 @@ if test -n "$PARALLEL"; then interface [default=no]])], [FPHDF5=$enableval], [FPHDF5="no"]) + if test "X$FPHDF5" = "Xyes"; then + + dnl The --enable-fphdf5 flag is not compatible with --enable-fortran. + dnl If the user tried to specify both flags, throw an error. + if test "X$${FPHDF5}" != "X" && test "X${HDF_FORTRAN}" != "X"; then + AC_MSG_ERROR([--enable-fphdf5 and --enable-fortran flags are incompatible]) + fi + AC_DEFINE(HAVE_FPHDF5, 1, [Define if we want flexible parallel HDF5 support]) AC_MSG_RESULT([yes]) |