@@ -10,12 +10,12 @@ dnl Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
1010dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212dnl All rights reserved.
13- dnl Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
13+ dnl Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved
1414dnl Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
1515dnl Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
1616dnl reserved.
1717dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
18- dnl Copyright (c) 2014-2016 Research Organization for Information Science
18+ dnl Copyright (c) 2014-2017 Research Organization for Information Science
1919dnl and Technology (RIST). All rights reserved.
2020dnl Copyright (c) 2016 IBM Corporation. All rights reserved.
2121dnl $COPYRIGHT $
@@ -34,7 +34,6 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
3434 OMPI_FORTRAN_USEMPI_DIR=
3535 OMPI_FORTRAN_USEMPI_LIB=
3636
37- OMPI_FORTRAN_USEMPIF08_DIR=
3837 OMPI_FORTRAN_USEMPIF08_LIB=
3938
4039 OMPI_FORTRAN_MAX_ARRAY_RANK= 0
@@ -51,7 +50,6 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
5150 OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME= 0
5251 OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK= 0
5352 OMPI_FORTRAN_HAVE_PRIVATE= 0
54- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .FALSE.
5553
5654 # These macros control symbol names for Fortran/C interoperability
5755 #
@@ -532,33 +530,20 @@ end type test_mpi_handle],
532530 OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK= 1])
533531
534532 # Which mpi_f08 implementation are we using?
535- # a) partial, proof-of-concept that supports array
536- # subsections (Intel compiler only)
537- # b) compiler supports BIND(C) and optional arguments
533+ # a) compiler supports BIND(C) and optional arguments
538534 # ("good" compilers)
539- # c ) compiler that does not support the items listed
535+ # b ) compiler that does not support the items listed
540536 # in b) ("bad" compilers)
541537
542538 AC_MSG_CHECKING([which mpi_f08 implementation to build])
543- AS_IF([test $OMPI_BUILD_FORTRAN_F08_SUBARRAYS -eq 1],
544- [ # Case a) partial/prototype implementation
545- OMPI_FORTRAN_USEMPIF08_DIR= mpi/fortran/use-mpi-f08-desc
546- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .TRUE.
547- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
548- AC_MSG_RESULT([array subsections (partial/experimental)])
539+ AS_IF([test $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS -eq 1],
540+ [ # Case a) "good compiler"
541+ OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
542+ AC_MSG_RESULT([" good" compiler, no array subsections])
549543 ],
550- [ # Both cases b) and c)
551- OMPI_FORTRAN_USEMPIF08_DIR= mpi/fortran/use-mpi-f08
552- OMPI_FORTRAN_SUBARRAYS_SUPPORTED= .FALSE.
553- AS_IF([test $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS -eq 1],
554- [ # Case b) "good compiler"
555- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 0
556- AC_MSG_RESULT([" good" compiler, no array subsections])
557- ],
558- [ # Case c) "bad compiler"
559- OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 1
560- AC_MSG_RESULT([" bad" compiler, no array subsections])
561- ])
544+ [ # Case b) "bad compiler"
545+ OMPI_FORTRAN_NEED_WRAPPER_ROUTINES= 1
546+ AC_MSG_RESULT([" bad" compiler, no array subsections])
562547 ])
563548 ])
564549
@@ -699,8 +684,6 @@ end type test_mpi_handle],
699684 # use mpi_f08 final setup
700685 # -------------------
701686
702- # This goes into ompi/Makefile.am
703- AC_SUBST(OMPI_FORTRAN_USEMPIF08_DIR)
704687 # This goes into mpifort-wrapper-data.txt
705688 AC_SUBST(OMPI_FORTRAN_USEMPIF08_LIB)
706689
@@ -714,12 +697,6 @@ end type test_mpi_handle],
714697 AC_SUBST(OMPI_F08_SUFFIX)
715698 AC_SUBST(OMPI_F_SUFFIX)
716699
717- # This goes into ompi/mpi/fortran/configure-fortran-output.h
718- AC_SUBST(OMPI_FORTRAN_SUBARRAYS_SUPPORTED)
719- AC_DEFINE_UNQUOTED(OMPI_FORTRAN_SUBARRAYS_SUPPORTED,
720- [$OMPI_FORTRAN_SUBARRAYS_SUPPORTED ],
721- [Value to load to the MPI_SUBARRAYS_SUPPORTED compile-time constant])
722-
723700 # This is used to generate weak symbols (or not) in
724701 # ompi/mpi/fortran/mpif-h/<foo>_f.c, and
725702 # ompi/mpi/fortran/configure-fortran-output.h.
0 commit comments