X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=aclocal%2Fipv6.m4;h=75a85826a4975032c3bf5548eeeda7339807ff81;hp=0564b3e7067609e616d0b4f9bbc3e2d193257df8;hb=dfebe7f4f25a12b615195f339192fa8837d9b5c9;hpb=530abf870f5188b2bdd4a9211d7c93fb6ce68854 diff --git a/aclocal/ipv6.m4 b/aclocal/ipv6.m4 index 0564b3e..75a8582 100644 --- a/aclocal/ipv6.m4 +++ b/aclocal/ipv6.m4 @@ -2,28 +2,19 @@ dnl Checks for IPv6 support dnl AC_DEFUN([AC_IPV6], [ - AC_CHECK_DECL([AI_ADDRCONFIG], - [AC_DEFINE([HAVE_DECL_AI_ADDRCONFIG], 1, - [Define this to 1 if AI_ADDRCONFIG macro is defined])], , - [ #include ]) - if test "$enable_ipv6" = yes; then dnl TI-RPC required for IPv6 if test "$enable_tirpc" = no; then - AC_MSG_ERROR(['--enable-ipv6' requires '--enable-tirpc'.]) + AC_MSG_ERROR(['--enable-ipv6' requires TIRPC support.]) fi dnl IPv6-enabled networking functions required for IPv6 - AC_CHECK_FUNCS([getnameinfo bindresvport_sa], , , - [AC_MSG_ERROR([Missing functions needed for IPv6.])]) - - dnl Need to detect presence of IPv6 networking at run time via - dnl getaddrinfo(3); old versions of glibc do not support ADDRCONFIG - AC_CHECK_DECL([AI_ADDRCONFIG], , - [AC_MSG_ERROR([full getaddrinfo(3) implementation needed for IPv6 support])], - [ #include ]) + 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