From 2fa048b0e0abf3d1dc3e42a5523a74013f19334b Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 2 Sep 2009 11:23:54 +0000 Subject: [PATCH] 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. --- opal/mca/paffinity/test/configure.m4 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/opal/mca/paffinity/test/configure.m4 b/opal/mca/paffinity/test/configure.m4 index fe13a0b03e..1d67033426 100644 --- a/opal/mca/paffinity/test/configure.m4 +++ b/opal/mca/paffinity/test/configure.m4 @@ -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 # 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