configury: new OPAL_SET_LIB_PREFIX/ORTE_SET_LIB_PREFIX macros
These two macros set the prefix for the OPAL and ORTE libraries,
respectively. Specifically, the OPAL library will be named
libPREFIXopen-pal.la and the ORTE library will be named
libPREFIXopen-rte.la.
These macros must be called, even if the prefix argument is empty.
The intent is that Open MPI will call these macros with an empty
prefix, but other projects (such as ORCM) will call these macros with
a non-empty prefix. For example, ORCM libraries can be named
liborcm-open-pal.la and liborcm-open-rte.la.
This scheme is necessary to allow running Open MPI applications under
systems that use their own versions of ORTE and OPAL. For example,
when running MPI applications under ORTE, if the ORTE and OPAL
libraries between OMPI and ORCM are not identical (which, because they
are released at different times, are likely to be different), we need
to ensure that the OMPI applications link against their ORTE and OPAL
libraries, but the ORCM executables link against their ORTE and OPAL
libraries.
2014-10-22 16:49:58 +04:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
|
2016-09-06 23:41:56 +03:00
|
|
|
# Copyright (c) 2016 IBM Corporation. All rights reserved.
|
configury: new OPAL_SET_LIB_PREFIX/ORTE_SET_LIB_PREFIX macros
These two macros set the prefix for the OPAL and ORTE libraries,
respectively. Specifically, the OPAL library will be named
libPREFIXopen-pal.la and the ORTE library will be named
libPREFIXopen-rte.la.
These macros must be called, even if the prefix argument is empty.
The intent is that Open MPI will call these macros with an empty
prefix, but other projects (such as ORCM) will call these macros with
a non-empty prefix. For example, ORCM libraries can be named
liborcm-open-pal.la and liborcm-open-rte.la.
This scheme is necessary to allow running Open MPI applications under
systems that use their own versions of ORTE and OPAL. For example,
when running MPI applications under ORTE, if the ORTE and OPAL
libraries between OMPI and ORCM are not identical (which, because they
are released at different times, are likely to be different), we need
to ensure that the OMPI applications link against their ORTE and OPAL
libraries, but the ORCM executables link against their ORTE and OPAL
libraries.
2014-10-22 16:49:58 +04:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
# OPAL_SET_LIB_PREFIX([library_prefix]
|
|
|
|
#
|
|
|
|
# This macro sets a prefix for the libopen-pal library. Specifically,
|
|
|
|
# libopen-pal.la becomes libPREFIXopen-pal.la.
|
|
|
|
#
|
|
|
|
# --------------------------------------------------------
|
|
|
|
AC_DEFUN([OPAL_SET_LIB_PREFIX],[
|
|
|
|
AS_IF([test "$opal_lib_prefix_set" = "yes"],
|
|
|
|
[AC_MSG_WARN([OPAL lib prefix was already set!])
|
|
|
|
AC_MSG_WARN([This is a configury programming error])
|
|
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
|
|
|
|
OPAL_LIB_PREFIX=$1
|
|
|
|
opal_lib_prefix_set=yes
|
|
|
|
AC_SUBST(OPAL_LIB_PREFIX)
|
|
|
|
])dnl
|
|
|
|
|
|
|
|
#
|
|
|
|
# Same as OPAL LIB_PREFIX, but for the ORTE layer
|
|
|
|
#
|
|
|
|
AC_DEFUN([ORTE_SET_LIB_PREFIX],[
|
|
|
|
AS_IF([test "$orte_lib_prefix_set" = "yes"],
|
|
|
|
[AC_MSG_WARN([ORTE lib prefix was already set!])
|
|
|
|
AC_MSG_WARN([This is a configury programming error])
|
|
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
|
|
|
|
ORTE_LIB_PREFIX=$1
|
|
|
|
orte_lib_prefix_set=yes
|
|
|
|
AC_SUBST(ORTE_LIB_PREFIX)
|
|
|
|
])dnl
|
2016-09-06 23:41:56 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Rename 'libmpi' and 'libmpi_FOO' with a configure time option.
|
|
|
|
#
|
|
|
|
AC_DEFUN([OMPI_SET_LIB_NAME],[
|
|
|
|
AC_MSG_CHECKING([if want custom libmpi(_FOO) name])
|
|
|
|
AC_ARG_WITH([libmpi-name],
|
|
|
|
[AC_HELP_STRING([--with-libmpi-name=STRING],
|
|
|
|
["Replace \"libmpi(_FOO)\" with \"libSTRING(_FOO)\" (default=mpi)"])])
|
|
|
|
|
|
|
|
AS_IF([test "$with_libmpi_name" = "no"],
|
|
|
|
[AC_MSG_RESULT([Error])
|
|
|
|
AC_MSG_WARN([Invalid to specify --without-libmpi-name])
|
|
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
|
|
|
|
AS_IF([test "$with_libmpi_name" = "" || test "$with_libmpi_name" = "yes"],
|
|
|
|
[with_libmpi_name="mpi"])
|
|
|
|
|
|
|
|
AC_MSG_RESULT([$with_libmpi_name])
|
|
|
|
AC_SUBST(OMPI_LIBMPI_NAME, $with_libmpi_name)
|
|
|
|
])dnl
|