diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-20 21:48:41 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-20 21:48:41 (GMT) |
commit | 23afd1054486ff752e620f7596d3b4725e14f6fe (patch) | |
tree | 8d8be015ef6481a5b3bd914f76c22edbbc4571c3 /configure.ac | |
parent | 1cd7c16a9d40a2a8664e62c6075800579df334b7 (diff) | |
download | hdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.zip hdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.tar.gz hdf5-23afd1054486ff752e620f7596d3b4725e14f6fe.tar.bz2 |
[svn-r26512] Reverted changed 26488 and 26477
Tested: h5committest
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d78133b..68927a0 100644 --- a/configure.ac +++ b/configure.ac @@ -641,15 +641,44 @@ AC_SUBST([RUNPARALLEL]) AC_SUBST([TESTPARALLEL]) ## ---------------------------------------------------------------------- -## Check for Fortran shared libraries. +## Fortran libraries are not currently supported on Mac. Disable them. +## (this is overridable with --enable-unsupported). ## AC_SUBST([H5_FORTRAN_SHARED]) H5_FORTRAN_SHARED="no" if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then AC_MSG_CHECKING([if shared Fortran libraries are supported]) H5_FORTRAN_SHARED="yes" - AC_MSG_RESULT([yes]) + + ## 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 + AC_MSG_RESULT([no]) + AC_MSG_WARN([$CHECK_WARN]) + if test "X${ALLOW_UNSUPPORTED}" != "Xyes"; then + AC_MSG_WARN([Disabling shared Fortran libraries.]) + AC_MSG_WARN([To override this behavior, please use --enable-unsupported configure option.]) + if test "X${enable_static}" = "Xno"; then + AC_MSG_ERROR([both static and shared Fortran libraries are disabled]) + fi + else + AC_MSG_WARN([Allowing unsupported Fortran shared libraries due to use of --enable-unsupported flag]) + H5_FORTRAN_SHARED="yes" + fi + else + AC_MSG_RESULT([yes]) + fi fi + AM_CONDITIONAL([FORTRAN_SHARED_CONDITIONAL], [test "X$H5_FORTRAN_SHARED" = "Xyes"]) ## ---------------------------------------------------------------------- |