2007-03-16 23:11:45 +00:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
2010-03-12 23:57:50 +00:00
|
|
|
# Copyright (c) 2004-2010 The Trustees of Indiana University.
|
2007-03-16 23:11:45 +00:00
|
|
|
# All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
# All rights reserved.
|
2015-06-23 20:59:57 -07:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2007-03-16 23:11:45 +00:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2010-09-17 23:04:06 +00:00
|
|
|
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
2007-03-16 23:11:45 +00:00
|
|
|
# $COPYRIGHT$
|
2015-06-23 20:59:57 -07:00
|
|
|
#
|
2007-03-16 23:11:45 +00:00
|
|
|
# Additional copyrights may follow
|
2015-06-23 20:59:57 -07:00
|
|
|
#
|
2007-03-16 23:11:45 +00:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
# MCA_crs_self_CONFIG([action-if-found], [action-if-not-found])
|
|
|
|
# -----------------------------------------------------------
|
2010-09-17 23:04:06 +00:00
|
|
|
AC_DEFUN([MCA_opal_crs_self_CONFIG],[
|
|
|
|
AC_CONFIG_FILES([opal/mca/crs/self/Makefile])
|
|
|
|
|
2007-03-16 23:11:45 +00:00
|
|
|
# If we don't want FT, don't compile this component
|
2010-03-30 16:47:39 +00:00
|
|
|
AS_IF([test "$opal_want_ft_cr" = "1"],
|
2007-07-29 17:40:17 +00:00
|
|
|
[crs_self_good="yes"],
|
2009-08-05 22:07:37 +00:00
|
|
|
[crs_self_good="no"])
|
2007-07-29 17:40:17 +00:00
|
|
|
|
2009-08-05 22:07:37 +00:00
|
|
|
# We need the dlfcn.h so we can access dlsym and friends
|
|
|
|
AS_IF([test "$crs_self_good" = "yes"],
|
|
|
|
[AC_CHECK_HEADER([dlfcn.h],
|
|
|
|
[crs_self_good="yes"],
|
2009-08-07 23:38:54 +00:00
|
|
|
[crs_self_good="no"])])
|
2009-08-05 22:07:37 +00:00
|
|
|
|
|
|
|
# If they did not ask for dlopen support,
|
|
|
|
# they probably do not want this component either
|
|
|
|
AS_IF([test "$crs_self_good" = "yes"],
|
|
|
|
[AS_IF([test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "1"],
|
|
|
|
[crs_self_good="yes"],
|
2009-08-07 23:38:54 +00:00
|
|
|
[crs_self_good="no"])])
|
2009-08-05 22:07:37 +00:00
|
|
|
|
|
|
|
AS_IF([test "$crs_self_good" = "yes"],
|
2007-03-16 23:11:45 +00:00
|
|
|
[$1],
|
2009-08-07 23:38:54 +00:00
|
|
|
[$2])
|
2009-08-05 22:07:37 +00:00
|
|
|
|
2007-03-16 23:11:45 +00:00
|
|
|
])dnl
|