summaryrefslogtreecommitdiffstats
path: root/aclocal/ipv6.m4
blob: 4e39fbe8cc3045ee0d991d8a3616bc84406c12e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl Checks for IPv6 support
dnl
AC_DEFUN([AC_IPV6], [

  if test "$enable_ipv6" = yes; then

    dnl TI-RPC required for IPv6
    if test "$enable_tirpc" = no; then
      AC_MSG_ERROR(['--enable-ipv6' requires TIRPC support.])
    fi

    dnl IPv6-enabled networking functions required for IPv6
    AC_CHECK_FUNCS([getifaddrs getnameinfo bindresvport_sa], ,
                   [AC_MSG_ERROR([Missing library functions needed for IPv6.])])

  fi

])dnl