Skip to content

Commit 90ae7d4

Browse files
authored
Merge pull request #6224 from kawashima-fj/pr/config-fortran-type
config: Clean Fortran type check code
2 parents 529e17e + fc311a6 commit 90ae7d4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config/ompi_fortran_check.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dnl All rights reserved.
1313
dnl Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
1414
dnl Copyright (c) 2015 Research Organization for Information Science
1515
dnl and Technology (RIST). All rights reserved.
16+
dnl Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
1617
dnl $COPYRIGHT$
1718
dnl
1819
dnl Additional copyrights may follow
@@ -38,8 +39,8 @@ AC_DEFUN([OMPI_FORTRAN_CHECK], [
3839
ofc_expected_size=$4
3940
ofc_define_type=$5
4041
ofc_have_type=0
41-
ofc_type_size=$ac_cv_sizeof_int
42-
ofc_type_alignment=$ac_cv_sizeof_int
42+
ofc_type_size=0
43+
ofc_type_alignment=0
4344
ofc_c_type=ompi_fortran_bogus_type_t
4445
ofc_type_kind=0
4546

config/ompi_fortran_get_kind_value.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dnl All rights reserved.
1313
dnl Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
1414
dnl Copyright (c) 2015 Research Organization for Information Science
1515
dnl and Technology (RIST). All rights reserved.
16+
dnl Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
1617
dnl $COPYRIGHT$
1718
dnl
1819
dnl Additional copyrights may follow
@@ -38,6 +39,7 @@ AC_DEFUN([OMPI_FORTRAN_GET_KIND_VALUE],[
3839
value=
3940
AC_RUN_IFELSE(AC_LANG_PROGRAM(, [[
4041
use, intrinsic :: ISO_C_BINDING
42+
implicit none
4143
open(unit = 7, file = "conftest.out")
4244
write(7, *) $1
4345
close(7)

0 commit comments

Comments
 (0)