forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.m4
More file actions
49 lines (45 loc) · 1.81 KB
/
Copy pathconfigure.m4
File metadata and controls
49 lines (45 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- shell-script -*-
#
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# Copyright (c) 2025 Jeffrey M. Squyres. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
AC_DEFUN([MCA_opal_if_bsdx_ipv4_COMPILE_MODE], [
AC_MSG_CHECKING([for MCA component $2:$3 compile mode])
$4="static"
AC_MSG_RESULT([$$4])
])
# MCA_if_config_CONFIG(action-if-can-compile,
# [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_opal_if_bsdx_ipv4_CONFIG], [
AC_CONFIG_FILES([opal/mca/if/bsdx_ipv4/Makefile])
AC_REQUIRE([OAC_CHECK_OS_FLAVORS])
# If we previously found struct sockaddr_in (we don't repeat the
# AC CHECK_TYPES test here simply because it's cumbersome with all
# the required #includes) and we're on any of the BSDs, we're
# happy. I.e., this:
#if defined(__NetBSD__) || defined(__FreeBSD__) || \
# defined(__OpenBSD__) || defined(__DragonFly__)
AC_MSG_CHECKING([struct sockaddr_in again])
AS_IF([test "$ac_cv_type_struct_sockaddr_in" = "yes"],
[AC_MSG_RESULT([yes (OPAL cached)])
AC_MSG_CHECKING([NetBSD, FreeBSD, OpenBSD, or DragonFly])
AS_IF([test "$oac_found_netbsd" = "yes" || \
test "$oac_found_freebsd" = "yes" || \
test "$oac_found_openbsd" = "yes" || \
test "$oac_found_dragonfly" = "yes"],
[AC_MSG_RESULT([yes])
$1],
[AC_MSG_RESULT([no])
$2])],
[AC_MSG_RESULT([no (OPAL cached)])
$2])
])