@@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
1010dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212dnl All rights reserved.
13- dnl Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved.
13+ dnl Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved
1414dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
1515dnl Copyright (c) 2009 IBM Corporation. All rights reserved.
1616dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights
286286AC_DEFINE_UNQUOTED(OPAL_ENABLE_DLOPEN_SUPPORT, $OPAL_ENABLE_DLOPEN_SUPPORT ,
287287 [Whether we want to enable dlopen support])
288288
289+
290+ #
291+ # Do we want to show component load error messages by default?
292+ #
293+
294+ AC_MSG_CHECKING([for default value of mca_base_component_show_load_errors])
295+ AC_ARG_ENABLE([show-load-errors-by-default],
296+ [AC_HELP_STRING([--enable-show-load-errors-by-default],
297+ [Set the default value for the MCA parameter
298+ mca_base_component_show_load_errors (but can be
299+ overridden at run time by the usual
300+ MCA-variable-setting mechansism). This MCA variable
301+ controls whether warnings are displayed when an MCA
302+ component fails to load at run time due to an error.
303+ (default: enabled, meaning that
304+ mca_base_component_show_load_errors is enabled
305+ by default])])
306+ if test " $enable_show_load_errors_by_default " = " no" ; then
307+ OPAL_SHOW_LOAD_ERRORS_DEFAULT=0
308+ AC_MSG_RESULT([disabled by default])
309+ else
310+ OPAL_SHOW_LOAD_ERRORS_DEFAULT=1
311+ AC_MSG_RESULT([enabled by default])
312+ fi
313+ AC_DEFINE_UNQUOTED(OPAL_SHOW_LOAD_ERRORS_DEFAULT, $OPAL_SHOW_LOAD_ERRORS_DEFAULT ,
314+ [Default value for mca_base_component_show_load_errors MCA variable])
315+
316+
289317#
290318# Heterogeneous support
291319#
0 commit comments