2005-08-26 23:51:02 +04:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
2005-11-05 22:57:48 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
2005-08-26 23:51:02 +04:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2009-01-11 05:30:00 +03:00
|
|
|
# Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
2005-08-26 23:51:02 +04:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# MCA_<framework>_<component>_CONFIG([action-if-can-compile],
|
|
|
|
# [action-if-cant-compile])
|
|
|
|
# ------------------------------------------------
|
|
|
|
AC_DEFUN([MCA_maffinity_libnuma_CONFIG],[
|
|
|
|
AC_ARG_WITH([libnuma],
|
|
|
|
[AC_HELP_STRING([--with-libnuma],
|
|
|
|
[Directory where the libnuma software is installed])])
|
|
|
|
|
2005-10-11 05:37:45 +04:00
|
|
|
AS_IF([test "$with_libnuma" = "no"],
|
|
|
|
[maffinity_libnuma_happy="no"],
|
|
|
|
[maffinity_libnuma_happy="yes"])
|
2005-08-26 23:51:02 +04:00
|
|
|
|
2005-10-11 05:37:45 +04:00
|
|
|
AS_IF([test "$maffinity_libnuma_happy" = "yes"],
|
|
|
|
[OMPI_CHECK_PACKAGE([maffinity_libnuma],
|
|
|
|
[numa.h],
|
|
|
|
[numa],
|
|
|
|
[numa_available],
|
|
|
|
[],
|
|
|
|
[$with_libnuma],
|
|
|
|
[],
|
|
|
|
[maffinity_libnuma_happy="yes"],
|
|
|
|
[maffinity_libnuma_happy="no"])])
|
2005-08-26 23:51:02 +04:00
|
|
|
|
2005-10-11 05:37:45 +04:00
|
|
|
AS_IF([test "$maffinity_libnuma_happy" = "yes"],
|
|
|
|
[maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS"
|
|
|
|
maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS"
|
|
|
|
$1],
|
2005-08-26 23:51:02 +04:00
|
|
|
[$2])
|
|
|
|
|
2005-10-11 05:37:45 +04:00
|
|
|
# sanity check
|
|
|
|
AS_IF([test "$maffinity_libnuma_happy" = "no"],
|
|
|
|
[AS_IF([test "$with_libnuma" != "no" -a ! -z "$with_libnuma"],
|
|
|
|
[AC_MSG_ERROR([maffinity:libnuma requested but not found. Aborting])])])
|
|
|
|
|
2008-06-16 21:26:42 +04:00
|
|
|
# Check for MPOL_MF_MOVE
|
|
|
|
AS_IF([test "$maffinity_libnuma_happy" = "yes"],
|
|
|
|
[AC_CHECK_DECLS([MPOL_MF_MOVE])])
|
|
|
|
|
|
|
|
# substitute in the things needed to build libnuma
|
2005-08-26 23:51:02 +04:00
|
|
|
AC_SUBST([maffinity_libnuma_CPPFLAGS])
|
|
|
|
AC_SUBST([maffinity_libnuma_LDFLAGS])
|
|
|
|
AC_SUBST([maffinity_libnuma_LIBS])
|
|
|
|
])dnl
|
2008-06-16 21:26:42 +04:00
|
|
|
>
|