From fb90a75fc9dc081be80f2f137f6fc2d8e913f0a2 Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Sun, 29 Jul 2007 17:40:17 +0000 Subject: [PATCH] A fix so that 'self' only compiles if --enable-dlopen (common case). This is because internally 'self' uses dlopen to look at the application running to determine if it can/should be used or not. This commit was SVN r15673. --- opal/mca/crs/self/configure.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opal/mca/crs/self/configure.m4 b/opal/mca/crs/self/configure.m4 index 46d91789d6..b5fda943fd 100644 --- a/opal/mca/crs/self/configure.m4 +++ b/opal/mca/crs/self/configure.m4 @@ -20,6 +20,11 @@ AC_DEFUN([MCA_crs_self_CONFIG],[ # If we don't want FT, don't compile this component AS_IF([test "$ompi_want_ft" = "1"], + [crs_self_good="yes"], + [$2]) + + # We need to be able to dlopen the executable for this component to work. + AS_IF([test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" -a "$crs_self_good" = "yes"], [$1], [$2]) ])dnl