1
1
openmpi/opal/mca/maffinity/libnuma/configure.m4
Brian Barrett 1df9b160a9 * greatly simply the maffinity:libnuma configure macro - use the
OMPI_CHECK_PACKAGE macro instead of doing everything ourself.
  The old code was causing problems - it wouldn't add anything to
  WRAPPER_EXTRA_{LDFLAGS, LIBS} if libnuma was installed in /usr,
  so it didn't work so well.

  This should go to the 1.0 branch

This commit was SVN r7683.
2005-10-11 01:37:45 +00:00

58 строки
2.2 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University.
# All rights reserved.
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
# All rights reserved.
# 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.
# $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])])
AS_IF([test "$with_libnuma" = "no"],
[maffinity_libnuma_happy="no"],
[maffinity_libnuma_happy="yes"])
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"])])
AS_IF([test "$maffinity_libnuma_happy" = "yes"],
[maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS"
maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS"
$1],
[$2])
# 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])])])
# substitute in the things needed to build gm
AC_SUBST([maffinity_libnuma_CPPFLAGS])
AC_SUBST([maffinity_libnuma_LDFLAGS])
AC_SUBST([maffinity_libnuma_LIBS])
])dnl