summaryrefslogtreecommitdiffstats
path: root/aclocal/ipv6.m4
blob: 75a85826a4975032c3bf5548eeeda7339807ff81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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], ,
                   [AC_MSG_ERROR([Missing library functions needed for IPv6.])])

    AC_CHECK_LIB([tirpc], [bindresvport_sa], [:],
		 [AC_MSG_ERROR([Missing library functions needed for IPv6.])])
  fi

])dnl