Commit 91d3d7d6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added --enable-ipv6 switch. Check for inet_ntop, inet_pton,

getipnodebyname, gethostbyname2, and struct sockaddr_storage.
parent f4273045
......@@ -19,7 +19,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Revision: 1.19 $)dnl
AC_REVISION($Revision: 1.20 $)dnl
......@@ -42,6 +42,11 @@ AC_HELP_STRING([--with-optimization@<:@=N@:>@],[specify level of optimization]),
AC_HELP_STRING([--enable-ipv6], [enable IPv6 support]),
dnl Checks for programs.
......@@ -179,6 +184,34 @@ then]
dnl Checks for IPv6 support
[if test "$use_inet6" = 'yes'; then]
AC_MSG_WARN(Proper decoding of IPv6 addresses requires inet_ntop)
[if test "$use_inet6" = 'yes'; then]
AC_MSG_WARN(Proper encoding of IPv6 addresses requires inet_pton)
AC_CHECK_FUNCS(getipnodebyname gethostbyname2)
AC_CHECK_TYPES(struct sockaddr_storage,
[if test "$use_inet6" = 'yes'; then]
AC_MSG_NOTICE([IPv6 support is enabled])
AC_MSG_NOTICE([IPv6 support is disabled])
[if test "$use_inet6" = 'yes'; then]
AC_MSG_ERROR([IPv6 support requires struct sockaddr_storage])
[#include <sys/socket.h>])
[if test "$use_gcov" = "yes" -a -n "$GCC"; then]
CMOD_CHECK_CC_OPT([-ftest-coverage], [test_coverage])
CMOD_CHECK_CC_OPT([-fprofile-arcs], [profile_arcs])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment