
gcc 7.[1,2] (at least) fails to correctly parse the OSX 10.13 sys/syslog.h header. As a results we need to potect syslog support in OPAL, PMIX and ORTE. Signed-off-by: George Bosilca <bosilca@icl.utk.edu> Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
32 строки
897 B
Bash
32 строки
897 B
Bash
# -*- shell-script -*-
|
|
#
|
|
# Copyright (c) 2017 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# MCA_notifier_syslog_CONFIG([action-if-found], [action-if-not-found])
|
|
# -----------------------------------------------------------
|
|
AC_DEFUN([MCA_orte_notifier_syslog_CONFIG], [
|
|
AC_CONFIG_FILES([orte/mca/notifier/syslog/Makefile])
|
|
|
|
OPAL_VAR_SCOPE_PUSH([orte_notifier_syslog_happy])
|
|
|
|
# Per https://github.com/open-mpi/ompi/issues/4373 and
|
|
# https://github.com/open-mpi/ompi/pull/4374, we need to check
|
|
# that syslog.h is compilable. If syslog.h is not compilable,
|
|
# disable this component.
|
|
AC_CHECK_HEADER([syslog.h],
|
|
[orte_notifier_syslog_happy=1],
|
|
[orte_notifier_syslog_happy=0])
|
|
|
|
AS_IF([test $orte_notifier_syslog_happy -eq 1],
|
|
[$1],
|
|
[$2])
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
])dnl
|