Skip to content

Commit 848a868

Browse files
committed
fortran/mpif-h: keep include path for extension short
in order to cope with the 72 characters per line limit, move openmpi/ompi/mpiext/FOO/mpif-h/mpiext_FOO_mpifh.h to openmpi/ompi/mpiext/FOO_mpifh.h Refs. #6019 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 7be8a07 commit 848a868

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

config/ompi_ext.m4

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ AC_DEFUN([EXT_CONFIGURE_M4_CONFIG_COMPONENT],[
409409
# - c/libmpiext_<component>.la: convneience library slurped into libmpi.la
410410
#
411411
# mpi.f.h:
412-
# - mpif-h/mpiext_<component>_mpifh.h: is included mpi mpif_ext.h
412+
# - mpif-h/<component>_mpifh.h: is included mpi mpif_ext.h
413413
# - mpif-h/libmpiext_<component>_mpifh.la: convenience library slurped
414414
# into libmpi_mpifh.la
415415
#
@@ -497,7 +497,7 @@ EOF
497497
# Test if this extension has mpif.h bindings
498498
# If not, skip this step.
499499
#
500-
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
500+
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/${component}_mpifh.h"
501501
enabled_mpifh=0
502502

503503
AC_MSG_CHECKING([if MPI Extension $component has mpif.h bindings])
@@ -507,10 +507,10 @@ EOF
507507
enabled_mpifh=1
508508

509509
# JMS Where is this needed?
510-
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
510+
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/${component}_mpifh.h"
511511
$4="$$4 $component"
512512

513-
component_header="mpiext_${component}_mpifh.h"
513+
component_header="${component}_mpifh.h"
514514

515515
cat >> $mpif_ext_h <<EOF
516516
!
@@ -519,7 +519,7 @@ EOF
519519
integer $component_define
520520
parameter ($component_define=1)
521521
522-
include 'openmpi/ompi/mpiext/$component/mpif-h/$component_header'
522+
include 'openmpi/ompi/mpiext/$component_header'
523523
524524
EOF
525525
else
@@ -566,7 +566,7 @@ EOF
566566
# srcdir is needed to find the header.
567567
#
568568
if test "$enabled_mpifh" = 1; then
569-
mpifh_component_header="mpiext_${component}_mpifh.h"
569+
mpifh_component_header="${component}_mpifh.h"
570570
cat >> $mpiusempi_ext_h <<EOF
571571
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
572572
EOF
@@ -619,7 +619,7 @@ EOF
619619
# the srcdir is needed to find the header.
620620
#
621621
if test "$enabled_mpifh" = 1; then
622-
mpifh_component_header="mpiext_${component}_mpifh.h"
622+
mpifh_component_header="${component}_mpifh.h"
623623
cat >> $mpiusempif08_ext_h <<EOF
624624
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
625625
EOF

ompi/mpiext/example/mpif-h/Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Corporation. All rights reserved.
55
# Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
66
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
7+
# Copyright (c) 2018 Research Organization for Information Science
8+
# and Technology (RIST). All rights reserved.
79
# $COPYRIGHT$
810
#
911
# Additional copyrights may follow
@@ -26,7 +28,7 @@ noinst_LTLIBRARIES =
2628

2729
# Directory where the header file to be included in mpif-ext.h must be
2830
# installed.
29-
ompidir = $(ompiincludedir)/ompi/mpiext/example/mpif-h
31+
ompidir = $(ompiincludedir)/ompi/mpiext
3032

3133
# Just like noinst_LTLIBRARIES, set this macro to empty and
3234
# conditionally add to it later.
@@ -41,7 +43,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
4143
noinst_LTLIBRARIES += libmpiext_example_mpifh.la
4244

4345
# This is the header file that is installed.
44-
ompi_HEADERS += mpiext_example_mpifh.h
46+
ompi_HEADERS += example_mpifh.h
4547

4648
# Sources for the convenience libtool library.
4749
libmpiext_example_mpifh_la_SOURCES = \

ompi/mpiext/pcollreq/mpif-h/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ noinst_LTLIBRARIES =
3131

3232
# Directory where the header file to be included in mpif-ext.h must be
3333
# installed.
34-
ompidir = $(ompiincludedir)/ompi/mpiext/pcollreq/mpif-h
34+
ompidir = $(ompiincludedir)/ompi/mpiext
3535

3636
# Just like noinst_LTLIBRARIES, set this macro to empty and
3737
# conditionally add to it later.
@@ -46,7 +46,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
4646
noinst_LTLIBRARIES += libmpiext_pcollreq_mpifh.la
4747

4848
# This is the header file that is installed.
49-
ompi_HEADERS += mpiext_pcollreq_mpifh.h
49+
ompi_HEADERS += pcollreq_mpifh.h
5050

5151
noinst_HEADERS = mpiext_pcollreq_prototypes.h
5252

0 commit comments

Comments
 (0)