Commit 252d71e3 authored by Pekka Pessi's avatar Pekka Pessi

configure.ac, m4/sac-su2.m4: added --disable-ip6

darcs-hash:20070419103915-65a35-525ddb4eae352731228134560290e58e0b800609.gz
parent 26bbea23
......@@ -229,7 +229,6 @@ AC_C_KEYWORD_STRUCT
AC_HEADER_TIME
AC_TYPE_SIZE_T
AC_STRUCT_SIN6
AC_SYS_SA_LEN
### checks for library functions
......
......@@ -196,13 +196,18 @@ if test "$ac_cv_sa_len" = yes ;then
[Define to 1 if you have sa_len in struct sockaddr])
fi
AC_REQUIRE([AC_STRUCT_SIN6])
AC_ARG_ENABLE([ip6],
[ --disable-ip6 disable IPv6 functionality [[enabled]]],,enable_ip6=yes)
if ! test no$enable_ip6 = nono ; then
AC_STRUCT_SIN6
case $ac_cv_sin6 in
yes) SAC_SU_DEFINE(SU_HAVE_IN6, 1, [
Define to 1 if you have struct sockaddr_in6]) ;;
no) ;;
*) AC_MSG_ERROR([Inconsistent struct sockaddr_sin6 test]) ;;
esac
fi
AC_CHECK_HEADERS([unistd.h sys/time.h])
......
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