summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-28 14:36:28 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-28 14:42:21 -0400
commit73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84 (patch)
tree4a6ef543d04d0153134d973977b0e5bfce80425d /configure.in
parentc612ddee17c2f6e70fde9f0bdd7116516f384ae8 (diff)
downloadtor-73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84.tar.gz
tor-73d93c033d3f4b9c95e8f3a5cc7e4a255d523b84.zip
Autodetect the number of CPUs when possible if NumCPUs==0
This is needed for IOCP, since telling the IOCP backend about all your CPUs is a good idea. It'll also come in handy with asn's multithreaded crypto stuff, and for people who run servers without reading the manual.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 511552d713..83eee4d348 100644
--- a/configure.in
+++ b/configure.in
@@ -226,7 +226,7 @@ dnl -------------------------------------------------------------------
dnl Check for functions before libevent, since libevent-1.2 apparently
dnl exports strlcpy without defining it in a header.
-AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit strlcat strlcpy strtoull getaddrinfo localtime_r gmtime_r memmem strtok_r flock prctl vasprintf)
+AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit strlcat strlcpy strtoull getaddrinfo localtime_r gmtime_r memmem strtok_r flock prctl vasprintf sysconf)
using_custom_malloc=no
if test x$enable_openbsd_malloc = xyes ; then