Ralf Wildenhues [Wed, 10 May 2006 20:47:36 +0000 (20:47 +0000)]
* lib/missing: Remove superfluous quotes. Replace all uses of
`[' by `test', for consistency, and for..
* tests/missing5.test: ..this new test.
* tests/Makefile.am: Update.
Ralf Wildenhues [Wed, 10 May 2006 20:37:36 +0000 (20:37 +0000)]
* lib/missing (sed_minuso, sed_output): New variables.
(autom4te, help2man, makeinfo): Use them. Unifies detection of
`-o FILE', `--output FILE', `--output=FILE', stricter regex.
Fixes `missing' to detect `--output' for help2man. Fixes
PR automake/483. Report by Dennis J. Linse.
(autom4te): Document in `missing --help'.
* THANKS: Update.
Paul Eggert [Mon, 24 Apr 2006 19:58:00 +0000 (19:58 +0000)]
* lib/install.sh: Handle --, and diagnose unknown options.
* m4/mkdirp.m4 (AM_PROG_MKDIR_P): In the normal case, set
mkdir_p='mkdir -p', not to 'mkdir -p --', for consistency with
the other ways that mkdir_p might be set.
* m4/amversion.in (_AM_AUTOCONF_VERSION): New macro.
(AM_SET_CURRENT_AUTOMAKE_VERSION): Call it.
* aclocal.in (trace_used_macros): Trace _AM_AUTOCONF_VERSION.
(write_aclocal): Output a check for Autoconf's version in aclocal.m4.
Doing so ensures that users cannot build configure and Makefiles
with two different autoconf versions. Report from Noah Misch.
* tests/missing4.test: New file.
* tests/Makefile.am (TESTS): Add it.
* lib/am/dejagnu.am (check-DEJAGNU): Fail when at least one test
failed, instead of when the last one failed (PR automake/488).
Report from Paul Lunau.
* tests/dejagnu4.test: Update to expose this.
* THANKS: Update.
* lib/am/check.am (check-TESTS): Match XFAIL_TESTS delimited by
TABs as well as spaces. Fixes PR automake/490.
* tests/check6.test: New test.
* tests/Makefile.am, THANKS: Update.
Report from Diab Jerius <djerius@cfa.harvard.edu>.
* lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
description; eliminate the duplicate error message.
* doc/automake.texi (@direntry): `Invoking Automake' is the name
of the usage node for `automake'
* lib/Automake/Variable.pm (%_gen_varname): Fix typos in the
comment.
* lib/Automake/Variable.pm (_hash_varname, _hash_values): New functions.
(_gen_varname): Use _hash_values, and return a flag indicating whether
the variable name was generated or reused.
(transform_variable_recursively): Do not redefine variables that
are reused, and try to reuse the variable being transformed.
* tests/check2.test: Make sure TESTS hasn't been redefined.
* tests/check5.test, tests/exeext4.test: Make sure variables have
been reused.
* tests/subst2.test: Make sure bin_PROGRAMS gets rewritten.
* automake.in (%ignored_configure_vars): New variable.
(scan_autoconf_traces): Trace for _AM_SUBST_NOTMAKE and fill
%ignored_configure_vars.
(define_configure_variable): Declare ignored configure variables
as VAR_SILENT. Do not special-case AMDEPBACKSLASH and ANSI2KNR
w.r.t. VAR_SILENT.
* m4/substign.m4: New file.
* m4/Makefile.am (dist_m4data_DATA): Add substign.m4.
* m4/cond.m4: _AM_SUBST_IGNORE $1_TRUE and $1_FALSE (PR automake/477).
* m4/depend.m4: _AM_SUBST_IGNORE AMDEPBACKSLASH.
* m4/protos.m4: _AM_SUBST_IGNORE ANSI2KNR.
* tests/cond.test: Make sure TEST_FALSE and TEST_TRUE are not defined.
* tests/amsubst.test: New file.
* tests/Makefile.am (TESTS): Add it.
* automake.in (handle_single_transform): Preserve directories in
direct suffix rules.
* tests/suffix12.test: New test.
* tests/Makefile.am (TESTS): Add it.
Report from John Ratliff.
* aclocal.in ($m4_include_rx): Do not recognize `include', and
adjust scan_configure_dep and scan_file accordingly.
(scan_configure_dep): Do not search white lines.
(scan_file): Strip comments from current line after checking
for serial, so that aclocal does not trip on `m4_include' macros
in comments. Report from Mike Frysinger.
* tests/acloca21.test: New file.
* tests/Makefile.am (TESTS): Add it.
Ralf Wildenhues [Thu, 23 Mar 2006 06:35:15 +0000 (06:35 +0000)]
* automake.in (libtool_new_api): Fix a typo in the comment.
* lib/Automake/Makefile.am (Config.pm): Likewise.
* lib/am/depend2.am: Likewise.
* tests/xsource.test: With `set -e', `|| exit 1' is no longer
needed.
Ralf Wildenhues [Mon, 20 Mar 2006 20:31:26 +0000 (20:31 +0000)]
* m4/init.m4 (AM_INIT_AUTOMAKE): Add `_AM_DEPENDENCIES(OBJC)'
to `AC_PROG_OBJC' if provided, to fix Objective C depmode
handling.
* lib/Automake/Variable.pm (%_ac_macro_for_var): Add entries for
OBJC and OBJCFLAGS.
* tests/ext.test: Adjust.
* tests/objc.test, tests/objc2.test: New tests.
* tests/Makefile.am: Adjust.
* doc/automake.texi (Objective C Support): New node.
(Support for Other Languages): Adjust.
* NEWS: Update.
Ralf Wildenhues [Sun, 19 Mar 2006 05:45:33 +0000 (05:45 +0000)]
* tests/depcomp6.test, tests/depcomp7.test: New tests,
for general `depcomp' functionality, with and without
`subdir-objects', with and without `libtool'.
* tests/Makefile.am: Adjust.
Ralf Wildenhues [Sun, 19 Mar 2006 05:09:11 +0000 (05:09 +0000)]
* aclocal.in (write_aclocal): Unlink `aclocal.m4' before
writing into it, to break a symlinked file.
* tests/acloca20.test: New test.
* tests/Makefile.am: Updated.
Ralf Wildenhues [Sun, 19 Mar 2006 05:04:26 +0000 (05:04 +0000)]
Allow package trees (packages with subpackages) to share
common distributed auxiliary files (and directories) that
reside within a subpackage.
* lib/am/distdir.am (distdir %?TOPDIR_P%): Do not fail if
`$(distdir)' already exists.
(%?SUBDIRS%): Set `am__remove_distdir' to `:' to prevent
removal of subpackage trees for distribution.
* tests/subpkg3.test: New test.
* tests/Makefile.am: Update.
* automake.in (lang_c_rewrite): Make the AM_PROG_CC_C_O requirement
a 'portability' warning, so that people can ignore it. Suggested
by Ralf Wildenhues.
Append $(EXEEXT) to programs that may be listed in TESTS.
Report from Simon Josefsson.
* automake.in (%known_programs): New global.
(initialize_per_input): Reset it.
(append_exeext): Take a predicate as first argument to select
the filename to rewrite.
(handle_programs): Fill %known_programs.
(handle_tests): Append $(EXEEXT) to all tests that are in
%known_programs.
(am_install_var): Update call to append_exeext.
* doc/automake.texi (EXEEXT): TESTS is also rewritten.
(Tests): More about the difference between check_PROGRAMS and TESTS.
Give an example of TEST_ENVIRONMENT.
* tests/cond32.test: Augment with a nested condition.
* tests/exeext4.test: Also check TESTS.
* tests/check5.test: New file.
* tests/Makefile.am (TESTS): Add check5.test.
* doc/automake.texi (Linking, Program and Library Variables):
Mention the file extensions that usually appear in _DEPENDENCIES,
and point to BUILT_SOURCES and example of _DEPENDENCIES uses. A
couple of people have been listing sources files in _DEPENDENCIES
lately.
* automake.in (top_srcdir): New global.
(generate_makefile): Compute it.
(fill_dist_dirs): New function extracted from handle_dist.
(handle_dist, handle_configure): Use fill_dist_dirs.
* tests/distdir.test: Test for cases where $(top_srcdir) or
$(srcdir) appear in EXTRA_DIST. Report from Sander Niemeijer.
Paul Eggert [Tue, 13 Sep 2005 23:14:53 +0000 (23:14 +0000)]
* doc/automake.texi (limitations on file names): New section.
* lib/install-sh: Rewrite to support '*' in file names.
Also, tune so that we don't invoke so many commands in the usual case.
* tests/instspc.test: The "*" test is now fixed.
* lib/Automake/Variable.pm (require_variables): Mention aclocal's
search path when suggesting to add a macro in configure.ac.
People are confused when Automake suggests adding a macro (such as
AC_PROG_LIBTOOL) that is already in configure.ac.
* automake.in (require_file_internal): Suggest `automake --add-missing'
for missing files that can be installed.
* tests/library3.test: Adjust.
* tests/instspc.test: Major rewrite to test for many other
problematic file names, e.g., '$', '"', '('. Automake and
Autoconf can't handle many of them, so do not report a failure
if the usual candidates show up.
* automake.in (make_paragraphs): Do not define %TOPDIR%, now that
lib/am/header-vars.am no longer uses it.
* lib/am/libtool.am (distclean-am, distclean-libtool): Define
if TOPDIR_P is true, not TOPDIR.
Suggested by Stepan Kasal.
* lib/mkinstalldirs: Fix support for directory name with spaces if
`mkdir -p' does not work.
* tests/Makefile.am (TESTS): Add mkinst3.test.
* tests/mkinst3.test: New file.
Report from Noah Friedman.
* lib/mdate-sh: Avoid infinite loop with GNU ls when TIME_STYLE is set.
* tests/txinfo28.test: Set TIME_STYLE.
Report from Vincent Lefevre and James Youngman.
* lib/Automake/Variable.pm (define, _new): Remember the helper
variable created for the last conditional += on each variable, and
only append further += in the same condition to this last helper
variable, not to older helper variables. This way the order of
the items appended to the variable is preserved.
* tests/cond21.test: Adjust.
* tests/cond38.test: New file.
* tests/Makefile.am (TESTS): Add cond38.test.
Report from Ed Hartnett.
* automake.in (handle_footer): Do not output an unformatted
definition of SOURCES, it is already done correctly in
generate_makefile. This superfluous definition introduced long
lines in some Makefiles, hence breakages in tools with a limited
line length. Report from Mathias Froehlich.
* lib/am/texibuild.am (?GENERIC_INFO?%SOURCE_SUFFIX%%DEST_SUFFIX%):
Do not backup any file if makeinfo is not installed.
* lib/missing (makeinfo): Do not touch a missing info file.
* tests/txinfo30.test: New file.
* tests/Makefile.am (TESTS): Add txinfo30.test.
Report from Bob Proulx.
Fix PR automake/461:
* automake.in (require_build_directory): Canonize directories with
different name, such as `foo/bar' and `./foo//bar'.
* tests/subobj9.test: Augment to test that.
Report from Tom Tromey.
Support for remote LIBOBJS (and friends) with subdir-objects.
Fixes PR automake/401.
* automake.in (config_libobj_dir): New variable.
(scan_autoconf_traces): Set config_libobj_dir from AC_CONFIG_LIBOBJ_DIR.
(handle_LIBOBJS_or_ALLOCA, require_libsource_with_macro): New functions.
(handle_LIBOBJS, handle_ALLOCA): Use them. Adjust location of
dependency files, possibly in a subdirectory.
* tests/pr401.test, tests/pr401b.test, tests/pr401c.test: New tests.
* tests/Makefile.am (TESTS): Add them.
* doc/automake.texi (Optional) <AC_CONFIG_LIBOBJ_DIR>: Document.
(LIBOBJS): Document changes in behaviour of
LIBOBJS, ALLOCA, LTLIBOBJS & LTALLOCA in the presence of
subdir-objects and an invocation of AC_CONFIG_LIBOBJ_DIR.