automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/7] Tests defs: move static definitions in a new file `minidefs'


From: Stefano Lattarini
Subject: [PATCH 7/7] Tests defs: move static definitions in a new file `minidefs'.
Date: Sun, 7 Nov 2010 16:29:27 +0100
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

This is proably the most important patch of the series, and
surely the most complex one.  A review on this is definitely
advisable.

-*-*-*-

Tests defs: move static definitions in a new file `minidefs'.

The new file is designed to be idempotent w.r.t. mutiple inclusions,
and this will help us to cope better with e.g. generated tests and
tests with complex setups, scaffoldings or indirections.

* tests/defs.in: Removed, it's contents split among ...
* tests/defs: ... this new file ...
* tests/minidefs.in: ... and this new file.
* configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
`tests/minidefs'.
* configure.ac (AC_CONFIG_LINKS): Add `tests/defs'.
* tests/Makefile.am ($(parallel_tests)): Update.
($(instspc_tests)): Likewise.
* tests/.gitignore: Update.
---
 ChangeLog               |   14 ++++++
 configure               |   45 ++++++++++++++++-
 configure.ac            |    3 +-
 tests/.gitignore        |    2 +-
 tests/Makefile.am       |    6 +--
 tests/Makefile.in       |   18 ++++----
 tests/{defs.in => defs} |  120 ++++++++--------------------------------------
 tests/minidefs.in       |   99 ++++++++++++++++++++++++++++++++++++++
 8 files changed, 190 insertions(+), 117 deletions(-)
 rename tests/{defs.in => defs} (76%)
 create mode 100644 tests/minidefs.in
From 284e1d3273c27bf74051ad1c5ccf2fe9bbec6ee3 Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 5 Nov 2010 21:29:17 +0100
Subject: [PATCH 7/7] Tests defs: move static definitions in a new file 
`minidefs'.

The new file is designed to be idempotent w.r.t. mutiple inclusions,
and this will help us to cope better with e.g. generated tests and
tests with complex setups, scaffoldings or indirections.

* tests/defs.in: Removed, it's contents split among ...
* tests/defs: ... this new file ...
* tests/minidefs.in: ... and this new file.
* configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
`tests/minidefs'.
* configure.ac (AC_CONFIG_LINKS): Add `tests/defs'.
* tests/Makefile.am ($(parallel_tests)): Update.
($(instspc_tests)): Likewise.
* tests/.gitignore: Update.
---
 ChangeLog               |   14 ++++++
 configure               |   45 ++++++++++++++++-
 configure.ac            |    3 +-
 tests/.gitignore        |    2 +-
 tests/Makefile.am       |    6 +--
 tests/Makefile.in       |   18 ++++----
 tests/{defs.in => defs} |  120 ++++++++--------------------------------------
 tests/minidefs.in       |   99 ++++++++++++++++++++++++++++++++++++++
 8 files changed, 190 insertions(+), 117 deletions(-)
 rename tests/{defs.in => defs} (76%)
 create mode 100644 tests/minidefs.in

diff --git a/ChangeLog b/ChangeLog
index 34e6918..3616c28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2010-11-06  Stefano Lattarini  <address@hidden>
 
+       Tests defs: move static definitions in a new file `minidefs'.
+       The new file is designed to be idempotent w.r.t. mutiple inclusions,
+       and this will help us to cope better with e.g. generated tests and
+       tests with complex setups, scaffoldings or indirections.
+       * tests/defs.in: Removed, it's contents split among ...
+       * tests/defs: ... this new file ...
+       * tests/minidefs.in: ... and this new file.
+       * configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
+       `tests/minidefs'.
+       * configure.ac (AC_CONFIG_LINKS): Add `tests/defs'.
+       * tests/Makefile.am ($(parallel_tests)): Update.
+       ($(instspc_tests)): Likewise.
+       * tests/.gitignore: Update.
+
        Tests defs: new AC_SUBST'ed variable $top_testsbuilddir.
        * tests/defs.in ($top_testsbuilddir): New variable, initialized
        with the value AC_SUBST'ed from @address@hidden  Mostly for
diff --git a/configure b/configure
index 169d82d..929b8c9 100755
--- a/configure
+++ b/configure
@@ -2783,7 +2783,9 @@ $as_echo "$as_me: WARNING: \`cd tests && ${MAKE-make} 
clean-local-check'" >&2;}
 sh_errexit_works=$am_cv_sh_errexit_works
 
 
-ac_config_files="$ac_config_files Makefile doc/Makefile lib/Automake/Makefile 
lib/Automake/tests/Makefile lib/Makefile lib/am/Makefile m4/Makefile 
tests/Makefile tests/defs"
+ac_config_files="$ac_config_files Makefile doc/Makefile lib/Automake/Makefile 
lib/Automake/tests/Makefile lib/Makefile lib/am/Makefile m4/Makefile 
tests/Makefile tests/minidefs"
+
+ac_config_links="$ac_config_links tests/defs:tests/defs"
 
 ac_config_files="$ac_config_files tests/aclocal-${APIVERSION}:tests/aclocal.in"
 
@@ -3375,6 +3377,7 @@ esac
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 # Files that config.status was made for.
 config_files="$ac_config_files"
+config_links="$ac_config_links"
 
 _ACEOF
 
@@ -3399,6 +3402,9 @@ Usage: $0 [OPTION]... [TAG]...
 Configuration files:
 $config_files
 
+Configuration links:
+$config_links
+
 Report bugs to <address@hidden>.
 GNU Automake home page: <http://www.gnu.org/software/automake/>.
 General help using GNU software: <http://www.gnu.org/gethelp/>."
@@ -3533,7 +3539,8 @@ do
     "lib/am/Makefile") CONFIG_FILES="$CONFIG_FILES lib/am/Makefile" ;;
     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
-    "tests/defs") CONFIG_FILES="$CONFIG_FILES tests/defs" ;;
+    "tests/minidefs") CONFIG_FILES="$CONFIG_FILES tests/minidefs" ;;
+    "tests/defs") CONFIG_LINKS="$CONFIG_LINKS tests/defs:tests/defs" ;;
     "tests/aclocal-${APIVERSION}") CONFIG_FILES="$CONFIG_FILES 
tests/aclocal-${APIVERSION}:tests/aclocal.in" ;;
     "tests/automake-${APIVERSION}") CONFIG_FILES="$CONFIG_FILES 
tests/automake-${APIVERSION}:tests/automake.in" ;;
 
@@ -3548,6 +3555,7 @@ done
 # bizarre bug on SunOS 4.1.3.
 if $ac_need_defaults; then
   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 fi
 
 # Have a temporary directory for convenience.  Make it in the build tree
@@ -3736,7 +3744,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 fi # test -n "$CONFIG_FILES"
 
 
-eval set X "  :F $CONFIG_FILES      "
+eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  "
 shift
 for ac_tag
 do
@@ -3956,7 +3964,38 @@ which seems to be undefined.  Please make sure it is 
defined" >&2;}
   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  ;;
 
+  :L)
+  #
+  # CONFIG_LINK
+  #
+
+  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
+    :
+  else
+    # Prefer the file from the source tree if names are identical.
+    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
+      ac_source=$srcdir/$ac_source
+    fi
 
+    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" 
>&5
+$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
+
+    if test ! -r "$ac_source"; then
+      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
+    fi
+    rm -f "$ac_file"
+
+    # Try a relative symlink, then a hard link, then a copy.
+    case $ac_source in
+    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
+       *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
+    esac
+    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
+      ln "$ac_source" "$ac_file" 2>/dev/null ||
+      cp -p "$ac_source" "$ac_file" ||
+      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
+  fi
+ ;;
 
   esac
 
diff --git a/configure.ac b/configure.ac
index 079525d..1b746df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,8 +203,9 @@ AC_CONFIG_FILES([
   lib/am/Makefile
   m4/Makefile
   tests/Makefile
-  tests/defs
+  tests/minidefs
 ])
+AC_CONFIG_LINKS([tests/defs:tests/defs])
 AC_CONFIG_FILES([tests/aclocal-${APIVERSION}:tests/aclocal.in],
                 [chmod +x tests/aclocal-${APIVERSION}],
                [APIVERSION=$APIVERSION])
diff --git a/tests/.gitignore b/tests/.gitignore
index ff89b40..65a6f4a 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,6 +1,6 @@
 aclocal-*
 automake-*
-defs
+minidefs
 instspc-tests.am
 parallel-tests.am
 *.dir
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d5ae622..55d6d03 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -39,8 +39,7 @@ $(parallel_tests): Makefile.am
          echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
          echo; \
          echo '# Ensure proper definition of $$testsrcdir.'; \
-         echo 'am_skip_defs=yes'; \
-         echo '. ./defs || exit 99'; \
+         echo '. ./minidefs || exit 99'; \
          echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
          echo; \
          echo "# Run the test with Automake's parallel-tests driver enabled."; 
\
@@ -76,8 +75,7 @@ $(instspc_tests): Makefile.am
            echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
            echo; \
            echo '# Ensure proper definition of $$testsrcdir.'; \
-           echo 'am_skip_defs=yes'; \
-           echo '. ./defs || exit 99'; \
+           echo '. ./minidefs || exit 99'; \
            echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
            echo; \
            echo "instspc_test_name='$$name'"; \
diff --git a/tests/Makefile.in b/tests/Makefile.in
index deab171..89a4c03 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -49,8 +49,9 @@ PRE_UNINSTALL = :
 POST_UNINSTALL = :
 build_triplet = @build@
 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
-       $(srcdir)/aclocal.in $(srcdir)/automake.in $(srcdir)/defs.in \
-       $(srcdir)/instspc-tests.am $(srcdir)/parallel-tests.am
+       $(srcdir)/aclocal.in $(srcdir)/automake.in $(srcdir)/defs \
+       $(srcdir)/instspc-tests.am $(srcdir)/minidefs.in \
+       $(srcdir)/parallel-tests.am
 subdir = tests
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/amversion.m4 \
@@ -64,8 +65,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/amversion.m4 \
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
-CONFIG_CLEAN_FILES = defs aclocal-${APIVERSION} automake-${APIVERSION}
-CONFIG_CLEAN_VPATH_FILES =
+CONFIG_CLEAN_FILES = minidefs aclocal-${APIVERSION} \
+       automake-${APIVERSION}
+CONFIG_CLEAN_VPATH_FILES = defs
 AM_V_GEN = $(am__v_GEN_$(V))
 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
 am__v_GEN_0 = @echo "  GEN     " $@;
@@ -1177,7 +1179,7 @@ $(top_srcdir)/configure:  $(am__configure_deps)
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(am__aclocal_m4_deps):
-defs: $(top_builddir)/config.status $(srcdir)/defs.in
+minidefs: $(top_builddir)/config.status $(srcdir)/minidefs.in
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
 aclocal-${APIVERSION}: $(top_builddir)/config.status $(srcdir)/aclocal.in
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
@@ -1496,8 +1498,7 @@ $(parallel_tests): Makefile.am
          echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
          echo; \
          echo '# Ensure proper definition of $$testsrcdir.'; \
-         echo 'am_skip_defs=yes'; \
-         echo '. ./defs || exit 99'; \
+         echo '. ./minidefs || exit 99'; \
          echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
          echo; \
          echo "# Run the test with Automake's parallel-tests driver enabled."; 
\
@@ -1527,8 +1528,7 @@ $(instspc_tests): Makefile.am
            echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
            echo; \
            echo '# Ensure proper definition of $$testsrcdir.'; \
-           echo 'am_skip_defs=yes'; \
-           echo '. ./defs || exit 99'; \
+           echo '. ./minidefs || exit 99'; \
            echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
            echo; \
            echo "instspc_test_name='$$name'"; \
diff --git a/tests/defs.in b/tests/defs
similarity index 76%
rename from tests/defs.in
rename to tests/defs
index 28436b2..7dc363f 100644
--- a/tests/defs.in
+++ b/tests/defs
@@ -1,5 +1,4 @@
 # -*- shell-script -*-
-# @configure_input@
 #
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
@@ -17,113 +16,39 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Defines for Automake testing environment.
-# Tom Tromey <address@hidden>
-
-
-## --------------------------------------------------------------------- ##
-##  Shell and environment sanitizing (plus some early initializations).  ##
-## --------------------------------------------------------------------- ##
-
-# Absolutely necessary variable(s).
-testsrcdir='@abs_srcdir@'
-top_testsrcdir='@abs_top_srcdir@'
-testbuilddir='@abs_builddir@'
-top_testbuilddir='@abs_top_builddir@'
-
-# Protect this file against multiple inclusion, useful for generated tests.
-if test x"$am_skip_defs" = xyes; then
-  unset am_skip_defs
-
-else # Do proper testcase setup.
-
-# Be more Bourne compatible.
-# (Snippet copied from configure's initialization in Autoconf 2.64)
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
-fi
-
-# The name of the current test (without the `.test' suffix.)
-me=`echo "$0" | sed -e 's,.*[\\/],,;s/\.test$//'`
-
-
-## ----------------------------------------------------------- ##
-##  Initialization: AC_SUBST'ed and/or environment variables.  ##
-## ----------------------------------------------------------- ##
-
-APIVERSION='@APIVERSION@'
-PATH_SEPARATOR='@PATH_SEPARATOR@'
-
-# Make sure we override the user shell.
-SHELL='@SHELL@'; export SHELL
-# User can override various tools used.
-test -z "$PERL" && PERL='@PERL@'
-test -z "$MAKE" && MAKE=make
-test -z "$AUTOCONF" && AUTOCONF="@am_AUTOCONF@"
-test -z "$AUTOHEADER" && AUTOHEADER="@am_AUTOHEADER@"
-test -z "$AUTOUPDATE" && AUTOUPDATE=autoupdate
-test -z "$MISSING" && MISSING=$top_testsrcdir/lib/missing
-# Use -Werror because this also turns some Perl warnings into error.
-# (Tests for which this is inappropriate should use -Wno-error.)
-test -z "$ACLOCAL" && ACLOCAL="aclocal-$APIVERSION -Werror"
-# Extra flags to pass to aclocal before all other flags added by this script.
-ACLOCAL_TESTSUITE_FLAGS=''; export ACLOCAL_TESTSUITE_FLAGS
-
-# See how Automake should be run.  We put --foreign as the default
-# strictness to avoid having to create lots and lots of files.  A test
-# can override this by specifying a different strictness.  Use -Wall
-# -Werror by default.  Tests for which this is inappropriate
-# (e.g. when testing that a warning is enabled by a specific switch)
-# should use -Wnone or/and -Wno-error
-test -z "$AUTOMAKE" && AUTOMAKE="automake-$APIVERSION --foreign -Werror -Wall"
-
-# POSIX no longer requires 'egrep' and 'fgrep',
-# but some hosts lack 'grep -E' and 'grep -F'.
-EGREP='@EGREP@'
-FGREP='@FGREP@'
-
-# The amount we should wait after modifying files depends on the platform.
-# For instance, Windows '95, '98 and ME have 2-second granularity
-# and can be up to 3 seconds in the future w.r.t. the system clock.
-sleep='sleep @MODIFICATION_DELAY@'
-
-# An old timestamp that can be given to a file, in "touch -t" format.
-# The time stamp should be portable to all file systems of interest.
-# Just for fun, choose the exact time of the announcement of the GNU project
-# in UTC; see <http://www.gnu.org/gnu/initial-announcement.html>.
-old_timestamp=198309271735.59
-
-# Make our wrapper scripts accessible by default.
-PATH="$testbuilddir$PATH_SEPARATOR$PATH"; export PATH
+# Initializations for Automake testing environment.
 
 
 ## -------------------------------------------------------- ##
-##  Initialization: sanity checks and environment cleanup.  ##
+##  Source static setup and definitions for the testsuite.  ##
 ## -------------------------------------------------------- ##
 
 # Ensure we are running from the right directory.
-test -f ./defs || {
-   echo "$me: ./defs: not found in current directory" >&2
+test -f ./minidefs || {
+   echo "$0: ./minidefs: not found in current directory" >&2
    exit 1
 }
 
+# Source the shell sanitization and variables' definitions.
+. ./minidefs || Exit 99 || exit 99
+
+# The name of the current test (without the `.test' suffix.)
+me=`echo "$0" | sed -e 's,.*[\\/],,;s/\.test$//'`
+
+
+## ---------------------------------------- ##
+##  Sanity checks and environment cleanup.  ##
+## ---------------------------------------- ##
+
 # Ensure $testsrcdir is set correctly.
-test -f "$testsrcdir/defs.in" || {
-   echo "$me: $testsrcdir/defs.in not found, check \$testsrcdir" >&2
+test -f "$testsrcdir/minidefs.in" || {
+   echo "$me: $testsrcdir/minidefs.in not found, check \$testsrcdir" >&2
    exit 1
 }
 
 # Ensure $testbuilddir is set correctly.
-test -f "$testbuilddir/defs" || {
-   echo "$me: $testbuilddir/defs not found, check \$testbuilddir" >&2
+test -f "$testbuilddir/minidefs" || {
+   echo "$me: $testbuilddir/minidefs not found, check \$testbuilddir" >&2
    exit 1
 }
 
@@ -348,7 +273,7 @@ do
     tex)
       # No all versions of Tex support `--version', so we use
       # a configure check.
-      test -n "@TEX@" || exit 77
+      test -n "$TEX" || exit 77
       ;;
     texi2dvi-o)
       # Texi2dvi supports `-o' since Texinfo 4.1.
@@ -372,7 +297,7 @@ done
 # some third-party .m4 file is underquoted.
 case " $required " in
   *' libtool '* | *' libtoolize '* | *' gettext '* )
-    aclocaldir='@prefix@/share/aclocal'
+    aclocaldir=$testprefix/share/aclocal
     extra_includes=""
     if test -f $aclocaldir/dirlist; then
        extra_includes=`
@@ -428,7 +353,6 @@ mkdir $testSubDir
 
 cd ./$testSubDir
 
address@hidden@
 if test "$sh_errexit_works" = yes; then
   trap 'exit_status=$?
     set +e
@@ -478,5 +402,3 @@ done
 set -x
 
 pwd
-
-fi # Proper testcase setup.
diff --git a/tests/minidefs.in b/tests/minidefs.in
new file mode 100644
index 0000000..f1e0c45
--- /dev/null
+++ b/tests/minidefs.in
@@ -0,0 +1,99 @@
+# -*- shell-script -*-
+# @configure_input@
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008, 2009, 2010 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/>.
+
+# Defines and minimal setup for Automake testing environment.
+# IMPORTANT: Multiple inclusions of this file should be idempotent!
+
+# Be more Bourne compatible.
+# (Snippet copied from configure's initialization in Autoconf 2.64)
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+
+testsrcdir='@abs_srcdir@'
+top_testsrcdir='@abs_top_srcdir@'
+testbuilddir='@abs_builddir@'
+top_testbuilddir='@abs_top_builddir@'
+testprefix='@prefix@'
+
+APIVERSION='@APIVERSION@'
+PATH_SEPARATOR='@PATH_SEPARATOR@'
+
+# Make sure we override the user shell.
+SHELL='@SHELL@'; export SHELL
+# User can override various tools used.
+test -z "$PERL" && PERL='@PERL@'
+test -z "$MAKE" && MAKE=make
+test -z "$AUTOCONF" && AUTOCONF="@am_AUTOCONF@"
+test -z "$AUTOHEADER" && AUTOHEADER="@am_AUTOHEADER@"
+test -z "$AUTOUPDATE" && AUTOUPDATE=autoupdate
+test -z "$MISSING" && MISSING=$top_testsrcdir/lib/missing
+# Use -Werror because this also turns some Perl warnings into error.
+# (Tests for which this is inappropriate should use -Wno-error.)
+test -z "$ACLOCAL" && ACLOCAL="aclocal-$APIVERSION -Werror"
+# Extra flags to pass to aclocal before all other flags added by this script.
+ACLOCAL_TESTSUITE_FLAGS=''; export ACLOCAL_TESTSUITE_FLAGS
+
+# See how Automake should be run.  We put --foreign as the default
+# strictness to avoid having to create lots and lots of files.  A test
+# can override this by specifying a different strictness.  Use -Wall
+# -Werror by default.  Tests for which this is inappropriate
+# (e.g. when testing that a warning is enabled by a specific switch)
+# should use -Wnone or/and -Wno-error
+test -z "$AUTOMAKE" && AUTOMAKE="automake-$APIVERSION --foreign -Werror -Wall"
+
+# POSIX no longer requires 'egrep' and 'fgrep',
+# but some hosts lack 'grep -E' and 'grep -F'.
+EGREP='@EGREP@'
+FGREP='@FGREP@'
+
+# No all versions of Tex support `--version', so we use a configure
+# check to decide if tex is available.  This decision is embodied in
+# this variable.
+TEX='@TEX@'
+
+# Whether /bin/sh has working 'set -e' with exit trap.
+sh_errexit_works='@sh_errexit_works@'
+
+# The amount we should wait after modifying files depends on the platform.
+# For instance, Windows '95, '98 and ME have 2-second granularity
+# and can be up to 3 seconds in the future w.r.t. the system clock.
+sleep='sleep @MODIFICATION_DELAY@'
+
+# An old timestamp that can be given to a file, in "touch -t" format.
+# The time stamp should be portable to all file systems of interest.
+# Just for fun, choose the exact time of the announcement of the GNU project
+# in UTC; see <http://www.gnu.org/gnu/initial-announcement.html>.
+old_timestamp=198309271735.59
+
+# Make our wrapper scripts accessible by default.  And avoid to uselessly
+# extend $PATH multiple times if this file is sourced multiple times.
+case $PATH in
+  "$testbuilddir$PATH_SEPARATOR"*) ;;
+  *) PATH="$testbuilddir$PATH_SEPARATOR$PATH";;
+esac
+export PATH
-- 
1.7.1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]