switch udreg config macro to use pkg-config
This commit was SVN r32516.
Этот коммит содержится в:
родитель
37dc9477d0
Коммит
4d6d4f46b0
@ -17,7 +17,9 @@ with_ugni=/opt/cray/ugni/4.0-1.0401.5928.9.5.gem
|
|||||||
with_ugni_includedir=/opt/cray/gni-headers/default/include
|
with_ugni_includedir=/opt/cray/gni-headers/default/include
|
||||||
|
|
||||||
# enable the udreg mpool
|
# enable the udreg mpool
|
||||||
with_udreg=/opt/cray/udreg/2.3.2-1.0401.5929.3.3.gem
|
# deprecated, no longer needed (non-default udreg can be selected via PKG_CONFIG_PATH env variable).
|
||||||
|
#
|
||||||
|
#with_udreg=/opt/cray/udreg/2.3.2-1.0401.5929.3.3.gem
|
||||||
|
|
||||||
if test -e /opt/cray/alps/default ; then
|
if test -e /opt/cray/alps/default ; then
|
||||||
# use default location for CLE4
|
# use default location for CLE4
|
||||||
|
@ -24,26 +24,23 @@
|
|||||||
AC_DEFUN([MCA_opal_mpool_udreg_CONFIG],[
|
AC_DEFUN([MCA_opal_mpool_udreg_CONFIG],[
|
||||||
AC_CONFIG_FILES([opal/mca/mpool/udreg/Makefile])
|
AC_CONFIG_FILES([opal/mca/mpool/udreg/Makefile])
|
||||||
|
|
||||||
AC_ARG_WITH([udreg], [AC_HELP_STRING([--with-udreg(=DIR)],
|
AC_ARG_WITH([udreg], [AC_HELP_STRING([--with-udreg],
|
||||||
[Build support for Cray udreg support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
|
[Build support for Cray udreg support. Set PKG_CONFIG_PATH env. variable to specify alternate path.])])
|
||||||
OPAL_CHECK_WITHDIR([udreg], [$with_udreg], [.])
|
|
||||||
|
|
||||||
mpool_udreg_happy="no"
|
mpool_udreg_happy="no"
|
||||||
|
|
||||||
if test "$with_udreg" != "no" ; then
|
AS_IF([test "$with_udreg" = "no"],
|
||||||
if test -n "$with_udreg" -a "$with_udreg" != "yes" ; then
|
[mpool_udreg_happy="no"],
|
||||||
opal_check_udreg_dir="$with_udreg"
|
[PKG_CHECK_MODULES([CRAY_UDREG], [cray-udreg],
|
||||||
else
|
[mpool_udreg_LDFLAGS="$CRAY_UDREG_LIBS"
|
||||||
opal_check_udreg_dir=""
|
mpool_udreg_CPPFLAGS="$CRAY_UDREG_CFLAGS"
|
||||||
fi
|
mpool_udreg_happy="yes"],
|
||||||
|
[AC_MSG_RESULT([no])
|
||||||
OPAL_CHECK_PACKAGE([mpool_udreg], [udreg_pub.h], [udreg], [UDREG_CacheCreate],
|
mpool_udreg_happ="no"])])
|
||||||
[], [$opal_check_udreg_dir], ["$opal_check_udreg_dir/lib64"],
|
|
||||||
[mpool_udreg_happy="yes"], [mpool_udreg_happy="no"])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AS_IF([test "$mpool_udreg_happy" = "yes"], [$1], [$2])
|
AS_IF([test "$mpool_udreg_happy" = "yes"], [$1], [$2])
|
||||||
|
|
||||||
|
|
||||||
# substitute in the things needed to build ugni
|
# substitute in the things needed to build ugni
|
||||||
AC_SUBST([mpool_udreg_CPPFLAGS])
|
AC_SUBST([mpool_udreg_CPPFLAGS])
|
||||||
AC_SUBST([mpool_udreg_LDFLAGS])
|
AC_SUBST([mpool_udreg_LDFLAGS])
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user