diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-03 19:49:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-03 19:49:42 +0000 |
commit | 7cb3232ade9c55d26a64bddbd12a92a2a32180cd (patch) | |
tree | 97a779a7a4d360f8b06f1d255cd75fa676339820 /configure.in | |
parent | 86da3e0a0af5813d6f5eb695d8353b2988f256ff (diff) | |
download | tor-7cb3232ade9c55d26a64bddbd12a92a2a32180cd.tar.gz tor-7cb3232ade9c55d26a64bddbd12a92a2a32180cd.zip |
Add async dns code from Adam Langley, tweaked to build on OSX. Long-term, we may want to switch to libevnet/c-ares, if they ever handle 10k fd situations properly. This one still needs work too, but at least it is small. This code is disabled by default, and not integrated with dns.c.
svn:r6524
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 57f67d66d8..3941036875 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,18 @@ if test $enable_threads = "yes"; then AC_DEFINE(ENABLE_THREADS, 1, [Defined if we will try to use multithreading]) fi +AC_ARG_ENABLE(eventdns, + AC_HELP_STRING(--enable-eventdns, enable asynchronous dns module), + [case "${enableval}" in + yes) eventdns=true ;; + no) eventdns=false ;; + *) AC_MSG_ERROR(bad value for --enable-eventdns) ;; + esac], [eventdns=false]) +AM_CONDITIONAL(EVENTDNS, test x$eventdns = xtrue) +if test x$eventdns = xtrue; then + AC_DEFINE([USE_EVENTDNS], 1, "Define to 1 if we'll be using eventdns.c") +fi + case $host in *-*-solaris* ) AC_DEFINE(_REENTRANT, 1, [Define on some platforms to activate x_r() functions in time.h]) @@ -347,7 +359,7 @@ dnl These headers are not essential AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h stddef.h inttypes.h utime.h sys/utime.h sys/mman.h) -AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam getpwuid ftello getaddrinfo localtime_r gmtime_r event_get_version event_get_method event_set_log_callback memmem mmap) +AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam getpwuid ftello getaddrinfo localtime_r gmtime_r event_get_version event_get_method event_set_log_callback memmem mmap strtok_r) if test $enable_threads = "yes"; then AC_CHECK_HEADERS(pthread.h) |