xref: /netbsd-src/external/lgpl3/gmp/dist/tests/Makefile.in (revision e6c7e151de239c49d2e38720a061ed9d1fa99309)
1# Makefile.in generated by automake 1.15 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17# Copyright 2000-2004, 2013 Free Software Foundation, Inc.
18#
19# This file is part of the GNU MP Library test suite.
20#
21# The GNU MP Library test suite is free software; you can redistribute it
22# and/or modify it under the terms of the GNU General Public License as
23# published by the Free Software Foundation; either version 3 of the License,
24# or (at your option) any later version.
25#
26# The GNU MP Library test suite is distributed in the hope that it will be
27# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
28# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
29# Public License for more details.
30#
31# You should have received a copy of the GNU General Public License along with
32# the GNU MP Library test suite.  If not, see https://www.gnu.org/licenses/.
33
34# Copyright 1996, 1998-2002 Free Software Foundation, Inc.
35#
36#  This file is part of the GNU MP Library.
37#
38#  The GNU MP Library is free software; you can redistribute it and/or modify
39#  it under the terms of either:
40#
41#    * the GNU Lesser General Public License as published by the Free
42#      Software Foundation; either version 3 of the License, or (at your
43#      option) any later version.
44#
45#  or
46#
47#    * the GNU General Public License as published by the Free Software
48#      Foundation; either version 2 of the License, or (at your option) any
49#      later version.
50#
51#  or both in parallel, as here.
52#
53#  The GNU MP Library is distributed in the hope that it will be useful, but
54#  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
55#  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
56#  for more details.
57#
58#  You should have received copies of the GNU General Public License and the
59#  GNU Lesser General Public License along with the GNU MP Library.  If not,
60#  see https://www.gnu.org/licenses/.
61VPATH = @srcdir@
62am__is_gnu_make = { \
63  if test -z '$(MAKELEVEL)'; then \
64    false; \
65  elif test -n '$(MAKE_HOST)'; then \
66    true; \
67  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
68    true; \
69  else \
70    false; \
71  fi; \
72}
73am__make_running_with_option = \
74  case $${target_option-} in \
75      ?) ;; \
76      *) echo "am__make_running_with_option: internal error: invalid" \
77              "target option '$${target_option-}' specified" >&2; \
78         exit 1;; \
79  esac; \
80  has_opt=no; \
81  sane_makeflags=$$MAKEFLAGS; \
82  if $(am__is_gnu_make); then \
83    sane_makeflags=$$MFLAGS; \
84  else \
85    case $$MAKEFLAGS in \
86      *\\[\ \	]*) \
87        bs=\\; \
88        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
89          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
90    esac; \
91  fi; \
92  skip_next=no; \
93  strip_trailopt () \
94  { \
95    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
96  }; \
97  for flg in $$sane_makeflags; do \
98    test $$skip_next = yes && { skip_next=no; continue; }; \
99    case $$flg in \
100      *=*|--*) continue;; \
101        -*I) strip_trailopt 'I'; skip_next=yes;; \
102      -*I?*) strip_trailopt 'I';; \
103        -*O) strip_trailopt 'O'; skip_next=yes;; \
104      -*O?*) strip_trailopt 'O';; \
105        -*l) strip_trailopt 'l'; skip_next=yes;; \
106      -*l?*) strip_trailopt 'l';; \
107      -[dEDm]) skip_next=yes;; \
108      -[JT]) skip_next=yes;; \
109    esac; \
110    case $$flg in \
111      *$$target_option*) has_opt=yes; break;; \
112    esac; \
113  done; \
114  test $$has_opt = yes
115am__make_dryrun = (target_option=n; $(am__make_running_with_option))
116am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
117pkgdatadir = $(datadir)/@PACKAGE@
118pkgincludedir = $(includedir)/@PACKAGE@
119pkglibdir = $(libdir)/@PACKAGE@
120pkglibexecdir = $(libexecdir)/@PACKAGE@
121am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
122install_sh_DATA = $(install_sh) -c -m 644
123install_sh_PROGRAM = $(install_sh) -c
124install_sh_SCRIPT = $(install_sh) -c
125INSTALL_HEADER = $(INSTALL_DATA)
126transform = $(program_transform_name)
127NORMAL_INSTALL = :
128PRE_INSTALL = :
129POST_INSTALL = :
130NORMAL_UNINSTALL = :
131PRE_UNINSTALL = :
132POST_UNINSTALL = :
133build_triplet = @build@
134host_triplet = @host@
135check_PROGRAMS = t-bswap$(EXEEXT) t-constants$(EXEEXT) \
136	t-count_zeros$(EXEEXT) t-hightomask$(EXEEXT) \
137	t-modlinv$(EXEEXT) t-popc$(EXEEXT) t-parity$(EXEEXT) \
138	t-sub$(EXEEXT)
139subdir = tests
140ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
141am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
142	$(top_srcdir)/configure.ac
143am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
144	$(ACLOCAL_M4)
145DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
146mkinstalldirs = $(install_sh) -d
147CONFIG_HEADER = $(top_builddir)/config.h
148CONFIG_CLEAN_FILES =
149CONFIG_CLEAN_VPATH_FILES =
150am__DEPENDENCIES_1 =
151am_libtests_la_OBJECTS = memory.lo misc.lo refmpf.lo refmpn.lo \
152	refmpq.lo refmpz.lo spinner.lo trace.lo
153libtests_la_OBJECTS = $(am_libtests_la_OBJECTS)
154AM_V_lt = $(am__v_lt_@AM_V@)
155am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
156am__v_lt_0 = --silent
157am__v_lt_1 =
158t_bswap_SOURCES = t-bswap.c
159t_bswap_OBJECTS = t-bswap.$(OBJEXT)
160t_bswap_LDADD = $(LDADD)
161t_bswap_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
162t_constants_SOURCES = t-constants.c
163t_constants_OBJECTS = t-constants.$(OBJEXT)
164t_constants_LDADD = $(LDADD)
165t_constants_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
166t_count_zeros_SOURCES = t-count_zeros.c
167t_count_zeros_OBJECTS = t-count_zeros.$(OBJEXT)
168t_count_zeros_LDADD = $(LDADD)
169t_count_zeros_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
170t_hightomask_SOURCES = t-hightomask.c
171t_hightomask_OBJECTS = t-hightomask.$(OBJEXT)
172t_hightomask_LDADD = $(LDADD)
173t_hightomask_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
174t_modlinv_SOURCES = t-modlinv.c
175t_modlinv_OBJECTS = t-modlinv.$(OBJEXT)
176t_modlinv_LDADD = $(LDADD)
177t_modlinv_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
178t_parity_SOURCES = t-parity.c
179t_parity_OBJECTS = t-parity.$(OBJEXT)
180t_parity_LDADD = $(LDADD)
181t_parity_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
182t_popc_SOURCES = t-popc.c
183t_popc_OBJECTS = t-popc.$(OBJEXT)
184t_popc_LDADD = $(LDADD)
185t_popc_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
186t_sub_SOURCES = t-sub.c
187t_sub_OBJECTS = t-sub.$(OBJEXT)
188t_sub_LDADD = $(LDADD)
189t_sub_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
190AM_V_P = $(am__v_P_@AM_V@)
191am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
192am__v_P_0 = false
193am__v_P_1 = :
194AM_V_GEN = $(am__v_GEN_@AM_V@)
195am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
196am__v_GEN_0 = @echo "  GEN     " $@;
197am__v_GEN_1 =
198AM_V_at = $(am__v_at_@AM_V@)
199am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
200am__v_at_0 = @
201am__v_at_1 =
202DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
203depcomp =
204am__depfiles_maybe =
205COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
206	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
207LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
208	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
209	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
210	$(AM_CFLAGS) $(CFLAGS)
211AM_V_CC = $(am__v_CC_@AM_V@)
212am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
213am__v_CC_0 = @echo "  CC      " $@;
214am__v_CC_1 =
215CCLD = $(CC)
216LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
217	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
218	$(AM_LDFLAGS) $(LDFLAGS) -o $@
219AM_V_CCLD = $(am__v_CCLD_@AM_V@)
220am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
221am__v_CCLD_0 = @echo "  CCLD    " $@;
222am__v_CCLD_1 =
223SOURCES = $(libtests_la_SOURCES) $(EXTRA_libtests_la_SOURCES) \
224	t-bswap.c t-constants.c t-count_zeros.c t-hightomask.c \
225	t-modlinv.c t-parity.c t-popc.c t-sub.c
226DIST_SOURCES = $(libtests_la_SOURCES) $(EXTRA_libtests_la_SOURCES) \
227	t-bswap.c t-constants.c t-count_zeros.c t-hightomask.c \
228	t-modlinv.c t-parity.c t-popc.c t-sub.c
229RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
230	ctags-recursive dvi-recursive html-recursive info-recursive \
231	install-data-recursive install-dvi-recursive \
232	install-exec-recursive install-html-recursive \
233	install-info-recursive install-pdf-recursive \
234	install-ps-recursive install-recursive installcheck-recursive \
235	installdirs-recursive pdf-recursive ps-recursive \
236	tags-recursive uninstall-recursive
237am__can_run_installinfo = \
238  case $$AM_UPDATE_INFO_DIR in \
239    n|no|NO) false;; \
240    *) (install-info --version) >/dev/null 2>&1;; \
241  esac
242RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
243  distclean-recursive maintainer-clean-recursive
244am__recursive_targets = \
245  $(RECURSIVE_TARGETS) \
246  $(RECURSIVE_CLEAN_TARGETS) \
247  $(am__extra_recursive_targets)
248AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
249	check recheck distdir
250am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
251# Read a list of newline-separated strings from the standard input,
252# and print each of them once, without duplicates.  Input order is
253# *not* preserved.
254am__uniquify_input = $(AWK) '\
255  BEGIN { nonempty = 0; } \
256  { items[$$0] = 1; nonempty = 1; } \
257  END { if (nonempty) { for (i in items) print i; }; } \
258'
259# Make sure the list of sources is unique.  This is necessary because,
260# e.g., the same source file might be shared among _SOURCES variables
261# for different programs/libraries.
262am__define_uniq_tagged_files = \
263  list='$(am__tagged_files)'; \
264  unique=`for i in $$list; do \
265    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
266  done | $(am__uniquify_input)`
267ETAGS = etags
268CTAGS = ctags
269am__tty_colors_dummy = \
270  mgn= red= grn= lgn= blu= brg= std=; \
271  am__color_tests=no
272am__tty_colors = { \
273  $(am__tty_colors_dummy); \
274  if test "X$(AM_COLOR_TESTS)" = Xno; then \
275    am__color_tests=no; \
276  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
277    am__color_tests=yes; \
278  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
279    am__color_tests=yes; \
280  fi; \
281  if test $$am__color_tests = yes; then \
282    red=''; \
283    grn=''; \
284    lgn=''; \
285    blu=''; \
286    mgn=''; \
287    brg=''; \
288    std=''; \
289  fi; \
290}
291am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
292am__vpath_adj = case $$p in \
293    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
294    *) f=$$p;; \
295  esac;
296am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
297am__install_max = 40
298am__nobase_strip_setup = \
299  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
300am__nobase_strip = \
301  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
302am__nobase_list = $(am__nobase_strip_setup); \
303  for p in $$list; do echo "$$p $$p"; done | \
304  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
305  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
306    if (++n[$$2] == $(am__install_max)) \
307      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
308    END { for (dir in files) print dir, files[dir] }'
309am__base_list = \
310  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
311  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
312am__uninstall_files_from_dir = { \
313  test -z "$$files" \
314    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
315    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
316         $(am__cd) "$$dir" && rm -f $$files; }; \
317  }
318am__recheck_rx = ^[ 	]*:recheck:[ 	]*
319am__global_test_result_rx = ^[ 	]*:global-test-result:[ 	]*
320am__copy_in_global_log_rx = ^[ 	]*:copy-in-global-log:[ 	]*
321# A command that, given a newline-separated list of test names on the
322# standard input, print the name of the tests that are to be re-run
323# upon "make recheck".
324am__list_recheck_tests = $(AWK) '{ \
325  recheck = 1; \
326  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
327    { \
328      if (rc < 0) \
329        { \
330          if ((getline line2 < ($$0 ".log")) < 0) \
331	    recheck = 0; \
332          break; \
333        } \
334      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
335        { \
336          recheck = 0; \
337          break; \
338        } \
339      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
340        { \
341          break; \
342        } \
343    }; \
344  if (recheck) \
345    print $$0; \
346  close ($$0 ".trs"); \
347  close ($$0 ".log"); \
348}'
349# A command that, given a newline-separated list of test names on the
350# standard input, create the global log from their .trs and .log files.
351am__create_global_log = $(AWK) ' \
352function fatal(msg) \
353{ \
354  print "fatal: making $@: " msg | "cat >&2"; \
355  exit 1; \
356} \
357function rst_section(header) \
358{ \
359  print header; \
360  len = length(header); \
361  for (i = 1; i <= len; i = i + 1) \
362    printf "="; \
363  printf "\n\n"; \
364} \
365{ \
366  copy_in_global_log = 1; \
367  global_test_result = "RUN"; \
368  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
369    { \
370      if (rc < 0) \
371         fatal("failed to read from " $$0 ".trs"); \
372      if (line ~ /$(am__global_test_result_rx)/) \
373        { \
374          sub("$(am__global_test_result_rx)", "", line); \
375          sub("[ 	]*$$", "", line); \
376          global_test_result = line; \
377        } \
378      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
379        copy_in_global_log = 0; \
380    }; \
381  if (copy_in_global_log) \
382    { \
383      rst_section(global_test_result ": " $$0); \
384      while ((rc = (getline line < ($$0 ".log"))) != 0) \
385      { \
386        if (rc < 0) \
387          fatal("failed to read from " $$0 ".log"); \
388        print line; \
389      }; \
390      printf "\n"; \
391    }; \
392  close ($$0 ".trs"); \
393  close ($$0 ".log"); \
394}'
395# Restructured Text title.
396am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
397# Solaris 10 'make', and several other traditional 'make' implementations,
398# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
399# by disabling -e (using the XSI extension "set +e") if it's set.
400am__sh_e_setup = case $$- in *e*) set +e;; esac
401# Default flags passed to test drivers.
402am__common_driver_flags = \
403  --color-tests "$$am__color_tests" \
404  --enable-hard-errors "$$am__enable_hard_errors" \
405  --expect-failure "$$am__expect_failure"
406# To be inserted before the command running the test.  Creates the
407# directory for the log if needed.  Stores in $dir the directory
408# containing $f, in $tst the test, in $log the log.  Executes the
409# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
410# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
411# will run the test scripts (or their associated LOG_COMPILER, if
412# thy have one).
413am__check_pre = \
414$(am__sh_e_setup);					\
415$(am__vpath_adj_setup) $(am__vpath_adj)			\
416$(am__tty_colors);					\
417srcdir=$(srcdir); export srcdir;			\
418case "$@" in						\
419  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;	\
420    *) am__odir=.;; 					\
421esac;							\
422test "x$$am__odir" = x"." || test -d "$$am__odir" 	\
423  || $(MKDIR_P) "$$am__odir" || exit $$?;		\
424if test -f "./$$f"; then dir=./;			\
425elif test -f "$$f"; then dir=;				\
426else dir="$(srcdir)/"; fi;				\
427tst=$$dir$$f; log='$@'; 				\
428if test -n '$(DISABLE_HARD_ERRORS)'; then		\
429  am__enable_hard_errors=no; 				\
430else							\
431  am__enable_hard_errors=yes; 				\
432fi; 							\
433case " $(XFAIL_TESTS) " in				\
434  *[\ \	]$$f[\ \	]* | *[\ \	]$$dir$$f[\ \	]*) \
435    am__expect_failure=yes;;				\
436  *)							\
437    am__expect_failure=no;;				\
438esac; 							\
439$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
440# A shell command to get the names of the tests scripts with any registered
441# extension removed (i.e., equivalently, the names of the test logs, with
442# the '.log' extension removed).  The result is saved in the shell variable
443# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
444# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
445# since that might cause problem with VPATH rewrites for suffix-less tests.
446# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
447am__set_TESTS_bases = \
448  bases='$(TEST_LOGS)'; \
449  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
450  bases=`echo $$bases`
451RECHECK_LOGS = $(TEST_LOGS)
452TEST_SUITE_LOG = test-suite.log
453TEST_EXTENSIONS = @EXEEXT@ .test
454LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
455LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
456am__set_b = \
457  case '$@' in \
458    */*) \
459      case '$*' in \
460        */*) b='$*';; \
461          *) b=`echo '$@' | sed 's/\.log$$//'`; \
462       esac;; \
463    *) \
464      b='$*';; \
465  esac
466am__test_logs1 = $(TESTS:=.log)
467am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
468TEST_LOGS = $(am__test_logs2:.test.log=.log)
469TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
470TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
471	$(TEST_LOG_FLAGS)
472DIST_SUBDIRS = $(SUBDIRS)
473am__DIST_COMMON = $(srcdir)/../mpn/Makeasm.am $(srcdir)/Makefile.in \
474	$(top_srcdir)/test-driver
475DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
476am__relativize = \
477  dir0=`pwd`; \
478  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
479  sed_rest='s,^[^/]*/*,,'; \
480  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
481  sed_butlast='s,/*[^/]*$$,,'; \
482  while test -n "$$dir1"; do \
483    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
484    if test "$$first" != "."; then \
485      if test "$$first" = ".."; then \
486        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
487        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
488      else \
489        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
490        if test "$$first2" = "$$first"; then \
491          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
492        else \
493          dir2="../$$dir2"; \
494        fi; \
495        dir0="$$dir0"/"$$first"; \
496      fi; \
497    fi; \
498    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
499  done; \
500  reldir="$$dir2"
501ABI = @ABI@
502ACLOCAL = @ACLOCAL@
503AMTAR = @AMTAR@
504AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
505AR = @AR@
506AS = @AS@
507ASMFLAGS = @ASMFLAGS@
508AUTOCONF = @AUTOCONF@
509AUTOHEADER = @AUTOHEADER@
510AUTOMAKE = @AUTOMAKE@
511AWK = @AWK@
512CALLING_CONVENTIONS_OBJS = @CALLING_CONVENTIONS_OBJS@
513CC = @CC@
514CCAS = @CCAS@
515CC_FOR_BUILD = @CC_FOR_BUILD@
516CFLAGS = @CFLAGS@
517CPP = @CPP@
518CPPFLAGS = @CPPFLAGS@
519CPP_FOR_BUILD = @CPP_FOR_BUILD@
520CXX = @CXX@
521CXXCPP = @CXXCPP@
522CXXFLAGS = @CXXFLAGS@
523CYGPATH_W = @CYGPATH_W@
524DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
525DEFS = @DEFS@
526DLLTOOL = @DLLTOOL@
527DSYMUTIL = @DSYMUTIL@
528DUMPBIN = @DUMPBIN@
529ECHO_C = @ECHO_C@
530ECHO_N = @ECHO_N@
531ECHO_T = @ECHO_T@
532EGREP = @EGREP@
533EXEEXT = @EXEEXT@
534EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
535FGREP = @FGREP@
536GMP_LDFLAGS = @GMP_LDFLAGS@
537GMP_LIMB_BITS = @GMP_LIMB_BITS@
538GMP_NAIL_BITS = @GMP_NAIL_BITS@
539GREP = @GREP@
540HAVE_CLOCK_01 = @HAVE_CLOCK_01@
541HAVE_CPUTIME_01 = @HAVE_CPUTIME_01@
542HAVE_GETRUSAGE_01 = @HAVE_GETRUSAGE_01@
543HAVE_GETTIMEOFDAY_01 = @HAVE_GETTIMEOFDAY_01@
544HAVE_HOST_CPU_FAMILY_power = @HAVE_HOST_CPU_FAMILY_power@
545HAVE_HOST_CPU_FAMILY_powerpc = @HAVE_HOST_CPU_FAMILY_powerpc@
546HAVE_SIGACTION_01 = @HAVE_SIGACTION_01@
547HAVE_SIGALTSTACK_01 = @HAVE_SIGALTSTACK_01@
548HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
549HAVE_STACK_T_01 = @HAVE_STACK_T_01@
550HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
551INSTALL = @INSTALL@
552INSTALL_DATA = @INSTALL_DATA@
553INSTALL_PROGRAM = @INSTALL_PROGRAM@
554INSTALL_SCRIPT = @INSTALL_SCRIPT@
555INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
556LD = @LD@
557LDFLAGS = @LDFLAGS@
558LEX = @LEX@
559LEXLIB = @LEXLIB@
560LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
561LIBCURSES = @LIBCURSES@
562LIBGMPXX_LDFLAGS = @LIBGMPXX_LDFLAGS@
563LIBGMP_DLL = @LIBGMP_DLL@
564LIBGMP_LDFLAGS = @LIBGMP_LDFLAGS@
565LIBM = @LIBM@
566LIBM_FOR_BUILD = @LIBM_FOR_BUILD@
567LIBOBJS = @LIBOBJS@
568LIBREADLINE = @LIBREADLINE@
569LIBS = @LIBS@
570LIBTOOL = @LIBTOOL@
571LIPO = @LIPO@
572LN_S = @LN_S@
573LTLIBOBJS = @LTLIBOBJS@
574LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
575M4 = @M4@
576MAINT = @MAINT@
577MAKEINFO = @MAKEINFO@
578MANIFEST_TOOL = @MANIFEST_TOOL@
579MKDIR_P = @MKDIR_P@
580NM = @NM@
581NMEDIT = @NMEDIT@
582OBJDUMP = @OBJDUMP@
583OBJEXT = @OBJEXT@
584OTOOL = @OTOOL@
585OTOOL64 = @OTOOL64@
586PACKAGE = @PACKAGE@
587PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
588PACKAGE_NAME = @PACKAGE_NAME@
589PACKAGE_STRING = @PACKAGE_STRING@
590PACKAGE_TARNAME = @PACKAGE_TARNAME@
591PACKAGE_URL = @PACKAGE_URL@
592PACKAGE_VERSION = @PACKAGE_VERSION@
593PATH_SEPARATOR = @PATH_SEPARATOR@
594RANLIB = @RANLIB@
595SED = @SED@
596SET_MAKE = @SET_MAKE@
597SHELL = @SHELL@
598SPEED_CYCLECOUNTER_OBJ = @SPEED_CYCLECOUNTER_OBJ@
599STRIP = @STRIP@
600TAL_OBJECT = @TAL_OBJECT@
601TUNE_LIBS = @TUNE_LIBS@
602TUNE_SQR_OBJ = @TUNE_SQR_OBJ@
603U_FOR_BUILD = @U_FOR_BUILD@
604VERSION = @VERSION@
605WITH_READLINE_01 = @WITH_READLINE_01@
606YACC = @YACC@
607YFLAGS = @YFLAGS@
608abs_builddir = @abs_builddir@
609abs_srcdir = @abs_srcdir@
610abs_top_builddir = @abs_top_builddir@
611abs_top_srcdir = @abs_top_srcdir@
612ac_ct_AR = @ac_ct_AR@
613ac_ct_CC = @ac_ct_CC@
614ac_ct_CXX = @ac_ct_CXX@
615ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
616am__leading_dot = @am__leading_dot@
617am__tar = @am__tar@
618am__untar = @am__untar@
619bindir = @bindir@
620build = @build@
621build_alias = @build_alias@
622build_cpu = @build_cpu@
623build_os = @build_os@
624build_vendor = @build_vendor@
625builddir = @builddir@
626datadir = @datadir@
627datarootdir = @datarootdir@
628docdir = @docdir@
629dvidir = @dvidir@
630exec_prefix = @exec_prefix@
631gmp_srclinks = @gmp_srclinks@
632host = @host@
633host_alias = @host_alias@
634host_cpu = @host_cpu@
635host_os = @host_os@
636host_vendor = @host_vendor@
637htmldir = @htmldir@
638includedir = @includedir@
639infodir = @infodir@
640install_sh = @install_sh@
641libdir = @libdir@
642libexecdir = @libexecdir@
643localedir = @localedir@
644localstatedir = @localstatedir@
645mandir = @mandir@
646mkdir_p = @mkdir_p@
647mpn_objects = @mpn_objects@
648mpn_objs_in_libgmp = @mpn_objs_in_libgmp@
649oldincludedir = @oldincludedir@
650pdfdir = @pdfdir@
651prefix = @prefix@
652program_transform_name = @program_transform_name@
653psdir = @psdir@
654sbindir = @sbindir@
655sharedstatedir = @sharedstatedir@
656srcdir = @srcdir@
657sysconfdir = @sysconfdir@
658target_alias = @target_alias@
659top_build_prefix = @top_build_prefix@
660top_builddir = @top_builddir@
661top_srcdir = @top_srcdir@
662SUBDIRS = . devel mpn mpz mpq mpf rand misc cxx
663
664# COMPILE minus CC.
665#
666COMPILE_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
667	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(ASMFLAGS)
668
669
670# Flags used for preprocessing (in ansi2knr rules).
671#
672PREPROCESS_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
673	$(CPPFLAGS)
674
675
676# Recent versions of automake (1.5 and up for instance) append automake
677# generated suffixes to this $(SUFFIXES) list.  This is essential for us,
678# since .c must come after .s, .S and .asm.  If .c is before .s, for
679# instance, then in the mpn directory "make" will see add_n.c mentioned in
680# an explicit rule (the ansi2knr stuff) and decide it must have add_n.c,
681# even if add_n.c doesn't exist but add_n.s does.  See GNU make
682# documentation "(make)Implicit Rule Search", part 5c.
683#
684# On IRIX 6 native make this doesn't work properly though.  Somehow .c
685# remains ahead of .s, perhaps because .c.s is a builtin rule.  .asm works
686# fine though, and mpn/mips3 uses this.
687#
688SUFFIXES = .s .S .asm
689
690# can be overridden during development, eg. "make RM_TMP=: mul_1.lo"
691RM_TMP = rm -f
692AM_CPPFLAGS = -I$(top_srcdir)
693LDADD = libtests.la $(top_builddir)/libgmp.la
694check_LTLIBRARIES = libtests.la
695EXTRA_libtests_la_SOURCES = amd64call.asm amd64check.c x86call.asm x86check.c \
696    arm32call.asm arm32check.c
697
698libtests_la_SOURCES = tests.h \
699  memory.c misc.c refmpf.c refmpn.c refmpq.c refmpz.c spinner.c trace.c
700
701libtests_la_DEPENDENCIES = @CALLING_CONVENTIONS_OBJS@
702libtests_la_LIBADD = $(libtests_la_DEPENDENCIES) $(top_builddir)/libgmp.la
703TESTS = $(check_PROGRAMS)
704all: all-recursive
705
706.SUFFIXES:
707.SUFFIXES: .s .S .asm .c .lo .log .o .obj .test .test$(EXEEXT) .trs
708$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../mpn/Makeasm.am $(am__configure_deps)
709	@for dep in $?; do \
710	  case '$(am__configure_deps)' in \
711	    *$$dep*) \
712	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
713	        && { if test -f $@; then exit 0; else break; fi; }; \
714	      exit 1;; \
715	  esac; \
716	done; \
717	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tests/Makefile'; \
718	$(am__cd) $(top_srcdir) && \
719	  $(AUTOMAKE) --gnu --ignore-deps tests/Makefile
720Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
721	@case '$?' in \
722	  *config.status*) \
723	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
724	  *) \
725	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
726	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
727	esac;
728$(srcdir)/../mpn/Makeasm.am $(am__empty):
729
730$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
731	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
732
733$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
734	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
735$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
736	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
737$(am__aclocal_m4_deps):
738
739clean-checkLTLIBRARIES:
740	-test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
741	@list='$(check_LTLIBRARIES)'; \
742	locs=`for p in $$list; do echo $$p; done | \
743	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
744	      sort -u`; \
745	test -z "$$locs" || { \
746	  echo rm -f $${locs}; \
747	  rm -f $${locs}; \
748	}
749
750libtests.la: $(libtests_la_OBJECTS) $(libtests_la_DEPENDENCIES) $(EXTRA_libtests_la_DEPENDENCIES)
751	$(AM_V_CCLD)$(LINK)  $(libtests_la_OBJECTS) $(libtests_la_LIBADD) $(LIBS)
752
753clean-checkPROGRAMS:
754	@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
755	echo " rm -f" $$list; \
756	rm -f $$list || exit $$?; \
757	test -n "$(EXEEXT)" || exit 0; \
758	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
759	echo " rm -f" $$list; \
760	rm -f $$list
761
762t-bswap$(EXEEXT): $(t_bswap_OBJECTS) $(t_bswap_DEPENDENCIES) $(EXTRA_t_bswap_DEPENDENCIES)
763	@rm -f t-bswap$(EXEEXT)
764	$(AM_V_CCLD)$(LINK) $(t_bswap_OBJECTS) $(t_bswap_LDADD) $(LIBS)
765
766t-constants$(EXEEXT): $(t_constants_OBJECTS) $(t_constants_DEPENDENCIES) $(EXTRA_t_constants_DEPENDENCIES)
767	@rm -f t-constants$(EXEEXT)
768	$(AM_V_CCLD)$(LINK) $(t_constants_OBJECTS) $(t_constants_LDADD) $(LIBS)
769
770t-count_zeros$(EXEEXT): $(t_count_zeros_OBJECTS) $(t_count_zeros_DEPENDENCIES) $(EXTRA_t_count_zeros_DEPENDENCIES)
771	@rm -f t-count_zeros$(EXEEXT)
772	$(AM_V_CCLD)$(LINK) $(t_count_zeros_OBJECTS) $(t_count_zeros_LDADD) $(LIBS)
773
774t-hightomask$(EXEEXT): $(t_hightomask_OBJECTS) $(t_hightomask_DEPENDENCIES) $(EXTRA_t_hightomask_DEPENDENCIES)
775	@rm -f t-hightomask$(EXEEXT)
776	$(AM_V_CCLD)$(LINK) $(t_hightomask_OBJECTS) $(t_hightomask_LDADD) $(LIBS)
777
778t-modlinv$(EXEEXT): $(t_modlinv_OBJECTS) $(t_modlinv_DEPENDENCIES) $(EXTRA_t_modlinv_DEPENDENCIES)
779	@rm -f t-modlinv$(EXEEXT)
780	$(AM_V_CCLD)$(LINK) $(t_modlinv_OBJECTS) $(t_modlinv_LDADD) $(LIBS)
781
782t-parity$(EXEEXT): $(t_parity_OBJECTS) $(t_parity_DEPENDENCIES) $(EXTRA_t_parity_DEPENDENCIES)
783	@rm -f t-parity$(EXEEXT)
784	$(AM_V_CCLD)$(LINK) $(t_parity_OBJECTS) $(t_parity_LDADD) $(LIBS)
785
786t-popc$(EXEEXT): $(t_popc_OBJECTS) $(t_popc_DEPENDENCIES) $(EXTRA_t_popc_DEPENDENCIES)
787	@rm -f t-popc$(EXEEXT)
788	$(AM_V_CCLD)$(LINK) $(t_popc_OBJECTS) $(t_popc_LDADD) $(LIBS)
789
790t-sub$(EXEEXT): $(t_sub_OBJECTS) $(t_sub_DEPENDENCIES) $(EXTRA_t_sub_DEPENDENCIES)
791	@rm -f t-sub$(EXEEXT)
792	$(AM_V_CCLD)$(LINK) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS)
793
794mostlyclean-compile:
795	-rm -f *.$(OBJEXT)
796
797distclean-compile:
798	-rm -f *.tab.c
799
800.c.o:
801	$(AM_V_CC)$(COMPILE) -c -o $@ $<
802
803.c.obj:
804	$(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
805
806.c.lo:
807	$(AM_V_CC)$(LTCOMPILE) -c -o $@ $<
808
809mostlyclean-libtool:
810	-rm -f *.lo
811
812clean-libtool:
813	-rm -rf .libs _libs
814
815# This directory's subdirectories are mostly independent; you can cd
816# into them and run 'make' without going through this Makefile.
817# To change the values of 'make' variables: instead of editing Makefiles,
818# (1) if the variable is set in 'config.status', edit 'config.status'
819#     (which will cause the Makefiles to be regenerated when you run 'make');
820# (2) otherwise, pass the desired values on the 'make' command line.
821$(am__recursive_targets):
822	@fail=; \
823	if $(am__make_keepgoing); then \
824	  failcom='fail=yes'; \
825	else \
826	  failcom='exit 1'; \
827	fi; \
828	dot_seen=no; \
829	target=`echo $@ | sed s/-recursive//`; \
830	case "$@" in \
831	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
832	  *) list='$(SUBDIRS)' ;; \
833	esac; \
834	for subdir in $$list; do \
835	  echo "Making $$target in $$subdir"; \
836	  if test "$$subdir" = "."; then \
837	    dot_seen=yes; \
838	    local_target="$$target-am"; \
839	  else \
840	    local_target="$$target"; \
841	  fi; \
842	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
843	  || eval $$failcom; \
844	done; \
845	if test "$$dot_seen" = "no"; then \
846	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
847	fi; test -z "$$fail"
848
849ID: $(am__tagged_files)
850	$(am__define_uniq_tagged_files); mkid -fID $$unique
851tags: tags-recursive
852TAGS: tags
853
854tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
855	set x; \
856	here=`pwd`; \
857	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
858	  include_option=--etags-include; \
859	  empty_fix=.; \
860	else \
861	  include_option=--include; \
862	  empty_fix=; \
863	fi; \
864	list='$(SUBDIRS)'; for subdir in $$list; do \
865	  if test "$$subdir" = .; then :; else \
866	    test ! -f $$subdir/TAGS || \
867	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
868	  fi; \
869	done; \
870	$(am__define_uniq_tagged_files); \
871	shift; \
872	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
873	  test -n "$$unique" || unique=$$empty_fix; \
874	  if test $$# -gt 0; then \
875	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
876	      "$$@" $$unique; \
877	  else \
878	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
879	      $$unique; \
880	  fi; \
881	fi
882ctags: ctags-recursive
883
884CTAGS: ctags
885ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
886	$(am__define_uniq_tagged_files); \
887	test -z "$(CTAGS_ARGS)$$unique" \
888	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
889	     $$unique
890
891GTAGS:
892	here=`$(am__cd) $(top_builddir) && pwd` \
893	  && $(am__cd) $(top_srcdir) \
894	  && gtags -i $(GTAGS_ARGS) "$$here"
895cscopelist: cscopelist-recursive
896
897cscopelist-am: $(am__tagged_files)
898	list='$(am__tagged_files)'; \
899	case "$(srcdir)" in \
900	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
901	  *) sdir=$(subdir)/$(srcdir) ;; \
902	esac; \
903	for i in $$list; do \
904	  if test -f "$$i"; then \
905	    echo "$(subdir)/$$i"; \
906	  else \
907	    echo "$$sdir/$$i"; \
908	  fi; \
909	done >> $(top_builddir)/cscope.files
910
911distclean-tags:
912	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
913
914# Recover from deleted '.trs' file; this should ensure that
915# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
916# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
917# to avoid problems with "make -n".
918.log.trs:
919	rm -f $< $@
920	$(MAKE) $(AM_MAKEFLAGS) $<
921
922# Leading 'am--fnord' is there to ensure the list of targets does not
923# expand to empty, as could happen e.g. with make check TESTS=''.
924am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
925am--force-recheck:
926	@:
927
928$(TEST_SUITE_LOG): $(TEST_LOGS)
929	@$(am__set_TESTS_bases); \
930	am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
931	redo_bases=`for i in $$bases; do \
932	              am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
933	            done`; \
934	if test -n "$$redo_bases"; then \
935	  redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
936	  redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
937	  if $(am__make_dryrun); then :; else \
938	    rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
939	  fi; \
940	fi; \
941	if test -n "$$am__remaking_logs"; then \
942	  echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
943	       "recursion detected" >&2; \
944	elif test -n "$$redo_logs"; then \
945	  am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
946	fi; \
947	if $(am__make_dryrun); then :; else \
948	  st=0;  \
949	  errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
950	  for i in $$redo_bases; do \
951	    test -f $$i.trs && test -r $$i.trs \
952	      || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
953	    test -f $$i.log && test -r $$i.log \
954	      || { echo "$$errmsg $$i.log" >&2; st=1; }; \
955	  done; \
956	  test $$st -eq 0 || exit 1; \
957	fi
958	@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
959	ws='[ 	]'; \
960	results=`for b in $$bases; do echo $$b.trs; done`; \
961	test -n "$$results" || results=/dev/null; \
962	all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
963	pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
964	fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
965	skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
966	xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
967	xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
968	error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
969	if test `expr $$fail + $$xpass + $$error` -eq 0; then \
970	  success=true; \
971	else \
972	  success=false; \
973	fi; \
974	br='==================='; br=$$br$$br$$br$$br; \
975	result_count () \
976	{ \
977	    if test x"$$1" = x"--maybe-color"; then \
978	      maybe_colorize=yes; \
979	    elif test x"$$1" = x"--no-color"; then \
980	      maybe_colorize=no; \
981	    else \
982	      echo "$@: invalid 'result_count' usage" >&2; exit 4; \
983	    fi; \
984	    shift; \
985	    desc=$$1 count=$$2; \
986	    if test $$maybe_colorize = yes && test $$count -gt 0; then \
987	      color_start=$$3 color_end=$$std; \
988	    else \
989	      color_start= color_end=; \
990	    fi; \
991	    echo "$${color_start}# $$desc $$count$${color_end}"; \
992	}; \
993	create_testsuite_report () \
994	{ \
995	  result_count $$1 "TOTAL:" $$all   "$$brg"; \
996	  result_count $$1 "PASS: " $$pass  "$$grn"; \
997	  result_count $$1 "SKIP: " $$skip  "$$blu"; \
998	  result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
999	  result_count $$1 "FAIL: " $$fail  "$$red"; \
1000	  result_count $$1 "XPASS:" $$xpass "$$red"; \
1001	  result_count $$1 "ERROR:" $$error "$$mgn"; \
1002	}; \
1003	{								\
1004	  echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |	\
1005	    $(am__rst_title);						\
1006	  create_testsuite_report --no-color;				\
1007	  echo;								\
1008	  echo ".. contents:: :depth: 2";				\
1009	  echo;								\
1010	  for b in $$bases; do echo $$b; done				\
1011	    | $(am__create_global_log);					\
1012	} >$(TEST_SUITE_LOG).tmp || exit 1;				\
1013	mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);			\
1014	if $$success; then						\
1015	  col="$$grn";							\
1016	 else								\
1017	  col="$$red";							\
1018	  test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);		\
1019	fi;								\
1020	echo "$${col}$$br$${std}"; 					\
1021	echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";	\
1022	echo "$${col}$$br$${std}"; 					\
1023	create_testsuite_report --maybe-color;				\
1024	echo "$$col$$br$$std";						\
1025	if $$success; then :; else					\
1026	  echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";		\
1027	  if test -n "$(PACKAGE_BUGREPORT)"; then			\
1028	    echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}";	\
1029	  fi;								\
1030	  echo "$$col$$br$$std";					\
1031	fi;								\
1032	$$success || exit 1
1033
1034check-TESTS:
1035	@list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
1036	@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
1037	@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1038	@set +e; $(am__set_TESTS_bases); \
1039	log_list=`for i in $$bases; do echo $$i.log; done`; \
1040	trs_list=`for i in $$bases; do echo $$i.trs; done`; \
1041	log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
1042	$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
1043	exit $$?;
1044recheck: all $(check_LTLIBRARIES) $(check_PROGRAMS)
1045	@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1046	@set +e; $(am__set_TESTS_bases); \
1047	bases=`for i in $$bases; do echo $$i; done \
1048	         | $(am__list_recheck_tests)` || exit 1; \
1049	log_list=`for i in $$bases; do echo $$i.log; done`; \
1050	log_list=`echo $$log_list`; \
1051	$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
1052	        am__force_recheck=am--force-recheck \
1053	        TEST_LOGS="$$log_list"; \
1054	exit $$?
1055t-bswap.log: t-bswap$(EXEEXT)
1056	@p='t-bswap$(EXEEXT)'; \
1057	b='t-bswap'; \
1058	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1059	--log-file $$b.log --trs-file $$b.trs \
1060	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1061	"$$tst" $(AM_TESTS_FD_REDIRECT)
1062t-constants.log: t-constants$(EXEEXT)
1063	@p='t-constants$(EXEEXT)'; \
1064	b='t-constants'; \
1065	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1066	--log-file $$b.log --trs-file $$b.trs \
1067	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1068	"$$tst" $(AM_TESTS_FD_REDIRECT)
1069t-count_zeros.log: t-count_zeros$(EXEEXT)
1070	@p='t-count_zeros$(EXEEXT)'; \
1071	b='t-count_zeros'; \
1072	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1073	--log-file $$b.log --trs-file $$b.trs \
1074	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1075	"$$tst" $(AM_TESTS_FD_REDIRECT)
1076t-hightomask.log: t-hightomask$(EXEEXT)
1077	@p='t-hightomask$(EXEEXT)'; \
1078	b='t-hightomask'; \
1079	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1080	--log-file $$b.log --trs-file $$b.trs \
1081	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1082	"$$tst" $(AM_TESTS_FD_REDIRECT)
1083t-modlinv.log: t-modlinv$(EXEEXT)
1084	@p='t-modlinv$(EXEEXT)'; \
1085	b='t-modlinv'; \
1086	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1087	--log-file $$b.log --trs-file $$b.trs \
1088	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1089	"$$tst" $(AM_TESTS_FD_REDIRECT)
1090t-popc.log: t-popc$(EXEEXT)
1091	@p='t-popc$(EXEEXT)'; \
1092	b='t-popc'; \
1093	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1094	--log-file $$b.log --trs-file $$b.trs \
1095	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1096	"$$tst" $(AM_TESTS_FD_REDIRECT)
1097t-parity.log: t-parity$(EXEEXT)
1098	@p='t-parity$(EXEEXT)'; \
1099	b='t-parity'; \
1100	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1101	--log-file $$b.log --trs-file $$b.trs \
1102	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1103	"$$tst" $(AM_TESTS_FD_REDIRECT)
1104t-sub.log: t-sub$(EXEEXT)
1105	@p='t-sub$(EXEEXT)'; \
1106	b='t-sub'; \
1107	$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1108	--log-file $$b.log --trs-file $$b.trs \
1109	$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1110	"$$tst" $(AM_TESTS_FD_REDIRECT)
1111.test.log:
1112	@p='$<'; \
1113	$(am__set_b); \
1114	$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1115	--log-file $$b.log --trs-file $$b.trs \
1116	$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1117	"$$tst" $(AM_TESTS_FD_REDIRECT)
1118@am__EXEEXT_TRUE@.test$(EXEEXT).log:
1119@am__EXEEXT_TRUE@	@p='$<'; \
1120@am__EXEEXT_TRUE@	$(am__set_b); \
1121@am__EXEEXT_TRUE@	$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1122@am__EXEEXT_TRUE@	--log-file $$b.log --trs-file $$b.trs \
1123@am__EXEEXT_TRUE@	$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1124@am__EXEEXT_TRUE@	"$$tst" $(AM_TESTS_FD_REDIRECT)
1125
1126distdir: $(DISTFILES)
1127	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1128	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1129	list='$(DISTFILES)'; \
1130	  dist_files=`for file in $$list; do echo $$file; done | \
1131	  sed -e "s|^$$srcdirstrip/||;t" \
1132	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1133	case $$dist_files in \
1134	  */*) $(MKDIR_P) `echo "$$dist_files" | \
1135			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1136			   sort -u` ;; \
1137	esac; \
1138	for file in $$dist_files; do \
1139	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1140	  if test -d $$d/$$file; then \
1141	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1142	    if test -d "$(distdir)/$$file"; then \
1143	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1144	    fi; \
1145	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1146	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1147	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1148	    fi; \
1149	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1150	  else \
1151	    test -f "$(distdir)/$$file" \
1152	    || cp -p $$d/$$file "$(distdir)/$$file" \
1153	    || exit 1; \
1154	  fi; \
1155	done
1156	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1157	  if test "$$subdir" = .; then :; else \
1158	    $(am__make_dryrun) \
1159	      || test -d "$(distdir)/$$subdir" \
1160	      || $(MKDIR_P) "$(distdir)/$$subdir" \
1161	      || exit 1; \
1162	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
1163	    $(am__relativize); \
1164	    new_distdir=$$reldir; \
1165	    dir1=$$subdir; dir2="$(top_distdir)"; \
1166	    $(am__relativize); \
1167	    new_top_distdir=$$reldir; \
1168	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
1169	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
1170	    ($(am__cd) $$subdir && \
1171	      $(MAKE) $(AM_MAKEFLAGS) \
1172	        top_distdir="$$new_top_distdir" \
1173	        distdir="$$new_distdir" \
1174		am__remove_distdir=: \
1175		am__skip_length_check=: \
1176		am__skip_mode_fix=: \
1177	        distdir) \
1178	      || exit 1; \
1179	  fi; \
1180	done
1181check-am: all-am
1182	$(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS)
1183	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
1184check: check-recursive
1185all-am: Makefile
1186installdirs: installdirs-recursive
1187installdirs-am:
1188install: install-recursive
1189install-exec: install-exec-recursive
1190install-data: install-data-recursive
1191uninstall: uninstall-recursive
1192
1193install-am: all-am
1194	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1195
1196installcheck: installcheck-recursive
1197install-strip:
1198	if test -z '$(STRIP)'; then \
1199	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1200	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1201	      install; \
1202	else \
1203	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1204	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1205	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1206	fi
1207mostlyclean-generic:
1208	-test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1209	-test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1210	-test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1211
1212clean-generic:
1213
1214distclean-generic:
1215	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1216	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1217
1218maintainer-clean-generic:
1219	@echo "This command is intended for maintainers to use"
1220	@echo "it deletes files that may require special tools to rebuild."
1221clean: clean-recursive
1222
1223clean-am: clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \
1224	clean-libtool mostlyclean-am
1225
1226distclean: distclean-recursive
1227	-rm -f Makefile
1228distclean-am: clean-am distclean-compile distclean-generic \
1229	distclean-tags
1230
1231dvi: dvi-recursive
1232
1233dvi-am:
1234
1235html: html-recursive
1236
1237html-am:
1238
1239info: info-recursive
1240
1241info-am:
1242
1243install-data-am:
1244
1245install-dvi: install-dvi-recursive
1246
1247install-dvi-am:
1248
1249install-exec-am:
1250
1251install-html: install-html-recursive
1252
1253install-html-am:
1254
1255install-info: install-info-recursive
1256
1257install-info-am:
1258
1259install-man:
1260
1261install-pdf: install-pdf-recursive
1262
1263install-pdf-am:
1264
1265install-ps: install-ps-recursive
1266
1267install-ps-am:
1268
1269installcheck-am:
1270
1271maintainer-clean: maintainer-clean-recursive
1272	-rm -f Makefile
1273maintainer-clean-am: distclean-am maintainer-clean-generic
1274
1275mostlyclean: mostlyclean-recursive
1276
1277mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1278	mostlyclean-libtool
1279
1280pdf: pdf-recursive
1281
1282pdf-am:
1283
1284ps: ps-recursive
1285
1286ps-am:
1287
1288uninstall-am:
1289
1290.MAKE: $(am__recursive_targets) check-am install-am install-strip
1291
1292.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1293	check-TESTS check-am clean clean-checkLTLIBRARIES \
1294	clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
1295	ctags ctags-am distclean distclean-compile distclean-generic \
1296	distclean-libtool distclean-tags distdir dvi dvi-am html \
1297	html-am info info-am install install-am install-data \
1298	install-data-am install-dvi install-dvi-am install-exec \
1299	install-exec-am install-html install-html-am install-info \
1300	install-info-am install-man install-pdf install-pdf-am \
1301	install-ps install-ps-am install-strip installcheck \
1302	installcheck-am installdirs installdirs-am maintainer-clean \
1303	maintainer-clean-generic mostlyclean mostlyclean-compile \
1304	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1305	recheck tags tags-am uninstall uninstall-am
1306
1307.PRECIOUS: Makefile
1308
1309
1310# .s assembler, no preprocessing.
1311#
1312.s.o:
1313	$(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
1314.s.obj:
1315	$(CCAS) $(COMPILE_FLAGS) `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
1316.s.lo:
1317	$(LIBTOOL) --mode=compile --tag=CC $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
1318
1319# .S assembler, preprocessed with cpp.
1320#
1321# It's necessary to run $(CPP) separately, since it seems not all compilers
1322# recognise .S files, in particular "cc" on HP-UX 10 and 11 doesn't (and
1323# will silently do nothing if given a .S).
1324#
1325# For .lo we need a helper script, as described below for .asm.lo.
1326#
1327.S.o:
1328	$(CPP) $(PREPROCESS_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$< | grep -v '^#' >tmp-$*.s
1329	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
1330	$(RM_TMP) tmp-$*.s
1331.S.obj:
1332	$(CPP) $(PREPROCESS_FLAGS) `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | grep -v '^#' >tmp-$*.s
1333	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
1334	$(RM_TMP) tmp-$*.s
1335.S.lo:
1336	$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/cpp-ccas --cpp="$(CPP) $(PREPROCESS_FLAGS)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
1337
1338# .asm assembler, preprocessed with m4.
1339#
1340# .o and .obj are non-PIC and just need m4 followed by a compile.
1341#
1342# .lo is a bit tricky.  Libtool (as of version 1.5) has foo.lo as a little
1343# text file, and .libs/foo.o and foo.o as the PIC and non-PIC objects,
1344# respectively.  It'd be asking for lots of trouble to try to create foo.lo
1345# ourselves, so instead arrange to invoke libtool like a --mode=compile, but
1346# with a special m4-ccas script which first m4 preprocesses, then compiles.
1347# --tag=CC is necessary since foo.asm is otherwise unknown to libtool.
1348#
1349# Libtool adds -DPIC when building a shared object and the .asm files look
1350# for that.  But it should be noted that the other PIC flags are on occasion
1351# important too, in particular FreeBSD 2.2.8 gas 1.92.3 requires -k before
1352# it accepts PIC constructs like @GOT, and gcc adds that flag only under
1353# -fPIC.  (Later versions of gas are happy to accept PIC stuff any time.)
1354#
1355.asm.o:
1356	$(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s
1357	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
1358	$(RM_TMP) tmp-$*.s
1359.asm.obj:
1360	$(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s
1361	$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
1362	$(RM_TMP) tmp-$*.s
1363.asm.lo:
1364	$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
1365
1366# Tell versions [3.59,3.63) of GNU make to not export all variables.
1367# Otherwise a system limit (for SysV at least) may be exceeded.
1368.NOEXPORT:
1369