eio 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/.gitignore +8 -0
  2. data/COPYING +502 -0
  3. data/LICENSE +16 -0
  4. data/README.rdoc +201 -0
  5. data/Rakefile +48 -0
  6. data/bench/eventmachine.rb +134 -0
  7. data/eio.gemspec +17 -0
  8. data/ext/eio/eio_ext.c +1447 -0
  9. data/ext/eio/extconf.rb +11 -0
  10. data/ext/libeio/CVS/Entries +13 -0
  11. data/ext/libeio/CVS/Repository +1 -0
  12. data/ext/libeio/CVS/Root +1 -0
  13. data/ext/libeio/Changes +40 -0
  14. data/ext/libeio/LICENSE +36 -0
  15. data/ext/libeio/Makefile +692 -0
  16. data/ext/libeio/Makefile.am +15 -0
  17. data/ext/libeio/Makefile.in +692 -0
  18. data/ext/libeio/aclocal.m4 +8937 -0
  19. data/ext/libeio/autogen.sh +3 -0
  20. data/ext/libeio/autom4te.cache/output.0 +13871 -0
  21. data/ext/libeio/autom4te.cache/output.1 +13867 -0
  22. data/ext/libeio/autom4te.cache/requests +275 -0
  23. data/ext/libeio/autom4te.cache/traces.0 +2384 -0
  24. data/ext/libeio/autom4te.cache/traces.1 +621 -0
  25. data/ext/libeio/config.guess +1501 -0
  26. data/ext/libeio/config.h +122 -0
  27. data/ext/libeio/config.h.in +121 -0
  28. data/ext/libeio/config.status +2035 -0
  29. data/ext/libeio/config.sub +1705 -0
  30. data/ext/libeio/configure +13867 -0
  31. data/ext/libeio/configure.ac +22 -0
  32. data/ext/libeio/demo.c +194 -0
  33. data/ext/libeio/eio.3 +3428 -0
  34. data/ext/libeio/eio.c +2075 -0
  35. data/ext/libeio/eio.h +336 -0
  36. data/ext/libeio/eio.pod +303 -0
  37. data/ext/libeio/install-sh +520 -0
  38. data/ext/libeio/libeio.m4 +156 -0
  39. data/ext/libeio/libtool +8890 -0
  40. data/ext/libeio/ltmain.sh +8406 -0
  41. data/ext/libeio/missing +376 -0
  42. data/ext/libeio/stamp-h1 +1 -0
  43. data/ext/libeio/xthread.h +168 -0
  44. data/lib/eio.rb +9 -0
  45. data/lib/eio/eventmachine.rb +24 -0
  46. data/lib/eio/middleware.rb +21 -0
  47. data/test/test_eio.rb +1161 -0
  48. data/test/test_eventmachine.rb +23 -0
  49. data/test/test_middleware.rb +20 -0
  50. metadata +148 -0
@@ -0,0 +1,11 @@
1
+ require 'mkmf'
2
+ dir_config('eio')
3
+ $defs << "-DRUBY_VM" if have_func('rb_thread_blocking_region')
4
+ libs_path = File.expand_path(File.join(File.dirname(__FILE__), '../libeio/.libs'))
5
+ find_library("eio", "eio_init", libs_path)
6
+ $defs << "-pedantic"
7
+ # leeched from ext/openssl
8
+ unless try_compile("#define FOO(...) foo(__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n")
9
+ abort("Your environment do not support the __VA_ARGS__ macro")
10
+ end
11
+ create_makefile('eio_ext')
@@ -0,0 +1,13 @@
1
+ /Changes/1.26/Thu May 26 03:51:55 2011//
2
+ /LICENSE/1.1/Sat May 17 12:32:11 2008//
3
+ /Makefile.am/1.1/Mon Jun 16 12:32:11 2008//
4
+ /autogen.sh/1.4/Mon May 30 15:27:30 2011//
5
+ /configure.ac/1.8/Mon May 2 13:32:31 2011//
6
+ /demo.c/1.4/Mon Nov 29 12:38:32 2010//
7
+ /eio.3/1.1/Sun May 11 13:05:10 2008//
8
+ /eio.c/1.65/Mon May 30 12:56:50 2011//
9
+ /eio.h/1.29/Tue Feb 15 03:15:16 2011//
10
+ /eio.pod/1.6/Tue May 31 10:09:38 2011//
11
+ /libeio.m4/1.12/Thu Dec 2 10:04:48 2010//
12
+ /xthread.h/1.10/Tue Feb 15 03:15:16 2011//
13
+ D
@@ -0,0 +1 @@
1
+ libeio
@@ -0,0 +1 @@
1
+ :pserver:anonymous@cvs.schmorp.de/schmorpforge
@@ -0,0 +1,40 @@
1
+ Revision history for libeio
2
+
3
+ TODO: maybe add mincore support? available on at least darwin, solaris, linux, freebsd
4
+ TODO: openbsd requires stdint.h for intptr_t - why posix?
5
+
6
+ 1.0
7
+ - use nonstandard but maybe-working-on-bsd fork technique.
8
+ - support a max_idle value of 0.
9
+ - support setting of idle timeout value (eio_set_idle_timeout).
10
+ - readdir: correctly handle malloc failures.
11
+ - readdir: new flags argument, can return inode
12
+ and possibly filetype, can sort in various ways.
13
+ - readdir: stop immediately when cancelled, do
14
+ not continue reading the directory.
15
+ - fix return value of eio_sendfile_sync.
16
+ - include sys/mman.h for msync.
17
+ - added EIO_STACKSIZE.
18
+ - added msync, mtouch support (untested).
19
+ - added sync_file_range (untested).
20
+ - fixed custom support.
21
+ - use a more robust feed-add detection method.
22
+ - "outbundled" from IO::AIO.
23
+ - eio_set_max_polltime did not properly convert time to ticks.
24
+ - tentatively support darwin in sendfile.
25
+ - fix freebsd/darwin sendfile.
26
+ - also use sendfile emulation for ENOTSUP and EOPNOTSUPP
27
+ error codes.
28
+ - add OS-independent EIO_MT_* and EIO_MS_* flag enums.
29
+ - add eio_statvfs/eio_fstatvfs.
30
+ - add eio_mlock/eio_mlockall and OS-independent MCL_* flag enums.
31
+ - no longer set errno to 0 before making syscalls, this only lures
32
+ people into the trap of believing errno shows success or failure.
33
+ - "fix" demo.c so that it works as non-root.
34
+ - suppoert utimes seperately from futimes, as some systems have
35
+ utimes but not futimes.
36
+ - use _POSIX_MEMLOCK_RANGE for mlock.
37
+ - do not (errornously) overwrite CFLAGS in configure.ac.
38
+ - mknod used int3 for dev_t (§2 bit), not offs (64 bit).
39
+ - fix memory corruption in eio_readdirx for the flags
40
+ combination EIO_READDIR_STAT_ORDER | EIO_READDIR_DIRS_FIRST.
@@ -0,0 +1,36 @@
1
+ All files in libeio are Copyright (C)2007,2008 Marc Alexander Lehmann.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above
11
+ copyright notice, this list of conditions and the following
12
+ disclaimer in the documentation and/or other materials provided
13
+ with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ Alternatively, the contents of this package may be used under the terms
28
+ of the GNU General Public License ("GPL") version 2 or any later version,
29
+ in which case the provisions of the GPL are applicable instead of the
30
+ above. If you wish to allow the use of your version of this package only
31
+ under the terms of the GPL and not to allow others to use your version of
32
+ this file under the BSD license, indicate your decision by deleting the
33
+ provisions above and replace them with the notice and other provisions
34
+ required by the GPL in this and the other files of this package. If you do
35
+ not delete the provisions above, a recipient may use your version of this
36
+ file under either the BSD or the GPL.
@@ -0,0 +1,692 @@
1
+ # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
+ # Makefile. Generated from Makefile.in by configure.
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+
17
+
18
+
19
+
20
+ pkgdatadir = $(datadir)/libeio
21
+ pkgincludedir = $(includedir)/libeio
22
+ pkglibdir = $(libdir)/libeio
23
+ pkglibexecdir = $(libexecdir)/libeio
24
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25
+ install_sh_DATA = $(install_sh) -c -m 644
26
+ install_sh_PROGRAM = $(install_sh) -c
27
+ install_sh_SCRIPT = $(install_sh) -c
28
+ INSTALL_HEADER = $(INSTALL_DATA)
29
+ transform = $(program_transform_name)
30
+ NORMAL_INSTALL = :
31
+ PRE_INSTALL = :
32
+ POST_INSTALL = :
33
+ NORMAL_UNINSTALL = :
34
+ PRE_UNINSTALL = :
35
+ POST_UNINSTALL = :
36
+ build_triplet = x86_64-apple-darwin10.7.0
37
+ host_triplet = x86_64-apple-darwin10.7.0
38
+ subdir = .
39
+ DIST_COMMON = $(am__configure_deps) $(include_HEADERS) \
40
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
41
+ $(srcdir)/config.h.in $(top_srcdir)/configure config.guess \
42
+ config.sub install-sh ltmain.sh missing
43
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44
+ am__aclocal_m4_deps = $(top_srcdir)/libeio.m4 \
45
+ $(top_srcdir)/configure.ac
46
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47
+ $(ACLOCAL_M4)
48
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
49
+ configure.lineno config.status.lineno
50
+ mkinstalldirs = $(install_sh) -d
51
+ CONFIG_HEADER = config.h
52
+ CONFIG_CLEAN_FILES =
53
+ CONFIG_CLEAN_VPATH_FILES =
54
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55
+ am__vpath_adj = case $$p in \
56
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57
+ *) f=$$p;; \
58
+ esac;
59
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
60
+ am__install_max = 40
61
+ am__nobase_strip_setup = \
62
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
63
+ am__nobase_strip = \
64
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
65
+ am__nobase_list = $(am__nobase_strip_setup); \
66
+ for p in $$list; do echo "$$p $$p"; done | \
67
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
68
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
69
+ if (++n[$$2] == $(am__install_max)) \
70
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
71
+ END { for (dir in files) print dir, files[dir] }'
72
+ am__base_list = \
73
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
75
+ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
76
+ LTLIBRARIES = $(lib_LTLIBRARIES)
77
+ libeio_la_LIBADD =
78
+ am_libeio_la_OBJECTS = eio.lo
79
+ libeio_la_OBJECTS = $(am_libeio_la_OBJECTS)
80
+ libeio_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
81
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
82
+ $(libeio_la_LDFLAGS) $(LDFLAGS) -o $@
83
+ DEFAULT_INCLUDES = -I.
84
+ depcomp =
85
+ am__depfiles_maybe =
86
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
87
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
88
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
89
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
90
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
91
+ CCLD = $(CC)
92
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
93
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
94
+ $(LDFLAGS) -o $@
95
+ SOURCES = $(libeio_la_SOURCES)
96
+ DIST_SOURCES = $(libeio_la_SOURCES)
97
+ HEADERS = $(include_HEADERS)
98
+ ETAGS = etags
99
+ CTAGS = ctags
100
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
101
+ distdir = $(PACKAGE)-$(VERSION)
102
+ top_distdir = $(distdir)
103
+ am__remove_distdir = \
104
+ { test ! -d "$(distdir)" \
105
+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
106
+ && rm -fr "$(distdir)"; }; }
107
+ DIST_ARCHIVES = $(distdir).tar.gz
108
+ GZIP_ENV = --best
109
+ distuninstallcheck_listfiles = find . -type f -print
110
+ distcleancheck_listfiles = find . -type f -print
111
+ ACLOCAL = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run aclocal-1.11
112
+ AMTAR = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run tar
113
+ AR = ar
114
+ AUTOCONF = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run autoconf
115
+ AUTOHEADER = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run autoheader
116
+ AUTOMAKE = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run automake-1.11
117
+ AWK = gawk
118
+ CC = gcc
119
+ CCDEPMODE = depmode=none
120
+ CFLAGS = -O3 -g -O2
121
+ CPP = gcc -E
122
+ CPPFLAGS =
123
+ CYGPATH_W = echo
124
+ DEFS = -DHAVE_CONFIG_H
125
+ DEPDIR = .deps
126
+ DSYMUTIL = dsymutil
127
+ DUMPBIN =
128
+ ECHO_C = \c
129
+ ECHO_N =
130
+ ECHO_T =
131
+ EGREP = /usr/bin/grep -E
132
+ EXEEXT =
133
+ FGREP = /usr/bin/grep -F
134
+ GREP = /usr/bin/grep
135
+ INSTALL = /usr/bin/install -c
136
+ INSTALL_DATA = ${INSTALL} -m 644
137
+ INSTALL_PROGRAM = ${INSTALL}
138
+ INSTALL_SCRIPT = ${INSTALL}
139
+ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
140
+ LD = /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
141
+ LDFLAGS =
142
+ LIBOBJS =
143
+ LIBS =
144
+ LIBTOOL = $(SHELL) $(top_builddir)/libtool
145
+ LIPO = lipo
146
+ LN_S = ln -s
147
+ LTLIBOBJS =
148
+ MAINT = #
149
+ MAKEINFO = ${SHELL} /Users/lourens/projects/eio/ext/libeio/missing --run makeinfo
150
+ MKDIR_P = ./install-sh -c -d
151
+ NM = /usr/bin/nm
152
+ NMEDIT = nmedit
153
+ OBJDUMP = false
154
+ OBJEXT = o
155
+ OTOOL = otool
156
+ OTOOL64 = :
157
+ PACKAGE = libeio
158
+ PACKAGE_BUGREPORT =
159
+ PACKAGE_NAME =
160
+ PACKAGE_STRING =
161
+ PACKAGE_TARNAME =
162
+ PACKAGE_URL =
163
+ PACKAGE_VERSION =
164
+ PATH_SEPARATOR = :
165
+ RANLIB = ranlib
166
+ SED = /opt/local/bin/gsed
167
+ SET_MAKE =
168
+ SHELL = /bin/sh
169
+ STRIP = strip
170
+ VERSION = 1.0
171
+ abs_builddir = /Users/lourens/projects/eio/ext/libeio
172
+ abs_srcdir = /Users/lourens/projects/eio/ext/libeio
173
+ abs_top_builddir = /Users/lourens/projects/eio/ext/libeio
174
+ abs_top_srcdir = /Users/lourens/projects/eio/ext/libeio
175
+ ac_ct_CC = gcc
176
+ ac_ct_DUMPBIN =
177
+ am__include = include
178
+ am__leading_dot = .
179
+ am__quote =
180
+ am__tar = ${AMTAR} chof - "$$tardir"
181
+ am__untar = ${AMTAR} xf -
182
+ bindir = ${exec_prefix}/bin
183
+ build = x86_64-apple-darwin10.7.0
184
+ build_alias =
185
+ build_cpu = x86_64
186
+ build_os = darwin10.7.0
187
+ build_vendor = apple
188
+ builddir = .
189
+ datadir = ${datarootdir}
190
+ datarootdir = ${prefix}/share
191
+ docdir = ${datarootdir}/doc/${PACKAGE}
192
+ dvidir = ${docdir}
193
+ exec_prefix = ${prefix}
194
+ host = x86_64-apple-darwin10.7.0
195
+ host_alias =
196
+ host_cpu = x86_64
197
+ host_os = darwin10.7.0
198
+ host_vendor = apple
199
+ htmldir = ${docdir}
200
+ includedir = ${prefix}/include
201
+ infodir = ${datarootdir}/info
202
+ install_sh = ${SHELL} /Users/lourens/projects/eio/ext/libeio/install-sh
203
+ libdir = ${exec_prefix}/lib
204
+ libexecdir = ${exec_prefix}/libexec
205
+ localedir = ${datarootdir}/locale
206
+ localstatedir = ${prefix}/var
207
+ lt_ECHO = /bin/echo
208
+ mandir = ${datarootdir}/man
209
+ mkdir_p = $(top_builddir)/./install-sh -c -d
210
+ oldincludedir = /usr/include
211
+ pdfdir = ${docdir}
212
+ prefix = /usr/local
213
+ program_transform_name = s,x,x,
214
+ psdir = ${docdir}
215
+ sbindir = ${exec_prefix}/sbin
216
+ sharedstatedir = ${prefix}/com
217
+ srcdir = .
218
+ sysconfdir = ${prefix}/etc
219
+ target_alias =
220
+ top_build_prefix =
221
+ top_builddir = .
222
+ top_srcdir = .
223
+ AUTOMAKE_OPTIONS = foreign no-dependencies
224
+ VERSION_INFO = 1:0
225
+ EXTRA_DIST = LICENSE Changes autogen.sh
226
+
227
+ #man_MANS = ev.3
228
+ include_HEADERS = eio.h
229
+ lib_LTLIBRARIES = libeio.la
230
+ libeio_la_SOURCES = eio.c xthread.h config.h
231
+ libeio_la_LDFLAGS = -version-info $(VERSION_INFO)
232
+ all: config.h
233
+ $(MAKE) $(AM_MAKEFLAGS) all-am
234
+
235
+ .SUFFIXES:
236
+ .SUFFIXES: .c .lo .o .obj
237
+ am--refresh:
238
+ @:
239
+ $(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
240
+ @for dep in $?; do \
241
+ case '$(am__configure_deps)' in \
242
+ *$$dep*) \
243
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
244
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
245
+ && exit 0; \
246
+ exit 1;; \
247
+ esac; \
248
+ done; \
249
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
250
+ $(am__cd) $(top_srcdir) && \
251
+ $(AUTOMAKE) --foreign Makefile
252
+ .PRECIOUS: Makefile
253
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254
+ @case '$?' in \
255
+ *config.status*) \
256
+ echo ' $(SHELL) ./config.status'; \
257
+ $(SHELL) ./config.status;; \
258
+ *) \
259
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
260
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
261
+ esac;
262
+
263
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264
+ $(SHELL) ./config.status --recheck
265
+
266
+ $(top_srcdir)/configure: # $(am__configure_deps)
267
+ $(am__cd) $(srcdir) && $(AUTOCONF)
268
+ $(ACLOCAL_M4): # $(am__aclocal_m4_deps)
269
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
270
+ $(am__aclocal_m4_deps):
271
+
272
+ config.h: stamp-h1
273
+ @if test ! -f $@; then \
274
+ rm -f stamp-h1; \
275
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
276
+ else :; fi
277
+
278
+ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
279
+ @rm -f stamp-h1
280
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
281
+ $(srcdir)/config.h.in: # $(am__configure_deps)
282
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
283
+ rm -f stamp-h1
284
+ touch $@
285
+
286
+ distclean-hdr:
287
+ -rm -f config.h stamp-h1
288
+ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
289
+ @$(NORMAL_INSTALL)
290
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
291
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
292
+ list2=; for p in $$list; do \
293
+ if test -f $$p; then \
294
+ list2="$$list2 $$p"; \
295
+ else :; fi; \
296
+ done; \
297
+ test -z "$$list2" || { \
298
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
299
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
300
+ }
301
+
302
+ uninstall-libLTLIBRARIES:
303
+ @$(NORMAL_UNINSTALL)
304
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
305
+ for p in $$list; do \
306
+ $(am__strip_dir) \
307
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
308
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
309
+ done
310
+
311
+ clean-libLTLIBRARIES:
312
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
313
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
314
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
315
+ test "$$dir" != "$$p" || dir=.; \
316
+ echo "rm -f \"$${dir}/so_locations\""; \
317
+ rm -f "$${dir}/so_locations"; \
318
+ done
319
+ libeio.la: $(libeio_la_OBJECTS) $(libeio_la_DEPENDENCIES)
320
+ $(libeio_la_LINK) -rpath $(libdir) $(libeio_la_OBJECTS) $(libeio_la_LIBADD) $(LIBS)
321
+
322
+ mostlyclean-compile:
323
+ -rm -f *.$(OBJEXT)
324
+
325
+ distclean-compile:
326
+ -rm -f *.tab.c
327
+
328
+ .c.o:
329
+ $(COMPILE) -c $<
330
+
331
+ .c.obj:
332
+ $(COMPILE) -c `$(CYGPATH_W) '$<'`
333
+
334
+ .c.lo:
335
+ $(LTCOMPILE) -c -o $@ $<
336
+
337
+ mostlyclean-libtool:
338
+ -rm -f *.lo
339
+
340
+ clean-libtool:
341
+ -rm -rf .libs _libs
342
+
343
+ distclean-libtool:
344
+ -rm -f libtool config.lt
345
+ install-includeHEADERS: $(include_HEADERS)
346
+ @$(NORMAL_INSTALL)
347
+ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
348
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
349
+ for p in $$list; do \
350
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
351
+ echo "$$d$$p"; \
352
+ done | $(am__base_list) | \
353
+ while read files; do \
354
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
355
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
356
+ done
357
+
358
+ uninstall-includeHEADERS:
359
+ @$(NORMAL_UNINSTALL)
360
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
361
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
362
+ test -n "$$files" || exit 0; \
363
+ echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
364
+ cd "$(DESTDIR)$(includedir)" && rm -f $$files
365
+
366
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
367
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368
+ unique=`for i in $$list; do \
369
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370
+ done | \
371
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
373
+ mkid -fID $$unique
374
+ tags: TAGS
375
+
376
+ TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
377
+ $(TAGS_FILES) $(LISP)
378
+ set x; \
379
+ here=`pwd`; \
380
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
381
+ unique=`for i in $$list; do \
382
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
383
+ done | \
384
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
385
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
386
+ shift; \
387
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
388
+ test -n "$$unique" || unique=$$empty_fix; \
389
+ if test $$# -gt 0; then \
390
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
391
+ "$$@" $$unique; \
392
+ else \
393
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
394
+ $$unique; \
395
+ fi; \
396
+ fi
397
+ ctags: CTAGS
398
+ CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
399
+ $(TAGS_FILES) $(LISP)
400
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
401
+ unique=`for i in $$list; do \
402
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
403
+ done | \
404
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
405
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
406
+ test -z "$(CTAGS_ARGS)$$unique" \
407
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
408
+ $$unique
409
+
410
+ GTAGS:
411
+ here=`$(am__cd) $(top_builddir) && pwd` \
412
+ && $(am__cd) $(top_srcdir) \
413
+ && gtags -i $(GTAGS_ARGS) "$$here"
414
+
415
+ distclean-tags:
416
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
417
+
418
+ distdir: $(DISTFILES)
419
+ $(am__remove_distdir)
420
+ test -d "$(distdir)" || mkdir "$(distdir)"
421
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
422
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
423
+ list='$(DISTFILES)'; \
424
+ dist_files=`for file in $$list; do echo $$file; done | \
425
+ sed -e "s|^$$srcdirstrip/||;t" \
426
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
427
+ case $$dist_files in \
428
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
429
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
430
+ sort -u` ;; \
431
+ esac; \
432
+ for file in $$dist_files; do \
433
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
434
+ if test -d $$d/$$file; then \
435
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
436
+ if test -d "$(distdir)/$$file"; then \
437
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
438
+ fi; \
439
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
440
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
441
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
442
+ fi; \
443
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
444
+ else \
445
+ test -f "$(distdir)/$$file" \
446
+ || cp -p $$d/$$file "$(distdir)/$$file" \
447
+ || exit 1; \
448
+ fi; \
449
+ done
450
+ -test -n "$(am__skip_mode_fix)" \
451
+ || find "$(distdir)" -type d ! -perm -755 \
452
+ -exec chmod u+rwx,go+rx {} \; -o \
453
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
454
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
455
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
456
+ || chmod -R a+r "$(distdir)"
457
+ dist-gzip: distdir
458
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
459
+ $(am__remove_distdir)
460
+
461
+ dist-bzip2: distdir
462
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
463
+ $(am__remove_distdir)
464
+
465
+ dist-lzma: distdir
466
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
467
+ $(am__remove_distdir)
468
+
469
+ dist-xz: distdir
470
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
471
+ $(am__remove_distdir)
472
+
473
+ dist-tarZ: distdir
474
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
475
+ $(am__remove_distdir)
476
+
477
+ dist-shar: distdir
478
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
479
+ $(am__remove_distdir)
480
+
481
+ dist-zip: distdir
482
+ -rm -f $(distdir).zip
483
+ zip -rq $(distdir).zip $(distdir)
484
+ $(am__remove_distdir)
485
+
486
+ dist dist-all: distdir
487
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
488
+ $(am__remove_distdir)
489
+
490
+ # This target untars the dist file and tries a VPATH configuration. Then
491
+ # it guarantees that the distribution is self-contained by making another
492
+ # tarfile.
493
+ distcheck: dist
494
+ case '$(DIST_ARCHIVES)' in \
495
+ *.tar.gz*) \
496
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
497
+ *.tar.bz2*) \
498
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
499
+ *.tar.lzma*) \
500
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
501
+ *.tar.xz*) \
502
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
503
+ *.tar.Z*) \
504
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
505
+ *.shar.gz*) \
506
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
507
+ *.zip*) \
508
+ unzip $(distdir).zip ;;\
509
+ esac
510
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
511
+ mkdir $(distdir)/_build
512
+ mkdir $(distdir)/_inst
513
+ chmod a-w $(distdir)
514
+ test -d $(distdir)/_build || exit 0; \
515
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
516
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
517
+ && am__cwd=`pwd` \
518
+ && $(am__cd) $(distdir)/_build \
519
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
520
+ $(DISTCHECK_CONFIGURE_FLAGS) \
521
+ && $(MAKE) $(AM_MAKEFLAGS) \
522
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
523
+ && $(MAKE) $(AM_MAKEFLAGS) check \
524
+ && $(MAKE) $(AM_MAKEFLAGS) install \
525
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
526
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
527
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
528
+ distuninstallcheck \
529
+ && chmod -R a-w "$$dc_install_base" \
530
+ && ({ \
531
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
532
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
533
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
534
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
535
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
536
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
537
+ && rm -rf "$$dc_destdir" \
538
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
539
+ && rm -rf $(DIST_ARCHIVES) \
540
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
541
+ && cd "$$am__cwd" \
542
+ || exit 1
543
+ $(am__remove_distdir)
544
+ @(echo "$(distdir) archives ready for distribution: "; \
545
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
546
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
547
+ distuninstallcheck:
548
+ @$(am__cd) '$(distuninstallcheck_dir)' \
549
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
550
+ || { echo "ERROR: files left after uninstall:" ; \
551
+ if test -n "$(DESTDIR)"; then \
552
+ echo " (check DESTDIR support)"; \
553
+ fi ; \
554
+ $(distuninstallcheck_listfiles) ; \
555
+ exit 1; } >&2
556
+ distcleancheck: distclean
557
+ @if test '$(srcdir)' = . ; then \
558
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
559
+ exit 1 ; \
560
+ fi
561
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
562
+ || { echo "ERROR: files left in build directory after distclean:" ; \
563
+ $(distcleancheck_listfiles) ; \
564
+ exit 1; } >&2
565
+ check-am: all-am
566
+ check: check-am
567
+ all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
568
+ installdirs:
569
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
570
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
571
+ done
572
+ install: install-am
573
+ install-exec: install-exec-am
574
+ install-data: install-data-am
575
+ uninstall: uninstall-am
576
+
577
+ install-am: all-am
578
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
579
+
580
+ installcheck: installcheck-am
581
+ install-strip:
582
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
583
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
584
+ `test -z '$(STRIP)' || \
585
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
586
+ mostlyclean-generic:
587
+
588
+ clean-generic:
589
+
590
+ distclean-generic:
591
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
592
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
593
+
594
+ maintainer-clean-generic:
595
+ @echo "This command is intended for maintainers to use"
596
+ @echo "it deletes files that may require special tools to rebuild."
597
+ clean: clean-am
598
+
599
+ clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
600
+ mostlyclean-am
601
+
602
+ distclean: distclean-am
603
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
604
+ -rm -f Makefile
605
+ distclean-am: clean-am distclean-compile distclean-generic \
606
+ distclean-hdr distclean-libtool distclean-tags
607
+
608
+ dvi: dvi-am
609
+
610
+ dvi-am:
611
+
612
+ html: html-am
613
+
614
+ html-am:
615
+
616
+ info: info-am
617
+
618
+ info-am:
619
+
620
+ install-data-am: install-includeHEADERS
621
+
622
+ install-dvi: install-dvi-am
623
+
624
+ install-dvi-am:
625
+
626
+ install-exec-am: install-libLTLIBRARIES
627
+
628
+ install-html: install-html-am
629
+
630
+ install-html-am:
631
+
632
+ install-info: install-info-am
633
+
634
+ install-info-am:
635
+
636
+ install-man:
637
+
638
+ install-pdf: install-pdf-am
639
+
640
+ install-pdf-am:
641
+
642
+ install-ps: install-ps-am
643
+
644
+ install-ps-am:
645
+
646
+ installcheck-am:
647
+
648
+ maintainer-clean: maintainer-clean-am
649
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
650
+ -rm -rf $(top_srcdir)/autom4te.cache
651
+ -rm -f Makefile
652
+ maintainer-clean-am: distclean-am maintainer-clean-generic
653
+
654
+ mostlyclean: mostlyclean-am
655
+
656
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
657
+ mostlyclean-libtool
658
+
659
+ pdf: pdf-am
660
+
661
+ pdf-am:
662
+
663
+ ps: ps-am
664
+
665
+ ps-am:
666
+
667
+ uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
668
+
669
+ .MAKE: all install-am install-strip
670
+
671
+ .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
672
+ clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \
673
+ dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
674
+ dist-xz dist-zip distcheck distclean distclean-compile \
675
+ distclean-generic distclean-hdr distclean-libtool \
676
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
677
+ dvi-am html html-am info info-am install install-am \
678
+ install-data install-data-am install-dvi install-dvi-am \
679
+ install-exec install-exec-am install-html install-html-am \
680
+ install-includeHEADERS install-info install-info-am \
681
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
682
+ install-ps install-ps-am install-strip installcheck \
683
+ installcheck-am installdirs maintainer-clean \
684
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
685
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
686
+ tags uninstall uninstall-am uninstall-includeHEADERS \
687
+ uninstall-libLTLIBRARIES
688
+
689
+
690
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
691
+ # Otherwise a system limit (for SysV at least) may be exceeded.
692
+ .NOEXPORT: