1# -*- shell-script -*- 2# 3# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana 4# University Research and Technology 5# Corporation. All rights reserved. 6# Copyright (c) 2004-2005 The University of Tennessee and The University 7# of Tennessee Research Foundation. All rights 8# reserved. 9# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 10# University of Stuttgart. All rights reserved. 11# Copyright (c) 2004-2005 The Regents of the University of California. 12# All rights reserved. 13# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. 14# $COPYRIGHT$ 15# 16# Additional copyrights may follow 17# 18# $HEADER$ 19# 20AC_DEFUN([MCA_opal_backtrace_printstack_PRIORITY], [30]) 21 22AC_DEFUN([MCA_opal_backtrace_printstack_COMPILE_MODE], [ 23 AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) 24 $4="static" 25 AC_MSG_RESULT([$$4]) 26]) 27 28 29# MCA_backtrace_printstack_CONFIG(action-if-can-compile, 30# [action-if-cant-compile]) 31# ------------------------------------------------ 32AC_DEFUN([MCA_opal_backtrace_printstack_CONFIG],[ 33 AC_CONFIG_FILES([opal/mca/backtrace/printstack/Makefile]) 34 35 AC_CHECK_HEADERS([ucontext.h]) 36 # FreeBSD has backtrace in -lexecinfo, usually in libc 37 AC_CHECK_FUNCS([printstack], 38 [backtrace_printstack_happy="yes"], 39 [backtrace_printstack_happy="no"]) 40 41 AS_IF([test "$backtrace_printstack_happy" = "yes"], 42 [$1], [$2]) 43]) 44