summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-09-17 16:18:05 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-09-17 16:18:05 (GMT)
commit315ab68bd117a2c7f89b220a37adcf35b93d7c03 (patch)
tree3b220e33d1c366ef40f8a4f1ff289f217caea6e8
parent06eb36489071a60799ef4d9f68ad89cdc03a5159 (diff)
downloadhdf5-315ab68bd117a2c7f89b220a37adcf35b93d7c03.zip
hdf5-315ab68bd117a2c7f89b220a37adcf35b93d7c03.tar.gz
hdf5-315ab68bd117a2c7f89b220a37adcf35b93d7c03.tar.bz2
[svn-r22774] The matching configure file
Use LT_PREREQ([2.2]) LT_INIT([dlopen]) instead of AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL Also add ALLOW_UNSUPPORTED on threadsafe check Both from 1.8 configure
-rwxr-xr-xconfigure21
1 files changed, 18 insertions, 3 deletions
diff --git a/configure b/configure
index 84637a3..7c043fb 100755
--- a/configure
+++ b/configure
@@ -8336,9 +8336,6 @@ test -z "$OBJDUMP" && OBJDUMP=objdump
## ----------------------------------------------------------------------
## Create libtool. If shared/static libraries are going to be enabled
## or disabled, it should happen before these macros.
-enable_dlopen=yes
-
-
case `pwd` in
*\ * | *\ *)
@@ -11883,6 +11880,7 @@ func_stripname_cnf ()
# Set options
+enable_dlopen=yes
@@ -26369,6 +26367,23 @@ if test "${enable_threadsafe+set}" = set; then :
fi
+## The --enable-threadsafe flag is not compatible with --enable-cxx.
+## If the user tried to specify both flags, throw an error, unless
+## they also provided the --enable-unsupported flag.
+if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then
+ if test "X${HDF_CXX}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then
+ as_fn_error $? "--enable-cxx and --enable-threadsafe flags are incompatible. Use --enable-unsupported to override this error." "$LINENO" 5
+ fi
+fi
+
+## --enable-threadsafe is also incompatible with --enable-fortran, unless
+## --enable-unsupported has been specified on the configure line.
+if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then
+ if test "X${HDF_FORTRAN}" = "Xyes" -a "X${enable_threadsafe}" = "Xyes"; then
+ as_fn_error $? "--enable-fortran and --enable-threadsafe flags are incompatible. Use --enable-unsupported to override this error." "$LINENO" 5
+ fi
+fi
+
case "X-$THREADSAFE" in
X-|X-no)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5