1
1

Make the paffinity test component only build when you --enable-debug

(or have a developer build where that's enabled for you by default).

This commit was SVN r21928.
Этот коммит содержится в:
Jeff Squyres 2009-09-02 11:23:54 +00:00
родитель d3d34f8f15
Коммит 2fa048b0e0

Просмотреть файл

@ -10,7 +10,7 @@
# University of Stuttgart. All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# Copyright (c) 2007-2008 Cisco, Inc. All rights reserved.
# Copyright (c) 2007-2009 Cisco, Inc. All rights reserved.
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
# $COPYRIGHT$
#
@ -22,13 +22,15 @@
# MCA_paffinity_test_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([MCA_paffinity_test_CONFIG],[
OMPI_VAR_SCOPE_PUSH([paff_test_happy])
# check to see if we have <mach/mach_host.h>
# as this is a Darwin-specific thing and
# we are a test module for that environment
AC_CHECK_HEADER([mach/mach_host.h], [paff_test_happy=yes], [paff_test_happy=no])
AS_IF([test "$paff_test_happy" = "yes"], [$1], [$2])
OMPI_VAR_SCOPE_POP
AC_MSG_CHECKING([if this is an --enable-debug build])
AS_IF([test "$WANT_DEBUG" = "1"],
[AC_MSG_RESULT([yes])
AC_CHECK_HEADER([mach/mach_host.h], [$1], [$2])],
[AC_MSG_RESULT([no (component disabled)])
$2])
])dnl