1
1

fortran: strengthen the storage_size() check

It's not enough to AC_COMPILE_IFELSE, do AC_LINK_IFELSE to really make
sure the compiler suite supports it.

Refs trac:4917

This commit was SVN r32802.

The following Trac tickets were found above:
  Ticket 4917 --> https://svn.open-mpi.org/trac/ompi/ticket/4917
Этот коммит содержится в:
Jeff Squyres 2014-09-26 18:17:55 +00:00
родитель 399dc3db43
Коммит 91114c22d4

Просмотреть файл

@ -30,7 +30,7 @@ AC_DEFUN([OMPI_FORTRAN_CHECK_STORAGE_SIZE],[
AC_CACHE_CHECK([if Fortran compiler supports STORAGE_SIZE for relevant types], AC_CACHE_CHECK([if Fortran compiler supports STORAGE_SIZE for relevant types],
fortran_storage_size_var, fortran_storage_size_var,
[AC_LANG_PUSH([Fortran]) [AC_LANG_PUSH([Fortran])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[program check_for_storage_size AC_LINK_IFELSE([AC_LANG_SOURCE([[program check_for_storage_size
USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32, INT32 USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32, INT32
integer size integer size
complex(real32) :: c32 complex(real32) :: c32