Add autoconf checks for platforms without IPv6