From 7255d1a1b8e0b12cc652bf6d1becbe46bc328c6e Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Tue, 22 Mar 2016 02:59:28 -0500 Subject: [svn-r29502] The thread-safety and enable Java options have been marked as "unsupported" in the autotools. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial w/ Java --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 59157b2..272f5cd 100644 --- a/configure.ac +++ b/configure.ac @@ -1575,7 +1575,7 @@ AC_ARG_ENABLE([threadsafe], [default=no]])], [THREADSAFE=$enableval]) -## The high-level, C++, and Fortran interfaces are not compatible +## The high-level, C++, Fortran and Java interfaces are not compatible ## with the thread-safety option because the lock is not hoisted ## into the higher-level API calls. @@ -1607,6 +1607,14 @@ if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then fi fi +## --enable-threadsafe is also incompatible with --enable-java unless +## --enable-unsupported has been specified on the configure line. +if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then + if test "X${HDF_JAVA}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then + AC_MSG_ERROR([--enable-java and --enable-threadsafe flags are incompatible. Use --enable-unsupported to override this error.]) + fi +fi + case "X-$THREADSAFE" in X-|X-no) -- cgit v0.12