diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 38e3dd82..1ff861cd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -193,6 +193,16 @@ AC_ARG_ENABLE([[epoll]], | |||
193 | [enable_epoll='auto'] | 193 | [enable_epoll='auto'] |
194 | ) | 194 | ) |
195 | 195 | ||
196 | AC_ARG_ENABLE([[ipv6]], | ||
197 | [AS_HELP_STRING([[--disable-ipv6[=ARG]]], [use ipv4 in tests (yes, no, auto) [auto]])], | ||
198 | [use_ipv6=${enableval}], | ||
199 | [use_ipv6='auto'] | ||
200 | ) | ||
201 | |||
202 | if test "$use_ipv6" != "yes"; then | ||
203 | AC_DEFINE([USE_IPV6],[0],[define to 0 to force ipv4]) | ||
204 | fi | ||
205 | |||
196 | AX_HAVE_EPOLL | 206 | AX_HAVE_EPOLL |
197 | if test "$enable_epoll" != "no"; then | 207 | if test "$enable_epoll" != "no"; then |
198 | if test "${ax_cv_have_epoll}" = "yes"; then | 208 | if test "${ax_cv_have_epoll}" = "yes"; then |