102 changed files with 4591 additions and 2792 deletions
-
2CMakeLists.txt
-
331resources/3rdparty/gmm-4.2/missing
-
598resources/3rdparty/gmm-4.2/tests/Makefile.in
-
0resources/3rdparty/gmm-5.0/AUTHORS
-
0resources/3rdparty/gmm-5.0/COPYING
-
0resources/3rdparty/gmm-5.0/ChangeLog
-
12resources/3rdparty/gmm-5.0/INSTALL
-
0resources/3rdparty/gmm-5.0/Makefile.am
-
350resources/3rdparty/gmm-5.0/Makefile.in
-
0resources/3rdparty/gmm-5.0/NEWS
-
0resources/3rdparty/gmm-5.0/README
-
686resources/3rdparty/gmm-5.0/aclocal.m4
-
347resources/3rdparty/gmm-5.0/compile
-
184resources/3rdparty/gmm-5.0/config.guess
-
2resources/3rdparty/gmm-5.0/config.h.in
-
106resources/3rdparty/gmm-5.0/config.sub
-
670resources/3rdparty/gmm-5.0/configure
-
8resources/3rdparty/gmm-5.0/configure.ac
-
487resources/3rdparty/gmm-5.0/depcomp
-
0resources/3rdparty/gmm-5.0/gmm-config.in
-
11resources/3rdparty/gmm-5.0/include/Makefile.am
-
190resources/3rdparty/gmm-5.0/include/Makefile.in
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm.h
-
221resources/3rdparty/gmm-5.0/include/gmm/gmm_MUMPS_interface.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_algobase.h
-
128resources/3rdparty/gmm-5.0/include/gmm/gmm_blas.h
-
12resources/3rdparty/gmm-5.0/include/gmm/gmm_blas_interface.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_condition_number.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_conjugated.h
-
6resources/3rdparty/gmm-5.0/include/gmm/gmm_def.h
-
76resources/3rdparty/gmm-5.0/include/gmm/gmm_dense_Householder.h
-
8resources/3rdparty/gmm-5.0/include/gmm/gmm_dense_lu.h
-
302resources/3rdparty/gmm-5.0/include/gmm/gmm_dense_matrix_functions.h
-
338resources/3rdparty/gmm-5.0/include/gmm/gmm_dense_qr.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_dense_sylvester.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_domain_decomp.h
-
83resources/3rdparty/gmm-5.0/include/gmm/gmm_except.h
-
73resources/3rdparty/gmm-5.0/include/gmm/gmm_inoutput.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_interface.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_interface_bgeot.h
-
27resources/3rdparty/gmm-5.0/include/gmm/gmm_iter.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_iter_solvers.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_kernel.h
-
282resources/3rdparty/gmm-5.0/include/gmm/gmm_lapack_interface.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_least_squares_cg.h
-
25resources/3rdparty/gmm-5.0/include/gmm/gmm_matrix.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_modified_gram_schmidt.h
-
10resources/3rdparty/gmm-5.0/include/gmm/gmm_opt.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond.h
-
4resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_diagonal.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_ildlt.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_ildltt.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_ilu.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_ilut.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_ilutp.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_precond_mr_approx_inverse.h
-
7resources/3rdparty/gmm-5.0/include/gmm/gmm_range_basis.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_real_part.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_ref.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_scaled.h
-
37resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_Schwarz_additive.h
-
12resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_bfgs.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_bicgstab.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_cg.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_constrained_cg.h
-
27resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_gmres.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_idgmres.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_solver_qmr.h
-
177resources/3rdparty/gmm-5.0/include/gmm/gmm_std.h
-
33resources/3rdparty/gmm-5.0/include/gmm/gmm_sub_index.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_sub_matrix.h
-
8resources/3rdparty/gmm-5.0/include/gmm/gmm_sub_vector.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_superlu_interface.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_transposed.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_tri_solve.h
-
13resources/3rdparty/gmm-5.0/include/gmm/gmm_vector.h
-
2resources/3rdparty/gmm-5.0/include/gmm/gmm_vector_to_matrix.h
-
14resources/3rdparty/gmm-5.0/install-sh
-
4resources/3rdparty/gmm-5.0/ltmain.sh
-
1resources/3rdparty/gmm-5.0/m4/ax_check_cxx_flag.m4
-
0resources/3rdparty/gmm-5.0/m4/ax_prefix_config_h.m4
-
52resources/3rdparty/gmm-5.0/m4/libtool.m4
-
0resources/3rdparty/gmm-5.0/m4/ltoptions.m4
-
0resources/3rdparty/gmm-5.0/m4/ltsugar.m4
-
0resources/3rdparty/gmm-5.0/m4/ltversion.m4
-
0resources/3rdparty/gmm-5.0/m4/lt~obsolete.m4
-
215resources/3rdparty/gmm-5.0/missing
-
139resources/3rdparty/gmm-5.0/test-driver
-
4resources/3rdparty/gmm-5.0/tests/Makefile.am
-
967resources/3rdparty/gmm-5.0/tests/Makefile.in
-
0resources/3rdparty/gmm-5.0/tests/dummy.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture01_lusolve.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture02_baseop.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture05_mult.cc
-
4resources/3rdparty/gmm-5.0/tests/gmm_torture06_mat_mult.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture10_qr.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture15_sub.cc
-
2resources/3rdparty/gmm-5.0/tests/gmm_torture20_iterative_solvers.cc
-
6resources/3rdparty/gmm-5.0/tests/make_gmm_test.pl
-
2resources/3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt
@ -1,331 +0,0 @@ |
|||
#! /bin/sh |
|||
# Common stub for a few missing GNU programs while installing. |
|||
|
|||
scriptversion=2012-01-06.13; # UTC |
|||
|
|||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, |
|||
# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. |
|||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
if test $# -eq 0; then |
|||
echo 1>&2 "Try \`$0 --help' for more information" |
|||
exit 1 |
|||
fi |
|||
|
|||
run=: |
|||
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' |
|||
sed_minuso='s/.* -o \([^ ]*\).*/\1/p' |
|||
|
|||
# In the cases where this matters, `missing' is being run in the |
|||
# srcdir already. |
|||
if test -f configure.ac; then |
|||
configure_ac=configure.ac |
|||
else |
|||
configure_ac=configure.in |
|||
fi |
|||
|
|||
msg="missing on your system" |
|||
|
|||
case $1 in |
|||
--run) |
|||
# Try to run requested program, and just exit if it succeeds. |
|||
run= |
|||
shift |
|||
"$@" && exit 0 |
|||
# Exit code 63 means version mismatch. This often happens |
|||
# when the user try to use an ancient version of a tool on |
|||
# a file that requires a minimum version. In this case we |
|||
# we should proceed has if the program had been absent, or |
|||
# if --run hadn't been passed. |
|||
if test $? = 63; then |
|||
run=: |
|||
msg="probably too old" |
|||
fi |
|||
;; |
|||
|
|||
-h|--h|--he|--hel|--help) |
|||
echo "\ |
|||
$0 [OPTION]... PROGRAM [ARGUMENT]... |
|||
|
|||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
|||
error status if there is no known handling for PROGRAM. |
|||
|
|||
Options: |
|||
-h, --help display this help and exit |
|||
-v, --version output version information and exit |
|||
--run try to run the given command, and emulate it if it fails |
|||
|
|||
Supported PROGRAM values: |
|||
aclocal touch file \`aclocal.m4' |
|||
autoconf touch file \`configure' |
|||
autoheader touch file \`config.h.in' |
|||
autom4te touch the output file, or create a stub one |
|||
automake touch all \`Makefile.in' files |
|||
bison create \`y.tab.[ch]', if possible, from existing .[ch] |
|||
flex create \`lex.yy.c', if possible, from existing .c |
|||
help2man touch the output file |
|||
lex create \`lex.yy.c', if possible, from existing .c |
|||
makeinfo touch the output file |
|||
yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
|||
|
|||
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and |
|||
\`g' are ignored when checking the name. |
|||
|
|||
Send bug reports to <bug-automake@gnu.org>." |
|||
exit $? |
|||
;; |
|||
|
|||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
|||
echo "missing $scriptversion (GNU Automake)" |
|||
exit $? |
|||
;; |
|||
|
|||
-*) |
|||
echo 1>&2 "$0: Unknown \`$1' option" |
|||
echo 1>&2 "Try \`$0 --help' for more information" |
|||
exit 1 |
|||
;; |
|||
|
|||
esac |
|||
|
|||
# normalize program name to check for. |
|||
program=`echo "$1" | sed ' |
|||
s/^gnu-//; t |
|||
s/^gnu//; t |
|||
s/^g//; t'` |
|||
|
|||
# Now exit if we have it, but it failed. Also exit now if we |
|||
# don't have it and --version was passed (most likely to detect |
|||
# the program). This is about non-GNU programs, so use $1 not |
|||
# $program. |
|||
case $1 in |
|||
lex*|yacc*) |
|||
# Not GNU programs, they don't have --version. |
|||
;; |
|||
|
|||
*) |
|||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
|||
# We have it, but it failed. |
|||
exit 1 |
|||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then |
|||
# Could not run --version or --help. This is probably someone |
|||
# running `$TOOL --version' or `$TOOL --help' to check whether |
|||
# $TOOL exists and not knowing $TOOL uses missing. |
|||
exit 1 |
|||
fi |
|||
;; |
|||
esac |
|||
|
|||
# If it does not exist, or fails to run (possibly an outdated version), |
|||
# try to emulate it. |
|||
case $program in |
|||
aclocal*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
|||
to install the \`Automake' and \`Perl' packages. Grab them from |
|||
any GNU archive site." |
|||
touch aclocal.m4 |
|||
;; |
|||
|
|||
autoconf*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`${configure_ac}'. You might want to install the |
|||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
|||
archive site." |
|||
touch configure |
|||
;; |
|||
|
|||
autoheader*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
|||
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
|||
from any GNU archive site." |
|||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` |
|||
test -z "$files" && files="config.h" |
|||
touch_files= |
|||
for f in $files; do |
|||
case $f in |
|||
*:*) touch_files="$touch_files "`echo "$f" | |
|||
sed -e 's/^[^:]*://' -e 's/:.*//'`;; |
|||
*) touch_files="$touch_files $f.in";; |
|||
esac |
|||
done |
|||
touch $touch_files |
|||
;; |
|||
|
|||
automake*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
|||
You might want to install the \`Automake' and \`Perl' packages. |
|||
Grab them from any GNU archive site." |
|||
find . -type f -name Makefile.am -print | |
|||
sed 's/\.am$/.in/' | |
|||
while read f; do touch "$f"; done |
|||
;; |
|||
|
|||
autom4te*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is needed, but is $msg. |
|||
You might have modified some files without having the |
|||
proper tools for further handling them. |
|||
You can get \`$1' as part of \`Autoconf' from any GNU |
|||
archive site." |
|||
|
|||
file=`echo "$*" | sed -n "$sed_output"` |
|||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` |
|||
if test -f "$file"; then |
|||
touch $file |
|||
else |
|||
test -z "$file" || exec >$file |
|||
echo "#! /bin/sh" |
|||
echo "# Created by GNU Automake missing as a replacement of" |
|||
echo "# $ $@" |
|||
echo "exit 0" |
|||
chmod +x $file |
|||
exit 1 |
|||
fi |
|||
;; |
|||
|
|||
bison*|yacc*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' $msg. You should only need it if |
|||
you modified a \`.y' file. You may need the \`Bison' package |
|||
in order for those modifications to take effect. You can get |
|||
\`Bison' from any GNU archive site." |
|||
rm -f y.tab.c y.tab.h |
|||
if test $# -ne 1; then |
|||
eval LASTARG=\${$#} |
|||
case $LASTARG in |
|||
*.y) |
|||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
|||
if test -f "$SRCFILE"; then |
|||
cp "$SRCFILE" y.tab.c |
|||
fi |
|||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` |
|||
if test -f "$SRCFILE"; then |
|||
cp "$SRCFILE" y.tab.h |
|||
fi |
|||
;; |
|||
esac |
|||
fi |
|||
if test ! -f y.tab.h; then |
|||
echo >y.tab.h |
|||
fi |
|||
if test ! -f y.tab.c; then |
|||
echo 'main() { return 0; }' >y.tab.c |
|||
fi |
|||
;; |
|||
|
|||
lex*|flex*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a \`.l' file. You may need the \`Flex' package |
|||
in order for those modifications to take effect. You can get |
|||
\`Flex' from any GNU archive site." |
|||
rm -f lex.yy.c |
|||
if test $# -ne 1; then |
|||
eval LASTARG=\${$#} |
|||
case $LASTARG in |
|||
*.l) |
|||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
|||
if test -f "$SRCFILE"; then |
|||
cp "$SRCFILE" lex.yy.c |
|||
fi |
|||
;; |
|||
esac |
|||
fi |
|||
if test ! -f lex.yy.c; then |
|||
echo 'main() { return 0; }' >lex.yy.c |
|||
fi |
|||
;; |
|||
|
|||
help2man*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a dependency of a manual page. You may need the |
|||
\`Help2man' package in order for those modifications to take |
|||
effect. You can get \`Help2man' from any GNU archive site." |
|||
|
|||
file=`echo "$*" | sed -n "$sed_output"` |
|||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` |
|||
if test -f "$file"; then |
|||
touch $file |
|||
else |
|||
test -z "$file" || exec >$file |
|||
echo ".ab help2man is required to generate this page" |
|||
exit $? |
|||
fi |
|||
;; |
|||
|
|||
makeinfo*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is $msg. You should only need it if |
|||
you modified a \`.texi' or \`.texinfo' file, or any other file |
|||
indirectly affecting the aspect of the manual. The spurious |
|||
call might also be the consequence of using a buggy \`make' (AIX, |
|||
DU, IRIX). You might want to install the \`Texinfo' package or |
|||
the \`GNU make' package. Grab either from any GNU archive site." |
|||
# The file to touch is that specified with -o ... |
|||
file=`echo "$*" | sed -n "$sed_output"` |
|||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` |
|||
if test -z "$file"; then |
|||
# ... or it is the one specified with @setfilename ... |
|||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
|||
file=`sed -n ' |
|||
/^@setfilename/{ |
|||
s/.* \([^ ]*\) *$/\1/ |
|||
p |
|||
q |
|||
}' $infile` |
|||
# ... or it is derived from the source name (dir/f.texi becomes f.info) |
|||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info |
|||
fi |
|||
# If the file does not exist, the user really needs makeinfo; |
|||
# let's fail without touching anything. |
|||
test -f $file || exit 1 |
|||
touch $file |
|||
;; |
|||
|
|||
*) |
|||
echo 1>&2 "\ |
|||
WARNING: \`$1' is needed, and is $msg. |
|||
You might have modified some files without having the |
|||
proper tools for further handling them. Check the \`README' file, |
|||
it often tells you about the needed prerequisites for installing |
|||
this package. You may also peek at any GNU archive site, in case |
|||
some other package would contain this missing \`$1' program." |
|||
exit 1 |
|||
;; |
|||
esac |
|||
|
|||
exit 0 |
|||
|
|||
# Local variables: |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-time-zone: "UTC" |
|||
# time-stamp-end: "; # UTC" |
|||
# End: |
@ -1,598 +0,0 @@ |
|||
# Makefile.in generated by automake 1.11.3 from Makefile.am.
|
|||
# @configure_input@
|
|||
|
|||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
|||
# Foundation, Inc.
|
|||
# This Makefile.in is free software; the Free Software Foundation
|
|||
# gives unlimited permission to copy and/or distribute it,
|
|||
# with or without modifications, as long as this notice is preserved.
|
|||
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|||
# PARTICULAR PURPOSE.
|
|||
|
|||
@SET_MAKE@ |
|||
VPATH = @srcdir@ |
|||
pkgdatadir = $(datadir)/@PACKAGE@ |
|||
pkgincludedir = $(includedir)/@PACKAGE@ |
|||
pkglibdir = $(libdir)/@PACKAGE@ |
|||
pkglibexecdir = $(libexecdir)/@PACKAGE@ |
|||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
|||
install_sh_DATA = $(install_sh) -c -m 644 |
|||
install_sh_PROGRAM = $(install_sh) -c |
|||
install_sh_SCRIPT = $(install_sh) -c |
|||
INSTALL_HEADER = $(INSTALL_DATA) |
|||
transform = $(program_transform_name) |
|||
NORMAL_INSTALL = : |
|||
PRE_INSTALL = : |
|||
POST_INSTALL = : |
|||
NORMAL_UNINSTALL = : |
|||
PRE_UNINSTALL = : |
|||
POST_UNINSTALL = : |
|||
build_triplet = @build@ |
|||
host_triplet = @host@ |
|||
check_PROGRAMS = dummy$(EXEEXT) |
|||
subdir = tests |
|||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
|||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
|||
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
|||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
|||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
|||
$(top_srcdir)/configure.in |
|||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
|||
$(ACLOCAL_M4) |
|||
mkinstalldirs = $(install_sh) -d |
|||
CONFIG_HEADER = $(top_builddir)/config.h |
|||
CONFIG_CLEAN_FILES = |
|||
CONFIG_CLEAN_VPATH_FILES = |
|||
am_dummy_OBJECTS = dummy.$(OBJEXT) |
|||
dummy_OBJECTS = $(am_dummy_OBJECTS) |
|||
dummy_LDADD = $(LDADD) |
|||
dummy_DEPENDENCIES = |
|||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
|||
depcomp = $(SHELL) $(top_srcdir)/depcomp |
|||
am__depfiles_maybe = depfiles |
|||
am__mv = mv -f |
|||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) |
|||
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|||
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) |
|||
CXXLD = $(CXX) |
|||
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|||
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
|||
$(LDFLAGS) -o $@ |
|||
SOURCES = $(dummy_SOURCES) |
|||
DIST_SOURCES = $(dummy_SOURCES) |
|||
ETAGS = etags |
|||
CTAGS = ctags |
|||
am__tty_colors = \
|
|||
red=; grn=; lgn=; blu=; std= |
|||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
|||
ACLOCAL = @ACLOCAL@ |
|||
AMTAR = @AMTAR@ |
|||
AR = @AR@ |
|||
AUTOCONF = @AUTOCONF@ |
|||
AUTOHEADER = @AUTOHEADER@ |
|||
AUTOMAKE = @AUTOMAKE@ |
|||
AWK = @AWK@ |
|||
BUILDDATE = @BUILDDATE@ |
|||
BUILDER = @BUILDER@ |
|||
CC = @CC@ |
|||
CCDEPMODE = @CCDEPMODE@ |
|||
CFLAGS = @CFLAGS@ |
|||
CONFIGURE_ARGS = @CONFIGURE_ARGS@ |
|||
CPP = @CPP@ |
|||
CPPFLAGS = @CPPFLAGS@ |
|||
CXX = @CXX@ |
|||
CXXCPP = @CXXCPP@ |
|||
CXXDEPMODE = @CXXDEPMODE@ |
|||
CXXFLAGS = @CXXFLAGS@ |
|||
CYGPATH_W = @CYGPATH_W@ |
|||
DEFS = @DEFS@ |
|||
DEPDIR = @DEPDIR@ |
|||
DLLTOOL = @DLLTOOL@ |
|||
DSYMUTIL = @DSYMUTIL@ |
|||
DUMPBIN = @DUMPBIN@ |
|||
ECHO_C = @ECHO_C@ |
|||
ECHO_N = @ECHO_N@ |
|||
ECHO_T = @ECHO_T@ |
|||
EGREP = @EGREP@ |
|||
EXEEXT = @EXEEXT@ |
|||
FGREP = @FGREP@ |
|||
GREP = @GREP@ |
|||
INSTALL = @INSTALL@ |
|||
INSTALL_DATA = @INSTALL_DATA@ |
|||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
|||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
|||
LD = @LD@ |
|||
LDFLAGS = @LDFLAGS@ |
|||
LIBOBJS = @LIBOBJS@ |
|||
LIBS = @LIBS@ |
|||
LIBTOOL = @LIBTOOL@ |
|||
LIBTOOL_DEPS = @LIBTOOL_DEPS@ |
|||
LIBTOOL_VERSION_INFO = @LIBTOOL_VERSION_INFO@ |
|||
LIPO = @LIPO@ |
|||
LN_S = @LN_S@ |
|||
LTLIBOBJS = @LTLIBOBJS@ |
|||
MAKEINFO = @MAKEINFO@ |
|||
MANIFEST_TOOL = @MANIFEST_TOOL@ |
|||
MKDIR_P = @MKDIR_P@ |
|||
NM = @NM@ |
|||
NMEDIT = @NMEDIT@ |
|||
OBJDUMP = @OBJDUMP@ |
|||
OBJEXT = @OBJEXT@ |
|||
OTOOL = @OTOOL@ |
|||
OTOOL64 = @OTOOL64@ |
|||
PACKAGE = @PACKAGE@ |
|||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
|||
PACKAGE_NAME = @PACKAGE_NAME@ |
|||
PACKAGE_STRING = @PACKAGE_STRING@ |
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
|||
PACKAGE_URL = @PACKAGE_URL@ |
|||
PACKAGE_VERSION = @PACKAGE_VERSION@ |
|||
PATH_SEPARATOR = @PATH_SEPARATOR@ |
|||
RANLIB = @RANLIB@ |
|||
SED = @SED@ |
|||
SET_MAKE = @SET_MAKE@ |
|||
SHELL = @SHELL@ |
|||
STRIP = @STRIP@ |
|||
SUPLDFLAGS = @SUPLDFLAGS@ |
|||
VERSION = @VERSION@ |
|||
abs_builddir = @abs_builddir@ |
|||
abs_srcdir = @abs_srcdir@ |
|||
abs_top_builddir = @abs_top_builddir@ |
|||
abs_top_srcdir = @abs_top_srcdir@ |
|||
ac_ct_AR = @ac_ct_AR@ |
|||
ac_ct_CC = @ac_ct_CC@ |
|||
ac_ct_CXX = @ac_ct_CXX@ |
|||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
|||
am__include = @am__include@ |
|||
am__leading_dot = @am__leading_dot@ |
|||
am__quote = @am__quote@ |
|||
am__tar = @am__tar@ |
|||
am__untar = @am__untar@ |
|||
bindir = @bindir@ |
|||
build = @build@ |
|||
build_alias = @build_alias@ |
|||
build_cpu = @build_cpu@ |
|||
build_os = @build_os@ |
|||
build_vendor = @build_vendor@ |
|||
builddir = @builddir@ |
|||
datadir = @datadir@ |
|||
datarootdir = @datarootdir@ |
|||
docdir = @docdir@ |
|||
dvidir = @dvidir@ |
|||
exec_prefix = @exec_prefix@ |
|||
host = @host@ |
|||
host_alias = @host_alias@ |
|||
host_cpu = @host_cpu@ |
|||
host_os = @host_os@ |
|||
host_vendor = @host_vendor@ |
|||
htmldir = @htmldir@ |
|||
includedir = @includedir@ |
|||
infodir = @infodir@ |
|||
install_sh = @install_sh@ |
|||
libdir = @libdir@ |
|||
libexecdir = @libexecdir@ |
|||
localedir = @localedir@ |
|||
localstatedir = @localstatedir@ |
|||
mandir = @mandir@ |
|||
mkdir_p = @mkdir_p@ |
|||
oldincludedir = @oldincludedir@ |
|||
pdfdir = @pdfdir@ |
|||
prefix = @prefix@ |
|||
program_transform_name = @program_transform_name@ |
|||
psdir = @psdir@ |
|||
sbindir = @sbindir@ |
|||
sharedstatedir = @sharedstatedir@ |
|||
srcdir = @srcdir@ |
|||
sysconfdir = @sysconfdir@ |
|||
target_alias = @target_alias@ |
|||
top_build_prefix = @top_build_prefix@ |
|||
top_builddir = @top_builddir@ |
|||
top_srcdir = @top_srcdir@ |
|||
dummy_SOURCES = dummy.cc |
|||
INCLUDES = -I$(top_srcdir)/include -I../include |
|||
LDADD = -lm @SUPLDFLAGS@ |
|||
TESTS = $(top_srcdir)/tests/make_gmm_test.pl |
|||
EXTRA_DIST = \
|
|||
make_gmm_test.pl\
|
|||
gmm_torture01_lusolve.cc\
|
|||
gmm_torture02_baseop.cc\
|
|||
gmm_torture05_mult.cc\
|
|||
gmm_torture06_mat_mult.cc\
|
|||
gmm_torture10_qr.cc\
|
|||
gmm_torture15_sub.cc\
|
|||
gmm_torture20_iterative_solvers.cc |
|||
|
|||
CLEANFILES = toto.mat ii_files/* auto_gmm* |
|||
TESTS_ENVIRONMENT = perl |
|||
all: all-am |
|||
|
|||
.SUFFIXES: |
|||
.SUFFIXES: .cc .lo .o .obj |
|||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
|||
@for dep in $?; do \
|
|||
case '$(am__configure_deps)' in \
|
|||
*$$dep*) \
|
|||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
|||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
|||
exit 1;; \
|
|||
esac; \
|
|||
done; \
|
|||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
|
|||
$(am__cd) $(top_srcdir) && \
|
|||
$(AUTOMAKE) --gnu tests/Makefile |
|||
.PRECIOUS: Makefile |
|||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
|||
@case '$?' in \
|
|||
*config.status*) \
|
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
|||
*) \
|
|||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
|||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
|||
esac; |
|||
|
|||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
|
|||
$(top_srcdir)/configure: $(am__configure_deps) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
$(am__aclocal_m4_deps): |
|||
|
|||
clean-checkPROGRAMS: |
|||
@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|||
echo " rm -f" $$list; \
|
|||
rm -f $$list || exit $$?; \
|
|||
test -n "$(EXEEXT)" || exit 0; \
|
|||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|||
echo " rm -f" $$list; \
|
|||
rm -f $$list |
|||
dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES) $(EXTRA_dummy_DEPENDENCIES) |
|||
@rm -f dummy$(EXEEXT) |
|||
$(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS) |
|||
|
|||
mostlyclean-compile: |
|||
-rm -f *.$(OBJEXT) |
|||
|
|||
distclean-compile: |
|||
-rm -f *.tab.c |
|||
|
|||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@ |
|||
|
|||
.cc.o: |
|||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
|||
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< |
|||
|
|||
.cc.obj: |
|||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
|||
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` |
|||
|
|||
.cc.lo: |
|||
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
|||
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< |
|||
|
|||
mostlyclean-libtool: |
|||
-rm -f *.lo |
|||
|
|||
clean-libtool: |
|||
-rm -rf .libs _libs |
|||
|
|||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
|||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
|||
unique=`for i in $$list; do \
|
|||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|||
done | \
|
|||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
|||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
|||
mkid -fID $$unique |
|||
tags: TAGS |
|||
|
|||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ |
|||
$(TAGS_FILES) $(LISP) |
|||
set x; \
|
|||
here=`pwd`; \
|
|||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
|||
unique=`for i in $$list; do \
|
|||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|||
done | \
|
|||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
|||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
|||
shift; \
|
|||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
|||
test -n "$$unique" || unique=$$empty_fix; \
|
|||
if test $$# -gt 0; then \ |
|||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|||
"$$@" $$unique; \
|
|||
else \
|
|||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|||
$$unique; \
|
|||
fi; \
|
|||
fi |
|||
ctags: CTAGS |
|||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ |
|||
$(TAGS_FILES) $(LISP) |
|||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
|||
unique=`for i in $$list; do \
|
|||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|||
done | \
|
|||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
|||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
|||
test -z "$(CTAGS_ARGS)$$unique" \
|
|||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
|||
$$unique |
|||
|
|||
GTAGS: |
|||
here=`$(am__cd) $(top_builddir) && pwd` \
|
|||
&& $(am__cd) $(top_srcdir) \
|
|||
&& gtags -i $(GTAGS_ARGS) "$$here" |
|||
|
|||
distclean-tags: |
|||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
|||
|
|||
check-TESTS: $(TESTS) |
|||
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
|
|||
srcdir=$(srcdir); export srcdir; \
|
|||
list=' $(TESTS) '; \
|
|||
$(am__tty_colors); \
|
|||
if test -n "$$list"; then \
|
|||
for tst in $$list; do \
|
|||
if test -f ./$$tst; then dir=./; \
|
|||
elif test -f $$tst; then dir=; \
|
|||
else dir="$(srcdir)/"; fi; \
|
|||
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
|
|||
all=`expr $$all + 1`; \
|
|||
case " $(XFAIL_TESTS) " in \
|
|||
*[\ \ ]$$tst[\ \ ]*) \
|
|||
xpass=`expr $$xpass + 1`; \
|
|||
failed=`expr $$failed + 1`; \
|
|||
col=$$red; res=XPASS; \
|
|||
;; \
|
|||
*) \
|
|||
col=$$grn; res=PASS; \
|
|||
;; \
|
|||
esac; \
|
|||
elif test $$? -ne 77; then \
|
|||
all=`expr $$all + 1`; \
|
|||
case " $(XFAIL_TESTS) " in \
|
|||
*[\ \ ]$$tst[\ \ ]*) \
|
|||
xfail=`expr $$xfail + 1`; \
|
|||
col=$$lgn; res=XFAIL; \
|
|||
;; \
|
|||
*) \
|
|||
failed=`expr $$failed + 1`; \
|
|||
col=$$red; res=FAIL; \
|
|||
;; \
|
|||
esac; \
|
|||
else \
|
|||
skip=`expr $$skip + 1`; \
|
|||
col=$$blu; res=SKIP; \
|
|||
fi; \
|
|||
echo "$${col}$$res$${std}: $$tst"; \
|
|||
done; \
|
|||
if test "$$all" -eq 1; then \
|
|||
tests="test"; \
|
|||
All=""; \
|
|||
else \
|
|||
tests="tests"; \
|
|||
All="All "; \
|
|||
fi; \
|
|||
if test "$$failed" -eq 0; then \
|
|||
if test "$$xfail" -eq 0; then \
|
|||
banner="$$All$$all $$tests passed"; \
|
|||
else \
|
|||
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
|
|||
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
|
|||
fi; \
|
|||
else \
|
|||
if test "$$xpass" -eq 0; then \
|
|||
banner="$$failed of $$all $$tests failed"; \
|
|||
else \
|
|||
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
|
|||
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
|||
fi; \
|
|||
fi; \
|
|||
dashes="$$banner"; \
|
|||
skipped=""; \
|
|||
if test "$$skip" -ne 0; then \
|
|||
if test "$$skip" -eq 1; then \
|
|||
skipped="($$skip test was not run)"; \
|
|||
else \
|
|||
skipped="($$skip tests were not run)"; \
|
|||
fi; \
|
|||
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
|
|||
dashes="$$skipped"; \
|
|||
fi; \
|
|||
report=""; \
|
|||
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
|
|||
report="Please report to $(PACKAGE_BUGREPORT)"; \
|
|||
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
|
|||
dashes="$$report"; \
|
|||
fi; \
|
|||
dashes=`echo "$$dashes" | sed s/./=/g`; \
|
|||
if test "$$failed" -eq 0; then \
|
|||
col="$$grn"; \
|
|||
else \
|
|||
col="$$red"; \
|
|||
fi; \
|
|||
echo "$${col}$$dashes$${std}"; \
|
|||
echo "$${col}$$banner$${std}"; \
|
|||
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
|
|||
test -z "$$report" || echo "$${col}$$report$${std}"; \
|
|||
echo "$${col}$$dashes$${std}"; \
|
|||
test "$$failed" -eq 0; \
|
|||
else :; fi |
|||
|
|||
distdir: $(DISTFILES) |
|||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|||
list='$(DISTFILES)'; \
|
|||
dist_files=`for file in $$list; do echo $$file; done | \
|
|||
sed -e "s|^$$srcdirstrip/||;t" \
|
|||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
|||
case $$dist_files in \
|
|||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
|||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
|||
sort -u` ;; \
|
|||
esac; \
|
|||
for file in $$dist_files; do \
|
|||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
|||
if test -d $$d/$$file; then \
|
|||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
|||
if test -d "$(distdir)/$$file"; then \
|
|||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|||
fi; \
|
|||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
|||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
|||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|||
fi; \
|
|||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
|||
else \
|
|||
test -f "$(distdir)/$$file" \
|
|||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
|||
|| exit 1; \
|
|||
fi; \
|
|||
done |
|||
check-am: all-am |
|||
$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) |
|||
$(MAKE) $(AM_MAKEFLAGS) check-TESTS |
|||
check: check-am |
|||
all-am: Makefile |
|||
installdirs: |
|||
install: install-am |
|||
install-exec: install-exec-am |
|||
install-data: install-data-am |
|||
uninstall: uninstall-am |
|||
|
|||
install-am: all-am |
|||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
|||
|
|||
installcheck: installcheck-am |
|||
install-strip: |
|||
if test -z '$(STRIP)'; then \
|
|||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|||
install; \
|
|||
else \
|
|||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
|||
fi |
|||
mostlyclean-generic: |
|||
|
|||
clean-generic: |
|||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
|||
|
|||
distclean-generic: |
|||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
|||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
|||
|
|||
maintainer-clean-generic: |
|||
@echo "This command is intended for maintainers to use" |
|||
@echo "it deletes files that may require special tools to rebuild." |
|||
clean: clean-am |
|||
|
|||
clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ |
|||
mostlyclean-am |
|||
|
|||
distclean: distclean-am |
|||
-rm -rf ./$(DEPDIR) |
|||
-rm -f Makefile |
|||
distclean-am: clean-am distclean-compile distclean-generic \ |
|||
distclean-tags |
|||
|
|||
dvi: dvi-am |
|||
|
|||
dvi-am: |
|||
|
|||
html: html-am |
|||
|
|||
html-am: |
|||
|
|||
info: info-am |
|||
|
|||
info-am: |
|||
|
|||
install-data-am: |
|||
|
|||
install-dvi: install-dvi-am |
|||
|
|||
install-dvi-am: |
|||
|
|||
install-exec-am: |
|||
|
|||
install-html: install-html-am |
|||
|
|||
install-html-am: |
|||
|
|||
install-info: install-info-am |
|||
|
|||
install-info-am: |
|||
|
|||
install-man: |
|||
|
|||
install-pdf: install-pdf-am |
|||
|
|||
install-pdf-am: |
|||
|
|||
install-ps: install-ps-am |
|||
|
|||
install-ps-am: |
|||
|
|||
installcheck-am: |
|||
|
|||
maintainer-clean: maintainer-clean-am |
|||
-rm -rf ./$(DEPDIR) |
|||
-rm -f Makefile |
|||
maintainer-clean-am: distclean-am maintainer-clean-generic |
|||
|
|||
mostlyclean: mostlyclean-am |
|||
|
|||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \ |
|||
mostlyclean-libtool |
|||
|
|||
pdf: pdf-am |
|||
|
|||
pdf-am: |
|||
|
|||
ps: ps-am |
|||
|
|||
ps-am: |
|||
|
|||
uninstall-am: |
|||
|
|||
.MAKE: check-am install-am install-strip |
|||
|
|||
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ |
|||
clean-checkPROGRAMS clean-generic clean-libtool ctags \
|
|||
distclean distclean-compile distclean-generic \
|
|||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
|||
html-am info info-am install install-am install-data \
|
|||
install-data-am install-dvi install-dvi-am install-exec \
|
|||
install-exec-am install-html install-html-am install-info \
|
|||
install-info-am install-man install-pdf install-pdf-am \
|
|||
install-ps install-ps-am install-strip installcheck \
|
|||
installcheck-am installdirs maintainer-clean \
|
|||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
|||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
|||
tags uninstall uninstall-am |
|||
|
|||
|
|||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|||
.NOEXPORT: |
686
resources/3rdparty/gmm-5.0/aclocal.m4
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,347 @@ |
|||
#! /bin/sh |
|||
# Wrapper for compilers which do not understand '-c -o'. |
|||
|
|||
scriptversion=2012-10-14.11; # UTC |
|||
|
|||
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
|||
# Written by Tom Tromey <tromey@cygnus.com>. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# This file is maintained in Automake, please report |
|||
# bugs to <bug-automake@gnu.org> or send patches to |
|||
# <automake-patches@gnu.org>. |
|||
|
|||
nl=' |
|||
' |
|||
|
|||
# We need space, tab and new line, in precisely that order. Quoting is |
|||
# there to prevent tools from complaining about whitespace usage. |
|||
IFS=" "" $nl" |
|||
|
|||
file_conv= |
|||
|
|||
# func_file_conv build_file lazy |
|||
# Convert a $build file to $host form and store it in $file |
|||
# Currently only supports Windows hosts. If the determined conversion |
|||
# type is listed in (the comma separated) LAZY, no conversion will |
|||
# take place. |
|||
func_file_conv () |
|||
{ |
|||
file=$1 |
|||
case $file in |
|||
/ | /[!/]*) # absolute file, and not a UNC file |
|||
if test -z "$file_conv"; then |
|||
# lazily determine how to convert abs files |
|||
case `uname -s` in |
|||
MINGW*) |
|||
file_conv=mingw |
|||
;; |
|||
CYGWIN*) |
|||
file_conv=cygwin |
|||
;; |
|||
*) |
|||
file_conv=wine |
|||
;; |
|||
esac |
|||
fi |
|||
case $file_conv/,$2, in |
|||
*,$file_conv,*) |
|||
;; |
|||
mingw/*) |
|||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
|||
;; |
|||
cygwin/*) |
|||
file=`cygpath -m "$file" || echo "$file"` |
|||
;; |
|||
wine/*) |
|||
file=`winepath -w "$file" || echo "$file"` |
|||
;; |
|||
esac |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
# func_cl_dashL linkdir |
|||
# Make cl look for libraries in LINKDIR |
|||
func_cl_dashL () |
|||
{ |
|||
func_file_conv "$1" |
|||
if test -z "$lib_path"; then |
|||
lib_path=$file |
|||
else |
|||
lib_path="$lib_path;$file" |
|||
fi |
|||
linker_opts="$linker_opts -LIBPATH:$file" |
|||
} |
|||
|
|||
# func_cl_dashl library |
|||
# Do a library search-path lookup for cl |
|||
func_cl_dashl () |
|||
{ |
|||
lib=$1 |
|||
found=no |
|||
save_IFS=$IFS |
|||
IFS=';' |
|||
for dir in $lib_path $LIB |
|||
do |
|||
IFS=$save_IFS |
|||
if $shared && test -f "$dir/$lib.dll.lib"; then |
|||
found=yes |
|||
lib=$dir/$lib.dll.lib |
|||
break |
|||
fi |
|||
if test -f "$dir/$lib.lib"; then |
|||
found=yes |
|||
lib=$dir/$lib.lib |
|||
break |
|||
fi |
|||
if test -f "$dir/lib$lib.a"; then |
|||
found=yes |
|||
lib=$dir/lib$lib.a |
|||
break |
|||
fi |
|||
done |
|||
IFS=$save_IFS |
|||
|
|||
if test "$found" != yes; then |
|||
lib=$lib.lib |
|||
fi |
|||
} |
|||
|
|||
# func_cl_wrapper cl arg... |
|||
# Adjust compile command to suit cl |
|||
func_cl_wrapper () |
|||
{ |
|||
# Assume a capable shell |
|||
lib_path= |
|||
shared=: |
|||
linker_opts= |
|||
for arg |
|||
do |
|||
if test -n "$eat"; then |
|||
eat= |
|||
else |
|||
case $1 in |
|||
-o) |
|||
# configure might choose to run compile as 'compile cc -o foo foo.c'. |
|||
eat=1 |
|||
case $2 in |
|||
*.o | *.[oO][bB][jJ]) |
|||
func_file_conv "$2" |
|||
set x "$@" -Fo"$file" |
|||
shift |
|||
;; |
|||
*) |
|||
func_file_conv "$2" |
|||
set x "$@" -Fe"$file" |
|||
shift |
|||
;; |
|||
esac |
|||
;; |
|||
-I) |
|||
eat=1 |
|||
func_file_conv "$2" mingw |
|||
set x "$@" -I"$file" |
|||
shift |
|||
;; |
|||
-I*) |
|||
func_file_conv "${1#-I}" mingw |
|||
set x "$@" -I"$file" |
|||
shift |
|||
;; |
|||
-l) |
|||
eat=1 |
|||
func_cl_dashl "$2" |
|||
set x "$@" "$lib" |
|||
shift |
|||
;; |
|||
-l*) |
|||
func_cl_dashl "${1#-l}" |
|||
set x "$@" "$lib" |
|||
shift |
|||
;; |
|||
-L) |
|||
eat=1 |
|||
func_cl_dashL "$2" |
|||
;; |
|||
-L*) |
|||
func_cl_dashL "${1#-L}" |
|||
;; |
|||
-static) |
|||
shared=false |
|||
;; |
|||
-Wl,*) |
|||
arg=${1#-Wl,} |
|||
save_ifs="$IFS"; IFS=',' |
|||
for flag in $arg; do |
|||
IFS="$save_ifs" |
|||
linker_opts="$linker_opts $flag" |
|||
done |
|||
IFS="$save_ifs" |
|||
;; |
|||
-Xlinker) |
|||
eat=1 |
|||
linker_opts="$linker_opts $2" |
|||
;; |
|||
-*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++) |
|||
func_file_conv "$1" |
|||
set x "$@" -Tp"$file" |
|||
shift |
|||
;; |
|||
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) |
|||
func_file_conv "$1" mingw |
|||
set x "$@" "$file" |
|||
shift |
|||
;; |
|||
*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
esac |
|||
fi |
|||
shift |
|||
done |
|||
if test -n "$linker_opts"; then |
|||
linker_opts="-link$linker_opts" |
|||
fi |
|||
exec "$@" $linker_opts |
|||
exit 1 |
|||
} |
|||
|
|||
eat= |
|||
|
|||
case $1 in |
|||
'') |
|||
echo "$0: No command. Try '$0 --help' for more information." 1>&2 |
|||
exit 1; |
|||
;; |
|||
-h | --h*) |
|||
cat <<\EOF |
|||
Usage: compile [--help] [--version] PROGRAM [ARGS] |
|||
|
|||
Wrapper for compilers which do not understand '-c -o'. |
|||
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining |
|||
arguments, and rename the output as expected. |
|||
|
|||
If you are trying to build a whole package this is not the |
|||
right script to run: please start by reading the file 'INSTALL'. |
|||
|
|||
Report bugs to <bug-automake@gnu.org>. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "compile $scriptversion" |
|||
exit $? |
|||
;; |
|||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) |
|||
func_cl_wrapper "$@" # Doesn't return... |
|||
;; |
|||
esac |
|||
|
|||
ofile= |
|||
cfile= |
|||
|
|||
for arg |
|||
do |
|||
if test -n "$eat"; then |
|||
eat= |
|||
else |
|||
case $1 in |
|||
-o) |
|||
# configure might choose to run compile as 'compile cc -o foo foo.c'. |
|||
# So we strip '-o arg' only if arg is an object. |
|||
eat=1 |
|||
case $2 in |
|||
*.o | *.obj) |
|||
ofile=$2 |
|||
;; |
|||
*) |
|||
set x "$@" -o "$2" |
|||
shift |
|||
;; |
|||
esac |
|||
;; |
|||
*.c) |
|||
cfile=$1 |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
esac |
|||
fi |
|||
shift |
|||
done |
|||
|
|||
if test -z "$ofile" || test -z "$cfile"; then |
|||
# If no '-o' option was seen then we might have been invoked from a |
|||
# pattern rule where we don't need one. That is ok -- this is a |
|||
# normal compilation that the losing compiler can handle. If no |
|||
# '.c' file was seen then we are probably linking. That is also |
|||
# ok. |
|||
exec "$@" |
|||
fi |
|||
|
|||
# Name of file we expect compiler to create. |
|||
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` |
|||
|
|||
# Create the lock directory. |
|||
# Note: use '[/\\:.-]' here to ensure that we don't use the same name |
|||
# that we are using for the .o file. Also, base the name on the expected |
|||
# object file name, since that is what matters with a parallel build. |
|||
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d |
|||
while true; do |
|||
if mkdir "$lockdir" >/dev/null 2>&1; then |
|||
break |
|||
fi |
|||
sleep 1 |
|||
done |
|||
# FIXME: race condition here if user kills between mkdir and trap. |
|||
trap "rmdir '$lockdir'; exit 1" 1 2 15 |
|||
|
|||
# Run the compile. |
|||
"$@" |
|||
ret=$? |
|||
|
|||
if test -f "$cofile"; then |
|||
test "$cofile" = "$ofile" || mv "$cofile" "$ofile" |
|||
elif test -f "${cofile}bj"; then |
|||
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" |
|||
fi |
|||
|
|||
rmdir "$lockdir" |
|||
exit $ret |
|||
|
|||
# Local Variables: |
|||
# mode: shell-script |
|||
# sh-indentation: 2 |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-time-zone: "UTC" |
|||
# time-stamp-end: "; # UTC" |
|||
# End: |
@ -1,4 +1,4 @@ |
|||
/* config.h.in. Generated from configure.in by autoheader. */ |
|||
/* config.h.in. Generated from configure.ac by autoheader. */ |
|||
|
|||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|||
#undef HAVE_DLFCN_H |
670
resources/3rdparty/gmm-5.0/configure
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2000-2012 Yves Renard |
|||
Copyright (C) 2000-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard, Julien Pommier |
|||
Copyright (C) 2003-2015 Yves Renard, Julien Pommier |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -0,0 +1,302 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2014-2015 Konstantinos Poulios |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
|||
Getfem++ is free software; you can redistribute it and/or modify it |
|||
under the terms of the GNU Lesser General Public License as published |
|||
by the Free Software Foundation; either version 3 of the License, or |
|||
(at your option) any later version along with the GCC Runtime Library |
|||
Exception either version 3.1 or (at your option) any later version. |
|||
This program is distributed in the hope that it will be useful, but |
|||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
|||
License and GCC Runtime Library Exception for more details. |
|||
You should have received a copy of the GNU Lesser General Public License |
|||
along with this program; if not, write to the Free Software Foundation, |
|||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. |
|||
|
|||
As a special exception, you may use this file as it is a part of a free |
|||
software library without restriction. Specifically, if other files |
|||
instantiate templates or use macros or inline functions from this file, |
|||
or you compile this file and link it with other files to produce an |
|||
executable, this file does not by itself cause the resulting executable |
|||
to be covered by the GNU Lesser General Public License. This exception |
|||
does not however invalidate any other reasons why the executable file |
|||
might be covered by the GNU Lesser General Public License. |
|||
|
|||
===========================================================================*/ |
|||
|
|||
/**@file gmm_dense_matrix_functions.h |
|||
@author Konstantinos Poulios <poulios.konstantinos@gmail.com> |
|||
@date December 10, 2014. |
|||
@brief Common matrix functions for dense matrices. |
|||
*/ |
|||
#ifndef GMM_DENSE_MATRIX_FUNCTIONS_H |
|||
#define GMM_DENSE_MATRIX_FUNCTIONS_H |
|||
|
|||
|
|||
namespace gmm { |
|||
|
|||
|
|||
/** |
|||
Matrix square root for upper triangular matrices (from GNU Octave). |
|||
*/ |
|||
template <typename T> |
|||
void sqrtm_utri_inplace(dense_matrix<T>& A) |
|||
{ |
|||
typedef typename number_traits<T>::magnitude_type R; |
|||
bool singular = false; |
|||
|
|||
// The following code is equivalent to this triple loop: |
|||
// |
|||
// n = rows (A); |
|||
// for j = 1:n |
|||
// A(j,j) = sqrt (A(j,j)); |
|||
// for i = j-1:-1:1 |
|||
// A(i,j) /= (A(i,i) + A(j,j)); |
|||
// k = 1:i-1; |
|||
// t storing a A(k,j) -= A(k,i) * A(i,j); |
|||
// endfor |
|||
// endfor |
|||
|
|||
R tol = R(0); // default_tol(R()) * gmm::mat_maxnorm(A); |
|||
|
|||
const size_type n = mat_nrows(A); |
|||
for (int j=0; j < int(n); j++) { |
|||
typename dense_matrix<T>::iterator colj = A.begin() + j*n; |
|||
if (gmm::abs(colj[j]) > tol) |
|||
colj[j] = gmm::sqrt(colj[j]); |
|||
else |
|||
singular = true; |
|||
|
|||
for (int i=j-1; i >= 0; i--) { |
|||
typename dense_matrix<T>::const_iterator coli = A.begin() + i*n; |
|||
T colji = colj[i] = safe_divide(colj[i], (coli[i] + colj[j])); |
|||
for (int k = 0; k < i; k++) |
|||
colj[k] -= coli[k] * colji; |
|||
} |
|||
} |
|||
|
|||
if (singular) |
|||
GMM_WARNING1("Matrix is singular, may not have a square root"); |
|||
} |
|||
|
|||
|
|||
template <typename T> |
|||
void sqrtm(const dense_matrix<std::complex<T> >& A, |
|||
dense_matrix<std::complex<T> >& SQRTMA) |
|||
{ |
|||
GMM_ASSERT1(gmm::mat_nrows(A) == gmm::mat_ncols(A), |
|||
"Matrix square root requires a square matrix"); |
|||
gmm::resize(SQRTMA, gmm::mat_nrows(A), gmm::mat_ncols(A)); |
|||
dense_matrix<std::complex<T> > S(A), Q(A), TMP(A); |
|||
#if defined(GMM_USES_LAPACK) |
|||
schur(TMP, S, Q); |
|||
#else |
|||
GMM_ASSERT1(false, "Please recompile with lapack and blas librairies " |
|||
"to use sqrtm matrix function."); |
|||
#endif |
|||
sqrtm_utri_inplace(S); |
|||
gmm::mult(Q, S, TMP); |
|||
gmm::mult(TMP, gmm::transposed(Q), SQRTMA); |
|||
} |
|||
|
|||
template <typename T> |
|||
void sqrtm(const dense_matrix<T>& A, |
|||
dense_matrix<std::complex<T> >& SQRTMA) |
|||
{ |
|||
dense_matrix<std::complex<T> > cA(mat_nrows(A), mat_ncols(A)); |
|||
gmm::copy(A, gmm::real_part(cA)); |
|||
sqrtm(cA, SQRTMA); |
|||
} |
|||
|
|||
template <typename T> |
|||
void sqrtm(const dense_matrix<T>& A, dense_matrix<T>& SQRTMA) |
|||
{ |
|||
dense_matrix<std::complex<T> > cA(mat_nrows(A), mat_ncols(A)); |
|||
gmm::copy(A, gmm::real_part(cA)); |
|||
dense_matrix<std::complex<T> > cSQRTMA(cA); |
|||
sqrtm(cA, cSQRTMA); |
|||
gmm::resize(SQRTMA, gmm::mat_nrows(A), gmm::mat_ncols(A)); |
|||
gmm::copy(gmm::real_part(cSQRTMA), SQRTMA); |
|||
// dense_matrix<std::complex<T1> >::const_reference |
|||
// it = cSQRTMA.begin(), ite = cSQRTMA.end(); |
|||
// dense_matrix<std::complex<T1> >::reference |
|||
// rit = SQRTMA.begin(); |
|||
// for (; it != ite; ++it, ++rit) *rit = it->real(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
Matrix logarithm for upper triangular matrices (from GNU/Octave) |
|||
*/ |
|||
template <typename T> |
|||
void logm_utri_inplace(dense_matrix<T>& S) |
|||
{ |
|||
typedef typename number_traits<T>::magnitude_type R; |
|||
|
|||
size_type n = gmm::mat_nrows(S); |
|||
GMM_ASSERT1(n == gmm::mat_ncols(S), |
|||
"Matrix logarithm is not defined for non-square matrices"); |
|||
for (size_type i=0; i < n-1; ++i) |
|||
if (gmm::abs(S(i+1,i)) > default_tol(T())) { |
|||
GMM_ASSERT1(false, "An upper triangular matrix is expected"); |
|||
break; |
|||
} |
|||
for (size_type i=0; i < n-1; ++i) |
|||
if (gmm::real(S(i,i)) <= -default_tol(R()) && |
|||
gmm::abs(gmm::imag(S(i,i))) <= default_tol(R())) { |
|||
GMM_ASSERT1(false, "Principal matrix logarithm is not defined " |
|||
"for matrices with negative eigenvalues"); |
|||
break; |
|||
} |
|||
|
|||
// Algorithm 11.9 in "Function of matrices", by N. Higham |
|||
R theta[] = { R(0),R(0),R(1.61e-2),R(5.38e-2),R(1.13e-1),R(1.86e-1),R(2.6429608311114350e-1) }; |
|||
|
|||
R scaling(1); |
|||
size_type p(0), m(6), opt_iters(100); |
|||
for (size_type k=0; k < opt_iters; ++k, scaling *= R(2)) { |
|||
dense_matrix<T> auxS(S); |
|||
for (size_type i = 0; i < n; ++i) auxS(i,i) -= R(1); |
|||
R tau = gmm::mat_norm1(auxS); |
|||
if (tau <= theta[6]) { |
|||
++p; |
|||
size_type j1(6), j2(6); |
|||
for (size_type j=0; j < 6; ++j) |
|||
if (tau <= theta[j]) { j1 = j; break; } |
|||
for (size_type j=0; j < j1; ++j) |
|||
if (tau <= 2*theta[j]) { j2 = j; break; } |
|||
if (j1 - j2 <= 1 || p == 2) { m = j1; break; } |
|||
} |
|||
sqrtm_utri_inplace(S); |
|||
if (k == opt_iters-1) |
|||
GMM_WARNING1 ("Maximum number of square roots exceeded; " |
|||
"the calculated matrix logarithm may still be accurate"); |
|||
} |
|||
|
|||
for (size_type i = 0; i < n; ++i) S(i,i) -= R(1); |
|||
|
|||
if (m > 0) { |
|||
|
|||
std::vector<R> nodes, wts; |
|||
switch(m) { |
|||
case 0: { |
|||
R nodes_[] = { R(0.5) }; |
|||
R wts_[] = { R(1) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 1: { |
|||
R nodes_[] = { R(0.211324865405187),R(0.788675134594813) }; |
|||
R wts_[] = { R(0.5),R(0.5) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 2: { |
|||
R nodes_[] = { R(0.112701665379258),R(0.500000000000000),R(0.887298334620742) }; |
|||
R wts_[] = { R(0.277777777777778),R(0.444444444444444),R(0.277777777777778) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 3: { |
|||
R nodes_[] = { R(0.0694318442029737),R(0.3300094782075718),R(0.6699905217924281),R(0.9305681557970263) }; |
|||
R wts_[] = { R(0.173927422568727),R(0.326072577431273),R(0.326072577431273),R(0.173927422568727) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 4: { |
|||
R nodes_[] = { R(0.0469100770306681),R(0.2307653449471584),R(0.5000000000000000),R(0.7692346550528415),R(0.9530899229693319) }; |
|||
R wts_[] = { R(0.118463442528095),R(0.239314335249683),R(0.284444444444444),R(0.239314335249683),R(0.118463442528094) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 5: { |
|||
R nodes_[] = { R(0.0337652428984240),R(0.1693953067668678),R(0.3806904069584015),R(0.6193095930415985),R(0.8306046932331322),R(0.9662347571015761) }; |
|||
R wts_[] = { R(0.0856622461895853),R(0.1803807865240693),R(0.2339569672863452),R(0.2339569672863459),R(0.1803807865240693),R(0.0856622461895852) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
case 6: { |
|||
R nodes_[] = { R(0.0254460438286208),R(0.1292344072003028),R(0.2970774243113015),R(0.4999999999999999),R(0.7029225756886985),R(0.8707655927996973),R(0.9745539561713792) }; |
|||
R wts_[] = { R(0.0647424830844348),R(0.1398526957446384),R(0.1909150252525594),R(0.2089795918367343),R(0.1909150252525595),R(0.1398526957446383),R(0.0647424830844349) }; |
|||
nodes.assign(nodes_, nodes_+m+1); |
|||
wts.assign(wts_, wts_+m+1); |
|||
} break; |
|||
} |
|||
|
|||
dense_matrix<T> auxS1(S), auxS2(S); |
|||
std::vector<T> auxvec(n); |
|||
gmm::clear(S); |
|||
for (size_type j=0; j <= m; ++j) { |
|||
gmm::copy(gmm::scaled(auxS1, nodes[j]), auxS2); |
|||
gmm::add(gmm::identity_matrix(), auxS2); |
|||
// S += wts[i] * auxS1 * inv(auxS2) |
|||
for (size_type i=0; i < n; ++i) { |
|||
gmm::copy(gmm::mat_row(auxS1, i), auxvec); |
|||
gmm::lower_tri_solve(gmm::transposed(auxS2), auxvec, false); |
|||
gmm::add(gmm::scaled(auxvec, wts[j]), gmm::mat_row(S, i)); |
|||
} |
|||
} |
|||
} |
|||
gmm::scale(S, scaling); |
|||
} |
|||
|
|||
/** |
|||
Matrix logarithm (from GNU/Octave) |
|||
*/ |
|||
template <typename T> |
|||
void logm(const dense_matrix<T>& A, dense_matrix<T>& LOGMA) |
|||
{ |
|||
typedef typename number_traits<T>::magnitude_type R; |
|||
size_type n = gmm::mat_nrows(A); |
|||
GMM_ASSERT1(n == gmm::mat_ncols(A), |
|||
"Matrix logarithm is not defined for non-square matrices"); |
|||
dense_matrix<T> S(A), Q(A); |
|||
#if defined(GMM_USES_LAPACK) |
|||
schur(A, S, Q); // A = Q * S * Q^T |
|||
#else |
|||
GMM_ASSERT1(false, "Please recompile with lapack and blas librairies " |
|||
"to use logm matrix function."); |
|||
#endif |
|||
|
|||
bool convert_to_complex(false); |
|||
if (!is_complex(T())) |
|||
for (size_type i=0; i < n-1; ++i) |
|||
if (gmm::abs(S(i+1,i)) > default_tol(T())) { |
|||
convert_to_complex = true; |
|||
break; |
|||
} |
|||
|
|||
gmm::resize(LOGMA, n, n); |
|||
if (convert_to_complex) { |
|||
dense_matrix<std::complex<R> > cS(n,n), cQ(n,n), auxmat(n,n); |
|||
gmm::copy(gmm::real_part(S), gmm::real_part(cS)); |
|||
gmm::copy(gmm::real_part(Q), gmm::real_part(cQ)); |
|||
block2x2_reduction(cS, cQ, default_tol(R())*R(3)); |
|||
for (size_type j=0; j < n-1; ++j) |
|||
for (size_type i=j+1; i < n; ++i) |
|||
cS(i,j) = T(0); |
|||
logm_utri_inplace(cS); |
|||
gmm::mult(cQ, cS, auxmat); |
|||
gmm::mult(auxmat, gmm::transposed(cQ), cS); |
|||
// Remove small complex values which may have entered calculation |
|||
gmm::copy(gmm::real_part(cS), LOGMA); |
|||
// GMM_ASSERT1(gmm::mat_norm1(gmm::imag_part(cS)) < n*default_tol(T()), |
|||
// "Internal error, imag part should be zero"); |
|||
} else { |
|||
dense_matrix<T> auxmat(n,n); |
|||
logm_utri_inplace(S); |
|||
gmm::mult(Q, S, auxmat); |
|||
gmm::mult(auxmat, gmm::transposed(Q), LOGMA); |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
#endif |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2004-2012 Yves Renard |
|||
Copyright (C) 2004-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard, Benjamin Schleimer |
|||
Copyright (C) 2002-2015 Yves Renard, Benjamin Schleimer |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2004-2012 Yves Renard |
|||
Copyright (C) 2004-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2004-2012 Yves Renard |
|||
Copyright (C) 2004-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2000-2012 Yves Renard |
|||
Copyright (C) 2000-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard, Caroline Lecalvez |
|||
Copyright (C) 2003-2015 Yves Renard, Caroline Lecalvez |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2002-2012 Yves Renard |
|||
Copyright (C) 2002-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,7 +1,7 @@ |
|||
/* -*- c++ -*- (enables emacs c++ mode) */ |
|||
/*=========================================================================== |
|||
|
|||
Copyright (C) 2003-2012 Yves Renard |
|||
Copyright (C) 2003-2015 Yves Renard |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -0,0 +1,215 @@ |
|||
#! /bin/sh |
|||
# Common wrapper for a few potentially missing GNU programs. |
|||
|
|||
scriptversion=2013-10-28.13; # UTC |
|||
|
|||
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
|||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
if test $# -eq 0; then |
|||
echo 1>&2 "Try '$0 --help' for more information" |
|||
exit 1 |
|||
fi |
|||
|
|||
case $1 in |
|||
|
|||
--is-lightweight) |
|||
# Used by our autoconf macros to check whether the available missing |
|||
# script is modern enough. |
|||
exit 0 |
|||
;; |
|||
|
|||
--run) |
|||
# Back-compat with the calling convention used by older automake. |
|||
shift |
|||
;; |
|||
|
|||
-h|--h|--he|--hel|--help) |
|||
echo "\ |
|||
$0 [OPTION]... PROGRAM [ARGUMENT]... |
|||
|
|||
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due |
|||
to PROGRAM being missing or too old. |
|||
|
|||
Options: |
|||
-h, --help display this help and exit |
|||
-v, --version output version information and exit |
|||
|
|||
Supported PROGRAM values: |
|||
aclocal autoconf autoheader autom4te automake makeinfo |
|||
bison yacc flex lex help2man |
|||
|
|||
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and |
|||
'g' are ignored when checking the name. |
|||
|
|||
Send bug reports to <bug-automake@gnu.org>." |
|||
exit $? |
|||
;; |
|||
|
|||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
|||
echo "missing $scriptversion (GNU Automake)" |
|||
exit $? |
|||
;; |
|||
|
|||
-*) |
|||
echo 1>&2 "$0: unknown '$1' option" |
|||
echo 1>&2 "Try '$0 --help' for more information" |
|||
exit 1 |
|||
;; |
|||
|
|||
esac |
|||
|
|||
# Run the given program, remember its exit status. |
|||
"$@"; st=$? |
|||
|
|||
# If it succeeded, we are done. |
|||
test $st -eq 0 && exit 0 |
|||
|
|||
# Also exit now if we it failed (or wasn't found), and '--version' was |
|||
# passed; such an option is passed most likely to detect whether the |
|||
# program is present and works. |
|||
case $2 in --version|--help) exit $st;; esac |
|||
|
|||
# Exit code 63 means version mismatch. This often happens when the user |
|||
# tries to use an ancient version of a tool on a file that requires a |
|||
# minimum version. |
|||
if test $st -eq 63; then |
|||
msg="probably too old" |
|||
elif test $st -eq 127; then |
|||
# Program was missing. |
|||
msg="missing on your system" |
|||
else |
|||
# Program was found and executed, but failed. Give up. |
|||
exit $st |
|||
fi |
|||
|
|||
perl_URL=http://www.perl.org/ |
|||
flex_URL=http://flex.sourceforge.net/ |
|||
gnu_software_URL=http://www.gnu.org/software |
|||
|
|||
program_details () |
|||
{ |
|||
case $1 in |
|||
aclocal|automake) |
|||
echo "The '$1' program is part of the GNU Automake package:" |
|||
echo "<$gnu_software_URL/automake>" |
|||
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" |
|||
echo "<$gnu_software_URL/autoconf>" |
|||
echo "<$gnu_software_URL/m4/>" |
|||
echo "<$perl_URL>" |
|||
;; |
|||
autoconf|autom4te|autoheader) |
|||
echo "The '$1' program is part of the GNU Autoconf package:" |
|||
echo "<$gnu_software_URL/autoconf/>" |
|||
echo "It also requires GNU m4 and Perl in order to run:" |
|||
echo "<$gnu_software_URL/m4/>" |
|||
echo "<$perl_URL>" |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
give_advice () |
|||
{ |
|||
# Normalize program name to check for. |
|||
normalized_program=`echo "$1" | sed ' |
|||
s/^gnu-//; t |
|||
s/^gnu//; t |
|||
s/^g//; t'` |
|||
|
|||
printf '%s\n' "'$1' is $msg." |
|||
|
|||
configure_deps="'configure.ac' or m4 files included by 'configure.ac'" |
|||
case $normalized_program in |
|||
autoconf*) |
|||
echo "You should only need it if you modified 'configure.ac'," |
|||
echo "or m4 files included by it." |
|||
program_details 'autoconf' |
|||
;; |
|||
autoheader*) |
|||
echo "You should only need it if you modified 'acconfig.h' or" |
|||
echo "$configure_deps." |
|||
program_details 'autoheader' |
|||
;; |
|||
automake*) |
|||
echo "You should only need it if you modified 'Makefile.am' or" |
|||
echo "$configure_deps." |
|||
program_details 'automake' |
|||
;; |
|||
aclocal*) |
|||
echo "You should only need it if you modified 'acinclude.m4' or" |
|||
echo "$configure_deps." |
|||
program_details 'aclocal' |
|||
;; |
|||
autom4te*) |
|||
echo "You might have modified some maintainer files that require" |
|||
echo "the 'autom4te' program to be rebuilt." |
|||
program_details 'autom4te' |
|||
;; |
|||
bison*|yacc*) |
|||
echo "You should only need it if you modified a '.y' file." |
|||
echo "You may want to install the GNU Bison package:" |
|||
echo "<$gnu_software_URL/bison/>" |
|||
;; |
|||
lex*|flex*) |
|||
echo "You should only need it if you modified a '.l' file." |
|||
echo "You may want to install the Fast Lexical Analyzer package:" |
|||
echo "<$flex_URL>" |
|||
;; |
|||
help2man*) |
|||
echo "You should only need it if you modified a dependency" \ |
|||
"of a man page." |
|||
echo "You may want to install the GNU Help2man package:" |
|||
echo "<$gnu_software_URL/help2man/>" |
|||
;; |
|||
makeinfo*) |
|||
echo "You should only need it if you modified a '.texi' file, or" |
|||
echo "any other file indirectly affecting the aspect of the manual." |
|||
echo "You might want to install the Texinfo package:" |
|||
echo "<$gnu_software_URL/texinfo/>" |
|||
echo "The spurious makeinfo call might also be the consequence of" |
|||
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" |
|||
echo "want to install GNU make:" |
|||
echo "<$gnu_software_URL/make/>" |
|||
;; |
|||
*) |
|||
echo "You might have modified some files without having the proper" |
|||
echo "tools for further handling them. Check the 'README' file, it" |
|||
echo "often tells you about the needed prerequisites for installing" |
|||
echo "this package. You may also peek at any GNU archive site, in" |
|||
echo "case some other package contains this missing '$1' program." |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
give_advice "$1" | sed -e '1s/^/WARNING: /' \ |
|||
-e '2,$s/^/ /' >&2 |
|||
|
|||
# Propagate the correct exit status (expected to be 127 for a program |
|||
# not found, 63 for a program that failed due to version mismatch). |
|||
exit $st |
|||
|
|||
# Local variables: |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-time-zone: "UTC" |
|||
# time-stamp-end: "; # UTC" |
|||
# End: |
@ -0,0 +1,139 @@ |
|||
#! /bin/sh |
|||
# test-driver - basic testsuite driver script. |
|||
|
|||
scriptversion=2013-07-13.22; # UTC |
|||
|
|||
# Copyright (C) 2011-2013 Free Software Foundation, Inc. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# This file is maintained in Automake, please report |
|||
# bugs to <bug-automake@gnu.org> or send patches to |
|||
# <automake-patches@gnu.org>. |
|||
|
|||
# Make unconditional expansion of undefined variables an error. This |
|||
# helps a lot in preventing typo-related bugs. |
|||
set -u |
|||
|
|||
usage_error () |
|||
{ |
|||
echo "$0: $*" >&2 |
|||
print_usage >&2 |
|||
exit 2 |
|||
} |
|||
|
|||
print_usage () |
|||
{ |
|||
cat <<END |
|||
Usage: |
|||
test-driver --test-name=NAME --log-file=PATH --trs-file=PATH |
|||
[--expect-failure={yes|no}] [--color-tests={yes|no}] |
|||
[--enable-hard-errors={yes|no}] [--] |
|||
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] |
|||
The '--test-name', '--log-file' and '--trs-file' options are mandatory. |
|||
END |
|||
} |
|||
|
|||
test_name= # Used for reporting. |
|||
log_file= # Where to save the output of the test script. |
|||
trs_file= # Where to save the metadata of the test run. |
|||
expect_failure=no |
|||
color_tests=no |
|||
enable_hard_errors=yes |
|||
while test $# -gt 0; do |
|||
case $1 in |
|||
--help) print_usage; exit $?;; |
|||
--version) echo "test-driver $scriptversion"; exit $?;; |
|||
--test-name) test_name=$2; shift;; |
|||
--log-file) log_file=$2; shift;; |
|||
--trs-file) trs_file=$2; shift;; |
|||
--color-tests) color_tests=$2; shift;; |
|||
--expect-failure) expect_failure=$2; shift;; |
|||
--enable-hard-errors) enable_hard_errors=$2; shift;; |
|||
--) shift; break;; |
|||
-*) usage_error "invalid option: '$1'";; |
|||
*) break;; |
|||
esac |
|||
shift |
|||
done |
|||
|
|||
missing_opts= |
|||
test x"$test_name" = x && missing_opts="$missing_opts --test-name" |
|||
test x"$log_file" = x && missing_opts="$missing_opts --log-file" |
|||
test x"$trs_file" = x && missing_opts="$missing_opts --trs-file" |
|||
if test x"$missing_opts" != x; then |
|||
usage_error "the following mandatory options are missing:$missing_opts" |
|||
fi |
|||
|
|||
if test $# -eq 0; then |
|||
usage_error "missing argument" |
|||
fi |
|||
|
|||
if test $color_tests = yes; then |
|||
# Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. |
|||
red='[0;31m' # Red. |
|||
grn='[0;32m' # Green. |
|||
lgn='[1;32m' # Light green. |
|||
blu='[1;34m' # Blue. |
|||
mgn='[0;35m' # Magenta. |
|||
std='[m' # No color. |
|||
else |
|||
red= grn= lgn= blu= mgn= std= |
|||
fi |
|||
|
|||
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' |
|||
trap "st=129; $do_exit" 1 |
|||
trap "st=130; $do_exit" 2 |
|||
trap "st=141; $do_exit" 13 |
|||
trap "st=143; $do_exit" 15 |
|||
|
|||
# Test script is run here. |
|||
"$@" >$log_file 2>&1 |
|||
estatus=$? |
|||
if test $enable_hard_errors = no && test $estatus -eq 99; then |
|||
estatus=1 |
|||
fi |
|||
|
|||
case $estatus:$expect_failure in |
|||
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; |
|||
0:*) col=$grn res=PASS recheck=no gcopy=no;; |
|||
77:*) col=$blu res=SKIP recheck=no gcopy=yes;; |
|||
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; |
|||
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; |
|||
*:*) col=$red res=FAIL recheck=yes gcopy=yes;; |
|||
esac |
|||
|
|||
# Report outcome to console. |
|||
echo "${col}${res}${std}: $test_name" |
|||
|
|||
# Register the test result, and other relevant metadata. |
|||
echo ":test-result: $res" > $trs_file |
|||
echo ":global-test-result: $res" >> $trs_file |
|||
echo ":recheck: $recheck" >> $trs_file |
|||
echo ":copy-in-global-log: $gcopy" >> $trs_file |
|||
|
|||
# Local Variables: |
|||
# mode: shell-script |
|||
# sh-indentation: 2 |
|||
# eval: (add-hook 'write-file-hooks 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-time-zone: "UTC" |
|||
# time-stamp-end: "; # UTC" |
|||
# End: |
@ -0,0 +1,967 @@ |
|||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
|||
# @configure_input@
|
|||
|
|||
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
|||
|
|||
# This Makefile.in is free software; the Free Software Foundation
|
|||
# gives unlimited permission to copy and/or distribute it,
|
|||
# with or without modifications, as long as this notice is preserved.
|
|||
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|||
# PARTICULAR PURPOSE.
|
|||
|
|||
@SET_MAKE@ |
|||
VPATH = @srcdir@ |
|||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' |
|||
am__make_running_with_option = \
|
|||
case $${target_option-} in \
|
|||
?) ;; \
|
|||
*) echo "am__make_running_with_option: internal error: invalid" \
|
|||
"target option '$${target_option-}' specified" >&2; \
|
|||
exit 1;; \
|
|||
esac; \
|
|||
has_opt=no; \
|
|||
sane_makeflags=$$MAKEFLAGS; \
|
|||
if $(am__is_gnu_make); then \
|
|||
sane_makeflags=$$MFLAGS; \
|
|||
else \
|
|||
case $$MAKEFLAGS in \
|
|||
*\\[\ \ ]*) \
|
|||
bs=\\; \
|
|||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
|||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
|||
esac; \
|
|||
fi; \
|
|||
skip_next=no; \
|
|||
strip_trailopt () \
|
|||
{ \
|
|||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
|||
}; \
|
|||
for flg in $$sane_makeflags; do \
|
|||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
|||
case $$flg in \
|
|||
*=*|--*) continue;; \
|
|||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
|||
-*I?*) strip_trailopt 'I';; \
|
|||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
|||
-*O?*) strip_trailopt 'O';; \
|
|||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
|||
-*l?*) strip_trailopt 'l';; \
|
|||
-[dEDm]) skip_next=yes;; \
|
|||
-[JT]) skip_next=yes;; \
|
|||
esac; \
|
|||
case $$flg in \
|
|||
*$$target_option*) has_opt=yes; break;; \
|
|||
esac; \
|
|||
done; \
|
|||
test $$has_opt = yes |
|||
am__make_dryrun = (target_option=n; $(am__make_running_with_option)) |
|||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) |
|||
pkgdatadir = $(datadir)/@PACKAGE@ |
|||
pkgincludedir = $(includedir)/@PACKAGE@ |
|||
pkglibdir = $(libdir)/@PACKAGE@ |
|||
pkglibexecdir = $(libexecdir)/@PACKAGE@ |
|||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
|||
install_sh_DATA = $(install_sh) -c -m 644 |
|||
install_sh_PROGRAM = $(install_sh) -c |
|||
install_sh_SCRIPT = $(install_sh) -c |
|||
INSTALL_HEADER = $(INSTALL_DATA) |
|||
transform = $(program_transform_name) |
|||
NORMAL_INSTALL = : |
|||
PRE_INSTALL = : |
|||
POST_INSTALL = : |
|||
NORMAL_UNINSTALL = : |
|||
PRE_UNINSTALL = : |
|||
POST_UNINSTALL = : |
|||
build_triplet = @build@ |
|||
host_triplet = @host@ |
|||
check_PROGRAMS = dummy$(EXEEXT) |
|||
subdir = tests |
|||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
|||
$(top_srcdir)/depcomp $(top_srcdir)/test-driver |
|||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
|||
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
|||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
|||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
|||
$(top_srcdir)/configure.ac |
|||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
|||
$(ACLOCAL_M4) |
|||
mkinstalldirs = $(install_sh) -d |
|||
CONFIG_HEADER = $(top_builddir)/config.h |
|||
CONFIG_CLEAN_FILES = |
|||
CONFIG_CLEAN_VPATH_FILES = |
|||
am_dummy_OBJECTS = dummy.$(OBJEXT) |
|||
dummy_OBJECTS = $(am_dummy_OBJECTS) |
|||
dummy_LDADD = $(LDADD) |
|||
dummy_DEPENDENCIES = |
|||
AM_V_lt = $(am__v_lt_@AM_V@) |
|||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
|||
am__v_lt_0 = --silent |
|||
am__v_lt_1 = |
|||
AM_V_P = $(am__v_P_@AM_V@) |
|||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) |
|||
am__v_P_0 = false |
|||
am__v_P_1 = : |
|||
AM_V_GEN = $(am__v_GEN_@AM_V@) |
|||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
|||
am__v_GEN_0 = @echo " GEN " $@; |
|||
am__v_GEN_1 = |
|||
AM_V_at = $(am__v_at_@AM_V@) |
|||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
|||
am__v_at_0 = @ |
|||
am__v_at_1 = |
|||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
|||
depcomp = $(SHELL) $(top_srcdir)/depcomp |
|||
am__depfiles_maybe = depfiles |
|||
am__mv = mv -f |
|||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) |
|||
LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
|||
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
|
|||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
|||
$(AM_CXXFLAGS) $(CXXFLAGS) |
|||
AM_V_CXX = $(am__v_CXX_@AM_V@) |
|||
am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) |
|||
am__v_CXX_0 = @echo " CXX " $@; |
|||
am__v_CXX_1 = |
|||
CXXLD = $(CXX) |
|||
CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
|||
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
|||
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
|||
AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) |
|||
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) |
|||
am__v_CXXLD_0 = @echo " CXXLD " $@; |
|||
am__v_CXXLD_1 = |
|||
SOURCES = $(dummy_SOURCES) |
|||
DIST_SOURCES = $(dummy_SOURCES) |
|||
am__can_run_installinfo = \
|
|||
case $$AM_UPDATE_INFO_DIR in \
|
|||
n|no|NO) false;; \
|
|||
*) (install-info --version) >/dev/null 2>&1;; \
|
|||
esac |
|||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) |
|||
# Read a list of newline-separated strings from the standard input,
|
|||
# and print each of them once, without duplicates. Input order is
|
|||
# *not* preserved.
|
|||
am__uniquify_input = $(AWK) '\
|
|||
BEGIN { nonempty = 0; } \
|
|||
{ items[$$0] = 1; nonempty = 1; } \
|
|||
END { if (nonempty) { for (i in items) print i; }; } \
|
|||
' |
|||
# Make sure the list of sources is unique. This is necessary because,
|
|||
# e.g., the same source file might be shared among _SOURCES variables
|
|||
# for different programs/libraries.
|
|||
am__define_uniq_tagged_files = \
|
|||
list='$(am__tagged_files)'; \
|
|||
unique=`for i in $$list; do \
|
|||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|||
done | $(am__uniquify_input)` |
|||
ETAGS = etags |
|||
CTAGS = ctags |
|||
am__tty_colors_dummy = \
|
|||
mgn= red= grn= lgn= blu= brg= std=; \
|
|||
am__color_tests=no |
|||
am__tty_colors = { \
|
|||
$(am__tty_colors_dummy); \
|
|||
if test "X$(AM_COLOR_TESTS)" = Xno; then \
|
|||
am__color_tests=no; \
|
|||
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
|
|||
am__color_tests=yes; \
|
|||
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
|
|||
am__color_tests=yes; \
|
|||
fi; \
|
|||
if test $$am__color_tests = yes; then \
|
|||
red='[0;31m'; \
|
|||
grn='[0;32m'; \
|
|||
lgn='[1;32m'; \
|
|||
blu='[1;34m'; \
|
|||
mgn='[0;35m'; \
|
|||
brg='[1m'; \
|
|||
std='[m'; \
|
|||
fi; \
|
|||
} |
|||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
|||
am__vpath_adj = case $$p in \
|
|||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
|||
*) f=$$p;; \
|
|||
esac; |
|||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; |
|||
am__install_max = 40 |
|||
am__nobase_strip_setup = \
|
|||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` |
|||
am__nobase_strip = \
|
|||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" |
|||
am__nobase_list = $(am__nobase_strip_setup); \
|
|||
for p in $$list; do echo "$$p $$p"; done | \
|
|||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
|||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
|||
if (++n[$$2] == $(am__install_max)) \
|
|||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
|||
END { for (dir in files) print dir, files[dir] }' |
|||
am__base_list = \
|
|||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
|||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' |
|||
am__uninstall_files_from_dir = { \
|
|||
test -z "$$files" \
|
|||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
|||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
|||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
|||
} |
|||
am__recheck_rx = ^[ ]*:recheck:[ ]* |
|||
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* |
|||
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* |
|||
# A command that, given a newline-separated list of test names on the
|
|||
# standard input, print the name of the tests that are to be re-run
|
|||
# upon "make recheck".
|
|||
am__list_recheck_tests = $(AWK) '{ \
|
|||
recheck = 1; \
|
|||
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
|
|||
{ \
|
|||
if (rc < 0) \
|
|||
{ \
|
|||
if ((getline line2 < ($$0 ".log")) < 0) \
|
|||
recheck = 0; \
|
|||
break; \
|
|||
} \
|
|||
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
|
|||
{ \
|
|||
recheck = 0; \
|
|||
break; \
|
|||
} \
|
|||
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
|
|||
{ \
|
|||
break; \
|
|||
} \
|
|||
}; \
|
|||
if (recheck) \
|
|||
print $$0; \
|
|||
close ($$0 ".trs"); \
|
|||
close ($$0 ".log"); \
|
|||
}' |
|||
# A command that, given a newline-separated list of test names on the
|
|||
# standard input, create the global log from their .trs and .log files.
|
|||
am__create_global_log = $(AWK) ' \
|
|||
function fatal(msg) \ |
|||
{ \ |
|||
print "fatal: making $@: " msg | "cat >&2"; \
|
|||
exit 1; \
|
|||
} \ |
|||
function rst_section(header) \ |
|||
{ \ |
|||
print header; \
|
|||
len = length(header); \
|
|||
for (i = 1; i <= len; i = i + 1) \
|
|||
printf "="; \
|
|||
printf "\n\n"; \
|
|||
} \ |
|||
{ \ |
|||
copy_in_global_log = 1; \
|
|||
global_test_result = "RUN"; \
|
|||
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
|
|||
{ \
|
|||
if (rc < 0) \
|
|||
fatal("failed to read from " $$0 ".trs"); \
|
|||
if (line ~ /$(am__global_test_result_rx)/) \
|
|||
{ \
|
|||
sub("$(am__global_test_result_rx)", "", line); \
|
|||
sub("[ ]*$$", "", line); \
|
|||
global_test_result = line; \
|
|||
} \
|
|||
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
|
|||
copy_in_global_log = 0; \
|
|||
}; \
|
|||
if (copy_in_global_log) \
|
|||
{ \
|
|||
rst_section(global_test_result ": " $$0); \
|
|||
while ((rc = (getline line < ($$0 ".log"))) != 0) \
|
|||
{ \
|
|||
if (rc < 0) \
|
|||
fatal("failed to read from " $$0 ".log"); \
|
|||
print line; \
|
|||
}; \
|
|||
printf "\n"; \
|
|||
}; \
|
|||
close ($$0 ".trs"); \
|
|||
close ($$0 ".log"); \
|
|||
}' |
|||
# Restructured Text title.
|
|||
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } |
|||
# Solaris 10 'make', and several other traditional 'make' implementations,
|
|||
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
|
|||
# by disabling -e (using the XSI extension "set +e") if it's set.
|
|||
am__sh_e_setup = case $$- in *e*) set +e;; esac |
|||
# Default flags passed to test drivers.
|
|||
am__common_driver_flags = \
|
|||
--color-tests "$$am__color_tests" \
|
|||
--enable-hard-errors "$$am__enable_hard_errors" \
|
|||
--expect-failure "$$am__expect_failure" |
|||
# To be inserted before the command running the test. Creates the
|
|||
# directory for the log if needed. Stores in $dir the directory
|
|||
# containing $f, in $tst the test, in $log the log. Executes the
|
|||
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
|
|||
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
|
|||
# will run the test scripts (or their associated LOG_COMPILER, if
|
|||
# thy have one).
|
|||
am__check_pre = \
|
|||
$(am__sh_e_setup); \ |
|||
$(am__vpath_adj_setup) $(am__vpath_adj) \ |
|||
$(am__tty_colors); \ |
|||
srcdir=$(srcdir); export srcdir; \
|
|||
case "$@" in \ |
|||
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
|
|||
*) am__odir=.;; \
|
|||
esac; \ |
|||
test "x$$am__odir" = x"." || test -d "$$am__odir" \ |
|||
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
|
|||
if test -f "./$$f"; then dir=./; \
|
|||
elif test -f "$$f"; then dir=; \
|
|||
else dir="$(srcdir)/"; fi; \
|
|||
tst=$$dir$$f; log='$@'; \
|
|||
if test -n '$(DISABLE_HARD_ERRORS)'; then \ |
|||
am__enable_hard_errors=no; \
|
|||
else \ |
|||
am__enable_hard_errors=yes; \
|
|||
fi; \ |
|||
case " $(XFAIL_TESTS) " in \ |
|||
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
|
|||
am__expect_failure=yes;; \
|
|||
*) \
|
|||
am__expect_failure=no;; \
|
|||
esac; \ |
|||
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) |
|||
# A shell command to get the names of the tests scripts with any registered
|
|||
# extension removed (i.e., equivalently, the names of the test logs, with
|
|||
# the '.log' extension removed). The result is saved in the shell variable
|
|||
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
|
|||
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
|
|||
# since that might cause problem with VPATH rewrites for suffix-less tests.
|
|||
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
|
|||
am__set_TESTS_bases = \
|
|||
bases='$(TEST_LOGS)'; \
|
|||
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
|
|||
bases=`echo $$bases` |
|||
RECHECK_LOGS = $(TEST_LOGS) |
|||
AM_RECURSIVE_TARGETS = check recheck |
|||
TEST_SUITE_LOG = test-suite.log |
|||
TEST_EXTENSIONS = @EXEEXT@ .test |
|||
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver |
|||
LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) |
|||
am__set_b = \
|
|||
case '$@' in \
|
|||
*/*) \
|
|||
case '$*' in \
|
|||
*/*) b='$*';; \
|
|||
*) b=`echo '$@' | sed 's/\.log$$//'`; \
|
|||
esac;; \
|
|||
*) \
|
|||
b='$*';; \
|
|||
esac |
|||
am__test_logs1 = $(TESTS:=.log) |
|||
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) |
|||
TEST_LOGS = $(am__test_logs2:.test.log=.log) |
|||
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver |
|||
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
|
|||
$(TEST_LOG_FLAGS) |
|||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
|||
ACLOCAL = @ACLOCAL@ |
|||
AMTAR = @AMTAR@ |
|||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
|||
AR = @AR@ |
|||
AUTOCONF = @AUTOCONF@ |
|||
AUTOHEADER = @AUTOHEADER@ |
|||
AUTOMAKE = @AUTOMAKE@ |
|||
AWK = @AWK@ |
|||
BUILDDATE = @BUILDDATE@ |
|||
BUILDER = @BUILDER@ |
|||
CC = @CC@ |
|||
CCDEPMODE = @CCDEPMODE@ |
|||
CFLAGS = @CFLAGS@ |
|||
CONFIGURE_ARGS = @CONFIGURE_ARGS@ |
|||
CPP = @CPP@ |
|||
CPPFLAGS = @CPPFLAGS@ |
|||
CXX = @CXX@ |
|||
CXXCPP = @CXXCPP@ |
|||
CXXDEPMODE = @CXXDEPMODE@ |
|||
CXXFLAGS = @CXXFLAGS@ |
|||
CYGPATH_W = @CYGPATH_W@ |
|||
DEFS = @DEFS@ |
|||
DEPDIR = @DEPDIR@ |
|||
DLLTOOL = @DLLTOOL@ |
|||
DSYMUTIL = @DSYMUTIL@ |
|||
DUMPBIN = @DUMPBIN@ |
|||
ECHO_C = @ECHO_C@ |
|||
ECHO_N = @ECHO_N@ |
|||
ECHO_T = @ECHO_T@ |
|||
EGREP = @EGREP@ |
|||
EXEEXT = @EXEEXT@ |
|||
FGREP = @FGREP@ |
|||
GREP = @GREP@ |
|||
INSTALL = @INSTALL@ |
|||
INSTALL_DATA = @INSTALL_DATA@ |
|||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
|||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
|||
LD = @LD@ |
|||
LDFLAGS = @LDFLAGS@ |
|||
LIBOBJS = @LIBOBJS@ |
|||
LIBS = @LIBS@ |
|||
LIBTOOL = @LIBTOOL@ |
|||
LIBTOOL_DEPS = @LIBTOOL_DEPS@ |
|||
LIBTOOL_VERSION_INFO = @LIBTOOL_VERSION_INFO@ |
|||
LIPO = @LIPO@ |
|||
LN_S = @LN_S@ |
|||
LTLIBOBJS = @LTLIBOBJS@ |
|||
MAKEINFO = @MAKEINFO@ |
|||
MANIFEST_TOOL = @MANIFEST_TOOL@ |
|||
MKDIR_P = @MKDIR_P@ |
|||
NM = @NM@ |
|||
NMEDIT = @NMEDIT@ |
|||
OBJDUMP = @OBJDUMP@ |
|||
OBJEXT = @OBJEXT@ |
|||
OTOOL = @OTOOL@ |
|||
OTOOL64 = @OTOOL64@ |
|||
PACKAGE = @PACKAGE@ |
|||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
|||
PACKAGE_NAME = @PACKAGE_NAME@ |
|||
PACKAGE_STRING = @PACKAGE_STRING@ |
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
|||
PACKAGE_URL = @PACKAGE_URL@ |
|||
PACKAGE_VERSION = @PACKAGE_VERSION@ |
|||
PATH_SEPARATOR = @PATH_SEPARATOR@ |
|||
RANLIB = @RANLIB@ |
|||
SED = @SED@ |
|||
SET_MAKE = @SET_MAKE@ |
|||
SHELL = @SHELL@ |
|||
STRIP = @STRIP@ |
|||
SUPLDFLAGS = @SUPLDFLAGS@ |
|||
VERSION = @VERSION@ |
|||
abs_builddir = @abs_builddir@ |
|||
abs_srcdir = @abs_srcdir@ |
|||
abs_top_builddir = @abs_top_builddir@ |
|||
abs_top_srcdir = @abs_top_srcdir@ |
|||
ac_ct_AR = @ac_ct_AR@ |
|||
ac_ct_CC = @ac_ct_CC@ |
|||
ac_ct_CXX = @ac_ct_CXX@ |
|||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
|||
am__include = @am__include@ |
|||
am__leading_dot = @am__leading_dot@ |
|||
am__quote = @am__quote@ |
|||
am__tar = @am__tar@ |
|||
am__untar = @am__untar@ |
|||
bindir = @bindir@ |
|||
build = @build@ |
|||
build_alias = @build_alias@ |
|||
build_cpu = @build_cpu@ |
|||
build_os = @build_os@ |
|||
build_vendor = @build_vendor@ |
|||
builddir = @builddir@ |
|||
datadir = @datadir@ |
|||
datarootdir = @datarootdir@ |
|||
docdir = @docdir@ |
|||
dvidir = @dvidir@ |
|||
exec_prefix = @exec_prefix@ |
|||
host = @host@ |
|||
host_alias = @host_alias@ |
|||
host_cpu = @host_cpu@ |
|||
host_os = @host_os@ |
|||
host_vendor = @host_vendor@ |
|||
htmldir = @htmldir@ |
|||
includedir = @includedir@ |
|||
infodir = @infodir@ |
|||
install_sh = @install_sh@ |
|||
libdir = @libdir@ |
|||
libexecdir = @libexecdir@ |
|||
localedir = @localedir@ |
|||
localstatedir = @localstatedir@ |
|||
mandir = @mandir@ |
|||
mkdir_p = @mkdir_p@ |
|||
oldincludedir = @oldincludedir@ |
|||
pdfdir = @pdfdir@ |
|||
prefix = @prefix@ |
|||
program_transform_name = @program_transform_name@ |
|||
psdir = @psdir@ |
|||
sbindir = @sbindir@ |
|||
sharedstatedir = @sharedstatedir@ |
|||
srcdir = @srcdir@ |
|||
sysconfdir = @sysconfdir@ |
|||
target_alias = @target_alias@ |
|||
top_build_prefix = @top_build_prefix@ |
|||
top_builddir = @top_builddir@ |
|||
top_srcdir = @top_srcdir@ |
|||
dummy_SOURCES = dummy.cc |
|||
INCLUDES = -I$(top_srcdir)/include -I../include |
|||
LDADD = -lm @SUPLDFLAGS@ |
|||
TESTS = make_gmm_test.pl |
|||
EXTRA_DIST = \
|
|||
make_gmm_test.pl\
|
|||
gmm_torture01_lusolve.cc\
|
|||
gmm_torture02_baseop.cc\
|
|||
gmm_torture05_mult.cc\
|
|||
gmm_torture06_mat_mult.cc\
|
|||
gmm_torture10_qr.cc\
|
|||
gmm_torture15_sub.cc\
|
|||
gmm_torture20_iterative_solvers.cc |
|||
|
|||
CLEANFILES = toto.mat ii_files/* auto_gmm* |
|||
LOG_COMPILER = perl |
|||
all: all-am |
|||
|
|||
.SUFFIXES: |
|||
.SUFFIXES: .cc .lo .log .o .obj .test .test$(EXEEXT) .trs |
|||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
|||
@for dep in $?; do \
|
|||
case '$(am__configure_deps)' in \
|
|||
*$$dep*) \
|
|||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
|||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
|||
exit 1;; \
|
|||
esac; \
|
|||
done; \
|
|||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
|
|||
$(am__cd) $(top_srcdir) && \
|
|||
$(AUTOMAKE) --gnu tests/Makefile |
|||
.PRECIOUS: Makefile |
|||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
|||
@case '$?' in \
|
|||
*config.status*) \
|
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
|||
*) \
|
|||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
|||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
|||
esac; |
|||
|
|||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
|
|||
$(top_srcdir)/configure: $(am__configure_deps) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
|||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
|||
$(am__aclocal_m4_deps): |
|||
|
|||
clean-checkPROGRAMS: |
|||
@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|||
echo " rm -f" $$list; \
|
|||
rm -f $$list || exit $$?; \
|
|||
test -n "$(EXEEXT)" || exit 0; \
|
|||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|||
echo " rm -f" $$list; \
|
|||
rm -f $$list |
|||
|
|||
dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES) $(EXTRA_dummy_DEPENDENCIES) |
|||
@rm -f dummy$(EXEEXT) |
|||
$(AM_V_CXXLD)$(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS) |
|||
|
|||
mostlyclean-compile: |
|||
-rm -f *.$(OBJEXT) |
|||
|
|||
distclean-compile: |
|||
-rm -f *.tab.c |
|||
|
|||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@ |
|||
|
|||
.cc.o: |
|||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
|||
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< |
|||
|
|||
.cc.obj: |
|||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
|||
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` |
|||
|
|||
.cc.lo: |
|||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
|||
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ |
|||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< |
|||
|
|||
mostlyclean-libtool: |
|||
-rm -f *.lo |
|||
|
|||
clean-libtool: |
|||
-rm -rf .libs _libs |
|||
|
|||
ID: $(am__tagged_files) |
|||
$(am__define_uniq_tagged_files); mkid -fID $$unique |
|||
tags: tags-am |
|||
TAGS: tags |
|||
|
|||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
|||
set x; \
|
|||
here=`pwd`; \
|
|||
$(am__define_uniq_tagged_files); \
|
|||
shift; \
|
|||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
|||
test -n "$$unique" || unique=$$empty_fix; \
|
|||
if test $$# -gt 0; then \ |
|||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|||
"$$@" $$unique; \
|
|||
else \
|
|||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|||
$$unique; \
|
|||
fi; \
|
|||
fi |
|||
ctags: ctags-am |
|||
|
|||
CTAGS: ctags |
|||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
|||
$(am__define_uniq_tagged_files); \
|
|||
test -z "$(CTAGS_ARGS)$$unique" \
|
|||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
|||
$$unique |
|||
|
|||
GTAGS: |
|||
here=`$(am__cd) $(top_builddir) && pwd` \
|
|||
&& $(am__cd) $(top_srcdir) \
|
|||
&& gtags -i $(GTAGS_ARGS) "$$here" |
|||
cscopelist: cscopelist-am |
|||
|
|||
cscopelist-am: $(am__tagged_files) |
|||
list='$(am__tagged_files)'; \
|
|||
case "$(srcdir)" in \
|
|||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
|||
*) sdir=$(subdir)/$(srcdir) ;; \
|
|||
esac; \
|
|||
for i in $$list; do \
|
|||
if test -f "$$i"; then \
|
|||
echo "$(subdir)/$$i"; \
|
|||
else \
|
|||
echo "$$sdir/$$i"; \
|
|||
fi; \
|
|||
done >> $(top_builddir)/cscope.files |
|||
|
|||
distclean-tags: |
|||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
|||
|
|||
# Recover from deleted '.trs' file; this should ensure that
|
|||
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
|
|||
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
|
|||
# to avoid problems with "make -n".
|
|||
.log.trs: |
|||
rm -f $< $@ |
|||
$(MAKE) $(AM_MAKEFLAGS) $< |
|||
|
|||
# Leading 'am--fnord' is there to ensure the list of targets does not
|
|||
# expand to empty, as could happen e.g. with make check TESTS=''.
|
|||
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) |
|||
am--force-recheck: |
|||
@: |
|||
|
|||
$(TEST_SUITE_LOG): $(TEST_LOGS) |
|||
@$(am__set_TESTS_bases); \
|
|||
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
|
|||
redo_bases=`for i in $$bases; do \
|
|||
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
|
|||
done`; \
|
|||
if test -n "$$redo_bases"; then \
|
|||
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
|
|||
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
|
|||
if $(am__make_dryrun); then :; else \
|
|||
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
|
|||
fi; \
|
|||
fi; \
|
|||
if test -n "$$am__remaking_logs"; then \
|
|||
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
|
|||
"recursion detected" >&2; \
|
|||
else \
|
|||
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
|
|||
fi; \
|
|||
if $(am__make_dryrun); then :; else \
|
|||
st=0; \
|
|||
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
|
|||
for i in $$redo_bases; do \
|
|||
test -f $$i.trs && test -r $$i.trs \
|
|||
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
|
|||
test -f $$i.log && test -r $$i.log \
|
|||
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
|
|||
done; \
|
|||
test $$st -eq 0 || exit 1; \
|
|||
fi |
|||
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
|
|||
ws='[ ]'; \
|
|||
results=`for b in $$bases; do echo $$b.trs; done`; \
|
|||
test -n "$$results" || results=/dev/null; \
|
|||
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
|
|||
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
|
|||
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
|
|||
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
|
|||
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
|
|||
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
|
|||
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
|
|||
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
|
|||
success=true; \
|
|||
else \
|
|||
success=false; \
|
|||
fi; \
|
|||
br='==================='; br=$$br$$br$$br$$br; \
|
|||
result_count () \
|
|||
{ \
|
|||
if test x"$$1" = x"--maybe-color"; then \
|
|||
maybe_colorize=yes; \
|
|||
elif test x"$$1" = x"--no-color"; then \
|
|||
maybe_colorize=no; \
|
|||
else \
|
|||
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
|
|||
fi; \
|
|||
shift; \
|
|||
desc=$$1 count=$$2; \
|
|||
if test $$maybe_colorize = yes && test $$count -gt 0; then \
|
|||
color_start=$$3 color_end=$$std; \
|
|||
else \
|
|||
color_start= color_end=; \
|
|||
fi; \
|
|||
echo "$${color_start}# $$desc $$count$${color_end}"; \
|
|||
}; \
|
|||
create_testsuite_report () \
|
|||
{ \
|
|||
result_count $$1 "TOTAL:" $$all "$$brg"; \
|
|||
result_count $$1 "PASS: " $$pass "$$grn"; \
|
|||
result_count $$1 "SKIP: " $$skip "$$blu"; \
|
|||
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
|
|||
result_count $$1 "FAIL: " $$fail "$$red"; \
|
|||
result_count $$1 "XPASS:" $$xpass "$$red"; \
|
|||
result_count $$1 "ERROR:" $$error "$$mgn"; \
|
|||
}; \
|
|||
{ \
|
|||
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
|
|||
$(am__rst_title); \
|
|||
create_testsuite_report --no-color; \
|
|||
echo; \
|
|||
echo ".. contents:: :depth: 2"; \
|
|||
echo; \
|
|||
for b in $$bases; do echo $$b; done \
|
|||
| $(am__create_global_log); \
|
|||
} >$(TEST_SUITE_LOG).tmp || exit 1; \
|
|||
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
|
|||
if $$success; then \
|
|||
col="$$grn"; \
|
|||
else \
|
|||
col="$$red"; \
|
|||
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
|
|||
fi; \
|
|||
echo "$${col}$$br$${std}"; \
|
|||
echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
|
|||
echo "$${col}$$br$${std}"; \
|
|||
create_testsuite_report --maybe-color; \
|
|||
echo "$$col$$br$$std"; \
|
|||
if $$success; then :; else \
|
|||
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
|
|||
if test -n "$(PACKAGE_BUGREPORT)"; then \
|
|||
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
|
|||
fi; \
|
|||
echo "$$col$$br$$std"; \
|
|||
fi; \
|
|||
$$success || exit 1 |
|||
|
|||
check-TESTS: |
|||
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list |
|||
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list |
|||
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) |
|||
@set +e; $(am__set_TESTS_bases); \
|
|||
log_list=`for i in $$bases; do echo $$i.log; done`; \
|
|||
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
|
|||
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
|
|||
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
|
|||
exit $$?; |
|||
recheck: all $(check_PROGRAMS) |
|||
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) |
|||
@set +e; $(am__set_TESTS_bases); \
|
|||
bases=`for i in $$bases; do echo $$i; done \
|
|||
| $(am__list_recheck_tests)` || exit 1; \
|
|||
log_list=`for i in $$bases; do echo $$i.log; done`; \
|
|||
log_list=`echo $$log_list`; \
|
|||
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
|
|||
am__force_recheck=am--force-recheck \
|
|||
TEST_LOGS="$$log_list"; \
|
|||
exit $$? |
|||
make_gmm_test.pl.log: make_gmm_test.pl |
|||
@p='make_gmm_test.pl'; \
|
|||
b='make_gmm_test.pl'; \
|
|||
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
|
|||
--log-file $$b.log --trs-file $$b.trs \
|
|||
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
|
|||
"$$tst" $(AM_TESTS_FD_REDIRECT) |
|||
.test.log: |
|||
@p='$<'; \
|
|||
$(am__set_b); \
|
|||
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
|
|||
--log-file $$b.log --trs-file $$b.trs \
|
|||
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
|||
"$$tst" $(AM_TESTS_FD_REDIRECT) |
|||
@am__EXEEXT_TRUE@.test$(EXEEXT).log: |
|||
@am__EXEEXT_TRUE@ @p='$<'; \
|
|||
@am__EXEEXT_TRUE@ $(am__set_b); \ |
|||
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ |
|||
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ |
|||
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ |
|||
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) |
|||
|
|||
distdir: $(DISTFILES) |
|||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|||
list='$(DISTFILES)'; \
|
|||
dist_files=`for file in $$list; do echo $$file; done | \
|
|||
sed -e "s|^$$srcdirstrip/||;t" \
|
|||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
|||
case $$dist_files in \
|
|||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
|||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
|||
sort -u` ;; \
|
|||
esac; \
|
|||
for file in $$dist_files; do \
|
|||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
|||
if test -d $$d/$$file; then \
|
|||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
|||
if test -d "$(distdir)/$$file"; then \
|
|||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|||
fi; \
|
|||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
|||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
|||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
|||
fi; \
|
|||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
|||
else \
|
|||
test -f "$(distdir)/$$file" \
|
|||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
|||
|| exit 1; \
|
|||
fi; \
|
|||
done |
|||
check-am: all-am |
|||
$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) |
|||
$(MAKE) $(AM_MAKEFLAGS) check-TESTS |
|||
check: check-am |
|||
all-am: Makefile |
|||
installdirs: |
|||
install: install-am |
|||
install-exec: install-exec-am |
|||
install-data: install-data-am |
|||
uninstall: uninstall-am |
|||
|
|||
install-am: all-am |
|||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
|||
|
|||
installcheck: installcheck-am |
|||
install-strip: |
|||
if test -z '$(STRIP)'; then \
|
|||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|||
install; \
|
|||
else \
|
|||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
|||
fi |
|||
mostlyclean-generic: |
|||
-test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) |
|||
-test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) |
|||
-test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) |
|||
|
|||
clean-generic: |
|||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
|||
|
|||
distclean-generic: |
|||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
|||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
|||
|
|||
maintainer-clean-generic: |
|||
@echo "This command is intended for maintainers to use" |
|||
@echo "it deletes files that may require special tools to rebuild." |
|||
clean: clean-am |
|||
|
|||
clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ |
|||
mostlyclean-am |
|||
|
|||
distclean: distclean-am |
|||
-rm -rf ./$(DEPDIR) |
|||
-rm -f Makefile |
|||
distclean-am: clean-am distclean-compile distclean-generic \ |
|||
distclean-tags |
|||
|
|||
dvi: dvi-am |
|||
|
|||
dvi-am: |
|||
|
|||
html: html-am |
|||
|
|||
html-am: |
|||
|
|||
info: info-am |
|||
|
|||
info-am: |
|||
|
|||
install-data-am: |
|||
|
|||
install-dvi: install-dvi-am |
|||
|
|||
install-dvi-am: |
|||
|
|||
install-exec-am: |
|||
|
|||
install-html: install-html-am |
|||
|
|||
install-html-am: |
|||
|
|||
install-info: install-info-am |
|||
|
|||
install-info-am: |
|||
|
|||
install-man: |
|||
|
|||
install-pdf: install-pdf-am |
|||
|
|||
install-pdf-am: |
|||
|
|||
install-ps: install-ps-am |
|||
|
|||
install-ps-am: |
|||
|
|||
installcheck-am: |
|||
|
|||
maintainer-clean: maintainer-clean-am |
|||
-rm -rf ./$(DEPDIR) |
|||
-rm -f Makefile |
|||
maintainer-clean-am: distclean-am maintainer-clean-generic |
|||
|
|||
mostlyclean: mostlyclean-am |
|||
|
|||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \ |
|||
mostlyclean-libtool |
|||
|
|||
pdf: pdf-am |
|||
|
|||
pdf-am: |
|||
|
|||
ps: ps-am |
|||
|
|||
ps-am: |
|||
|
|||
uninstall-am: |
|||
|
|||
.MAKE: check-am install-am install-strip |
|||
|
|||
.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ |
|||
clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \
|
|||
ctags ctags-am distclean distclean-compile distclean-generic \
|
|||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
|||
html-am info info-am install install-am install-data \
|
|||
install-data-am install-dvi install-dvi-am install-exec \
|
|||
install-exec-am install-html install-html-am install-info \
|
|||
install-info-am install-man install-pdf install-pdf-am \
|
|||
install-ps install-ps-am install-strip installcheck \
|
|||
installcheck-am installdirs maintainer-clean \
|
|||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
|||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
|||
recheck tags tags-am uninstall uninstall-am |
|||
|
|||
|
|||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|||
.NOEXPORT: |
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
@ -1,6 +1,6 @@ |
|||
/*===========================================================================
|
|||
|
|||
Copyright (C) 2007-2012 Yves Renard, Julien Pommier. |
|||
Copyright (C) 2007-2015 Yves Renard, Julien Pommier. |
|||
|
|||
This file is a part of GETFEM++ |
|||
|
Some files were not shown because too many files changed in this diff
Reference in new issue
xxxxxxxxxx