Skip to content

Commit

Permalink
configure: Default to install Fortran modulefiles to $includedir
Browse files Browse the repository at this point in the history
Change the default install location of Fortran MPI bindings
modulefiles from $libdir to $includedir.

Signed-off-by: Jeff Squyres <[email protected]>
  • Loading branch information
jsquyres committed Jul 2, 2024
1 parent 7338594 commit 9fb2160
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/ompi_configure_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ esac
AC_MSG_CHECKING([where to install Fortran MPI modules])
AC_ARG_WITH([mpi-moduledir],
[AS_HELP_STRING([--with-mpi-moduledir],
[specify where to install Fortran MPI modules (default: $libdir)])],
[specify where to install Fortran MPI modules (default: $includedir)])],
[OMPI_FORTRAN_MODULEDIR=$withval],
[OMPI_FORTRAN_MODULEDIR=$libdir])
[OMPI_FORTRAN_MODULEDIR=$includedir])
AC_SUBST(OMPI_FORTRAN_MODULEDIR)
AC_MSG_RESULT([$OMPI_FORTRAN_MODULEDIR])

Expand Down
5 changes: 4 additions & 1 deletion docs/installing-open-mpi/configure-cli-options/mpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ MPI API behaviors that can be used with ``configure``:
* ``--with-mpi-moduledir=DIR``:
Specify a specific ``DIR`` directory where to install the MPI
Fortran bindings modulefiles. By default, Open MPI will install
Fortran modulefiles into ``$libdir``.
Fortran modulefiles into ``$includedir``.

.. note:: Previous versions of Open MPI installed Fortran
modulefiles into ``$libdir``.

* ``--enable-mpi-ext[=LIST]``:
Enable Open MPI's non-portable API extensions. ``LIST`` is a
Expand Down

0 comments on commit 9fb2160

Please sign in to comment.