]> git.decadent.org.uk Git - nfs-utils.git/blob - aclocal/ipv6.m4
Kill SPKM3: Remove spkm3 support from exports
[nfs-utils.git] / aclocal / ipv6.m4
1 dnl Checks for IPv6 support
2 dnl
3 AC_DEFUN([AC_IPV6], [
4
5   if test "$enable_ipv6" = yes; then
6
7     dnl TI-RPC required for IPv6
8     if test "$enable_tirpc" = no; then
9       AC_MSG_ERROR(['--enable-ipv6' requires TIRPC support.])
10     fi
11
12     dnl IPv6-enabled networking functions required for IPv6
13     AC_CHECK_FUNCS([getifaddrs getnameinfo], ,
14                    [AC_MSG_ERROR([Missing library functions needed for IPv6.])])
15
16     AC_CHECK_LIB([tirpc], [bindresvport_sa], [:],
17                  [AC_MSG_ERROR([Missing library functions needed for IPv6.])])
18   fi
19
20 ])dnl