rice 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/COPYING +2 -2
  2. data/Doxyfile +1 -1
  3. data/Makefile.in +296 -166
  4. data/README +18 -13
  5. data/Rakefile +3 -2
  6. data/aclocal.m4 +375 -248
  7. data/config.guess +296 -261
  8. data/config.sub +268 -94
  9. data/configure +2789 -3054
  10. data/configure.ac +1 -1
  11. data/depcomp +403 -197
  12. data/extconf.rb +14 -3
  13. data/install-sh +139 -119
  14. data/missing +154 -306
  15. data/rice/Builtin_Object_defn.hpp +0 -1
  16. data/rice/Constructor.hpp +31 -30
  17. data/rice/Data_Object_defn.hpp +8 -2
  18. data/rice/Hash.hpp +26 -9
  19. data/rice/Hash.ipp +52 -60
  20. data/rice/Makefile.am +0 -1
  21. data/rice/Makefile.in +278 -152
  22. data/rice/Module_impl.ipp +1 -1
  23. data/rice/VM.cpp +1 -11
  24. data/rice/config.hpp +3 -0
  25. data/rice/config.hpp.in +3 -0
  26. data/rice/detail/Auto_Function_Wrapper.hpp +69 -0
  27. data/rice/detail/Auto_Function_Wrapper.ipp +815 -512
  28. data/rice/detail/Auto_Member_Function_Wrapper.hpp +69 -0
  29. data/rice/detail/Auto_Member_Function_Wrapper.ipp +543 -272
  30. data/rice/detail/object_call.hpp +1 -0
  31. data/rice/detail/ruby.hpp +0 -9
  32. data/rice/detail/ruby_version_code.hpp +1 -1
  33. data/rice/detail/st.hpp +0 -38
  34. data/rice/protect.hpp +1 -0
  35. data/rice/protect.ipp +1 -0
  36. data/rice/to_from_ruby.ipp +1 -1
  37. data/ruby.ac +2 -2
  38. data/ruby/Makefile.in +221 -134
  39. data/ruby/lib/Makefile.in +133 -44
  40. data/ruby/lib/mkmf-rice.rb.in +1 -4
  41. data/ruby/lib/version.rb +1 -1
  42. data/sample/Makefile.in +96 -31
  43. data/test/Makefile.am +0 -1
  44. data/test/Makefile.in +617 -219
  45. data/test/ext/Makefile.in +96 -31
  46. data/test/test_Class.cpp +2 -2
  47. data/test/test_Data_Object.cpp +11 -11
  48. data/test/test_Hash.cpp +7 -4
  49. data/test/test_Module.cpp +17 -1
  50. data/test/test_To_From_Ruby.cpp +44 -0
  51. data/test/test_rice.rb +2 -2
  52. metadata +29 -43
  53. data/rice/Allocation_Strategies.hpp +0 -37
  54. data/test/test_Allocation_Strategies.cpp +0 -77
data/test/Makefile.am CHANGED
@@ -32,7 +32,6 @@ run_multiple_extensions_same_class_test:
32
32
  unittest_SOURCES = \
33
33
  unittest.cpp \
34
34
  test_Address_Registration_Guard.cpp \
35
- test_Allocation_Strategies.cpp \
36
35
  test_Array.cpp \
37
36
  test_Builtin_Object.cpp \
38
37
  test_Class.cpp \
data/test/Makefile.in CHANGED
@@ -1,8 +1,8 @@
1
- # Makefile.in generated by automake 1.10 from Makefile.am.
1
+ # Makefile.in generated by automake 1.13.1 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
4
+ # Copyright (C) 1994-2012 Free Software Foundation, Inc.
5
+
6
6
  # This Makefile.in is free software; the Free Software Foundation
7
7
  # gives unlimited permission to copy and/or distribute it,
8
8
  # with or without modifications, as long as this notice is preserved.
@@ -15,9 +15,27 @@
15
15
  @SET_MAKE@
16
16
 
17
17
  VPATH = @srcdir@
18
+ am__make_dryrun = \
19
+ { \
20
+ am__dry=no; \
21
+ case $$MAKEFLAGS in \
22
+ *\\[\ \ ]*) \
23
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25
+ *) \
26
+ for am__flg in $$MAKEFLAGS; do \
27
+ case $$am__flg in \
28
+ *=*|--*) ;; \
29
+ *n*) am__dry=yes; break;; \
30
+ esac; \
31
+ done;; \
32
+ esac; \
33
+ test $$am__dry = yes; \
34
+ }
18
35
  pkgdatadir = $(datadir)/@PACKAGE@
19
- pkglibdir = $(libdir)/@PACKAGE@
20
36
  pkgincludedir = $(includedir)/@PACKAGE@
37
+ pkglibdir = $(libdir)/@PACKAGE@
38
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
21
39
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22
40
  install_sh_DATA = $(install_sh) -c -m 644
23
41
  install_sh_PROGRAM = $(install_sh) -c
@@ -35,7 +53,8 @@ host_triplet = @host@
35
53
  noinst_PROGRAMS = unittest$(EXEEXT) vm_unittest$(EXEEXT)
36
54
  TESTS = unittest$(EXEEXT) vm_unittest$(EXEEXT)
37
55
  subdir = test
38
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
56
+ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
57
+ $(top_srcdir)/depcomp $(top_srcdir)/test-driver
39
58
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40
59
  am__aclocal_m4_deps = $(top_srcdir)/ruby.ac $(top_srcdir)/doxygen.ac \
41
60
  $(top_srcdir)/configure.ac
@@ -44,10 +63,10 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44
63
  mkinstalldirs = $(install_sh) -d
45
64
  CONFIG_HEADER = $(top_builddir)/rice/config.hpp
46
65
  CONFIG_CLEAN_FILES =
66
+ CONFIG_CLEAN_VPATH_FILES =
47
67
  PROGRAMS = $(noinst_PROGRAMS)
48
68
  am_unittest_OBJECTS = unittest.$(OBJEXT) \
49
- test_Address_Registration_Guard.$(OBJEXT) \
50
- test_Allocation_Strategies.$(OBJEXT) test_Array.$(OBJEXT) \
69
+ test_Address_Registration_Guard.$(OBJEXT) test_Array.$(OBJEXT) \
51
70
  test_Builtin_Object.$(OBJEXT) test_Class.$(OBJEXT) \
52
71
  test_Constructor.$(OBJEXT) test_Critical_Guard.$(OBJEXT) \
53
72
  test_Data_Object.$(OBJEXT) test_Data_Type.$(OBJEXT) \
@@ -63,31 +82,310 @@ unittest_LDADD = $(LDADD)
63
82
  am_vm_unittest_OBJECTS = unittest.$(OBJEXT) test_VM.$(OBJEXT)
64
83
  vm_unittest_OBJECTS = $(am_vm_unittest_OBJECTS)
65
84
  vm_unittest_LDADD = $(LDADD)
66
- DEFAULT_INCLUDES = -I. -I$(top_builddir)/rice@am__isrc@
85
+ AM_V_P = $(am__v_P_@AM_V@)
86
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
87
+ am__v_P_0 = false
88
+ am__v_P_1 = :
89
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
90
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
91
+ am__v_GEN_0 = @echo " GEN " $@;
92
+ am__v_GEN_1 =
93
+ AM_V_at = $(am__v_at_@AM_V@)
94
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
95
+ am__v_at_0 = @
96
+ am__v_at_1 =
97
+ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/rice
67
98
  depcomp = $(SHELL) $(top_srcdir)/depcomp
68
99
  am__depfiles_maybe = depfiles
100
+ am__mv = mv -f
69
101
  CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
70
102
  $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
103
+ AM_V_CXX = $(am__v_CXX_@AM_V@)
104
+ am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
105
+ am__v_CXX_0 = @echo " CXX " $@;
106
+ am__v_CXX_1 =
71
107
  CXXLD = $(CXX)
72
108
  CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
73
109
  -o $@
110
+ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
111
+ am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
112
+ am__v_CXXLD_0 = @echo " CXXLD " $@;
113
+ am__v_CXXLD_1 =
74
114
  SOURCES = $(unittest_SOURCES) $(vm_unittest_SOURCES)
75
115
  DIST_SOURCES = $(unittest_SOURCES) $(vm_unittest_SOURCES)
76
- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
77
- html-recursive info-recursive install-data-recursive \
78
- install-dvi-recursive install-exec-recursive \
79
- install-html-recursive install-info-recursive \
80
- install-pdf-recursive install-ps-recursive install-recursive \
81
- installcheck-recursive installdirs-recursive pdf-recursive \
82
- ps-recursive uninstall-recursive
116
+ RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
117
+ ctags-recursive dvi-recursive html-recursive info-recursive \
118
+ install-data-recursive install-dvi-recursive \
119
+ install-exec-recursive install-html-recursive \
120
+ install-info-recursive install-pdf-recursive \
121
+ install-ps-recursive install-recursive installcheck-recursive \
122
+ installdirs-recursive pdf-recursive ps-recursive \
123
+ tags-recursive uninstall-recursive
124
+ am__can_run_installinfo = \
125
+ case $$AM_UPDATE_INFO_DIR in \
126
+ n|no|NO) false;; \
127
+ *) (install-info --version) >/dev/null 2>&1;; \
128
+ esac
83
129
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
84
130
  distclean-recursive maintainer-clean-recursive
131
+ am__recursive_targets = \
132
+ $(RECURSIVE_TARGETS) \
133
+ $(RECURSIVE_CLEAN_TARGETS) \
134
+ $(am__extra_recursive_targets)
135
+ AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
136
+ check recheck distdir
137
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
138
+ # Read a list of newline-separated strings from the standard input,
139
+ # and print each of them once, without duplicates. Input order is
140
+ # *not* preserved.
141
+ am__uniquify_input = $(AWK) '\
142
+ BEGIN { nonempty = 0; } \
143
+ { items[$$0] = 1; nonempty = 1; } \
144
+ END { if (nonempty) { for (i in items) print i; }; } \
145
+ '
146
+ # Make sure the list of sources is unique. This is necessary because,
147
+ # e.g., the same source file might be shared among _SOURCES variables
148
+ # for different programs/libraries.
149
+ am__define_uniq_tagged_files = \
150
+ list='$(am__tagged_files)'; \
151
+ unique=`for i in $$list; do \
152
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
153
+ done | $(am__uniquify_input)`
85
154
  ETAGS = etags
86
155
  CTAGS = ctags
156
+ am__tty_colors_dummy = \
157
+ mgn= red= grn= lgn= blu= brg= std=; \
158
+ am__color_tests=no
159
+ am__tty_colors = { \
160
+ $(am__tty_colors_dummy); \
161
+ if test "X$(AM_COLOR_TESTS)" = Xno; then \
162
+ am__color_tests=no; \
163
+ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
164
+ am__color_tests=yes; \
165
+ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
166
+ am__color_tests=yes; \
167
+ fi; \
168
+ if test $$am__color_tests = yes; then \
169
+ red=''; \
170
+ grn=''; \
171
+ lgn=''; \
172
+ blu=''; \
173
+ mgn=''; \
174
+ brg=''; \
175
+ std=''; \
176
+ fi; \
177
+ }
178
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
179
+ am__vpath_adj = case $$p in \
180
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
181
+ *) f=$$p;; \
182
+ esac;
183
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
184
+ am__install_max = 40
185
+ am__nobase_strip_setup = \
186
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
187
+ am__nobase_strip = \
188
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
189
+ am__nobase_list = $(am__nobase_strip_setup); \
190
+ for p in $$list; do echo "$$p $$p"; done | \
191
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
192
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
193
+ if (++n[$$2] == $(am__install_max)) \
194
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
195
+ END { for (dir in files) print dir, files[dir] }'
196
+ am__base_list = \
197
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
198
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
199
+ am__uninstall_files_from_dir = { \
200
+ test -z "$$files" \
201
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
202
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
203
+ $(am__cd) "$$dir" && rm -f $$files; }; \
204
+ }
205
+ am__recheck_rx = ^[ ]*:recheck:[ ]*
206
+ am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
207
+ am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
208
+ # A command that, given a newline-separated list of test names on the
209
+ # standard input, print the name of the tests that are to be re-run
210
+ # upon "make recheck".
211
+ am__list_recheck_tests = $(AWK) '{ \
212
+ recheck = 1; \
213
+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
214
+ { \
215
+ if (rc < 0) \
216
+ { \
217
+ if ((getline line2 < ($$0 ".log")) < 0) \
218
+ recheck = 0; \
219
+ break; \
220
+ } \
221
+ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
222
+ { \
223
+ recheck = 0; \
224
+ break; \
225
+ } \
226
+ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
227
+ { \
228
+ break; \
229
+ } \
230
+ }; \
231
+ if (recheck) \
232
+ print $$0; \
233
+ close ($$0 ".trs"); \
234
+ close ($$0 ".log"); \
235
+ }'
236
+ # A command that, given a newline-separated list of test names on the
237
+ # standard input, create the global log from their .trs and .log files.
238
+ am__create_global_log = $(AWK) ' \
239
+ function fatal(msg) \
240
+ { \
241
+ print "fatal: making $@: " msg | "cat >&2"; \
242
+ exit 1; \
243
+ } \
244
+ function rst_section(header) \
245
+ { \
246
+ print header; \
247
+ len = length(header); \
248
+ for (i = 1; i <= len; i = i + 1) \
249
+ printf "="; \
250
+ printf "\n\n"; \
251
+ } \
252
+ { \
253
+ copy_in_global_log = 1; \
254
+ global_test_result = "RUN"; \
255
+ while ((rc = (getline line < ($$0 ".trs"))) != 0) \
256
+ { \
257
+ if (rc < 0) \
258
+ fatal("failed to read from " $$0 ".trs"); \
259
+ if (line ~ /$(am__global_test_result_rx)/) \
260
+ { \
261
+ sub("$(am__global_test_result_rx)", "", line); \
262
+ sub("[ ]*$$", "", line); \
263
+ global_test_result = line; \
264
+ } \
265
+ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
266
+ copy_in_global_log = 0; \
267
+ }; \
268
+ if (copy_in_global_log) \
269
+ { \
270
+ rst_section(global_test_result ": " $$0); \
271
+ while ((rc = (getline line < ($$0 ".log"))) != 0) \
272
+ { \
273
+ if (rc < 0) \
274
+ fatal("failed to read from " $$0 ".log"); \
275
+ print line; \
276
+ }; \
277
+ printf "\n"; \
278
+ }; \
279
+ close ($$0 ".trs"); \
280
+ close ($$0 ".log"); \
281
+ }'
282
+ # Restructured Text title.
283
+ am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
284
+ # Solaris 10 'make', and several other traditional 'make' implementations,
285
+ # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
286
+ # by disabling -e (using the XSI extension "set +e") if it's set.
287
+ am__sh_e_setup = case $$- in *e*) set +e;; esac
288
+ # Default flags passed to test drivers.
289
+ am__common_driver_flags = \
290
+ --color-tests "$$am__color_tests" \
291
+ --enable-hard-errors "$$am__enable_hard_errors" \
292
+ --expect-failure "$$am__expect_failure"
293
+ # To be inserted before the command running the test. Creates the
294
+ # directory for the log if needed. Stores in $dir the directory
295
+ # containing $f, in $tst the test, in $log the log. Executes the
296
+ # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
297
+ # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
298
+ # will run the test scripts (or their associated LOG_COMPILER, if
299
+ # thy have one).
300
+ am__check_pre = \
301
+ $(am__sh_e_setup); \
302
+ $(am__vpath_adj_setup) $(am__vpath_adj) \
303
+ $(am__tty_colors); \
304
+ srcdir=$(srcdir); export srcdir; \
305
+ case "$@" in \
306
+ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
307
+ *) am__odir=.;; \
308
+ esac; \
309
+ test "x$$am__odir" = x"." || test -d "$$am__odir" \
310
+ || $(MKDIR_P) "$$am__odir" || exit $$?; \
311
+ if test -f "./$$f"; then dir=./; \
312
+ elif test -f "$$f"; then dir=; \
313
+ else dir="$(srcdir)/"; fi; \
314
+ tst=$$dir$$f; log='$@'; \
315
+ if test -n '$(DISABLE_HARD_ERRORS)'; then \
316
+ am__enable_hard_errors=no; \
317
+ else \
318
+ am__enable_hard_errors=yes; \
319
+ fi; \
320
+ case " $(XFAIL_TESTS) " in \
321
+ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
322
+ am__expect_failure=yes;; \
323
+ *) \
324
+ am__expect_failure=no;; \
325
+ esac; \
326
+ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
327
+ # A shell command to get the names of the tests scripts with any registered
328
+ # extension removed (i.e., equivalently, the names of the test logs, with
329
+ # the '.log' extension removed). The result is saved in the shell variable
330
+ # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
331
+ # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
332
+ # since that might cause problem with VPATH rewrites for suffix-less tests.
333
+ # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
334
+ am__set_TESTS_bases = \
335
+ bases='$(TEST_LOGS)'; \
336
+ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
337
+ bases=`echo $$bases`
338
+ RECHECK_LOGS = $(TEST_LOGS)
339
+ TEST_SUITE_LOG = test-suite.log
340
+ TEST_EXTENSIONS = @EXEEXT@ .test
341
+ LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
342
+ LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
343
+ am__set_b = \
344
+ case '$@' in \
345
+ */*) \
346
+ case '$*' in \
347
+ */*) b='$*';; \
348
+ *) b=`echo '$@' | sed 's/\.log$$//'`; \
349
+ esac;; \
350
+ *) \
351
+ b='$*';; \
352
+ esac
353
+ am__test_logs1 = $(TESTS:=.log)
354
+ am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
355
+ TEST_LOGS = $(am__test_logs2:.test.log=.log)
356
+ TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
357
+ TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
358
+ $(TEST_LOG_FLAGS)
87
359
  DIST_SUBDIRS = $(SUBDIRS)
88
360
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
361
+ am__relativize = \
362
+ dir0=`pwd`; \
363
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
364
+ sed_rest='s,^[^/]*/*,,'; \
365
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
366
+ sed_butlast='s,/*[^/]*$$,,'; \
367
+ while test -n "$$dir1"; do \
368
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
369
+ if test "$$first" != "."; then \
370
+ if test "$$first" = ".."; then \
371
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
372
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
373
+ else \
374
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
375
+ if test "$$first2" = "$$first"; then \
376
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
377
+ else \
378
+ dir2="../$$dir2"; \
379
+ fi; \
380
+ dir0="$$dir0"/"$$first"; \
381
+ fi; \
382
+ fi; \
383
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
384
+ done; \
385
+ reldir="$$dir2"
89
386
  ACLOCAL = @ACLOCAL@
90
387
  AMTAR = @AMTAR@
388
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
91
389
  AUTOCONF = @AUTOCONF@
92
390
  AUTOHEADER = @AUTOHEADER@
93
391
  AUTOMAKE = @AUTOMAKE@
@@ -148,6 +446,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148
446
  PACKAGE_NAME = @PACKAGE_NAME@
149
447
  PACKAGE_STRING = @PACKAGE_STRING@
150
448
  PACKAGE_TARNAME = @PACKAGE_TARNAME@
449
+ PACKAGE_URL = @PACKAGE_URL@
151
450
  PACKAGE_VERSION = @PACKAGE_VERSION@
152
451
  PATH_SEPARATOR = @PATH_SEPARATOR@
153
452
  RANLIB = @RANLIB@
@@ -217,13 +516,13 @@ sharedstatedir = @sharedstatedir@
217
516
  srcdir = @srcdir@
218
517
  sysconfdir = @sysconfdir@
219
518
  target_alias = @target_alias@
519
+ top_build_prefix = @top_build_prefix@
220
520
  top_builddir = @top_builddir@
221
521
  top_srcdir = @top_srcdir@
222
522
  SUBDIRS = ext
223
523
  unittest_SOURCES = \
224
524
  unittest.cpp \
225
525
  test_Address_Registration_Guard.cpp \
226
- test_Allocation_Strategies.cpp \
227
526
  test_Array.cpp \
228
527
  test_Builtin_Object.cpp \
229
528
  test_Class.cpp \
@@ -264,19 +563,19 @@ AM_LDFLAGS = \
264
563
  all: all-recursive
265
564
 
266
565
  .SUFFIXES:
267
- .SUFFIXES: .cpp .o .obj
566
+ .SUFFIXES: .cpp .log .o .obj .test .test$(EXEEXT) .trs
268
567
  $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
269
568
  @for dep in $?; do \
270
569
  case '$(am__configure_deps)' in \
271
570
  *$$dep*) \
272
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
273
- && exit 0; \
571
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
572
+ && { if test -f $@; then exit 0; else break; fi; }; \
274
573
  exit 1;; \
275
574
  esac; \
276
575
  done; \
277
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
278
- cd $(top_srcdir) && \
279
- $(AUTOMAKE) --gnu test/Makefile
576
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
577
+ $(am__cd) $(top_srcdir) && \
578
+ $(AUTOMAKE) --gnu test/Makefile
280
579
  .PRECIOUS: Makefile
281
580
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
282
581
  @case '$?' in \
@@ -294,15 +593,16 @@ $(top_srcdir)/configure: $(am__configure_deps)
294
593
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
295
594
  $(ACLOCAL_M4): $(am__aclocal_m4_deps)
296
595
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
596
+ $(am__aclocal_m4_deps):
297
597
 
298
598
  clean-noinstPROGRAMS:
299
599
  -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
300
- unittest$(EXEEXT): $(unittest_OBJECTS) $(unittest_DEPENDENCIES)
600
+ unittest$(EXEEXT): $(unittest_OBJECTS) $(unittest_DEPENDENCIES) $(EXTRA_unittest_DEPENDENCIES)
301
601
  @rm -f unittest$(EXEEXT)
302
- $(CXXLINK) $(unittest_OBJECTS) $(unittest_LDADD) $(LIBS)
303
- vm_unittest$(EXEEXT): $(vm_unittest_OBJECTS) $(vm_unittest_DEPENDENCIES)
602
+ $(AM_V_CXXLD)$(CXXLINK) $(unittest_OBJECTS) $(unittest_LDADD) $(LIBS)
603
+ vm_unittest$(EXEEXT): $(vm_unittest_OBJECTS) $(vm_unittest_DEPENDENCIES) $(EXTRA_vm_unittest_DEPENDENCIES)
304
604
  @rm -f vm_unittest$(EXEEXT)
305
- $(CXXLINK) $(vm_unittest_OBJECTS) $(vm_unittest_LDADD) $(LIBS)
605
+ $(AM_V_CXXLD)$(CXXLINK) $(vm_unittest_OBJECTS) $(vm_unittest_LDADD) $(LIBS)
306
606
 
307
607
  mostlyclean-compile:
308
608
  -rm -f *.$(OBJEXT)
@@ -311,7 +611,6 @@ distclean-compile:
311
611
  -rm -f *.tab.c
312
612
 
313
613
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_Address_Registration_Guard.Po@am__quote@
314
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_Allocation_Strategies.Po@am__quote@
315
614
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_Array.Po@am__quote@
316
615
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_Builtin_Object.Po@am__quote@
317
616
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_Class.Po@am__quote@
@@ -337,27 +636,27 @@ distclean-compile:
337
636
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unittest.Po@am__quote@
338
637
 
339
638
  .cpp.o:
340
- @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
341
- @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
342
- @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
639
+ @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
640
+ @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
641
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
343
642
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344
- @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
643
+ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
345
644
 
346
645
  .cpp.obj:
347
- @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
348
- @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
349
- @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
646
+ @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
647
+ @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
648
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
350
649
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351
- @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
650
+ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
352
651
 
353
652
  # This directory's subdirectories are mostly independent; you can cd
354
- # into them and run `make' without going through this Makefile.
355
- # To change the values of `make' variables: instead of editing Makefiles,
356
- # (1) if the variable is set in `config.status', edit `config.status'
357
- # (which will cause the Makefiles to be regenerated when you run `make');
358
- # (2) otherwise, pass the desired values on the `make' command line.
359
- $(RECURSIVE_TARGETS):
360
- @failcom='exit 1'; \
653
+ # into them and run 'make' without going through this Makefile.
654
+ # To change the values of 'make' variables: instead of editing Makefiles,
655
+ # (1) if the variable is set in 'config.status', edit 'config.status'
656
+ # (which will cause the Makefiles to be regenerated when you run 'make');
657
+ # (2) otherwise, pass the desired values on the 'make' command line.
658
+ $(am__recursive_targets):
659
+ @fail= failcom='exit 1'; \
361
660
  for f in x $$MAKEFLAGS; do \
362
661
  case $$f in \
363
662
  *=* | --[!k]*);; \
@@ -366,7 +665,11 @@ $(RECURSIVE_TARGETS):
366
665
  done; \
367
666
  dot_seen=no; \
368
667
  target=`echo $@ | sed s/-recursive//`; \
369
- list='$(SUBDIRS)'; for subdir in $$list; do \
668
+ case "$@" in \
669
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
670
+ *) list='$(SUBDIRS)' ;; \
671
+ esac; \
672
+ for subdir in $$list; do \
370
673
  echo "Making $$target in $$subdir"; \
371
674
  if test "$$subdir" = "."; then \
372
675
  dot_seen=yes; \
@@ -374,65 +677,20 @@ $(RECURSIVE_TARGETS):
374
677
  else \
375
678
  local_target="$$target"; \
376
679
  fi; \
377
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
680
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
378
681
  || eval $$failcom; \
379
682
  done; \
380
683
  if test "$$dot_seen" = "no"; then \
381
684
  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
382
685
  fi; test -z "$$fail"
383
686
 
384
- $(RECURSIVE_CLEAN_TARGETS):
385
- @failcom='exit 1'; \
386
- for f in x $$MAKEFLAGS; do \
387
- case $$f in \
388
- *=* | --[!k]*);; \
389
- *k*) failcom='fail=yes';; \
390
- esac; \
391
- done; \
392
- dot_seen=no; \
393
- case "$@" in \
394
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
395
- *) list='$(SUBDIRS)' ;; \
396
- esac; \
397
- rev=''; for subdir in $$list; do \
398
- if test "$$subdir" = "."; then :; else \
399
- rev="$$subdir $$rev"; \
400
- fi; \
401
- done; \
402
- rev="$$rev ."; \
403
- target=`echo $@ | sed s/-recursive//`; \
404
- for subdir in $$rev; do \
405
- echo "Making $$target in $$subdir"; \
406
- if test "$$subdir" = "."; then \
407
- local_target="$$target-am"; \
408
- else \
409
- local_target="$$target"; \
410
- fi; \
411
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
412
- || eval $$failcom; \
413
- done && test -z "$$fail"
414
- tags-recursive:
415
- list='$(SUBDIRS)'; for subdir in $$list; do \
416
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
417
- done
418
- ctags-recursive:
419
- list='$(SUBDIRS)'; for subdir in $$list; do \
420
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
421
- done
687
+ ID: $(am__tagged_files)
688
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
689
+ tags: tags-recursive
690
+ TAGS: tags
422
691
 
423
- ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
424
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
425
- unique=`for i in $$list; do \
426
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
427
- done | \
428
- $(AWK) ' { files[$$0] = 1; } \
429
- END { for (i in files) print i; }'`; \
430
- mkid -fID $$unique
431
- tags: TAGS
432
-
433
- TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
434
- $(TAGS_FILES) $(LISP)
435
- tags=; \
692
+ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
693
+ set x; \
436
694
  here=`pwd`; \
437
695
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
438
696
  include_option=--etags-include; \
@@ -444,115 +702,222 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
444
702
  list='$(SUBDIRS)'; for subdir in $$list; do \
445
703
  if test "$$subdir" = .; then :; else \
446
704
  test ! -f $$subdir/TAGS || \
447
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
705
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
448
706
  fi; \
449
707
  done; \
450
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
451
- unique=`for i in $$list; do \
452
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
453
- done | \
454
- $(AWK) ' { files[$$0] = 1; } \
455
- END { for (i in files) print i; }'`; \
456
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
708
+ $(am__define_uniq_tagged_files); \
709
+ shift; \
710
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
457
711
  test -n "$$unique" || unique=$$empty_fix; \
458
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
459
- $$tags $$unique; \
712
+ if test $$# -gt 0; then \
713
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
714
+ "$$@" $$unique; \
715
+ else \
716
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
717
+ $$unique; \
718
+ fi; \
460
719
  fi
461
- ctags: CTAGS
462
- CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
463
- $(TAGS_FILES) $(LISP)
464
- tags=; \
465
- here=`pwd`; \
466
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
467
- unique=`for i in $$list; do \
468
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
469
- done | \
470
- $(AWK) ' { files[$$0] = 1; } \
471
- END { for (i in files) print i; }'`; \
472
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
720
+ ctags: ctags-recursive
721
+
722
+ CTAGS: ctags
723
+ ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
724
+ $(am__define_uniq_tagged_files); \
725
+ test -z "$(CTAGS_ARGS)$$unique" \
473
726
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
474
- $$tags $$unique
727
+ $$unique
475
728
 
476
729
  GTAGS:
477
730
  here=`$(am__cd) $(top_builddir) && pwd` \
478
- && cd $(top_srcdir) \
479
- && gtags -i $(GTAGS_ARGS) $$here
731
+ && $(am__cd) $(top_srcdir) \
732
+ && gtags -i $(GTAGS_ARGS) "$$here"
733
+ cscopelist: cscopelist-recursive
734
+
735
+ cscopelist-am: $(am__tagged_files)
736
+ list='$(am__tagged_files)'; \
737
+ case "$(srcdir)" in \
738
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
739
+ *) sdir=$(subdir)/$(srcdir) ;; \
740
+ esac; \
741
+ for i in $$list; do \
742
+ if test -f "$$i"; then \
743
+ echo "$(subdir)/$$i"; \
744
+ else \
745
+ echo "$$sdir/$$i"; \
746
+ fi; \
747
+ done >> $(top_builddir)/cscope.files
480
748
 
481
749
  distclean-tags:
482
750
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
483
751
 
484
- check-TESTS: $(TESTS)
485
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
486
- srcdir=$(srcdir); export srcdir; \
487
- list=' $(TESTS) '; \
488
- if test -n "$$list"; then \
489
- for tst in $$list; do \
490
- if test -f ./$$tst; then dir=./; \
491
- elif test -f $$tst; then dir=; \
492
- else dir="$(srcdir)/"; fi; \
493
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
494
- all=`expr $$all + 1`; \
495
- case " $(XFAIL_TESTS) " in \
496
- *$$ws$$tst$$ws*) \
497
- xpass=`expr $$xpass + 1`; \
498
- failed=`expr $$failed + 1`; \
499
- echo "XPASS: $$tst"; \
500
- ;; \
501
- *) \
502
- echo "PASS: $$tst"; \
503
- ;; \
504
- esac; \
505
- elif test $$? -ne 77; then \
506
- all=`expr $$all + 1`; \
507
- case " $(XFAIL_TESTS) " in \
508
- *$$ws$$tst$$ws*) \
509
- xfail=`expr $$xfail + 1`; \
510
- echo "XFAIL: $$tst"; \
511
- ;; \
512
- *) \
513
- failed=`expr $$failed + 1`; \
514
- echo "FAIL: $$tst"; \
515
- ;; \
516
- esac; \
517
- else \
518
- skip=`expr $$skip + 1`; \
519
- echo "SKIP: $$tst"; \
520
- fi; \
752
+ # Recover from deleted '.trs' file; this should ensure that
753
+ # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
754
+ # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
755
+ # to avoid problems with "make -n".
756
+ .log.trs:
757
+ rm -f $< $@
758
+ $(MAKE) $(AM_MAKEFLAGS) $<
759
+
760
+ # Leading 'am--fnord' is there to ensure the list of targets does not
761
+ # exand to empty, as could happen e.g. with make check TESTS=''.
762
+ am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
763
+ am--force-recheck:
764
+ @:
765
+
766
+ $(TEST_SUITE_LOG): $(TEST_LOGS)
767
+ @$(am__set_TESTS_bases); \
768
+ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
769
+ redo_bases=`for i in $$bases; do \
770
+ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
771
+ done`; \
772
+ if test -n "$$redo_bases"; then \
773
+ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
774
+ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
775
+ if $(am__make_dryrun); then :; else \
776
+ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
777
+ fi; \
778
+ fi; \
779
+ if test -n "$$am__remaking_logs"; then \
780
+ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
781
+ "recursion detected" >&2; \
782
+ else \
783
+ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
784
+ fi; \
785
+ if $(am__make_dryrun); then :; else \
786
+ st=0; \
787
+ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
788
+ for i in $$redo_bases; do \
789
+ test -f $$i.trs && test -r $$i.trs \
790
+ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
791
+ test -f $$i.log && test -r $$i.log \
792
+ || { echo "$$errmsg $$i.log" >&2; st=1; }; \
521
793
  done; \
522
- if test "$$failed" -eq 0; then \
523
- if test "$$xfail" -eq 0; then \
524
- banner="All $$all tests passed"; \
794
+ test $$st -eq 0 || exit 1; \
795
+ fi
796
+ @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
797
+ ws='[ ]'; \
798
+ results=`for b in $$bases; do echo $$b.trs; done`; \
799
+ test -n "$$results" || results=/dev/null; \
800
+ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
801
+ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
802
+ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
803
+ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
804
+ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
805
+ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
806
+ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
807
+ if test `expr $$fail + $$xpass + $$error` -eq 0; then \
808
+ success=true; \
809
+ else \
810
+ success=false; \
811
+ fi; \
812
+ br='==================='; br=$$br$$br$$br$$br; \
813
+ result_count () \
814
+ { \
815
+ if test x"$$1" = x"--maybe-color"; then \
816
+ maybe_colorize=yes; \
817
+ elif test x"$$1" = x"--no-color"; then \
818
+ maybe_colorize=no; \
525
819
  else \
526
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
820
+ echo "$@: invalid 'result_count' usage" >&2; exit 4; \
527
821
  fi; \
528
- else \
529
- if test "$$xpass" -eq 0; then \
530
- banner="$$failed of $$all tests failed"; \
822
+ shift; \
823
+ desc=$$1 count=$$2; \
824
+ if test $$maybe_colorize = yes && test $$count -gt 0; then \
825
+ color_start=$$3 color_end=$$std; \
531
826
  else \
532
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
827
+ color_start= color_end=; \
533
828
  fi; \
534
- fi; \
535
- dashes="$$banner"; \
536
- skipped=""; \
537
- if test "$$skip" -ne 0; then \
538
- skipped="($$skip tests were not run)"; \
539
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
540
- dashes="$$skipped"; \
541
- fi; \
542
- report=""; \
543
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
544
- report="Please report to $(PACKAGE_BUGREPORT)"; \
545
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
546
- dashes="$$report"; \
547
- fi; \
548
- dashes=`echo "$$dashes" | sed s/./=/g`; \
549
- echo "$$dashes"; \
550
- echo "$$banner"; \
551
- test -z "$$skipped" || echo "$$skipped"; \
552
- test -z "$$report" || echo "$$report"; \
553
- echo "$$dashes"; \
554
- test "$$failed" -eq 0; \
555
- else :; fi
829
+ echo "$${color_start}# $$desc $$count$${color_end}"; \
830
+ }; \
831
+ create_testsuite_report () \
832
+ { \
833
+ result_count $$1 "TOTAL:" $$all "$$brg"; \
834
+ result_count $$1 "PASS: " $$pass "$$grn"; \
835
+ result_count $$1 "SKIP: " $$skip "$$blu"; \
836
+ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
837
+ result_count $$1 "FAIL: " $$fail "$$red"; \
838
+ result_count $$1 "XPASS:" $$xpass "$$red"; \
839
+ result_count $$1 "ERROR:" $$error "$$mgn"; \
840
+ }; \
841
+ { \
842
+ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
843
+ $(am__rst_title); \
844
+ create_testsuite_report --no-color; \
845
+ echo; \
846
+ echo ".. contents:: :depth: 2"; \
847
+ echo; \
848
+ for b in $$bases; do echo $$b; done \
849
+ | $(am__create_global_log); \
850
+ } >$(TEST_SUITE_LOG).tmp || exit 1; \
851
+ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
852
+ if $$success; then \
853
+ col="$$grn"; \
854
+ else \
855
+ col="$$red"; \
856
+ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
857
+ fi; \
858
+ echo "$${col}$$br$${std}"; \
859
+ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
860
+ echo "$${col}$$br$${std}"; \
861
+ create_testsuite_report --maybe-color; \
862
+ echo "$$col$$br$$std"; \
863
+ if $$success; then :; else \
864
+ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
865
+ if test -n "$(PACKAGE_BUGREPORT)"; then \
866
+ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
867
+ fi; \
868
+ echo "$$col$$br$$std"; \
869
+ fi; \
870
+ $$success || exit 1
871
+
872
+ check-TESTS:
873
+ @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
874
+ @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
875
+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
876
+ @set +e; $(am__set_TESTS_bases); \
877
+ log_list=`for i in $$bases; do echo $$i.log; done`; \
878
+ trs_list=`for i in $$bases; do echo $$i.trs; done`; \
879
+ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
880
+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
881
+ exit $$?;
882
+ recheck: all
883
+ @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
884
+ @set +e; $(am__set_TESTS_bases); \
885
+ bases=`for i in $$bases; do echo $$i; done \
886
+ | $(am__list_recheck_tests)` || exit 1; \
887
+ log_list=`for i in $$bases; do echo $$i.log; done`; \
888
+ log_list=`echo $$log_list`; \
889
+ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
890
+ am__force_recheck=am--force-recheck \
891
+ TEST_LOGS="$$log_list"; \
892
+ exit $$?
893
+ unittest.log: unittest$(EXEEXT)
894
+ @p='unittest$(EXEEXT)'; \
895
+ b='unittest'; \
896
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
897
+ --log-file $$b.log --trs-file $$b.trs \
898
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
899
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
900
+ vm_unittest.log: vm_unittest$(EXEEXT)
901
+ @p='vm_unittest$(EXEEXT)'; \
902
+ b='vm_unittest'; \
903
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
904
+ --log-file $$b.log --trs-file $$b.trs \
905
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
906
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
907
+ .test.log:
908
+ @p='$<'; \
909
+ $(am__set_b); \
910
+ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
911
+ --log-file $$b.log --trs-file $$b.trs \
912
+ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
913
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
914
+ @am__EXEEXT_TRUE@.test$(EXEEXT).log:
915
+ @am__EXEEXT_TRUE@ @p='$<'; \
916
+ @am__EXEEXT_TRUE@ $(am__set_b); \
917
+ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
918
+ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
919
+ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
920
+ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
556
921
 
557
922
  distdir: $(DISTFILES)
558
923
  @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
@@ -570,29 +935,41 @@ distdir: $(DISTFILES)
570
935
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
571
936
  if test -d $$d/$$file; then \
572
937
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
938
+ if test -d "$(distdir)/$$file"; then \
939
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
940
+ fi; \
573
941
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
574
- cp -pR $(srcdir)/$$file "$(distdir)"$$dir || exit 1; \
942
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
943
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
575
944
  fi; \
576
- cp -pR $$d/$$file "$(distdir)"$$dir || exit 1; \
945
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
577
946
  else \
578
- test -f "$(distdir)"/$$file \
579
- || cp -p $$d/$$file "$(distdir)"/$$file \
947
+ test -f "$(distdir)/$$file" \
948
+ || cp -p $$d/$$file "$(distdir)/$$file" \
580
949
  || exit 1; \
581
950
  fi; \
582
951
  done
583
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
952
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
584
953
  if test "$$subdir" = .; then :; else \
585
- test -d "$(distdir)/$$subdir" \
586
- || $(MKDIR_P) "$(distdir)/$$subdir" \
587
- || exit 1; \
588
- distdir=`$(am__cd) "$(distdir)" && pwd`; \
589
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
590
- (cd $$subdir && \
954
+ $(am__make_dryrun) \
955
+ || test -d "$(distdir)/$$subdir" \
956
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
957
+ || exit 1; \
958
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
959
+ $(am__relativize); \
960
+ new_distdir=$$reldir; \
961
+ dir1=$$subdir; dir2="$(top_distdir)"; \
962
+ $(am__relativize); \
963
+ new_top_distdir=$$reldir; \
964
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
965
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
966
+ ($(am__cd) $$subdir && \
591
967
  $(MAKE) $(AM_MAKEFLAGS) \
592
- top_distdir="$$top_distdir" \
593
- distdir="$$distdir/$$subdir" \
968
+ top_distdir="$$new_top_distdir" \
969
+ distdir="$$new_distdir" \
594
970
  am__remove_distdir=: \
595
971
  am__skip_length_check=: \
972
+ am__skip_mode_fix=: \
596
973
  distdir) \
597
974
  || exit 1; \
598
975
  fi; \
@@ -613,16 +990,25 @@ install-am: all-am
613
990
 
614
991
  installcheck: installcheck-recursive
615
992
  install-strip:
616
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
617
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
618
- `test -z '$(STRIP)' || \
619
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
993
+ if test -z '$(STRIP)'; then \
994
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
995
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
996
+ install; \
997
+ else \
998
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
999
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1000
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1001
+ fi
620
1002
  mostlyclean-generic:
1003
+ -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1004
+ -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1005
+ -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
621
1006
 
622
1007
  clean-generic:
623
1008
 
624
1009
  distclean-generic:
625
1010
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1011
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
626
1012
 
627
1013
  maintainer-clean-generic:
628
1014
  @echo "This command is intended for maintainers to use"
@@ -643,6 +1029,8 @@ dvi-am:
643
1029
 
644
1030
  html: html-recursive
645
1031
 
1032
+ html-am:
1033
+
646
1034
  info: info-recursive
647
1035
 
648
1036
  info-am:
@@ -651,18 +1039,28 @@ install-data-am:
651
1039
 
652
1040
  install-dvi: install-dvi-recursive
653
1041
 
1042
+ install-dvi-am:
1043
+
654
1044
  install-exec-am:
655
1045
 
656
1046
  install-html: install-html-recursive
657
1047
 
1048
+ install-html-am:
1049
+
658
1050
  install-info: install-info-recursive
659
1051
 
1052
+ install-info-am:
1053
+
660
1054
  install-man:
661
1055
 
662
1056
  install-pdf: install-pdf-recursive
663
1057
 
1058
+ install-pdf-am:
1059
+
664
1060
  install-ps: install-ps-recursive
665
1061
 
1062
+ install-ps-am:
1063
+
666
1064
  installcheck-am:
667
1065
 
668
1066
  maintainer-clean: maintainer-clean-recursive
@@ -684,22 +1082,21 @@ ps-am:
684
1082
 
685
1083
  uninstall-am:
686
1084
 
687
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
688
- install-strip
1085
+ .MAKE: $(am__recursive_targets) check-am install-am install-strip
689
1086
 
690
- .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
691
- all all-am check check-TESTS check-am clean clean-generic \
692
- clean-noinstPROGRAMS ctags ctags-recursive distclean \
693
- distclean-compile distclean-generic distclean-tags distdir dvi \
694
- dvi-am html html-am info info-am install install-am \
695
- install-data install-data-am install-dvi install-dvi-am \
696
- install-exec install-exec-am install-html install-html-am \
697
- install-info install-info-am install-man install-pdf \
698
- install-pdf-am install-ps install-ps-am install-strip \
699
- installcheck installcheck-am installdirs installdirs-am \
700
- maintainer-clean maintainer-clean-generic mostlyclean \
701
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
702
- tags tags-recursive uninstall uninstall-am
1087
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1088
+ check-TESTS check-am clean clean-generic clean-noinstPROGRAMS \
1089
+ cscopelist-am ctags ctags-am distclean distclean-compile \
1090
+ distclean-generic distclean-tags distdir dvi dvi-am html \
1091
+ html-am info info-am install install-am install-data \
1092
+ install-data-am install-dvi install-dvi-am install-exec \
1093
+ install-exec-am install-html install-html-am install-info \
1094
+ install-info-am install-man install-pdf install-pdf-am \
1095
+ install-ps install-ps-am install-strip installcheck \
1096
+ installcheck-am installdirs installdirs-am maintainer-clean \
1097
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
1098
+ mostlyclean-generic pdf pdf-am ps ps-am recheck tags tags-am \
1099
+ uninstall uninstall-am
703
1100
 
704
1101
 
705
1102
  check: run_multiple_extensions_test
@@ -723,6 +1120,7 @@ check: run_multiple_extensions_same_class_test
723
1120
  run_multiple_extensions_same_class_test:
724
1121
  $(RUBY) test_multiple_extensions_same_class.rb
725
1122
  $(RUBY_CPPFLAGS)
1123
+
726
1124
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
727
1125
  # Otherwise a system limit (for SysV at least) may be exceeded.
728
1126
  .NOEXPORT: