1# -*- shell-script -*-
2#
3# Copyright (c) 2010      Cisco Systems, Inc.  All rights reserved.
4# Copyright (c) 2015      Research Organization for Information Science
5#                         and Technology (RIST). All rights reserved.
6# $COPYRIGHT$
7#
8# Additional copyrights may follow
9#
10# $HEADER$
11#
12
13AC_DEFUN([MCA_opal_if_linux_ipv6_COMPILE_MODE], [
14    AC_MSG_CHECKING([for MCA component $2:$3 compile mode])
15    $4="static"
16    AC_MSG_RESULT([$$4])
17])
18
19# MCA_if_config_CONFIG(action-if-can-compile,
20#                        [action-if-cant-compile])
21# ------------------------------------------------
22AC_DEFUN([MCA_opal_if_linux_ipv6_CONFIG], [
23    AC_CONFIG_FILES([opal/mca/if/linux_ipv6/Makefile])
24
25    AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
26
27    AC_MSG_CHECKING([if we are on Linux with TCP])
28    # If we have struct sockaddr and we're on Linux, then we're
29    # happy.
30    AS_IF([test "$opal_found_sockaddr" = "yes" && test "$opal_found_linux" = "yes"],
31          [AC_MSG_RESULT([yes])
32           $1],
33          [AC_MSG_RESULT([no])
34           $2])
35])dnl
36