summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-20 21:48:41 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-20 21:48:41 (GMT)
commit23afd1054486ff752e620f7596d3b4725e14f6fe (patch)
tree8d8be015ef6481a5b3bd914f76c22edbbc4571c3 /configure
parent1cd7c16a9d40a2a8664e62c6075800579df334b7 (diff)
downloadhdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.zip
hdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.tar.gz
hdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.tar.bz2
[svn-r26512] Reverted changed 26488 and 26477
Tested: h5committest
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure38
1 files changed, 36 insertions, 2 deletions
diff --git a/configure b/configure
index f7906bd..c073f13 100755
--- a/configure
+++ b/configure
@@ -7696,7 +7696,8 @@ fi
## ----------------------------------------------------------------------
-## Check for Fortran shared libraries.
+## Fortran libraries are not currently supported on Mac. Disable them.
+## (this is overridable with --enable-unsupported).
##
H5_FORTRAN_SHARED="no"
@@ -7704,9 +7705,42 @@ if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared Fortran libraries are supported" >&5
$as_echo_n "checking if shared Fortran libraries are supported... " >&6; }
H5_FORTRAN_SHARED="yes"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+
+ ## Disable fortran shared libraries on Mac. (MAM - 03/30/11)
+
+ case "`uname`" in
+ Darwin*)
+ H5_FORTRAN_SHARED="no"
+ CHECK_WARN="Shared Fortran libraries not currently supported on Mac."
+ ;;
+ esac
+
+ ## Report results of check(s)
+
+ if test "X${H5_FORTRAN_SHARED}" = "Xno"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $CHECK_WARN" >&5
+$as_echo "$as_me: WARNING: $CHECK_WARN" >&2;}
+ if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling shared Fortran libraries." >&5
+$as_echo "$as_me: WARNING: Disabling shared Fortran libraries." >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To override this behavior, please use --enable-unsupported configure option." >&5
+$as_echo "$as_me: WARNING: To override this behavior, please use --enable-unsupported configure option." >&2;}
+ if test "X${enable_static}" = "Xno"; then
+ as_fn_error $? "both static and shared Fortran libraries are disabled" "$LINENO" 5
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Allowing unsupported Fortran shared libraries due to use of --enable-unsupported flag" >&5
+$as_echo "$as_me: WARNING: Allowing unsupported Fortran shared libraries due to use of --enable-unsupported flag" >&2;}
+ H5_FORTRAN_SHARED="yes"
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
+ fi
fi
+
if test "X$H5_FORTRAN_SHARED" = "Xyes"; then
FORTRAN_SHARED_CONDITIONAL_TRUE=
FORTRAN_SHARED_CONDITIONAL_FALSE='#'