2008-07-23 03:29:43 +00:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
# 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 02:30:00 +00:00
|
|
|
# Copyright (c) 2007-2008 Cisco Systems, Inc. All rights reserved.
|
2008-07-23 03:29:43 +00:00
|
|
|
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2008-07-24 01:54:51 +00:00
|
|
|
# MCA_paffinity_posix_CONFIG([action-if-found], [action-if-not-found])
|
2008-07-23 03:29:43 +00:00
|
|
|
# -----------------------------------------------------------
|
2008-07-24 01:54:51 +00:00
|
|
|
AC_DEFUN([MCA_paffinity_posix_CONFIG],[
|
2008-08-01 22:54:24 +00:00
|
|
|
OMPI_VAR_SCOPE_PUSH([paff_posix_happy])
|
2008-08-01 11:41:08 +00:00
|
|
|
# Check to see if we have <unistd.h>
|
2008-08-01 22:54:24 +00:00
|
|
|
AC_CHECK_HEADER([unistd.h], [paff_posix_happy=yes], [paff_posix_happy=no])
|
2008-07-23 03:29:43 +00:00
|
|
|
|
2008-08-01 11:41:08 +00:00
|
|
|
# Check to see if we have _SC_NPROCESSORS_ONLN
|
2008-08-01 22:54:24 +00:00
|
|
|
AS_IF([test "$paff_posix_happy" = "yes"],
|
2008-08-01 11:41:08 +00:00
|
|
|
[AC_MSG_CHECKING([for _SC_NPROCESSORS_ONLN])
|
|
|
|
AS_IF([test "$OMPI_HAVE__SC_NPROCESSORS_ONLN" = "1"],
|
2008-08-01 22:54:24 +00:00
|
|
|
[paff_posix_happy=yes], [paff_posix_happy=no])
|
|
|
|
AC_MSG_RESULT([(cached) $paff_posix_happy])])
|
2008-07-23 03:29:43 +00:00
|
|
|
|
2008-08-01 22:54:24 +00:00
|
|
|
AS_IF([test "$paff_posix_happy" = "yes"], [$1], [$2])
|
2008-08-01 11:41:08 +00:00
|
|
|
OMPI_VAR_SCOPE_POP
|
2008-07-23 03:29:43 +00:00
|
|
|
])dnl
|
|
|
|
|