platform/upstream/automake.git
20 years agoFix for PR automake/285:
Alexandre Duret-Lutz [Sun, 7 Mar 2004 12:36:54 +0000 (12:36 +0000)]
Fix for PR automake/285:
* automake.in (handle_ltlibraries): Keep track of installation
directories for each condition, then define a $(am_TARGET_rpath)
variable to hold the -rpath flags of Libtool libraries conditionally
installed in different directories.
* lib/Automake/DisjConditions.pm (merge): New function.
* tests/libtool6.test: Adjust.
* tests/libtool8.test: New file.
* tests/Makefile.am (TEST): Add libtool8.test.

20 years ago* lib/Automake/Variable.pm (traverse_recursively,
Alexandre Duret-Lutz [Sun, 7 Mar 2004 09:24:21 +0000 (09:24 +0000)]
* lib/Automake/Variable.pm (traverse_recursively,
_do_recursive_traversal): Honor the skip_ac_subst option.
* automake.in (handle_dist): Use skip_ac_subst.

20 years ago* Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
Alexandre Duret-Lutz [Sun, 29 Feb 2004 22:28:39 +0000 (22:28 +0000)]
* Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
~ftp/automake.
* lib/gnupload (Example): Update example.

20 years ago* lib/config-ml.in, lib/config.guess, lib/config.sub,
Alexandre Duret-Lutz [Sun, 29 Feb 2004 21:40:09 +0000 (21:40 +0000)]
* lib/config-ml.in, lib/config.guess, lib/config.sub,
lib/texinfo.tex: New upstream versions.

20 years ago* m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
Alexandre Duret-Lutz [Sun, 29 Feb 2004 21:26:45 +0000 (21:26 +0000)]
* m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
to create numbered dependencies.  This fixes a portability issue
when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
Reported by Mark Phillips.

20 years ago* automake.in (lang_yacc_target_hook): Use Automake::Rule::define
Alexandre Duret-Lutz [Sun, 29 Feb 2004 19:10:21 +0000 (19:10 +0000)]
* automake.in (lang_yacc_target_hook): Use Automake::Rule::define
so that rules for the same headers are not output twice.
* lib/Automake/Variable.pm (value_as_list_recursive): Do not
call `return' inside `map'.
* tests/cond30.test: Make sure `a.c' and `b.c' both appear
in the Makefile.in.
* tests/cond35.test, tests/cond36.test: New files.
* tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
Report from Roman Fietze.

20 years agoFix for PR/413:
Alexandre Duret-Lutz [Sun, 29 Feb 2004 16:26:12 +0000 (16:26 +0000)]
Fix for PR/413:
* lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
077 && mkdir' instead of `$(mkdir_p)'.  This prevents possible
symlink attacks reported by Stefan Nordhausen.

20 years ago* doc/automake.texi (Multiple Outputs): More text, based on
Alexandre Duret-Lutz [Mon, 16 Feb 2004 21:21:04 +0000 (21:21 +0000)]
* doc/automake.texi (Multiple Outputs): More text, based on
comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.

20 years ago* m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
Alexandre Duret-Lutz [Sun, 15 Feb 2004 21:14:23 +0000 (21:14 +0000)]
* m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
Solaris 8's mkdir is not thread-safe.
* lib/mkinstalldirs: Likewise.
* lib/install-sh: Abort when mkdir fails to create a directory.
Report from Nathanael Nerode.

20 years ago* aclocal.in (rel2abs): New function.
Alexandre Duret-Lutz [Sat, 7 Feb 2004 13:45:32 +0000 (13:45 +0000)]
* aclocal.in (rel2abs): New function.
(scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
the later does was introduced in Perl 5.6 so using it breaks with
Perl 5.005.
Report from Werner John.

20 years ago* doc/automake.texi (Future of aclocal): Make clearer that
Alexandre Duret-Lutz [Tue, 3 Feb 2004 22:53:22 +0000 (22:53 +0000)]
* doc/automake.texi (Future of aclocal): Make clearer that
it's ok to install macros into /usr/share/aclocal/.

20 years ago* tests/lisp.test: Delete (pointless).
Alexandre Duret-Lutz [Sun, 1 Feb 2004 18:14:05 +0000 (18:14 +0000)]
* tests/lisp.test: Delete (pointless).
* tests/Makefile.am (TESTS): Remove lisp.test.

20 years ago* lib/Automake/Variable.pm (transform_variable_recursively):
Alexandre Duret-Lutz [Sun, 1 Feb 2004 18:06:51 +0000 (18:06 +0000)]
* lib/Automake/Variable.pm (transform_variable_recursively):
Define rewritten variables in all conditions not *covered* by user
definitions, not simply in conditions without a previous
definition.
* tests/cond34.test: New file.
* tests/Makefile.am (TESTS): Add cond34.test.
Report from Elena A. Vengerova

20 years ago* doc/automake.texi (Multiple Outputs): Typo.
Alexandre Duret-Lutz [Sun, 1 Feb 2004 16:28:50 +0000 (16:28 +0000)]
* doc/automake.texi (Multiple Outputs): Typo.

20 years ago* doc/automake.texi (Emacs Lisp): Typos.
Alexandre Duret-Lutz [Sun, 1 Feb 2004 12:58:06 +0000 (12:58 +0000)]
* doc/automake.texi (Emacs Lisp): Typos.

20 years agoSupport for conditional _LISP.
Alexandre Duret-Lutz [Sun, 1 Feb 2004 12:54:02 +0000 (12:54 +0000)]
Support for conditional _LISP.
* automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
from $(am__ELCFILES).
* lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
* tests/lisp6.test: New file.
* tests/Makefile.am (TESTS): Add it.

20 years ago* automake.in (handle_emacs_lisp): Define $(ELCFILES) as
Alexandre Duret-Lutz [Sun, 1 Feb 2004 12:18:02 +0000 (12:18 +0000)]
* automake.in (handle_emacs_lisp): Define $(ELCFILES) as
$(am__ELCFILES), and always push it on @all.  Do not mention
elc-stamp.
* lib/am/lisp.am (.el.elc): Rewrite as ...
($(am__ELCFILES)): ... this, and depend on elc-stamp.
(elc-stamp): Make sure elc-stamp is older that all .elc files, as
explained in the manual entry below.

20 years ago* doc/automake.texi (multiple outputs): New node.
Alexandre Duret-Lutz [Sun, 1 Feb 2004 09:30:48 +0000 (09:30 +0000)]
* doc/automake.texi (multiple outputs): New node.

20 years ago* m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
Alexandre Duret-Lutz [Sat, 31 Jan 2004 14:34:42 +0000 (14:34 +0000)]
* m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
* tests/regex.test: New file.
* tests/Makefile.am (TESTS): Add regex.test.

20 years ago* Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
Alexandre Duret-Lutz [Wed, 28 Jan 2004 20:50:43 +0000 (20:50 +0000)]
* Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
* lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
installation paths in install, uninstall, and installcheck rules,
as well as in am__installdirs variables.  This is for the sake
of paths containing spaces.
* lib/am/install.am (installdirs-am, installdirs): Do not try
to create "" directories.
* test/instspc.test: New file.
* test/Makefile.am (TESTS): Add instspc.test.
Report from James Amundson.

20 years ago* doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
Alexandre Duret-Lutz [Wed, 28 Jan 2004 17:08:33 +0000 (17:08 +0000)]
* doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
(Extending): Make it a subsection of Not Enough.

20 years ago* lib/gnupload (GPG): Use an absolute path. Suggestion from Gary
Alexandre Duret-Lutz [Wed, 28 Jan 2004 16:18:21 +0000 (16:18 +0000)]
* lib/gnupload (GPG): Use an absolute path.  Suggestion from Gary
V. Vaughan.
(passphrase): Unset it this variable before using it, in case it
was exported.  Report from Scott James Remnant.

20 years ago* lib/gnupload (usage): Fix example.
Alexandre Duret-Lutz [Sun, 25 Jan 2004 13:55:50 +0000 (13:55 +0000)]
* lib/gnupload (usage): Fix example.
* Makefile.am (cvs-release): Fix call to gnupload.
From Jim Meyering.

20 years ago* lib/gnupload: New script.
Alexandre Duret-Lutz [Sat, 24 Jan 2004 19:22:10 +0000 (19:22 +0000)]
* lib/gnupload: New script.
* lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
* Makefile.am (cvs-release): New target.

20 years ago* lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
Alexandre Duret-Lutz [Fri, 23 Jan 2004 22:47:56 +0000 (22:47 +0000)]
* lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
Fix python10.test.

20 years ago* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
Alexandre Duret-Lutz [Fri, 23 Jan 2004 22:43:19 +0000 (22:43 +0000)]
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
instead of `/xx/ s///p'; the latter fails when GNU sed is run with
POSIXLY_CORRECT.  Also strip superfluous -e.
Report from Miloslav Trmac.

20 years ago* tests/lex5.test: Sleep before calling AUTOMAKE the second time,
Alexandre Duret-Lutz [Thu, 22 Jan 2004 22:11:04 +0000 (22:11 +0000)]
* tests/lex5.test: Sleep before calling AUTOMAKE the second time,
this fixes a spurious failure reported by Andreas Schwab.  Also
make sure ylwrap is not installed unless needed, and exercise
--no-force.

20 years ago* doc/automake.texi (Dist): Document limitations of distcheck-hook
Alexandre Duret-Lutz [Tue, 20 Jan 2004 21:57:42 +0000 (21:57 +0000)]
* doc/automake.texi (Dist): Document limitations of distcheck-hook
and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
subpackages.

20 years ago* doc/automake.texi (Upgrading): New node.
Alexandre Duret-Lutz [Tue, 20 Jan 2004 21:48:03 +0000 (21:48 +0000)]
* doc/automake.texi (Upgrading): New node.

20 years ago* automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
Alexandre Duret-Lutz [Tue, 20 Jan 2004 20:22:39 +0000 (20:22 +0000)]
* automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
correctly called without arguments as evidenced by the libtool
demo directories.

20 years ago* tests/conflnk3.test: Skip if `test -e' does not work.
Alexandre Duret-Lutz [Tue, 13 Jan 2004 20:40:47 +0000 (20:40 +0000)]
* tests/conflnk3.test: Skip if `test -e' does not work.
Report from Lars Hecking.

20 years ago*** empty log message ***
Jim Meyering [Tue, 13 Jan 2004 13:25:15 +0000 (13:25 +0000)]
*** empty log message ***

20 years agoChange `\n \t' to `\n\t ' in `defaultIFS' assignment.
Jim Meyering [Tue, 13 Jan 2004 13:23:31 +0000 (13:23 +0000)]
Change `\n  \t' to `\n\t ' in `defaultIFS' assignment.
Remove spurious SPACEs before TABs.

20 years ago* lib/py-compile: Check input files after option processing.
Alexandre Duret-Lutz [Mon, 12 Jan 2004 22:56:49 +0000 (22:56 +0000)]
* lib/py-compile: Check input files after option processing.
Ensure --basedir has an argument.
* lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
if nothing was installed.
* tests/python10.test: New file.
* tests/Makefile.am (TESTS): Add python10.test.
Suggested by Sander Niemeijer.

20 years ago* tests/txinfo29.test: Remove autom4te.cache.
Alexandre Duret-Lutz [Mon, 12 Jan 2004 21:58:26 +0000 (21:58 +0000)]
* tests/txinfo29.test: Remove autom4te.cache.
Report from Greg Schafer.

20 years ago* lib/install-sh: Do not use "$@" in a context where it may be empty,
Alexandre Duret-Lutz [Mon, 12 Jan 2004 09:51:26 +0000 (09:51 +0000)]
* lib/install-sh: Do not use "$@" in a context where it may be empty,
for the sake of OSF1/Tru64's shell.
Report from He Li.

20 years ago* lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
Alexandre Duret-Lutz [Sun, 11 Jan 2004 20:50:32 +0000 (20:50 +0000)]
* lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
versions.

20 years ago2004-01-10 Peter Eisentraut <peter_e@gmx.net> (tiny change)
Alexandre Duret-Lutz [Sun, 11 Jan 2004 12:08:53 +0000 (12:08 +0000)]
2004-01-10  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)

* m4/as.m4 (AM_PROG_AS): Format and align help string more
consistently.
* m4/depend.m4 (AM_DEP_TRACK): Likewise.
* m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
* m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.

20 years ago* m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
Alexandre Duret-Lutz [Sun, 11 Jan 2004 12:05:12 +0000 (12:05 +0000)]
* m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
copyright years and serial.

20 years ago* m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
Alexandre Duret-Lutz [Sun, 11 Jan 2004 11:53:17 +0000 (11:53 +0000)]
* m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.

20 years ago* m4/as.m4 (AM_PROG_AS): Format and align help string more
Alexandre Duret-Lutz [Sat, 10 Jan 2004 23:12:46 +0000 (23:12 +0000)]
* m4/as.m4 (AM_PROG_AS): Format and align help string more
consistently.
* m4/depend.m4 (AM_DEP_TRACK): Likewise.
* m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
* m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.

20 years ago* m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use ? in sed regular
Alexandre Duret-Lutz [Sat, 10 Jan 2004 14:11:07 +0000 (14:11 +0000)]
* m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use ? in sed regular
expressions; it doesn't conform to POSIX.

20 years ago* automake.in (shadow_unconditionally): New function...
Alexandre Duret-Lutz [Sat, 10 Jan 2004 00:24:29 +0000 (00:24 +0000)]
* automake.in (shadow_unconditionally): New function...
(handle_source_transform): ... extracted from here.
(am_install_var): Use shadow_unconditionally to define %DISTVAR%.
* lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
* tests/cond33.test: Make sure all conditional files are distributed.
Report from Ralf Corsepius.

20 years ago* m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
Alexandre Duret-Lutz [Thu, 8 Jan 2004 23:32:11 +0000 (23:32 +0000)]
* m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
* lib/install-sh: Accept `install-sh -d' with 0..n arguments,
as well as `install-sh sources... dest' with multiple sources.
* tests/cond33.test: New file.
* tests/instsh2.test: Add more checks for install-sh.
* tests/transform.test: Test for installdirs.
* tests/Makefile.am (TESTS): Add cond33.test
Report from Ralf Corsepius.

20 years ago* automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
Alexandre Duret-Lutz [Thu, 8 Jan 2004 20:22:24 +0000 (20:22 +0000)]
* automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
do not look like DEST:SRC.
* tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).

20 years agoFix for PR automake/289:
Alexandre Duret-Lutz [Wed, 7 Jan 2004 21:58:14 +0000 (21:58 +0000)]
Fix for PR automake/289:
* automake.in (Automake::Struct::libtool_tag): New attribute.  Define
it for the language that have a Libtool tag.
(%libtool_tags): New variable.
(handle_languages, define_compiler_variable)
(define_linker_variable): Pass --tag=XXX to libtool if supported.
(scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
* tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
output.

20 years agoFix for PR automake/289:
Alexandre Duret-Lutz [Wed, 7 Jan 2004 21:56:49 +0000 (21:56 +0000)]
Fix for PR automake/289:
* automake.in (Automake::Struct::libtool_tag): New attribute.  Define
it for the language that have a Libtool tag.
(%libtool_tags): New variable.
(handle_languages, define_compiler_variable)
(define_linker_variable): Pass --tag=XXX to libtool if supported.
(scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
* tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
output.

20 years ago* lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
Alexandre Duret-Lutz [Wed, 7 Jan 2004 19:40:49 +0000 (19:40 +0000)]
* lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
config.status.lineno.

20 years ago* doc/automake.texi (Rebuilding): Typo.
Alexandre Duret-Lutz [Wed, 7 Jan 2004 19:30:45 +0000 (19:30 +0000)]
* doc/automake.texi (Rebuilding): Typo.

20 years ago* lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
Alexandre Duret-Lutz [Wed, 7 Jan 2004 19:26:55 +0000 (19:26 +0000)]
* lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.

20 years ago* THANKS: Add Bruce Korb.
Alexandre Duret-Lutz [Tue, 6 Jan 2004 22:31:17 +0000 (22:31 +0000)]
* THANKS: Add Bruce Korb.

20 years agoMimic Paul Eggert's changes to Autoconf.
Alexandre Duret-Lutz [Mon, 5 Jan 2004 22:21:31 +0000 (22:21 +0000)]
Mimic Paul Eggert's changes to Autoconf.
* Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
* lib/Automake/Makefile.am (Config.pm): Likewise.
* m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.

20 years ago* lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
Alexandre Duret-Lutz [Mon, 5 Jan 2004 21:49:14 +0000 (21:49 +0000)]
* lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
am__vpath_adj, and am__strip_dir.
* lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
* lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
$(am__vpath_adj_setup), and $(am__strip_dir) in install and
uninstall rules.  This fixes installation of nobase_ files in
VPATH setups with Sun and OSF1/Tru64 Make.
* lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
$(am__strip_dir) to simplify install and uninstall rules.
* tests/nobase.test: Augment to check installation from VPATH builds.

20 years ago* automake.in (%transformed_files): New variable.
Alexandre Duret-Lutz [Mon, 5 Jan 2004 09:02:06 +0000 (09:02 +0000)]
* automake.in (%transformed_files): New variable.
(initialize_per_input): Reset it.
(make_paragraphs): Fill %transformed_files, and define %FIRST%
each time a file is transformed for the first time.
(handle_configure): Do not define %FIRST_CONFIG_HIN%.
(am_install_var): Do not define %FIRST%.
* lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.

20 years ago* lib/texinfo.tex: New upstream version.
Alexandre Duret-Lutz [Sun, 4 Jan 2004 12:51:58 +0000 (12:51 +0000)]
* lib/texinfo.tex: New upstream version.

20 years ago* m4/mkdirp.m4: Do not use `-m 0755'. This overrides special bits
Alexandre Duret-Lutz [Sun, 4 Jan 2004 00:02:28 +0000 (00:02 +0000)]
* m4/mkdirp.m4: Do not use `-m 0755'.  This overrides special bits
and break setups where 775 directories are expected.  Just obey
umask as we did in the past.
Report from Harlan Stenn.

20 years ago* automake.in (scan_texinfo_file): Do not compare $outfile to ''
Alexandre Duret-Lutz [Sat, 3 Jan 2004 15:40:07 +0000 (15:40 +0000)]
* automake.in (scan_texinfo_file): Do not compare $outfile to ''
as $outfile might not be defined at all.

20 years ago* lib/Automake/Variable.pm (define): Rework the way we check
Alexandre Duret-Lutz [Sat, 3 Jan 2004 12:42:41 +0000 (12:42 +0000)]
* lib/Automake/Variable.pm (define): Rework the way we check
Automake variable definition.  Ensure consistent :=/+=/=
definitions only for variables that have been and are defined by
Automake, and make it an internal error.  Ignore Automake
attempts to touch a user variable, even with += assignments.
* tests/txinfo29.test: New file.
* tests/Makefile.am (TESTS): Add txinfo29.test.
Reported by Bruce Korb.

20 years ago * automake.in (handle_source_transform): Don't generate dist
Tom Tromey [Fri, 2 Jan 2004 21:38:07 +0000 (21:38 +0000)]
* automake.in (handle_source_transform): Don't generate dist
variables when no-dist is set.
(generate_makefile): Likewise.
* tests/nodist3.test: Ensure that DIST_SOURCES is not created,
and that dist target does not exist.
        Reported by Tom Fitzsimmons.

20 years ago* tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
Alexandre Duret-Lutz [Fri, 2 Jan 2004 19:25:21 +0000 (19:25 +0000)]
* tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
* tests/ltconv.test: Run automake with --add-missing, because
the CVS version of libtoolize no longer install config.sub and
config.guess by default.

20 years agoFix for PR automake/319:
Alexandre Duret-Lutz [Fri, 2 Jan 2004 15:55:17 +0000 (15:55 +0000)]
Fix for PR automake/319:
* aclocal.in (scan_m4_files): Scan configure.ac.
(trace_used_macros, write_aclocal): Remove configure.ac from the
list of files to include.
* tests/Makefile.am (TESTS): Add acloca15.test.
* tests/acloca15.test: New file.

20 years ago* aclocal.in (%file_includes): New variable.
Alexandre Duret-Lutz [Fri, 2 Jan 2004 14:53:48 +0000 (14:53 +0000)]
* aclocal.in (%file_includes): New variable.
(scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
(scan_file): Scan for included files, and process these files
recursively.  Fill %file_includes and %file_contents.  Return the
list of included files, not the contents.
(scan_m4_files): Adjust calls to scan_files.
(strip_redundant_includes): New function.
(trace_used_macros): Call it.
(write_aclocal): Likewise.  Also check the mtime of included files.
* tests/Makfile.am (TESTS): Add acloca14.test.
* tests/acloca14.test: New file.
Report from Phil Edwards.

20 years ago* automake.in (handle_languages): Do not define DEP_FILES.
Alexandre Duret-Lutz [Thu, 1 Jan 2004 21:57:24 +0000 (21:57 +0000)]
* automake.in (handle_languages): Do not define DEP_FILES.
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
files with $(DEPDIR) in their name instead of DEP_FILES.
* tests/depend.test, tests/depend4.test, tests/exsource.test:
Adjust.
Suggested by Tom Tromey.

20 years agoDo not output .lo rules for programs and static libraries objects,
Alexandre Duret-Lutz [Thu, 1 Jan 2004 18:54:20 +0000 (18:54 +0000)]
Do not output .lo rules for programs and static libraries objects,
and do not output .o/.obj rules for libtool libraries.  This is
about explicit rules only, not inference rules.
* automake.in (handle_single_transform_list): Rename as ...
(handle_single_transform): ... this.  Take a single file
to transform (it was only called this way) and accept a new
%transform argument.  Fill %lang_specific_files with list
references instead of strings, and append %transform to each
of these lists.
(define_objects_from_sources, handle_source_transform):
Take a %transform argument, and forward it to &handle_single_transform.
(handle_languages): Adjust to the new format of
%lang_specific_files, and honor its %transform part.
(handle_programs, handle_libraries, handle_ltlibraries): Override
%NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
(make_paragraphs): Define %NONLIBTOOL% by default.  Make sure
%transform settings override global settings.
* lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
* tests/libtool3.test: Augment to check Makefile.ins for unneeded
rules.
Suggested by Thomas Fitzsimmons.

20 years ago* automake.in, aclocal.in: Bump copyright years.
Alexandre Duret-Lutz [Thu, 1 Jan 2004 17:34:18 +0000 (17:34 +0000)]
* automake.in, aclocal.in: Bump copyright years.

20 years ago* automake.in (generate_makefile): Update misleading comment.
Alexandre Duret-Lutz [Wed, 31 Dec 2003 22:13:07 +0000 (22:13 +0000)]
* automake.in (generate_makefile): Update misleading comment.

20 years ago* automake.in (handle_languages): Define %DEPBASE% conditionally
Alexandre Duret-Lutz [Tue, 30 Dec 2003 23:49:58 +0000 (23:49 +0000)]
* automake.in (handle_languages): Define %DEPBASE% conditionally
on subdir-objects.  Define SUBDIROBJ.  Do not clean *_.c files
here ...
(lang_c_finish): ... do it here.
(handle_single_transform_list): Do not output specific rules for
subdir-objects files which are not renamed.  This should reduce
the size of Makefiles with lots of subdirectory sources.
* lib/depcomp: Simplify computation of dependency output, and use
DEPDIR.
* lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
to depcomp.  Compute depbase on-the-fly in generic fastdep rules
for subdir-objects.
* tests/ansi9.test: Do not grep for an explicit rule that
we no longer expect.  Really run $MAKE to make sure the chain
of rules works.
* tests/yacc5.test: Do not grep for an explicit rule that
we no longer expect.  Adjust to use set -e.

20 years ago* automake.in (@common_files): Move configure, configure.ac, and
Alexandre Duret-Lutz [Sat, 27 Dec 2003 15:39:45 +0000 (15:39 +0000)]
* automake.in (@common_files): Move configure, configure.ac, and
configure.in ...
(@common_sometimes): ... here so that these files do not appear
twice in DIST_COMMON.

20 years ago* automake.in (maybe_push_required_file): Add $(srcdir) in front
Alexandre Duret-Lutz [Sat, 27 Dec 2003 01:38:42 +0000 (01:38 +0000)]
* automake.in (maybe_push_required_file): Add $(srcdir) in front
a required files outside the current directory or its subdirectories.
* lib/am/distdir.am (distdir): Update comment.
Report from Nicolas Joly.

20 years ago* doc/automake.texi (@copying): Do not repeat the version.
Alexandre Duret-Lutz [Fri, 26 Dec 2003 11:30:38 +0000 (11:30 +0000)]
* doc/automake.texi (@copying): Do not repeat the version.
(Top): Use @insertcopying.  Add a @detailmenu, this works around
Emacs 21's inability to lookup indices in sub-nodes (reported
by Kevin Ryde).
(C++ Support, Assembly Support, Fortran 77 Support, Java Support,
Support for Other Languages, Preprocessing Fortran 77, Compiling
Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
is Chosen): Add missing descriptions in menus.
(Fortran 77 and Autoconf): Remove, this node was just saying "use
Autoconf 2.53 or greater".

20 years ago* NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
Alexandre Duret-Lutz [Fri, 26 Dec 2003 03:57:59 +0000 (03:57 +0000)]
* NEWS: s/Gettext 1.12.1/Gettext 0.12.1/

20 years ago* doc/automake.texi (Conditional Sources): Typo.
Alexandre Duret-Lutz [Thu, 25 Dec 2003 18:15:25 +0000 (18:15 +0000)]
* doc/automake.texi (Conditional Sources): Typo.

20 years ago* lib/Automake/Config.in: Require Exporter.
Alexandre Duret-Lutz [Thu, 25 Dec 2003 18:09:01 +0000 (18:09 +0000)]
* lib/Automake/Config.in: Require Exporter.
Report from Kevin Ryde (failure with Perl 5.005_03).

20 years ago* tests/aclocal6.test: Check for autom4te.cache only if it has
Alexandre Duret-Lutz [Mon, 15 Dec 2003 22:45:06 +0000 (22:45 +0000)]
* tests/aclocal6.test: Check for autom4te.cache only if it has
been created.
* tests/maintclean.test: Update comment.
Report from Bruno Haible.

20 years ago* tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
Alexandre Duret-Lutz [Mon, 15 Dec 2003 22:36:44 +0000 (22:36 +0000)]
* tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
Require texi2dvi-o.
Report from Václav Haisman.

20 years ago* configure.ac, NEWS: Bump version to 1.8a.
Alexandre Duret-Lutz [Wed, 10 Dec 2003 19:09:15 +0000 (19:09 +0000)]
* configure.ac, NEWS: Bump version to 1.8a.

20 years ago* configure.ac, NEWS: Bump version to 1.8.
Alexandre Duret-Lutz [Wed, 10 Dec 2003 19:06:17 +0000 (19:06 +0000)]
* configure.ac, NEWS: Bump version to 1.8.

20 years ago* lib/texinfo.tex: New upstream version.
Alexandre Duret-Lutz [Wed, 10 Dec 2003 18:03:58 +0000 (18:03 +0000)]
* lib/texinfo.tex: New upstream version.

20 years ago* Makefile.am (INSTALL): Copy the source from $(srcdir).
Alexandre Duret-Lutz [Wed, 10 Dec 2003 17:23:21 +0000 (17:23 +0000)]
* Makefile.am (INSTALL): Copy the source from $(srcdir).

20 years ago* lib/Automake/Rule.pm (define): Remove debugging traces.
Alexandre Duret-Lutz [Wed, 10 Dec 2003 17:20:06 +0000 (17:20 +0000)]
* lib/Automake/Rule.pm (define): Remove debugging traces.
Report from Akim Demaille.

20 years ago* Makefile.am (do_subst): Fix the substitution of @configure_input@.
Alexandre Duret-Lutz [Tue, 9 Dec 2003 21:24:12 +0000 (21:24 +0000)]
* Makefile.am (do_subst): Fix the substitution of @configure_input@.
(automake, aclocal): Create the output atomically and make it
read-only, as done in the Autoconf package.
* lib/Automake/Makefile.am (do_subst): Fix the substitution of
@configure_input@.
(Config.pm): Create the output atomically and make it read-only.
* m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
@configure_input@ and make the output read-only.
* lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
tests/automake.in, tests/defs.in: Add a @configure_input@ line.

20 years ago* doc/automake.texi (Local Macros, CVS): Typos.
Alexandre Duret-Lutz [Tue, 9 Dec 2003 18:20:07 +0000 (18:20 +0000)]
* doc/automake.texi (Local Macros, CVS): Typos.

20 years agotypo
Alexandre Duret-Lutz [Tue, 9 Dec 2003 09:49:50 +0000 (09:49 +0000)]
typo

20 years ago* lib/Automake/Variable.pm (hook): Use $$ as prototype, not $&.
Alexandre Duret-Lutz [Mon, 8 Dec 2003 18:00:02 +0000 (18:00 +0000)]
* lib/Automake/Variable.pm (hook): Use $$ as prototype, not $&.
Perl 5.6.0 will not accept a reference sub reference for the
latter.
* automake.in (var_SUFFIXES_trigger): Adjust registration via
Automake::Variabke::hook.
(handle_texinfo_helper): Make sure `inner_expand => 1' appears
on one line, so that Perl 5.6.0 does not complain about
inner_expand being a bare identifier.

20 years agocomplete previous ChangeLog entry
Alexandre Duret-Lutz [Fri, 5 Dec 2003 21:23:40 +0000 (21:23 +0000)]
complete previous ChangeLog entry

20 years ago* aclocal.in (check_acinclude): Output `warning:' in front
Alexandre Duret-Lutz [Fri, 5 Dec 2003 21:22:36 +0000 (21:22 +0000)]
* aclocal.in (check_acinclude): Output `warning:' in front
of warnings.
Report from Pavel Roskin.

20 years ago* TODO: Remove some old entries.
Alexandre Duret-Lutz [Thu, 4 Dec 2003 21:11:12 +0000 (21:11 +0000)]
* TODO: Remove some old entries.

20 years ago* doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
Alexandre Duret-Lutz [Thu, 4 Dec 2003 20:49:41 +0000 (20:49 +0000)]
* doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
and CONFIG_STATUS_DEPENDENCIES.  Move this sections later
in the manual since it's pretty advanced material.

20 years ago* automake.in ($config_header_location): Remove. Use
Alexandre Duret-Lutz [Thu, 4 Dec 2003 18:17:20 +0000 (18:17 +0000)]
* automake.in ($config_header_location): Remove.  Use
%ac_config_files_location instead.
(rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
at the top-level.
(handle_configure): Use rewrite_inputs_into_dependencies to
distribute and compute AC_CONFIG_HEADERS dependencies.
(scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
%ac_config_files_location.
* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
(%CONFIG_HIN%): ... this.  $(srcdir) is already added in
scan_autoconf_traces.
* tests/Makefile.am (TESTS): Add confh5.test.
* tests/confh5.test: New file.

20 years ago* tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
Alexandre Duret-Lutz [Thu, 4 Dec 2003 18:07:13 +0000 (18:07 +0000)]
* tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
$< is not portable and the source is in $(srcdir).

20 years ago* automake.in (handle_configure): Do not require link sources if
Alexandre Duret-Lutz [Wed, 3 Dec 2003 23:14:48 +0000 (23:14 +0000)]
* automake.in (handle_configure): Do not require link sources if
they contain a dollar, or if they were built.  Likewise, do not
clean link destination if they contain a dollar.
(scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
%ac_config_files_location with link destinations.  Do not
store locations in @config_links, now that %ac_config_files_location
have them.
* tests/conflnk3.test: New file.
* tests/Makefile.am (TESTS): Add conflnk3.test.

20 years ago* configure.ac, NEWS: Bump version to 1.7i.
Alexandre Duret-Lutz [Tue, 2 Dec 2003 20:55:19 +0000 (20:55 +0000)]
* configure.ac, NEWS: Bump version to 1.7i.

20 years ago* configure.ac, NEWS: Bump version to 1.7h.
Alexandre Duret-Lutz [Tue, 2 Dec 2003 20:43:16 +0000 (20:43 +0000)]
* configure.ac, NEWS: Bump version to 1.7h.

20 years ago* doc/automake.texi (Default _SOURCES): Fix reference to true.
Alexandre Duret-Lutz [Tue, 2 Dec 2003 20:00:02 +0000 (20:00 +0000)]
* doc/automake.texi (Default _SOURCES): Fix reference to true.

20 years ago* lib/texinfo.tex: New upstream version.
Alexandre Duret-Lutz [Tue, 2 Dec 2003 19:56:18 +0000 (19:56 +0000)]
* lib/texinfo.tex: New upstream version.

20 years ago* automake.in (handle_source_transform): If it's present, use
Alexandre Duret-Lutz [Sun, 30 Nov 2003 17:00:37 +0000 (17:00 +0000)]
* automake.in (handle_source_transform): If it's present, use
libfoo_la.c instead of libfoo.c as the default source of
libfoo.la, and issue an -Wobsolete diagnostic.  Do not be
greedy in the suffix replacement regex.
* doc/automake.texi (Default _SOURCES): New node.
(Program Sources, Libtool Modules): Refer to it.
* tests/ltlibsrc.test: Update to check for old default source files.

20 years ago* automake.in (&handle_source_transform): Calculate a default file
Alexandre Duret-Lutz [Sun, 30 Nov 2003 13:35:29 +0000 (13:35 +0000)]
* automake.in (&handle_source_transform): Calculate a default file
for use in the absence of an appropriate _SOURCES declaration by
first stripping any suffix from the unxformed target name, and
appending `.c'.
* doc/automake.texi (Program Sources, Libtool Modules): Document this.
* tests/ltlibsrc.test: New file.
* tests/Makefile.am (TESTS): Add ltlibsrc.test.

20 years ago* lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
Alexandre Duret-Lutz [Sat, 29 Nov 2003 23:47:02 +0000 (23:47 +0000)]
* lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
_value_as_list_recursive_worker): Merge into ...
(value_as_list_recursive): ... this function.  Pass options
as a hash argument, and use the `location' option to trigger
the behavior of loc_and_value_as_list_recursive.
(traverse_recursively, transform_variable_recursively): Take
options as a %options argument.
(_do_recursive_traversal): Perform expansion of inner variables
(as in `$(FILE).ext') on request.
* automake.in (handle_options, check_libobjs_sources)
(handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
(handle_ltlibraries, handle_man_pages, handle_dist)
(handle_gettext, am_install_var): Adjust usage of
value_as_list_recursive.
(handle_texinfo_helper): Pass inner_expand to
value_as_list_recursive.
* tests/txinfo28.test: New file.
* tests/Makefile.am (TESTS): Add txinfo28.test.
Report from Ralf Corsepius.

20 years ago* lib/Automake/Variable.pm (_do_recursive_traversal): Do not
Alexandre Duret-Lutz [Sat, 29 Nov 2003 21:47:27 +0000 (21:47 +0000)]
* lib/Automake/Variable.pm (_do_recursive_traversal): Do not
update @_substfroms and @_substfroms for undefined variables.
* tests/substre2.test: New file.
* tests/Makefile.am (TESTS): Add substre2.test.

20 years ago* lib/Automake/VarDef.pm (value): Rename as ...
Alexandre Duret-Lutz [Sat, 29 Nov 2003 18:02:40 +0000 (18:02 +0000)]
* lib/Automake/VarDef.pm (value): Rename as ...
(raw_value): ... this.
(value): New method, strip # and \n.
(dump): Use raw_value.
* lib/Automake/Variable.pm (output): Use raw_value.
(value_as_list): Simplify, now that backslash and comments
are already removed.
* tests/txinfo22.test: Make sure Automake isn't confused
by comments in variables.