diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-04-21 13:44:30 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-04-21 13:44:30 (GMT) |
commit | c88f2abea5c4295cd20564fede8b3010933c0e6f (patch) | |
tree | 031ffe05c0d38fa3e23522aa0e1fa06f093d8926 /configure.ac | |
parent | aff66a3790e083fa13d05302a2191d6086268fc1 (diff) | |
download | hdf5-c88f2abea5c4295cd20564fede8b3010933c0e6f.zip hdf5-c88f2abea5c4295cd20564fede8b3010933c0e6f.tar.gz hdf5-c88f2abea5c4295cd20564fede8b3010933c0e6f.tar.bz2 |
[svn-r26860] Fixed sizeof checks.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index b78ac89..053f2e3 100644 --- a/configure.ac +++ b/configure.ac @@ -446,15 +446,21 @@ if test "X$HDF_FORTRAN" = "Xyes"; then PAC_PROG_FC_STORAGE_SIZE ## If neither intrinsic functions SIZEOF or STORAGE_SIZE is available then stop configure with an error - if test "X$HAVE_C_SIZEOF_FORTRAN" = "Xno" && test "X$HAVE_C_SIZEOF_FORTRAN" = "Xno"; then + if test "X$HAVE_SIZEOF_FORTRAN" = "Xno" && test "X$HAVE_STORAGE_SIZE_FORTRAN" = "Xno"; then AC_MSG_ERROR([Fortran compiler requires either intrinsic functions SIZEOF or STORAGE_SIZE]) fi + + if test "X$HAVE_STORAGE_SIZE_FORTRAN" = "Xyes"; then + AC_DEFINE([FORTRAN_HAVE_STORAGE_SIZE], [1], [Define if we have Fortran intrinsic STORAGE_SIZE]) + fi - AC_DEFINE([FORTRAN_HAVE_STORAGE_SIZE], [1], [Define if we have Fortran intrinsic STORAGE_SIZE]) - - AC_DEFINE([FORTRAN_HAVE_C_SIZEOF], [1], [Define if we have Fortran intrinsic C_SIZEOF]) + if test "X$HAVE_C_SIZEOF_FORTRAN" = "Xyes"; then + AC_DEFINE([FORTRAN_HAVE_C_SIZEOF], [1], [Define if we have Fortran intrinsic C_SIZEOF]) + fi - AC_DEFINE([FORTRAN_HAVE_SIZEOF], [1], [Define if we have Fortran intrinsic SIZEOF]) + if test "X$HAVE_SIZEOF_FORTRAN" = "Xyes"; then + AC_DEFINE([FORTRAN_HAVE_SIZEOF], [1], [Define if we have Fortran intrinsic SIZEOF]) + fi ## Check to see if -r8 was specified to determine if we need to ## compile the DOUBLE PRECISION interfaces. |