Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-02 02:03:32 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-02 02:51:20 +0300
commit97c97450632f2cfd2e8a246337ee4a780f5b35ff (patch)
tree71022061d576928cc4d39b71463c4f4f482dca4b /deps
parent41c1563584bfb018a444e92f01f8cff87ccda30b (diff)
Back to WAF
Too much instability right now. Hopefully we can revisit autoconf soon.
Diffstat (limited to 'deps')
-rw-r--r--deps/c-ares/cygwin-x86/ares_build.h (renamed from deps/c-ares/cygwin-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/cygwin-x86/ares_config.h (renamed from deps/c-ares/cygwin-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/cygwin-x86/ares_setup.h (renamed from deps/c-ares/cygwin-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/darwin-x86/ares_build.h (renamed from deps/c-ares/darwin-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/darwin-x86/ares_config.h (renamed from deps/c-ares/darwin-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/darwin-x86/ares_setup.h (renamed from deps/c-ares/darwin-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/darwin-x86_64/ares_build.h (renamed from deps/c-ares/darwin-x64/ares_build.h)0
-rw-r--r--deps/c-ares/darwin-x86_64/ares_config.h (renamed from deps/c-ares/darwin-x64/ares_config.h)0
-rw-r--r--deps/c-ares/darwin-x86_64/ares_setup.h (renamed from deps/c-ares/darwin-x64/ares_setup.h)0
-rw-r--r--deps/c-ares/freebsd-x86/ares_build.h (renamed from deps/c-ares/freebsd-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/freebsd-x86/ares_config.h (renamed from deps/c-ares/freebsd-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/freebsd-x86/ares_setup.h (renamed from deps/c-ares/freebsd-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/freebsd-x86_64/ares_build.h (renamed from deps/c-ares/freebsd-x64/ares_build.h)0
-rw-r--r--deps/c-ares/freebsd-x86_64/ares_config.h (renamed from deps/c-ares/freebsd-x64/ares_config.h)0
-rw-r--r--deps/c-ares/freebsd-x86_64/ares_setup.h (renamed from deps/c-ares/freebsd-x64/ares_setup.h)0
-rw-r--r--deps/c-ares/linux-x86/ares_build.h (renamed from deps/c-ares/linux-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/linux-x86/ares_config.h (renamed from deps/c-ares/linux-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/linux-x86/ares_setup.h (renamed from deps/c-ares/linux-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/linux-x86_64/ares_build.h (renamed from deps/c-ares/linux-x64/ares_build.h)0
-rw-r--r--deps/c-ares/linux-x86_64/ares_config.h (renamed from deps/c-ares/linux-x64/ares_config.h)0
-rw-r--r--deps/c-ares/linux-x86_64/ares_setup.h (renamed from deps/c-ares/linux-x64/ares_setup.h)0
-rw-r--r--deps/c-ares/openbsd-x86/ares_build.h (renamed from deps/c-ares/openbsd-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/openbsd-x86/ares_config.h (renamed from deps/c-ares/openbsd-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/openbsd-x86/ares_setup.h (renamed from deps/c-ares/openbsd-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/openbsd-x86_64/ares_build.h (renamed from deps/c-ares/openbsd-x64/ares_build.h)0
-rw-r--r--deps/c-ares/openbsd-x86_64/ares_config.h (renamed from deps/c-ares/openbsd-x64/ares_config.h)0
-rw-r--r--deps/c-ares/openbsd-x86_64/ares_setup.h (renamed from deps/c-ares/openbsd-x64/ares_setup.h)0
-rw-r--r--deps/c-ares/sunos-x86/ares_build.h (renamed from deps/c-ares/solaris-ia32/ares_build.h)0
-rw-r--r--deps/c-ares/sunos-x86/ares_config.h (renamed from deps/c-ares/solaris-ia32/ares_config.h)0
-rw-r--r--deps/c-ares/sunos-x86/ares_setup.h (renamed from deps/c-ares/solaris-ia32/ares_setup.h)0
-rw-r--r--deps/c-ares/wscript26
-rw-r--r--deps/libeio/wscript127
-rw-r--r--deps/libev/wscript85
33 files changed, 238 insertions, 0 deletions
diff --git a/deps/c-ares/cygwin-ia32/ares_build.h b/deps/c-ares/cygwin-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/cygwin-ia32/ares_build.h
+++ b/deps/c-ares/cygwin-x86/ares_build.h
diff --git a/deps/c-ares/cygwin-ia32/ares_config.h b/deps/c-ares/cygwin-x86/ares_config.h
index 1d193280362..1d193280362 100644
--- a/deps/c-ares/cygwin-ia32/ares_config.h
+++ b/deps/c-ares/cygwin-x86/ares_config.h
diff --git a/deps/c-ares/cygwin-ia32/ares_setup.h b/deps/c-ares/cygwin-x86/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/cygwin-ia32/ares_setup.h
+++ b/deps/c-ares/cygwin-x86/ares_setup.h
diff --git a/deps/c-ares/darwin-ia32/ares_build.h b/deps/c-ares/darwin-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/darwin-ia32/ares_build.h
+++ b/deps/c-ares/darwin-x86/ares_build.h
diff --git a/deps/c-ares/darwin-ia32/ares_config.h b/deps/c-ares/darwin-x86/ares_config.h
index 77b6d4a3c2f..77b6d4a3c2f 100644
--- a/deps/c-ares/darwin-ia32/ares_config.h
+++ b/deps/c-ares/darwin-x86/ares_config.h
diff --git a/deps/c-ares/darwin-ia32/ares_setup.h b/deps/c-ares/darwin-x86/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/darwin-ia32/ares_setup.h
+++ b/deps/c-ares/darwin-x86/ares_setup.h
diff --git a/deps/c-ares/darwin-x64/ares_build.h b/deps/c-ares/darwin-x86_64/ares_build.h
index ef4ded7b291..ef4ded7b291 100644
--- a/deps/c-ares/darwin-x64/ares_build.h
+++ b/deps/c-ares/darwin-x86_64/ares_build.h
diff --git a/deps/c-ares/darwin-x64/ares_config.h b/deps/c-ares/darwin-x86_64/ares_config.h
index 4114f05072d..4114f05072d 100644
--- a/deps/c-ares/darwin-x64/ares_config.h
+++ b/deps/c-ares/darwin-x86_64/ares_config.h
diff --git a/deps/c-ares/darwin-x64/ares_setup.h b/deps/c-ares/darwin-x86_64/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/darwin-x64/ares_setup.h
+++ b/deps/c-ares/darwin-x86_64/ares_setup.h
diff --git a/deps/c-ares/freebsd-ia32/ares_build.h b/deps/c-ares/freebsd-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/freebsd-ia32/ares_build.h
+++ b/deps/c-ares/freebsd-x86/ares_build.h
diff --git a/deps/c-ares/freebsd-ia32/ares_config.h b/deps/c-ares/freebsd-x86/ares_config.h
index 79508824daf..79508824daf 100644
--- a/deps/c-ares/freebsd-ia32/ares_config.h
+++ b/deps/c-ares/freebsd-x86/ares_config.h
diff --git a/deps/c-ares/freebsd-ia32/ares_setup.h b/deps/c-ares/freebsd-x86/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/freebsd-ia32/ares_setup.h
+++ b/deps/c-ares/freebsd-x86/ares_setup.h
diff --git a/deps/c-ares/freebsd-x64/ares_build.h b/deps/c-ares/freebsd-x86_64/ares_build.h
index ef4ded7b291..ef4ded7b291 100644
--- a/deps/c-ares/freebsd-x64/ares_build.h
+++ b/deps/c-ares/freebsd-x86_64/ares_build.h
diff --git a/deps/c-ares/freebsd-x64/ares_config.h b/deps/c-ares/freebsd-x86_64/ares_config.h
index 0b04c4b614a..0b04c4b614a 100644
--- a/deps/c-ares/freebsd-x64/ares_config.h
+++ b/deps/c-ares/freebsd-x86_64/ares_config.h
diff --git a/deps/c-ares/freebsd-x64/ares_setup.h b/deps/c-ares/freebsd-x86_64/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/freebsd-x64/ares_setup.h
+++ b/deps/c-ares/freebsd-x86_64/ares_setup.h
diff --git a/deps/c-ares/linux-ia32/ares_build.h b/deps/c-ares/linux-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/linux-ia32/ares_build.h
+++ b/deps/c-ares/linux-x86/ares_build.h
diff --git a/deps/c-ares/linux-ia32/ares_config.h b/deps/c-ares/linux-x86/ares_config.h
index a2cb7f293f9..a2cb7f293f9 100644
--- a/deps/c-ares/linux-ia32/ares_config.h
+++ b/deps/c-ares/linux-x86/ares_config.h
diff --git a/deps/c-ares/linux-ia32/ares_setup.h b/deps/c-ares/linux-x86/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/linux-ia32/ares_setup.h
+++ b/deps/c-ares/linux-x86/ares_setup.h
diff --git a/deps/c-ares/linux-x64/ares_build.h b/deps/c-ares/linux-x86_64/ares_build.h
index ef4ded7b291..ef4ded7b291 100644
--- a/deps/c-ares/linux-x64/ares_build.h
+++ b/deps/c-ares/linux-x86_64/ares_build.h
diff --git a/deps/c-ares/linux-x64/ares_config.h b/deps/c-ares/linux-x86_64/ares_config.h
index dd025a95a68..dd025a95a68 100644
--- a/deps/c-ares/linux-x64/ares_config.h
+++ b/deps/c-ares/linux-x86_64/ares_config.h
diff --git a/deps/c-ares/linux-x64/ares_setup.h b/deps/c-ares/linux-x86_64/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/linux-x64/ares_setup.h
+++ b/deps/c-ares/linux-x86_64/ares_setup.h
diff --git a/deps/c-ares/openbsd-ia32/ares_build.h b/deps/c-ares/openbsd-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/openbsd-ia32/ares_build.h
+++ b/deps/c-ares/openbsd-x86/ares_build.h
diff --git a/deps/c-ares/openbsd-ia32/ares_config.h b/deps/c-ares/openbsd-x86/ares_config.h
index e63bd73cc98..e63bd73cc98 100644
--- a/deps/c-ares/openbsd-ia32/ares_config.h
+++ b/deps/c-ares/openbsd-x86/ares_config.h
diff --git a/deps/c-ares/openbsd-ia32/ares_setup.h b/deps/c-ares/openbsd-x86/ares_setup.h
index cafc8dd6bfc..cafc8dd6bfc 100644
--- a/deps/c-ares/openbsd-ia32/ares_setup.h
+++ b/deps/c-ares/openbsd-x86/ares_setup.h
diff --git a/deps/c-ares/openbsd-x64/ares_build.h b/deps/c-ares/openbsd-x86_64/ares_build.h
index ef4ded7b291..ef4ded7b291 100644
--- a/deps/c-ares/openbsd-x64/ares_build.h
+++ b/deps/c-ares/openbsd-x86_64/ares_build.h
diff --git a/deps/c-ares/openbsd-x64/ares_config.h b/deps/c-ares/openbsd-x86_64/ares_config.h
index f395b6e8881..f395b6e8881 100644
--- a/deps/c-ares/openbsd-x64/ares_config.h
+++ b/deps/c-ares/openbsd-x86_64/ares_config.h
diff --git a/deps/c-ares/openbsd-x64/ares_setup.h b/deps/c-ares/openbsd-x86_64/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/openbsd-x64/ares_setup.h
+++ b/deps/c-ares/openbsd-x86_64/ares_setup.h
diff --git a/deps/c-ares/solaris-ia32/ares_build.h b/deps/c-ares/sunos-x86/ares_build.h
index ecceded29c8..ecceded29c8 100644
--- a/deps/c-ares/solaris-ia32/ares_build.h
+++ b/deps/c-ares/sunos-x86/ares_build.h
diff --git a/deps/c-ares/solaris-ia32/ares_config.h b/deps/c-ares/sunos-x86/ares_config.h
index 0a0a54ecf8f..0a0a54ecf8f 100644
--- a/deps/c-ares/solaris-ia32/ares_config.h
+++ b/deps/c-ares/sunos-x86/ares_config.h
diff --git a/deps/c-ares/solaris-ia32/ares_setup.h b/deps/c-ares/sunos-x86/ares_setup.h
index ce81b1fa3fd..ce81b1fa3fd 100644
--- a/deps/c-ares/solaris-ia32/ares_setup.h
+++ b/deps/c-ares/sunos-x86/ares_setup.h
diff --git a/deps/c-ares/wscript b/deps/c-ares/wscript
new file mode 100644
index 00000000000..9acc41ecfc3
--- /dev/null
+++ b/deps/c-ares/wscript
@@ -0,0 +1,26 @@
+import Options
+import platform
+
+PLATFORM_IS_DARWIN = platform.platform().find('Darwin') == 0
+PLATFORM_IS_LINUX = platform.platform().find('Linux') == 0
+PLATFORM_IS_SOLARIS = platform.platform().find('Sun') == 0
+PLATFORM_IS_FREEBSD = platform.platform().find('FreeBSD') == 0
+MACHINE_IS_AMD64 = platform.machine().find('amd64') == 0
+MACHINE_IS_I386 = platform.machine().find('i386') == 0
+
+def set_options(opt):
+ pass
+
+def configure(conf):
+ conf.env.append_value('CCFLAGS', ['-DHAVE_CONFIG_H=1'])
+
+def build(bld):
+ cares = bld.new_task_gen("cc")
+ cares.source = bld.path.ant_glob('*.c')
+ cares.target = 'cares'
+ cares.name = 'cares'
+ cares.includes = '. ./' + bld.env['DEST_OS'] + '-' + bld.env['DEST_CPU']
+ cares.install_path = None
+ if bld.env["USE_DEBUG"]:
+ cares.clone("debug");
+
diff --git a/deps/libeio/wscript b/deps/libeio/wscript
new file mode 100644
index 00000000000..8b60e544250
--- /dev/null
+++ b/deps/libeio/wscript
@@ -0,0 +1,127 @@
+import Options
+import sys
+
+def set_options(opt):
+ pass
+ #opt.tool_options('compiler_cc')
+
+def configure(conf):
+ print "--- libeio ---"
+ #conf.check_tool('compiler_cc')
+
+ conf.check(lib='pthread', uselib_store='PTHREAD')
+ conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_create", mandatory=True)
+ if not sys.platform.startswith("cygwin"):
+ conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True)
+ else:
+ conf.check_cc(lib="pthread", header_name="unistd.h", function_name="pthread_atfork", mandatory=True)
+
+ conf.check_cc(msg="Checking for futimes(2)", define_name="HAVE_FUTIMES", fragment="""
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <utime.h>
+ struct timeval tv[2];
+ int res;
+ int fd;
+ int main(void)
+ {
+ res = futimes (fd, tv);
+ return 0;
+ }
+ """)
+
+ conf.check_cc(msg="Checking for readahead(2)", define_name="HAVE_READAHEAD", fragment="""
+ #include <fcntl.h>
+ int main(void)
+ {
+ int fd = 0;
+ size_t count = 2;
+ ssize_t res;
+ res = readahead (fd, 0, count);
+ return 0;
+ }
+ """)
+
+ conf.check_cc(msg="Checking for fdatasync(2)", define_name="HAVE_FDATASYNC", fragment="""
+ #include <unistd.h>
+ int main(void)
+ {
+ int fd = 0;
+ fdatasync (fd);
+ return 0;
+ }
+ """)
+
+ conf.check_cc(msg="Checking for pread(2) and pwrite(2)", define_name="HAVE_PREADWRITE", fragment="""
+ #include <unistd.h>
+ int main(void)
+ {
+ int fd = 0;
+ size_t count = 1;
+ char buf;
+ off_t offset = 1;
+ ssize_t res;
+ res = pread (fd, &buf, count, offset);
+ res = pwrite (fd, &buf, count, offset);
+ return 0;
+ }
+ """)
+
+ conf.check_cc(msg="Checking for sendfile(2)" , define_name="HAVE_SENDFILE" , fragment="""
+ # include <sys/types.h>
+ #if __linux
+ # include <sys/sendfile.h>
+ #elif __FreeBSD__ || defined(__APPLE__)
+ # include <sys/socket.h>
+ # include <sys/uio.h>
+ #elif __hpux
+ # include <sys/socket.h>
+ #else
+ # error unsupported architecture
+ #endif
+ int main(void)
+ {
+ int fd = 0;
+ off_t offset = 1;
+ size_t count = 2;
+ ssize_t res;
+ #if __linux
+ res = sendfile (fd, fd, offset, count);
+ #elif __FreeBSD__
+ res = sendfile (fd, fd, offset, count, 0, &offset, 0);
+ #elif __APPLE__
+ res = sendfile (fd, fd, offset, &offset, 0, 0);
+ #elif __hpux
+ res = sendfile (fd, fd, offset, count, 0, 0);
+ #endif
+ return 0;
+ }
+ """)
+
+ conf.env.append_value("CCFLAGS", "-D_GNU_SOURCE")
+ conf.check_cc(msg="Checking for sync_file_range(2) ", fragment="""
+ #include <fcntl.h>
+ int main(void)
+ {
+ int fd = 0;
+ off64_t offset = 1;
+ off64_t nbytes = 1;
+ unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
+ ssize_t res;
+ res = sync_file_range (fd, offset, nbytes, flags);
+ return 0;
+ }
+ """, define_name="HAVE_SYNC_FILE_RANGE")
+
+def build(bld):
+ libeio = bld.new_task_gen("cc")
+ libeio.source = "eio.c"
+ libeio.target = 'eio'
+ libeio.name = 'eio'
+ libeio.includes = '. ../..'
+ libeio.uselib = "PTHREAD"
+ libeio.install_path = None
+ if bld.env["USE_DEBUG"]:
+ libeio.clone("debug");
+ bld.install_files('${PREFIX}/include/node/', 'eio.h');
+
diff --git a/deps/libev/wscript b/deps/libev/wscript
new file mode 100644
index 00000000000..24e30a1b840
--- /dev/null
+++ b/deps/libev/wscript
@@ -0,0 +1,85 @@
+import Options
+import platform
+
+PLATFORM_IS_DARWIN = platform.platform().find('Darwin') == 0
+
+def set_options(opt):
+ pass
+ #opt.tool_options('compiler_cc')
+
+def configure(conf):
+ print "--- libev ---"
+ #conf.check_tool('compiler_cc')
+
+ # Why to the two checks? One is to define HAVE_SYS_EPOLL_H
+ # the other is to define HAVE_EPOLL_CTL
+ # Yes, WAF is a piece of shit.
+
+ if conf.check_cc(header_name="sys/inotify.h"):
+ conf.check_cc(header_name="sys/inotify.h", function_name="inotify_init")
+
+ if conf.check_cc(header_name="sys/epoll.h"):
+ conf.check_cc(header_name="sys/epoll.h", function_name="epoll_ctl")
+
+ if conf.check_cc(header_name="port.h"):
+ conf.check_cc(header_name="port.h", function_name="port_create")
+
+ if conf.check_cc(header_name="poll.h"):
+ conf.check_cc(header_name="poll.h", function_name="poll")
+
+ conf.check_cc(header_name="sys/event.h")
+ conf.check_cc(header_name="sys/queue.h")
+ if PLATFORM_IS_DARWIN:
+ conf.check_cc(header_name="sys/event.h", function_name="kqueue")
+ else:
+ conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
+
+ if conf.check_cc(header_name="sys/select.h"):
+ conf.check_cc(header_name="sys/select.h", function_name="select")
+
+ if conf.check_cc(header_name="sys/eventfd.h"):
+ conf.check_cc(header_name="sys/eventfd.h", function_name="eventfd")
+
+
+ code = """
+ #include <syscall.h>
+ #include <time.h>
+ #include <stdio.h>
+
+ int main() {
+ struct timespec ts;
+ int status = syscall(SYS_clock_gettime, CLOCK_REALTIME, &ts);
+ return 0;
+ }
+ """
+ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True,
+ msg="Checking for SYS_clock_gettime")
+
+ have_librt = conf.check(lib='rt', uselib_store='RT')
+ if have_librt:
+ conf.check_cc(lib="rt", header_name="time.h", function_name="clock_gettime")
+ if PLATFORM_IS_DARWIN:
+ conf.check_cc(header_name="time.h", function_name="nanosleep")
+ elif have_librt:
+ conf.check_cc(lib="rt", header_name="time.h", function_name="nanosleep")
+
+ conf.check_cc(lib="m", header_name="math.h", function_name="ceil")
+
+ conf.define("HAVE_CONFIG_H", 1)
+ # Not using these.
+ conf.env.append_value('CPPFLAGS', ['-DEV_FORK_ENABLE=0',
+ '-DEV_EMBED_ENABLE=0',
+ '-DEV_MULTIPLICITY=0'])
+
+def build(bld):
+ libev = bld.new_task_gen("cc")
+ libev.source = 'ev.c'
+ libev.target = 'ev'
+ libev.name = 'ev'
+ libev.includes = '. ../..'
+ libev.uselib = "RT"
+ libev.install_path = None
+ if bld.env["USE_DEBUG"]:
+ libev.clone("debug");
+ bld.install_files('${PREFIX}/include/node/', 'ev.h');
+