Merge branch 'msvc'
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 9 Aug 2010 19:36:32 +0000 (21:36 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 9 Aug 2010 19:36:32 +0000 (21:36 +0200)
* msvc:
  Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
  Fix shell pattern negation in compile script.

1  2 
ChangeLog
NEWS
automake.in
doc/automake.texi
lib/Makefile.in
tests/Makefile.am
tests/Makefile.in

diff --combined ChangeLog
+++ b/ChangeLog
@@@ -1,26 -1,22 +1,45 @@@
+ 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
+       Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
+       * lib/ar-lib: New auxiliary script.
+       * lib/Makefile.am: Add above.
+       * tests/ar-lib.test: New test.
+       * tests/Makefile.am: Add above.
+       * automake.in (@common_files): Distribute the 'ar-lib' script.
+       * doc/automake.texi (Auxiliary Programs): Mention the new
+       'ar-lib' script.
+       (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
+       * NEWS: Update.
+ 2010-08-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+       Fix shell pattern negation in compile script.
+       * lib/compile (func_file_conv): Use `!' not `^' for pattern
+       negation.
 +2010-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Fix maintainer-check failure.
 +      * tests/cond5.test: Quote sleep argument, this isn't about
 +      time stamp differences.
 +
 +      Sync auxiliary files from upstream.
 +      * lib/config.guess, lib/config.sub, lib/texinfo.tex:
 +      Sync from upstream.
 +
 +2010-08-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      Work around a nasty bug (segfault) of Solaris make.
 +      * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
 +      from $list, to avoid triggering a nasty bug (potential segfault)
 +      on Solaris make.
 +
 +2010-08-06  Peter Rosin  <peda@lysator.liu.se>
 +
 +      Make cond5.test more robust on MSYS.
 +      * tests/cond5.test: Add delay before the first kill attempt to
 +      cater for problems with MSYS bash.
 +
  2010-08-01  Peter Rosin  <peda@lysator.liu.se>
  
        Wrap some MSVC options in the compile script.
        the background automake process, but poll it every 10 seconds for
        at most 30 times (this makes the test both faster on good machines,
        and more resilient to spurious timeout-due failures when in low
 -      priority or on havily-loaded systems).
 +      priority or on heavily-loaded systems).
        Check also that automake writes the expected error messages on the
        standard error.
        Enable `errexit' flag, and related changes.
        * tests/ext.test: Add a comment explaining why an apparently
        useless `if' statement is indeed required.
  
 +2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
        Add useful comment in test script obsolete.test.
        * tests/obsolte.test: Add a comment explaining why we need
        an indirection in adding $AUTOUPDATE to $required.
        * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
        definition of this variable.
  
 +      Parallel tests generation: improve comments (tiny change).
 +      * tests/Makefile.am ($(parallel_tests)): Added useful comment to
 +      generated tests.
 +
 +      Tests defs: truly get rid of `$am_defs_included' (unused variable)
 +       * tests/defs.in ($am_defs_included): Remove, its now unused.  It
 +      should have been removed in a previous changeset, but the removal
 +      was done only partially (oversight).
 +
  2010-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  
        Remove a couple of unneeded conditionals from tests.
        * tests/pluseq9.test: Slighty extended w.r.t. the grepping of
        Automake stderr.  Some unrelated cosmetic changes.
  
 +2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      cscope.test: ensure verbose printing of captured stderr.
 +      * tests/cscope.test: Print captured stderr before failing.
 +
 +2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
        Testsuite: ensure verbose printing of captured stderr.
        * tests/acloca18.test: Print captured stderr before either failing
        or grepping it.  Be sure to send captured stderr to stderr, not to
        Enable `errexit' shell flag.
  
  2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +          Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Fix error in generation of parallel tests.
 +      * tests/defs.in ($am_skip_defs): New variable, to be used when
 +      ./defs must be sourced multiple times.  If set, unset it and
 +      only define $srcdir; otherwise, also go through the rest of
 +      the script.
 +      ($am_defs_included): Remove, no more needed.
 +      * tests/Makefile.am ($(parallel_tests)): Update accordingly,
 +      using only $srcdir from defs.
 +      Fixes potential test failures of tests that use $required.
 +
 +2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Enable `errexit' shell flag in some test scripts.
        * tests/subcond.test: Enabled `errexit' shell flag, and related
        * tests/version2.test: Likewise, and avoid deprecated constructs
        in the generated `configure.in'.
  
 +2010-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +          Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Improve declaration of dependencies in the testsuite.
 +      * tests/Makefile.am (check_SCRIPTS): Remove.  Instead, let ...
 +      ($(TEST_LOGS)): ... all test logs depend on the scripts.
 +      * test/gen-parallel-tests: For each parallel test foo-p.test,
 +      let `foo-p.log' also depend on `foo.test', since it is sourced.
 +
 +2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Coverage for TAGS_DEPENDENCIES warning.
 +      * tests/tags2.test: New test.
 +      * tests/Makefile.am: Update.
 +
 +      Coverage for use of anachronistic variables.
 +      * tests/oldvars.test: New test.
 +      * tests/Makefile.am: Update.
 +
 +      Testsuite coverage for bogus macro file serial numbers.
 +      * tests/acloca18.test: Also test ill-formed serial numbers
 +      and serial numbers after macro definitions.
 +
 +      Coverage for aclocal diagnosing underquoted macros.
 +      * tests/acloca23.test: New test.
 +      * tests/Makefile.am: Update.
 +
  2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  
        Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
        * tests/mdate.test: Likewise.
        Prompted by Stefano Lattarini's change to discover.test.
  
 +2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      More minor message fixes.
 +      * aclocal.in (scan_file): Fix recommended info command line.
 +      * automake.in (handle_lib_objects): No need to prepend function
 +      name to prog_error message.
 +      (handle_tags): Add missing word and missing space in error
 +      message.
 +      (handle_dist): Add missing closing single quote in message.
 +      Line-wrap one long message for readability.
 +
 +2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +          Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Fix distcheck failure with distributed generated parallel tests.
 +      * tests/Makefile.am ($(parallel_tests)): Cope with $(srcdir)
 +      being different from the value at developer `make dist' time.
 +      * tests/defs.in: Protect against mutiple inclusion, by using ...
 +      ($am_defs_included): ... this new variable.
 +      ($srcdir): Do not compute, but simply define to `@abs_srcdir@'
 +      as substituted by configure.
 +      Report, suggestions and first fix by Ralf Wildenhues, final
 +      patch by Stefano Lattarini.
 +
  2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Improve tests link*.test (enable `errexit' shell flag).
  
  2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
 +      Tiny fix in silent8.test (display output of `make' command).
 +      * tests/silent8.test: Make sure that the captured output of `make'
 +      command is always displayed.
 +
        Make tests on user extensibility of silent-rules mode stricter.
        * tests/silent6.test: Made stricter w.r.t. the grepping of the
        output produced by `make'.
        * tests/silent5.test: Likewise.
        * tests/silent9.test: Likewise.
  
 -2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 -
 -      Fix silent-rules output for disabled dependency tracking.
 -      * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
 -      expansion code to also work in the case where %AMDEP% expands
 -      to FALSE at config.status time, using new substitution string
 -      %VERBOSE-NODEP%.
 -      * automake.in (verbose_nodep_flag): New function, appending
 -      `@am__nodep@' to the verbose-variable name.
 -      (handle_languages): If dependencies are not disabled, use it to
 -      set %VERBOSE-NODEP%.
 -      * m4/depend.m4: Substitute am__nodep as '_no', so the second
 -      verbose-variable will always expand to an empty string, if
 -      dependencies are enabled.
 -      * tests/silent5.test: Also test --disable-dependency-tracking;
 -      also test per-target flags for non-C language files.
 -      * tests/silent9.test: New test, like silent4.test but disable
 -      dependency tracking.
 -      * tests/Makefile.am: Adjust.
 -      * NEWS, THANKS: Update.
 -      Report by Dmitry V. Levin <ldv@altlinux.org>.
 -
  2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Extend test on `nostdinc' automake option.
  
  2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  
 +      Fix truncated comment in Makefile.am.
 +      * Makefile.am (sc_tests_logs_duplicate_prefixes): Fix unfinished
 +      sentence in comment.
 +      Report by Stefano Lattarini.
 +
 +      Relax silent8.test for NetBSD make.
 +      * tests/silent8.test: Accept ./foo.info in output as well.
 +
        Fix unportable sed script in maintainer-check test.
        * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
        not contain semicolon after 'b' or brace commands, for NetBSD.
  
  2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  
 +      Warning and error message formatting cleanups.
 +      * aclocal.in (parse_arguments, main): Remove trailing period or
 +      newline in error or warning messages, avoid capitalization of
 +      the first word of a message.
 +      * automake.in (check_user_variables, handle_languages)
 +      (handle_ltlibraries, scan_aclocal_m4, scan_autoconf_config_files)
 +      (scan_autoconf_files, cond_stack_if, require_file_internal)
 +      (usage, generate_makefile, parse_arguments): Likewise.
 +      * lib/Automake/ChannelDefs.pm (set_strictness): Likewise.
 +      * lib/Automake/Configure_ac.pm (find_configure_ac): Likewise.
 +      * lib/Automake/Options.pm (set_strictness): Likewise.
 +      * lib/Automake/Rule.pm (define): Likewise.
 +      * lib/Automake/Variable.pm (define, variables_dump): Likewise.
 +      * tests/ltinstloc.test, tests/suffix11.test: Adjust expected
 +      error message.
 +      * lib/Automake/Channels.pm (setup_channel): Reword error message
 +      to be the same as in msg.
 +
 +      Fix placing of ellipses in English text and synopses.
 +      * Makefile.am: Be sure to add a space before `...' in natural
 +      language text.
 +      * automake.in (scan_autoconf_traces): Likewise.
 +      * lib/Automake/Rule.pm (define): Likewise.
 +      * lib/Automake/Variable.pm (define): Likewise.
 +      * lib/am/dejagnu.am: Likewise.
 +      * lib/am/progs.am: Likewise.
 +      * lib/gnupload (dprint, upload): Likewise.
 +      * tests/confdeps.test: Likewise.
 +      * tests/location.test: Adjust expected output.
 +      * automake.in (usage): In synopsis, use singular for OPTION,
 +      * remove space before ellipsis.
 +      * aclocal.in (usage): Likewise.  Also, fix indentation.
 +
 +      Fix more duplicate message prefixes.
 +      * lib/Automake/XFile.pm (seek): Do not prepend $me.
 +      ($me): Remove now-unused package-global.
 +      * aclocal.in (check_acinclude): Remove duplicate 'warning: '
 +      prefix.
 +
        Fix typo in manual.
        * doc/automake.texi (Simple Tests using parallel-tests): Add
        missing closing parenthesis.
        * automake.in (read_main_am_file): Call variables_dump, not
        macros_dump.  Print actual error before list of variables.
  
 -2010-04-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +2010-04-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Minor improvements in comments of test `silent3.test'.
        * tests/silent3.test: Tell to keep it in sync with `silent9.test'
  
  2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
  
 +      Print 'warnings are treated as errors' note if needed.
 +      * lib/Automake/Channels.pm: Fix typo in comment.
 +      (_print_message): If -Werror is enabled, print a 'warnings are
 +      treated as errors' note before the first such warning.
 +      * tests/warnopts.test: Adjust comment to mention expected warning.
 +      Adjust code to ignore 'warnings are treated as errors' note.
 +      * tests/location.test: Adjust expected output with -Werror.
 +      * tests/werror4.test: New test.
 +      * tests/Makefile.am: Update.
 +      * NEWS: Update.
 +
 +      Ensure we don't print 'warning:' or 'error:' twice.
 +      * Makefile.am (sc_ensure_testsuite_has_run): New helper rule.
 +      (sc_tests_logs_duplicate_prefixes): New rule, to check for
 +      wrong-looking warning and error messages in the test suite logs.
 +      * aclocal.in (scan_configure_dep, scan_file): Remove duplicate
 +      `warning: ' prefix.
 +      * tests/vars3.test: Rename variable to avoid false positive.
 +
 +      Prepend type to warning, error, and fatal messages.
 +      For the first part of messages of types `error' or `fatal',
 +      prepend `error: ' to the message.  Prepend `warning: ' to
 +      warning messages, whatever the setting of -Werror.
 +      * lib/Automake/Channels.pm (partial): Move up definition.
 +      (_format_message): Emit `header' and `footer' strings only with
 +      the first resp. last part of a set of partial messages.
 +      * lib/Automake/ChannelDefs.pm: Add missing '1;' statement at the
 +      end of the module.
 +      (Automake::ChannelDefs): Setup warning channels with header
 +      `warning: ', error and fatal messages with header `error: '.
 +      * tests/condinc2.test, tests/ltinstloc.test: Adjust expected
 +      error messages.
 +      * tests/comment5.test: Likewise.  Also, include stack notes
 +      should not start with `error:'.
 +      * tests/location.test: Likewise.  Also, try both -Werror and
 +      -Wno-error.
 +      * NEWS: Update.
 +      Report by Bruno Haible.
 +
 +      Fix capitalization of error messages, reword one message.
 +      * lib/Automake/Variable.pm (define): Do not capitalize the first
 +      word in the error message.
 +      * automake.in (require_file_internal): Likewise.  Also, reword
 +      and line-wrap for better readability.
 +      * tests/distcom7.test, tests/pluseq5.test, tests/pluseq9.test:
 +      Adjust tests.
 +
 +      Fix connected warnings about obsolete exeext override.
 +      * lib/Automake/Rule.pm (define): Merge two warnings that belong
 +      together, by setting the 'partial' flag for the first one.
 +
        Fix per-Makefile.am setting of -Werror.
        Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
        Makefile.am would carry over to other Makefile.am files
        * NEWS, THANKS: Update.
        Report by Pavel Sanda.
  
 +2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      Avoid possible false negatives in cond46.test.
 +      * tests/cond46.test: Enable shell `errexit' flag (and bumped
 +      copyright years).  Due to this change, the testcase should now
 +      fail on unexpected failures in calls to $ACLOCAL/$AUTOMAKE (whose
 +      outcomes were previously unchecked), and on failures in grepping
 +      the expected diagnostic in Automake stderr.
 +
 +2010-04-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      Generated tests are now just a thin layer around other tests.
 +      * tests/Makefile.am: Rewrite the rule to generate the `*-p.test'
 +      test scripts so that any of them simply includes the corresponding
 +      `*.test' script (after setting `$parallel_tests' to `yes').
 +      * tests/.gitignore: Add wildcard for temporary files used in the
 +      generation of `*-p.test' tests.
 +
  2010-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Avoid an unportable use of `$status' shell variable.
        * tests/parallel-tests6.test: Likewise.
        * tests/parallel-tests7.test: Likewise.
  
 +2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Fix cscope test on systems without working Fortran compiler.
 +      * tests/cscope.test: Skip remainder of test if `$MAKE all' fails.
 +      * THANKS: Update.
 +      Report by Peter Johansson.
 +
 +2010-02-24  Antonio Diaz Diaz  <ant_diaz@teleline.es>  (tiny change)
 +          Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Add lzip compression support.
 +      * automake.in (handle_dist): Recognize dist-lzip.
 +      (make_paragraphs): Map LZIP to dist-lzip.
 +      * doc/automake.texi (Dist): Add dist-lzip.
 +      (Options): Likewise.
 +      * lib/Automake/Options.pm (_process_option_list): Add dist-lzip.
 +      * lib/am/distdir.am
 +      (dist dist-all): Add command to create an lzip-compressed tarball.
 +      (distcheck): Handle lzip-compressed tarballs just like the others.
 +      * tests/defs.in: Test for lzip, too.
 +      * tests/lzip.test: New file, based on nogzip.test.
 +      * tests/Makefile.am (TESTS): Add lzip.test.
 +      * NEWS: Update.
 +
  2010-02-22  Karl Berry  <karl@gnu.org>
  
        Improve help message of mdate-sh.
        Fix some typos in the manual
        * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
  
 +2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 +
 +      Fix silent-rules output for disabled dependency tracking.
 +      * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
 +      expansion code to also work in the case where %AMDEP% expands
 +      to FALSE at config.status time, using new substitution string
 +      %VERBOSE-NODEP%.
 +      * automake.in (verbose_nodep_flag): New function, appending
 +      `@am__nodep@' to the verbose-variable name.
 +      (handle_languages): If dependencies are not disabled, use it to
 +      set %VERBOSE-NODEP%.
 +      * m4/depend.m4: Substitute am__nodep as '_no', so the second
 +      verbose-variable will always expand to an empty string, if
 +      dependencies are enabled.
 +      * tests/silent5.test: Also test --disable-dependency-tracking;
 +      also test per-target flags for non-C language files.
 +      * tests/silent9.test: New test, like silent4.test but disable
 +      dependency tracking.
 +      * tests/Makefile.am: Adjust.
 +      * NEWS, THANKS: Update.
 +      Report by Dmitry V. Levin <ldv@altlinux.org>.
 +
  2010-01-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        Slighty improve tests acoutbs.test and acoutbs2.test.
diff --combined NEWS
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -1,31 -1,14 +1,31 @@@
 -New in 1.11.0a:
 +New in 1.11a:
 +
 +* Changes to automake:
 +
 +  - automake now generates silenced rules for texinfo outputs.
 +
 +* New targets:
 +
 +  - New `cscope' target to build a cscope database for the source tree.
  
  * Miscellaneous changes:
  
 +  - The `dist' and `dist-all' targets now can run compressors in parallel.
 +
    - The `lzma' compression scheme and associated automake option `dist-lzma'
      is obsoleted by `xz' and `dist-xz' due to upstream changes.
  
 +  - "make dist" can now create lzip-compressed tarballs.
 +
 +  - Messages of types warning or error from `automake' and `aclocal' are now
 +    prefixed with the respective type, and presence of -Werror is noted.
 +
    - The `compile' script now converts some options for MSVC for a better
-     user experience.
+     user experience.  Similarly, the new `ar-lib' script wraps Microsoft lib.
  
 -Bugs fixed in 1.11.0a:
 +Bugs fixed in 1.11a:
 +
 +  - Lots of minor bugfixes.
  
  * Bugs introduced by 1.11:
  
    - AM_PROG_GCJ uses AC_CHECK_TOOLS to look for `gcj' now, so that prefixed
      tools are preferred in a cross-compile setup.
  
 +  - The distribution is tarred up with mode 755 now by the `dist*' targets.
 +    This fixes a race condition where untrusted users could modify files
 +    in the $(PACKAGE)-$(VERSION) distdir before packing if the toplevel
 +    build directory was world-searchable.  This is CVE-2009-4029.
 +
    - Several scripts as well as the parallel-tests testsuite driver now
      exit with the right exit status upon receiving a signal.
  
diff --combined automake.in
index 97280a9,8fd6869..c0c5289
mode 100644,100755..100644
@@@ -235,9 -235,9 +235,9 @@@ my @libtool_sometimes = qw(ltconfig ltc
  my @common_files =
      (qw(ABOUT-GNU ABOUT-NLS AUTHORS BACKLOG COPYING COPYING.DOC COPYING.LIB
        COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO
-       ansi2knr.1 ansi2knr.c compile config.guess config.rpath config.sub
-       depcomp elisp-comp install-sh libversion.in mdate-sh missing
-       mkinstalldirs py-compile texinfo.tex ylwrap),
+       ansi2knr.1 ansi2knr.c ar-lib compile config.guess config.rpath
+       config.sub depcomp elisp-comp install-sh libversion.in mdate-sh
+       missing mkinstalldirs py-compile texinfo.tex ylwrap),
       @libtool_files, @libtool_sometimes);
  
  # Commonly used files we auto-include, but only sometimes.  This list
@@@ -1207,25 -1207,11 +1207,25 @@@ sub define_verbose_tagvar ($
      my ($name) = @_;
      if (option 'silent-rules')
        {
 -      define_verbose_var ($name, '@echo "  '. $name . ' ' x (6 - length ($name)) . '" $@;');
 +      define_verbose_var ($name, '@echo "  '. $name . ' ' x (8 - length ($name)) . '" $@;');
        define_verbose_var ('at', '@');
        }
  }
  
 +# define_verbose_texinfo
 +# ----------------------
 +# Engage the needed `silent-rules' machinery for assorted texinfo commands.
 +sub define_verbose_texinfo ()
 +{
 +  my @tagvars = ('DVIPS', 'MAKEINFO', 'INFOHTML', 'TEXI2DVI', 'TEXI2PDF');
 +  foreach my $tag (@tagvars)
 +    {
 +      define_verbose_tagvar($tag);
 +    }
 +  define_verbose_var('texinfo', '-q');
 +  define_verbose_var('texidevnull', '> /dev/null');
 +}
 +
  # define_verbose_libtool
  # ----------------------
  # Engage the needed `silent-rules' machinery for `libtool --silent'.
@@@ -1327,7 -1313,7 +1327,7 @@@ sub check_user_variables (@
                  msg_cond_var ('gnu', $cond, $flag,
                                "`$flag' is a user variable, "
                                . "you should not override it;\n"
 -                              . "use `AM_$flag' instead.");
 +                              . "use `AM_$flag' instead");
                }
            }
        }
@@@ -1587,7 -1573,7 +1587,7 @@@ sub handle_language
            my $srcdir = dirname ($source);
            if ($lang->ansi && $obj =~ /\$U/)
              {
 -              prog_error "`$obj' contains \$U, but `$source' doesn't."
 +              prog_error "`$obj' contains \$U, but `$source' doesn't"
                  if $source !~ /\$U/;
  
                (my $source_ = $source) =~ s/\$U/_/g;
@@@ -2317,9 -2303,9 +2317,9 @@@ sub handle_lib_object
    my ($xname, $varname) = @_;
  
    my $var = var ($varname);
 -  prog_error "handle_lib_objects: `$varname' undefined"
 +  prog_error "`$varname' undefined"
      unless $var;
 -  prog_error "handle_lib_objects: unexpected variable name `$varname'"
 +  prog_error "unexpected variable name `$varname'"
      unless $varname =~ /^(.*)(?:LIB|LD)ADD$/;
    my $prefix = $1 || 'AM_';
  
               # FIXME: should display a stack of nested variables
               # as context when $var != $subvar.
               err_var ($var, "linker flags such as `$val' belong in "
 -                      . "`${prefix}LDFLAGS");
 +                      . "`${prefix}LDFLAGS'");
             }
           return ();
         }
@@@ -2894,7 -2880,7 +2894,7 @@@ sub handle_ltlibrarie
  
                   my $onlyone = ($dir ne $adir) ?
                     ("\nLibtool libraries can be built for only one "
 -                    . "destination.") : "";
 +                    . "destination") : "";
  
                   error ($liblocations{$val}{$acond},
                          "... and should also be $adirtxt$adircond.$onlyone");
@@@ -3259,9 -3245,6 +3259,9 @@@ sub output_texinfo_build_rules ($$$@
  
    $output_rules .= file_contents ('texibuild',
                                  new Automake::Location,
 +                                  AM_V_MAKEINFO    => verbose_flag('MAKEINFO'),
 +                                  AM_V_TEXI2DVI    => verbose_flag('TEXI2DVI'),
 +                                  AM_V_TEXI2PDF    => verbose_flag('TEXI2PDF'),
                                  DEPS             => "@deps",
                                  DEST_PREFIX      => $dpfx,
                                  DEST_INFO_PREFIX => $dipfx,
                                  GENERIC_INFO     => $generic_info,
                                  INSRC            => $insrc,
                                  MAKEINFOFLAGS    => $makeinfoflags,
 +                                  SILENT           => silent_flag(),
                                  SOURCE           => ($generic
                                                       ? '$<' : $source),
                                  SOURCE_INFO      => ($generic_info
                                                       ? '$<' : $source),
                                  SOURCE_REAL      => $source,
                                  SOURCE_SUFFIX    => $ssfx,
 +                                  TEXIQUIET        => verbose_flag('texinfo'),
 +                                  TEXIDEVNULL      => verbose_flag('texidevnull'),
                                  );
    return ($dirstamp, "$dpfx.dvi", "$dpfx.pdf", "$dpfx.ps", "$dpfx.html");
  }
@@@ -3588,7 -3568,6 +3588,7 @@@ sub handle_texinfo (
    my ($mostlyclean, $clean, $maintclean) = ('', '', '');
    if ($info_texinfos)
      {
 +      define_verbose_texinfo;
        ($mostlyclean, $clean, $maintclean) = handle_texinfo_helper ($info_texinfos);
        chomp $mostlyclean;
        chomp $clean;
  
    $output_rules .=  file_contents ('texinfos',
                                   new Automake::Location,
 +                                   AM_V_DVIPS    => verbose_flag('DVIPS'),
                                   MOSTLYCLEAN   => $mostlyclean,
                                   TEXICLEAN     => $clean,
                                   MAINTCLEAN    => $maintclean,
 -                                 'LOCAL-TEXIS' => !!$info_texinfos);
 +                                 'LOCAL-TEXIS' => !!$info_texinfos,
 +                                   TEXIQUIET     => verbose_flag('texinfo'));
  }
  
  
@@@ -3759,7 -3736,6 +3759,7 @@@ sub handle_tag
  {
      my @tag_deps = ();
      my @ctag_deps = ();
 +    my @cscope_deps = ();
      if (var ('SUBDIRS'))
      {
        $output_rules .= ("tags-recursive:\n"
        push (@ctag_deps, 'ctags-recursive');
        &depend ('.PHONY', 'ctags-recursive');
        &depend ('.MAKE', 'ctags-recursive');
 +
 +      $output_rules .= ("cscopelist-recursive:\n"
 +                        . "\tlist=\'\$(SUBDIRS)\'; for subdir in \$\$list; do \\\n"
 +                        # Never fail here if a subdir fails; it
 +                        # isn't important.
 +                        . "\t  test \"\$\$subdir\" = . || (\$(am__cd) \$\$subdir"
 +                        . " && \$(MAKE) \$(AM_MAKEFLAGS) cscopelist); \\\n"
 +                        . "\tdone\n");
 +      push (@cscope_deps, 'cscopelist-recursive');
 +      &depend ('.PHONY', 'cscopelist-recursive');
 +      &depend ('.MAKE', 'cscopelist-recursive');
      }
  
      if (&saw_sources_p (1)
                                         new Automake::Location,
                                         CONFIG    => "@config",
                                         TAGSDIRS  => "@tag_deps",
 -                                       CTAGSDIRS => "@ctag_deps");
 +                                       CTAGSDIRS => "@ctag_deps",
 +                                       CSCOPEDIRS => "@cscope_deps");
  
        set_seen 'TAGS_DEPENDENCIES';
      }
      elsif (reject_var ('TAGS_DEPENDENCIES',
 -                     "doesn't make sense to define `TAGS_DEPENDENCIES'"
 -                     . "without\nsources or `ETAGS_ARGS'"))
 +                     "it doesn't make sense to define `TAGS_DEPENDENCIES'"
 +                     . " without\nsources or `ETAGS_ARGS'"))
      {
      }
      else
        # Otherwise, it would be possible for a top-level "make TAGS"
        # to fail because some subdirectory failed.
        $output_rules .= "tags: TAGS\nTAGS:\n\n";
 -      # Ditto ctags.
 +      # Ditto ctags and cscope.
        $output_rules .= "ctags: CTAGS\nCTAGS:\n\n";
 +      $output_rules .= "cscope cscopelist:\n\n";
      }
  }
  
@@@ -3944,9 -3907,9 +3944,9 @@@ sub handle_dist (
      {
        my $archive_defined = option 'no-dist-gzip' ? 0 : 1;
        $archive_defined ||=
 -      grep { option "dist-$_" } qw(shar zip tarZ bzip2 lzma xz);
 +      grep { option "dist-$_" } qw(shar zip tarZ bzip2 lzip lzma xz);
        error (option 'no-dist-gzip',
 -           "no-dist-gzip specified but no dist-* specified, "
 +           "no-dist-gzip specified but no dist-* specified,\n"
             . "at least one archive format must be enabled")
        unless $archive_defined;
      }
@@@ -4133,7 -4096,7 +4133,7 @@@ sub scan_aclocal_m4 (
        push (@ac_deps, '$(ACLOCAL_M4_SOURCES)');
        msg_var ('obsolete', 'ACLOCAL_M4_SOURCES',
               "`ACLOCAL_M4_SOURCES' is obsolete.\n"
 -             . "It should be safe to simply remove it.");
 +             . "It should be safe to simply remove it");
      }
  
    # Note that it might be possible that aclocal.m4 doesn't exist but
@@@ -5225,8 -5188,8 +5225,8 @@@ sub scan_autoconf_config_files ($$
        my ($local, @rest) = split (/:/);
        @rest = ("$local.in",) unless @rest;
        msg ('portability', $where,
 -        "Omit leading `./' from config file names such as `$local',"
 -        . "\nas not all make implementations treat `file' and `./file' equally.")
 +        "omit leading `./' from config file names such as `$local',"
 +        . "\nas not all make implementations treat `file' and `./file' equally")
        if ($local =~ /^\.\//);
        my $input = locate_am @rest;
        if ($input)
@@@ -5350,7 -5313,7 +5350,7 @@@ sub scan_autoconf_traces ($
          if ($seen_init_automake)
            {
              error ($where, "AC_CONFIG_AUX_DIR must be called before "
 -                   . "AM_INIT_AUTOMAKE...", partial => 1);
 +                   . "AM_INIT_AUTOMAKE ...", partial => 1);
              error ($seen_init_automake, "... AM_INIT_AUTOMAKE called here");
            }
          $config_aux_dir = $args[1];
@@@ -5586,7 -5549,7 +5586,7 @@@ sub scan_autoconf_files (
              . "should verify that $configure_ac invokes AM_INIT_AUTOMAKE,"
              . "\nthat aclocal.m4 is present in the top-level directory,\n"
              . "and that aclocal.m4 was recently regenerated "
 -            . "(using aclocal).");
 +            . "(using aclocal)");
      }
    else
      {
              error ($seen_init_automake,
                     "your implementation of AM_INIT_AUTOMAKE comes from " .
                     "an\nold Automake version.  You should recreate " .
 -                   "aclocal.m4\nwith aclocal and run automake again.\n",
 +                   "aclocal.m4\nwith aclocal and run automake again",
                     # $? = 63 is used to indicate version mismatch to missing.
                     exit_code => 63);
            }
            {
              error ($seen_init_automake,
                     "no proper implementation of AM_INIT_AUTOMAKE was " .
 -                   "found,\nprobably because aclocal.m4 is missing...\n" .
 +                   "found,\nprobably because aclocal.m4 is missing.\n" .
                     "You should run aclocal to create this file, then\n" .
 -                   "run automake again.\n");
 +                   "run automake again");
            }
        }
      }
@@@ -6402,7 -6365,7 +6402,7 @@@ sub cond_stack_if ($$$
          my $mac = $_am_macro_for_cond{$cond};
          $text .= "\n  The usual way to define `$cond' is to add ";
          $text .= ($mac =~ / /) ? $mac : "`$mac'";
 -        $text .= "\n  to `$configure_ac' and run `aclocal' and `autoconf' again.";
 +        $text .= "\n  to `$configure_ac' and run `aclocal' and `autoconf' again";
          # These warnings appear in Automake files (depend2.am),
          # so there is no need to display them more than once:
          $scope = US_GLOBAL;
@@@ -7098,7 -7061,6 +7098,7 @@@ sub make_paragraphs ($%
  
                 'XZ'          => !! option 'dist-xz',
                 'LZMA'        => !! option 'dist-lzma',
 +               'LZIP'        => !! option 'dist-lzip',
                 'BZIP2'       => !! option 'dist-bzip2',
                 'COMPRESS'    => !! option 'dist-tarZ',
                 'GZIP'        =>  ! option 'no-dist-gzip',
@@@ -7880,7 -7842,7 +7880,7 @@@ sub require_file_internal ($$$@
                          $trailer2 = "\n    Consider adding the COPYING file"
                                    . " to the version control system"
                                    . "\n    for your code, to avoid questions"
 -                                  . " about which license your project uses.";
 +                                  . " about which license your project uses";
                        }
  
                      # Windows Perl will hang if we try to delete a
                          # the top level Makefile.  Furthermore Automake
                          # hasn't been asked to create the Makefile.in
                          # that distributes the aux dir files.
 -                        error ($where, 'Please make a full run of automake'
 -                               . " so $fullfile gets distributed.");
 +                        error ($where, 'please rerun automake without '
 +                               . "Makefile arguments\n"
 +                               . "so $fullfile gets distributed");
                        }
                    }
                }
@@@ -8323,7 -8284,7 +8323,7 @@@ sub generate_makefile ($$
    if (-e $out_file)
      {
        unlink ($out_file)
 -      or fatal "cannot remove $out_file: $!\n";
 +      or fatal "cannot remove $out_file: $!";
      }
  
    my $gm_file = new Automake::XFile "> $out_file";
  # Print usage information.
  sub usage ()
  {
 -    print "Usage: $0 [OPTION] ... [Makefile]...
 +    print "Usage: $0 [OPTION]... [Makefile]...
  
  Generate Makefile.in for configure from Makefile.am.
  
@@@ -8507,7 -8468,7 +8507,7 @@@ sub parse_arguments (
  
    if (defined $output_directory)
      {
 -      msg 'obsolete', "`--output-dir' is deprecated\n";
 +      msg 'obsolete', "`--output-dir' is deprecated";
      }
    else
      {
        }
        elsif (exists $argopts{$ARGV[0]})
        {
 -        fatal ("option `$ARGV[0]' requires an argument\n"
 -               . "Try `$0 --help' for more information.");
 +        fatal ("option `$ARGV[0]' requires an argument.\n"
 +               . "Try `$0 --help' for more information");
        }
        else
        {
          fatal ("unrecognized option `$ARGV[0]'.\n"
 -               . "Try `$0 --help' for more information.");
 +               . "Try `$0 --help' for more information");
        }
      }
  
    my $errspec = 0;
    foreach my $arg (@ARGV)
      {
 -      fatal ("empty argument\nTry `$0 --help' for more information.")
 +      fatal ("empty argument\nTry `$0 --help' for more information")
        if ($arg eq '');
  
        # Handle $local:$input syntax.
diff --combined doc/automake.texi
@@@ -315,7 -315,7 +315,7 @@@ Support for Test Suite
  
  Miscellaneous Rules
  
 -* Tags::                        Interfacing to etags and mkid
 +* Tags::                        Interfacing to cscope, etags and mkid
  * Suffixes::                    Handling new file extensions
  * Multilibs::                   Support for multilibs.
  
@@@ -2163,6 -2163,10 +2163,10 @@@ copies are updated before each release
  source in case you need more recent versions.
  
  @table @code
+ @item ar-lib
+ This is a wrapper primarily for the Microsoft lib archiver, to make
+ it more POSIX-like.
  @item ansi2knr.c
  @itemx ansi2knr.1
  These two files are used for de-ANSI-fication support (obsolete
@@@ -2840,12 -2844,12 +2844,12 @@@ The Autoconf Manual}
  Automake will look for various helper scripts, such as
  @file{install-sh}, in the directory named in this macro invocation.
  @c This list is accurate relative to version 1.8
- (The full list of scripts is: @file{config.guess}, @file{config.sub},
- @file{depcomp}, @file{elisp-comp}, @file{compile}, @file{install-sh},
- @file{ltmain.sh}, @file{mdate-sh}, @file{missing}, @file{mkinstalldirs},
- @file{py-compile}, @file{texinfo.tex}, and @file{ylwrap}.)  Not all
- scripts are always searched for; some scripts will only be sought if the
- generated @file{Makefile.in} requires them.
+ (The full list of scripts is: @file{ar-lib}, @file{config.guess},
+ @file{config.sub}, @file{depcomp}, @file{elisp-comp}, @file{compile},
+ @file{install-sh}, @file{ltmain.sh}, @file{mdate-sh}, @file{missing},
+ @file{mkinstalldirs}, @file{py-compile}, @file{texinfo.tex}, and
+ @file{ylwrap}.)  Not all scripts are always searched for; some scripts
will only be sought if the generated @file{Makefile.in} requires them.
  
  If @code{AC_CONFIG_AUX_DIR} is not given, the scripts are looked for in
  their standard locations.  For @file{mdate-sh},
@@@ -8447,11 -8451,6 +8451,11 @@@ frequently smaller than gzipped archive
  Generate a gzip tar archive of the distribution.
  @trindex dist-gzip
  
 +@item @code{dist-lzip}
 +Generate an @samp{lzip} tar archive of the distribution.  @command{lzip}
 +archives are frequently smaller than @command{bzip2}-compressed archives.
 +@trindex dist-lzip
 +
  @item @code{dist-lzma}
  Generate an @samp{lzma} tar archive of the distribution.  @command{lzma}
  archives are frequently smaller than @command{bzip2}-compressed archives.
@@@ -9002,12 -9001,6 +9006,12 @@@ Cause @command{dejagnu}-specific rules 
  Hook @code{dist-bzip2} to @code{dist}.
  @trindex dist-bzip2
  
 +@item @option{dist-lzip}
 +@cindex Option, @option{dist-lzip}
 +@opindex dist-lzip
 +Hook @code{dist-lzip} to @code{dist}.
 +@trindex dist-lzip
 +
  @item @option{dist-lzma}
  @cindex Option, @option{dist-lzma}
  @opindex dist-lzma
@@@ -9280,8 -9273,7 +9284,8 @@@ In order to use this option with C sour
  These three mutually exclusive options select the tar format to use
  when generating tarballs with @samp{make dist}.  (The tar file created
  is then compressed according to the set of @option{no-dist-gzip},
 -@option{dist-bzip2}, @option{dist-xz} and @option{dist-tarZ} options in use.)
 +@option{dist-bzip2}, @option{dist-lzip}, @option{dist-tarZ} and
 +@option{dist-xz} options in use.)
  
  These options must be passed as arguments to @code{AM_INIT_AUTOMAKE}
  (@pxref{Macros}) because they can require additional configure checks.
@@@ -9353,7 -9345,7 +9357,7 @@@ the @code{AM_INIT_AUTOMAKE} macro in @f
  There are a few rules and variables that didn't fit anywhere else.
  
  @menu
 -* Tags::                        Interfacing to etags and mkid
 +* Tags::                        Interfacing to cscope, etags and mkid
  * Suffixes::                    Handling new file extensions
  * Multilibs::                   Support for multilibs.
  @end menu
@@@ -9415,14 -9407,6 +9419,14 @@@ Automake will also generate an @code{ID
  directory-by-directory basis.
  @trindex id
  
 +Similarly, the @code{cscope} rule will create a list of all the source
 +files in the tree and run @command{cscope} to build an inverted index
 +database.  The variable @code{CSCOPE} is the name of the program to invoke
 +(by default @command{cscope}); @code{CSCOPEFLAGS} and
 +@code{CSCOPE_ARGS} can be used by the user to pass additional flags and
 +file names respectively, while @code{AM_CSCOPEFLAGS} can be used by the
 +@file{Makefile.am}.
 +
  Finally, Automake also emits rules to support the
  @uref{http://www.gnu.org/software/global/, GNU Global Tags program}.
  The @code{GTAGS} rule runs Global Tags and puts the
@@@ -12963,4 -12947,4 +12967,4 @@@ parentheses is the number of generated 
  @c  LocalWords:  LTALLOCA MALLOC malloc memcmp strdup alloca libcompat xyz DFOO
  @c  LocalWords:  unprefixed buildable preprocessed DBAZ DDATADIR WARNINGCFLAGS
  @c  LocalWords:  LIBFOOCFLAGS LIBFOOLDFLAGS ftable testSubDir obj LIBTOOLFLAGS
 -@c  LocalWords:  barexec Pinard's automatize initialize lzma xz
 +@c  LocalWords:  barexec Pinard's automatize initialize lzip lzma xz cscope
diff --combined lib/Makefile.in
@@@ -1,4 -1,4 +1,4 @@@
 -# Makefile.in generated by automake 1.11 from Makefile.am.
 +# Makefile.in generated by automake 1.11a from Makefile.am.
  # @configure_input@
  
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@@@ -15,7 -15,8 +15,8 @@@
  
  @SET_MAKE@
  
- # Copyright (C) 2001, 2003, 2004, 2009 Free Software Foundation, Inc.
+ # Copyright (C) 2001, 2003, 2004, 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
@@@ -51,8 -52,8 +52,8 @@@ build_triplet = @build
  subdir = lib
  DIST_COMMON = $(dist_pkgvdata_DATA) $(dist_script_DATA) \
        $(srcdir)/Makefile.am $(srcdir)/Makefile.in COPYING INSTALL \
-       ansi2knr.1 ansi2knr.c compile config.guess config.sub depcomp \
-       elisp-comp install-sh mdate-sh missing mkinstalldirs \
+       ansi2knr.1 ansi2knr.c ar-lib compile config.guess config.sub \
+       depcomp elisp-comp install-sh mdate-sh missing mkinstalldirs \
        py-compile texinfo.tex ylwrap
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  am__aclocal_m4_deps = $(top_srcdir)/m4/amversion.m4 \
        $(top_srcdir)/m4/install-sh.m4 $(top_srcdir)/m4/lead-dot.m4 \
        $(top_srcdir)/m4/missing.m4 $(top_srcdir)/m4/mkdirp.m4 \
        $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \
 -      $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/strip.m4 \
 -      $(top_srcdir)/m4/substnot.m4 $(top_srcdir)/m4/tar.m4 \
 -      $(top_srcdir)/configure.ac
 +      $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/silent.m4 \
 +      $(top_srcdir)/m4/strip.m4 $(top_srcdir)/m4/substnot.m4 \
 +      $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac
  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
  mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
  CONFIG_CLEAN_FILES =
  CONFIG_CLEAN_VPATH_FILES =
 +AM_V_GEN = $(am__v_GEN_$(V))
 +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
 +am__v_GEN_0 = @echo "  GEN     " $@;
 +AM_V_at = $(am__v_at_$(V))
 +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
 +am__v_at_0 = @
  SOURCES =
  DIST_SOURCES =
  RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
@@@ -142,7 -137,6 +143,7 @@@ am__relativize = 
    reldir="$$dir2"
  ACLOCAL = @ACLOCAL@
  AMTAR = @AMTAR@
 +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
  APIVERSION = @APIVERSION@
  AUTOCONF = @AUTOCONF@
  AUTOHEADER = @AUTOHEADER@
@@@ -238,7 -232,7 +239,7 @@@ dist_pkgvdata_DATA = COPYING INSTALL te
  scriptdir = $(pkgvdatadir)
  dist_script_DATA = config.guess config.sub install-sh mdate-sh missing \
    mkinstalldirs elisp-comp ylwrap acinstall depcomp compile py-compile \
-   symlink-tree
+   symlink-tree ar-lib
  
  EXTRA_DIST = gnupload
  all: all-recursive
@@@ -384,10 -378,6 +385,10 @@@ ctags-recursive
        list='$(SUBDIRS)'; for subdir in $$list; do \
          test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
        done
 +cscopelist-recursive:
 +      list='$(SUBDIRS)'; for subdir in $$list; do \
 +        test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
 +      done
  
  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
@@@ -451,20 -441,6 +452,20 @@@ GTAGS
          && $(am__cd) $(top_srcdir) \
          && gtags -i $(GTAGS_ARGS) "$$here"
  
 +cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
 +      list='$(SOURCES) $(HEADERS) $(LISP)'; \
 +      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
  
@@@ -626,24 -602,22 +627,24 @@@ ps-am
  
  uninstall-am: uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA
  
 -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
 -      install-am install-data-am install-strip tags-recursive
 +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
 +      cscopelist-recursive ctags-recursive install-am \
 +      install-data-am install-strip tags-recursive
  
  .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
 -      all all-am check check-am clean clean-generic ctags \
 -      ctags-recursive distclean distclean-generic distclean-tags \
 -      distdir dvi dvi-am html html-am info info-am install \
 -      install-am install-data install-data-am install-data-hook \
 -      install-dist_pkgvdataDATA install-dist_scriptDATA 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 installcheck-local \
 -      installdirs installdirs-am maintainer-clean \
 -      maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
 -      pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
 +      all all-am check check-am clean clean-generic cscopelist \
 +      cscopelist-recursive ctags ctags-recursive distclean \
 +      distclean-generic distclean-tags distdir dvi dvi-am html \
 +      html-am info info-am install install-am install-data \
 +      install-data-am install-data-hook install-dist_pkgvdataDATA \
 +      install-dist_scriptDATA 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 installcheck-local installdirs \
 +      installdirs-am maintainer-clean maintainer-clean-generic \
 +      mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
 +      tags-recursive uninstall uninstall-am \
        uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA
  
  
diff --combined tests/Makefile.am
@@@ -26,30 -26,13 +26,30 @@@ txinfo5.tes
  include $(srcdir)/parallel-tests.am
  
  $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
 -      (cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
 +      $(AM_V_GEN)(cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
  
 -$(parallel_tests): $(parallel_tests:-p.test=.test) Makefile.am
 -      input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
 -      sed 's|^\. \./defs.*|parallel_tests=yes; &|' \
 -        < $(srcdir)/$$input >$@
 -      chmod a+rx $@
 +$(parallel_tests): Makefile.am
 +      $(AM_V_at)rm -f $@ $@-t
 +      $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
 +      { echo '#!/bin/sh'; \
 +        echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
 +        echo; \
 +        echo '# Ensure proper definition of $$srcdir.'; \
 +        echo 'am_skip_defs=yes'; \
 +        echo '. ./defs || exit 99'; \
 +        echo 'test -n "$$srcdir" || exit 99 # sanity check'; \
 +        echo; \
 +        echo "# Run the test with Automake's parallel-tests driver enabled."; \
 +        echo 'parallel_tests=yes'; \
 +        echo "# In the spirit of VPATH, we prefer a test in the build tree"; \
 +        echo "# over one in the source tree."; \
 +        echo "if test -f \"./$$input\"; then"; \
 +        echo "  . \"./$$input\""; \
 +        echo 'else'; \
 +        echo "  . \"\$$srcdir/$$input\""; \
 +        echo 'fi'; \
 +      } > $@-t
 +      $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
  
  MAINTAINERCLEANFILES = $(parallel_tests)
  
@@@ -76,7 -59,6 +76,7 @@@ acloca19.test 
  acloca20.test \
  acloca21.test \
  acloca22.test \
 +acloca23.test \
  acoutnoq.test \
  acoutpt.test \
  acoutpt2.test \
@@@ -106,6 -88,7 +106,7 @@@ ansi7.test 
  ansi8.test \
  ansi9.test \
  ansi10.test \
+ ar-lib.test \
  ar.test \
  ar2.test \
  asm.test \
@@@ -129,7 -112,6 +130,7 @@@ badopt.test 
  badprog.test \
  block.test \
  bsource.test \
 +candist.test \
  canon.test \
  canon2.test \
  canon3.test \
@@@ -226,7 -208,6 +227,7 @@@ cond42.test 
  cond43.test \
  cond44.test \
  cond45.test \
 +cond46.test \
  condd.test \
  condhook.test \
  condinc.test \
@@@ -252,9 -233,6 +253,9 @@@ confsub.test 
  confvar.test \
  confvar2.test \
  copy.test \
 +cscope.test \
 +cscope2.test \
 +cscope3.test \
  ctarget1.test \
  cxx.test \
  cxx2.test \
@@@ -326,7 -304,6 +327,7 @@@ exeext4.test 
  exsource.test \
  ext.test \
  ext2.test \
 +ext3.test \
  extra.test \
  extra2.test \
  extra3.test \
@@@ -335,7 -312,6 +336,7 @@@ extra5.test 
  extra6.test \
  extra7.test \
  extra8.test \
 +extra9.test \
  extra10.test \
  extra11.test \
  extra12.test \
@@@ -461,7 -437,6 +462,7 @@@ link_fc.test 
  link_fccxx.test \
  link_fcxx.test \
  link_f_only.test \
 +link_override.test \
  lisp2.test \
  lisp3.test \
  lisp4.test \
@@@ -481,7 -456,6 +482,7 @@@ ltinstloc.test 
  ltlibobjs.test \
  ltlibsrc.test \
  ltorder.test \
 +lzip.test \
  lzma.test \
  maintclean.test \
  make.test \
@@@ -537,7 -511,6 +538,7 @@@ number.test 
  objc.test \
  objc2.test \
  obsolete.test \
 +oldvars.test \
  order.test \
  outdir.test \
  output.test \
@@@ -646,7 -619,6 +647,7 @@@ silent4.test 
  silent5.test \
  silent6.test \
  silent7.test \
 +silent8.test \
  silent9.test \
  silentcxx.test \
  silentf77.test \
@@@ -708,7 -680,6 +709,7 @@@ subst.test 
  subst2.test \
  subst3.test \
  subst4.test \
 +subst5.test \
  substref.test \
  substre2.test \
  substtarg.test \
@@@ -729,7 -700,6 +730,7 @@@ symlink.test 
  symlink2.test \
  syntax.test \
  tags.test \
 +tags2.test \
  tagsub.test \
  tar.test \
  tar2.test \
@@@ -794,7 -764,6 +795,7 @@@ warnopts.test 
  werror.test \
  werror2.test \
  werror3.test \
 +werror4.test \
  whoami.test \
  xsource.test \
  xz.test \
@@@ -815,7 -784,7 +816,7 @@@ $(parallel_tests
  EXTRA_DIST = ChangeLog-old gen-parallel-tests $(TESTS)
  
  # Each test case depends on defs, aclocal, and automake.
 -check_SCRIPTS = defs aclocal-$(APIVERSION) automake-$(APIVERSION)
 +$(TEST_LOGS): defs aclocal-$(APIVERSION) automake-$(APIVERSION)
  
  clean-local: clean-local-check
  .PHONY: clean-local-check
diff --combined tests/Makefile.in
@@@ -1,4 -1,4 +1,4 @@@
 -# Makefile.in generated by automake 1.11 from Makefile.am.
 +# Makefile.in generated by automake 1.11a from Makefile.am.
  # @configure_input@
  
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@@@ -58,20 -58,14 +58,20 @@@ am__aclocal_m4_deps = $(top_srcdir)/m4/
        $(top_srcdir)/m4/install-sh.m4 $(top_srcdir)/m4/lead-dot.m4 \
        $(top_srcdir)/m4/missing.m4 $(top_srcdir)/m4/mkdirp.m4 \
        $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \
 -      $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/strip.m4 \
 -      $(top_srcdir)/m4/substnot.m4 $(top_srcdir)/m4/tar.m4 \
 -      $(top_srcdir)/configure.ac
 +      $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/silent.m4 \
 +      $(top_srcdir)/m4/strip.m4 $(top_srcdir)/m4/substnot.m4 \
 +      $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac
  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 =
 +AM_V_GEN = $(am__v_GEN_$(V))
 +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
 +am__v_GEN_0 = @echo "  GEN     " $@;
 +AM_V_at = $(am__v_at_$(V))
 +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
 +am__v_at_0 = @
  SOURCES =
  DIST_SOURCES =
  # If stdout is a non-dumb tty, use colors.  If test -t is not supported,
@@@ -161,7 -155,6 +161,7 @@@ TEST_LOGS_TMP = $(TEST_LOGS:.log=.log-t
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  ACLOCAL = @ACLOCAL@
  AMTAR = @AMTAR@
 +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
  APIVERSION = @APIVERSION@
  AUTOCONF = @AUTOCONF@
  AUTOHEADER = @AUTOHEADER@
@@@ -257,12 -250,29 +257,12 @@@ cond17.test                                     
  gcj6.test                                     \
  txinfo5.test
  
 -parallel_tests = \
 -check-p.test \
 -check10-p.test \
 -check11-p.test \
 -check2-p.test \
 -check3-p.test \
 -check4-p.test \
 -check5-p.test \
 -check6-p.test \
 -check7-p.test \
 -check8-p.test \
 -check9-p.test \
 -color-p.test \
 -color2-p.test \
 -comment9-p.test \
 -dejagnu-p.test \
 -exeext4-p.test \
 -maken3-p.test \
 -maken4-p.test \
 -pr401-p.test \
 -pr401b-p.test \
 -pr401c-p.test
 -
 +parallel_tests = check-p.test check10-p.test check11-p.test \
 +      check2-p.test check3-p.test check4-p.test check5-p.test \
 +      check6-p.test check7-p.test check8-p.test check9-p.test \
 +      color-p.test color2-p.test comment9-p.test dejagnu-p.test \
 +      exeext4-p.test maken3-p.test maken4-p.test pr401-p.test \
 +      pr401b-p.test pr401c-p.test
  MAINTAINERCLEANFILES = $(parallel_tests)
  TESTS = \
  aclibobj.test \
@@@ -287,7 -297,6 +287,7 @@@ acloca19.test 
  acloca20.test \
  acloca21.test \
  acloca22.test \
 +acloca23.test \
  acoutnoq.test \
  acoutpt.test \
  acoutpt2.test \
@@@ -317,6 -326,7 +317,7 @@@ ansi7.test 
  ansi8.test \
  ansi9.test \
  ansi10.test \
+ ar-lib.test \
  ar.test \
  ar2.test \
  asm.test \
@@@ -340,7 -350,6 +341,7 @@@ badopt.test 
  badprog.test \
  block.test \
  bsource.test \
 +candist.test \
  canon.test \
  canon2.test \
  canon3.test \
@@@ -437,7 -446,6 +438,7 @@@ cond42.test 
  cond43.test \
  cond44.test \
  cond45.test \
 +cond46.test \
  condd.test \
  condhook.test \
  condinc.test \
@@@ -463,9 -471,6 +464,9 @@@ confsub.test 
  confvar.test \
  confvar2.test \
  copy.test \
 +cscope.test \
 +cscope2.test \
 +cscope3.test \
  ctarget1.test \
  cxx.test \
  cxx2.test \
@@@ -537,7 -542,6 +538,7 @@@ exeext4.test 
  exsource.test \
  ext.test \
  ext2.test \
 +ext3.test \
  extra.test \
  extra2.test \
  extra3.test \
@@@ -546,7 -550,6 +547,7 @@@ extra5.test 
  extra6.test \
  extra7.test \
  extra8.test \
 +extra9.test \
  extra10.test \
  extra11.test \
  extra12.test \
@@@ -672,7 -675,6 +673,7 @@@ link_fc.test 
  link_fccxx.test \
  link_fcxx.test \
  link_f_only.test \
 +link_override.test \
  lisp2.test \
  lisp3.test \
  lisp4.test \
@@@ -692,7 -694,6 +693,7 @@@ ltinstloc.test 
  ltlibobjs.test \
  ltlibsrc.test \
  ltorder.test \
 +lzip.test \
  lzma.test \
  maintclean.test \
  make.test \
@@@ -748,7 -749,6 +749,7 @@@ number.test 
  objc.test \
  objc2.test \
  obsolete.test \
 +oldvars.test \
  order.test \
  outdir.test \
  output.test \
@@@ -857,7 -857,6 +858,7 @@@ silent4.test 
  silent5.test \
  silent6.test \
  silent7.test \
 +silent8.test \
  silent9.test \
  silentcxx.test \
  silentf77.test \
@@@ -919,7 -918,6 +920,7 @@@ subst.test 
  subst2.test \
  subst3.test \
  subst4.test \
 +subst5.test \
  substref.test \
  substre2.test \
  substtarg.test \
@@@ -940,7 -938,6 +941,7 @@@ symlink.test 
  symlink2.test \
  syntax.test \
  tags.test \
 +tags2.test \
  tagsub.test \
  tar.test \
  tar2.test \
@@@ -1005,7 -1002,6 +1006,7 @@@ warnopts.test 
  werror.test \
  werror2.test \
  werror3.test \
 +werror4.test \
  whoami.test \
  xsource.test \
  xz.test \
@@@ -1024,6 -1020,9 +1025,6 @@@ yflags2.test 
  $(parallel_tests)
  
  EXTRA_DIST = ChangeLog-old gen-parallel-tests $(TESTS)
 -
 -# Each test case depends on defs, aclocal, and automake.
 -check_SCRIPTS = defs aclocal-$(APIVERSION) automake-$(APIVERSION)
  all: all-am
  
  .SUFFIXES:
@@@ -1070,8 -1069,6 +1071,8 @@@ TAGS
  ctags: CTAGS
  CTAGS:
  
 +cscope cscopelist:
 +
  
  # To be appended to the command running the test.  Handle the stdout
  # and stderr redirection, and catch the exit status.
@@@ -1224,7 -1221,6 +1225,7 @@@ recheck recheck-html
                  case $$line in FAIL*|XPASS*) echo $$f;; esac;         \
                else echo $$f; fi;                                      \
              done | tr '\012\015' '  '`;                               \
 +      list=`echo "$$list" | sed 's/ *$$//'`;                          \
        $(MAKE) $(AM_MAKEFLAGS) $$target AM_MAKEFLAGS='$(AM_MAKEFLAGS) TEST_LOGS="'"$$list"'"'
  .test.log:
        @p='$<'; $(am__check_pre) $(TEST_LOG_COMPILE) "$$tst" $(am__check_post)
@@@ -1260,6 -1256,7 +1261,6 @@@ distdir: $(DISTFILES
          fi; \
        done
  check-am: all-am
 -      $(MAKE) $(AM_MAKEFLAGS) $(check_SCRIPTS)
        $(MAKE) $(AM_MAKEFLAGS) check-TESTS
  check: check-am
  all-am: Makefile
@@@ -1374,56 -1371,15 +1375,56 @@@ uninstall-am
        maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
        pdf-am ps ps-am recheck recheck-html uninstall uninstall-am
  
 +check-p.log: check.test
 +check10-p.log: check10.test
 +check11-p.log: check11.test
 +check2-p.log: check2.test
 +check3-p.log: check3.test
 +check4-p.log: check4.test
 +check5-p.log: check5.test
 +check6-p.log: check6.test
 +check7-p.log: check7.test
 +check8-p.log: check8.test
 +check9-p.log: check9.test
 +color-p.log: color.test
 +color2-p.log: color2.test
 +comment9-p.log: comment9.test
 +dejagnu-p.log: dejagnu.test
 +exeext4-p.log: exeext4.test
 +maken3-p.log: maken3.test
 +maken4-p.log: maken4.test
 +pr401-p.log: pr401.test
 +pr401b-p.log: pr401b.test
 +pr401c-p.log: pr401c.test
  
  $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
 -      (cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
 +      $(AM_V_GEN)(cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
 +
 +$(parallel_tests): Makefile.am
 +      $(AM_V_at)rm -f $@ $@-t
 +      $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
 +      { echo '#!/bin/sh'; \
 +        echo '# DO NOT EDIT!  GENERATED AUTOMATICALLY!'; \
 +        echo; \
 +        echo '# Ensure proper definition of $$srcdir.'; \
 +        echo 'am_skip_defs=yes'; \
 +        echo '. ./defs || exit 99'; \
 +        echo 'test -n "$$srcdir" || exit 99 # sanity check'; \
 +        echo; \
 +        echo "# Run the test with Automake's parallel-tests driver enabled."; \
 +        echo 'parallel_tests=yes'; \
 +        echo "# In the spirit of VPATH, we prefer a test in the build tree"; \
 +        echo "# over one in the source tree."; \
 +        echo "if test -f \"./$$input\"; then"; \
 +        echo "  . \"./$$input\""; \
 +        echo 'else'; \
 +        echo "  . \"\$$srcdir/$$input\""; \
 +        echo 'fi'; \
 +      } > $@-t
 +      $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
  
 -$(parallel_tests): $(parallel_tests:-p.test=.test) Makefile.am
 -      input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
 -      sed 's|^\. \./defs.*|parallel_tests=yes; &|' \
 -        < $(srcdir)/$$input >$@
 -      chmod a+rx $@
 +# Each test case depends on defs, aclocal, and automake.
 +$(TEST_LOGS): defs aclocal-$(APIVERSION) automake-$(APIVERSION)
  
  clean-local: clean-local-check
  .PHONY: clean-local-check