summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2008-04-24 20:41:51 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2008-04-24 20:41:51 (GMT)
commit82198aa9c51c198d95efebfd1c0dd8a58d3e4da8 (patch)
tree2e0b4defb5b9247b14224e47122d2577526a17cd /configure
parente66cb6fec6dd5edcb6060ac8e2678a8e406db8d9 (diff)
downloadhdf5-82198aa9c51c198d95efebfd1c0dd8a58d3e4da8.zip
hdf5-82198aa9c51c198d95efebfd1c0dd8a58d3e4da8.tar.gz
hdf5-82198aa9c51c198d95efebfd1c0dd8a58d3e4da8.tar.bz2
[svn-r14862] Purpose: Disallow use of c++ or fortran with threadsafe.
Description: Threadsafety is incompatible with c++ and with fortran, so if the user specifies either at configure along with threadsafe, throw an error. Tested: kagiso (configure change only, doesn't affect build or testing).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index 704d4a4..33835d9 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Id: configure.in 14834 2008-04-14 02:06:52Z hdftest .
+# From configure.in Id: configure.in 14851 2008-04-21 00:00:23Z hdftest .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for HDF5 1.8.0-snap4.
#
@@ -43877,6 +43877,18 @@ if test "${enable_threadsafe+set}" = set; then
fi
+if test "X${HDF_CXX}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then
+ { { echo "$as_me:$LINENO: error: --enable-cxx and --enable-threadsafe flags are incompatible" >&5
+echo "$as_me: error: --enable-cxx and --enable-threadsafe flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+if test "X${HDF_FORTRAN}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then
+ { { echo "$as_me:$LINENO: error: --enable-fortran and --enable-threadsafe flags are incompatible" >&5
+echo "$as_me: error: --enable-fortran and --enable-threadsafe flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
case "X-$THREADSAFE" in
X-|X-no)
{ echo "$as_me:$LINENO: result: no" >&5