automake.in


Log

Author Commit Date CI Message
Alexandre Duret-Lutz 5929339c 2004-07-17T10:52:19 * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now that it is always defined. This is less confusing for users reading the generated Makefiles. * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
Alexandre Duret-Lutz f74dc248 2004-07-14T14:49:09 * automake.in (target_hook): Accept %transform as last argument. (define_objects_from_sources): Pass %transform to target_hook. (handle_source_transform): Define DIST_SOURCE to tell whether a the source of a file is distributed or not. (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute the generated header if the .y source is not distributed. * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated headers are not distributed.
Alexandre Duret-Lutz 68acb54a 2004-07-11T22:07:25 For PR automake/428: Support for conditionally defined -hook and -local rules. * automake.in (user_phony_rule): New function. (handle_dist, handle_install, handle_all, do_check_merge_target, handle_factored_dependencies): Use user_phony_rule before adding a user -hook or -local rule as a dependency to ensure it is always defined an phony. * tests/cond37.test, tests/condhook.test: New files. * tests/Makefile.am (TESTS): Add them. Report from Simon Josefsson and Nik A. Melchior.
Alexandre Duret-Lutz 16af3fd3 2004-05-22T21:55:47 * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been changed. * tests/libtool3.test: Do not grep for --tag=CC, since CVS Libtool (unlike Libtool 1.5) does not has any CC tag.
Alexandre Duret-Lutz a91f0ec9 2004-05-22T14:23:54 * automake.in (handle_libraries): Make the diagnostic about non standard libraries a warning in foreign packages. This is already the case in handle_ltlibraries. (handle_libraries, handle_ltlibraries): Suggest a standard library name in the diagnostic, to help newcomers. * tests/stdlib.test, tests/stdlib2.test: Check for these suggestions.
Alexandre Duret-Lutz bf7ab094 2004-05-22T07:19:37 Check directory names for unportable names. Shaking the code to check this also led to the removal of the no-"/"-in-SUBDIRS restriction, and a fix to _do_recursive_traversal. * automake.in (check_directory): New function extracted from handle_subdirs, and augmented to check for reserved W32/DOS name. (check_directories_in_var): New function. (handle_subdirs): Call check_directories_in_var. Doing so also suppress the restriction that SUBDIRS should not contain slashes. (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory to ensure the argument exists and is safe. * doc/automake.texi (Top level): Do not say that src/subdir cannot be put in SUBDIRS. (Dist): Mention that distdir and top_distdir can be absolute. * lib/Automake/Variable.pm (_do_recursive_traversal) Support undefined $fun_collect, and fix two bugs introduced with skip_ac_subst on 2004-03-07. * lib/am/distdir.am (distdir): Use absolute distdir and top_distdir when recursing, because we can no longer prepend only `..' in case of SUBDIRS with `/'. * tests/auxdir4.test, tests/subdir9.test: New files. * tests/Makefile.am (TESTS): Add auxdir4.test. * tests/cond2.test, tests/subdir7.test: Augment to check location in diagnostics.
Alexandre Duret-Lutz 0170ed2e 2004-05-15T21:01:04 * automake.in (handle_dist): Always define DIST_SUBDIRS, even when the no-dist or cygnus options are used. * tests/clean2.test: New file. * tests/Makefile.am (TESTS): Add clean2.test. Report from Daniel Jacobowitz.
Alexandre Duret-Lutz a1ede7d0 2004-05-14T22:44:42 * automake.in (parse_arguments, MAIN): Give more precise diagnostics when not input file is found. * tests/output5.test: Adjust. Suggested by Jens Petersen.
Alexandre Duret-Lutz 84874b00 2004-05-14T20:13:53 * lib/am/libs.am (AR, ARFLAGS): Move these definition ... * automake.in (handle_libraries): ... here, so that they are output even for EXTRA_LIBRARIES. * tests/ar2.test: New file. * tests/Makefile.am (TESTS): Add it. Report from Kevin Ryde.
Alexandre Duret-Lutz 7ba1b57c 2004-05-13T22:02:42 * automake.in (generate_makefile): Do not output Makefile.in on errors. * tests/werror2.test: New file. * tests/Makefile.am (TESTS): Add werror2.test. * tests/substtarg.test, tests/cond36.test, tests/backsl4.test: Adjust to run automake with -Wno-error when the output is expected in spite of the error. Report from Harlan Stenn.
Alexandre Duret-Lutz 1bc9e9b7 2004-05-13T20:38:19 * automake.in (handle_source_transform): Also check for a $(srcdir)/old_source rule when computing the default source name. Propagate this $(srcdir) prefix in Automake variables. * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to $(srcdir)/zoo_d_old2_la.c. This fixes another failure with BSD Make.
Alexandre Duret-Lutz fb6b99dc 2004-04-24T19:42:21 * automake.in (check_typos): Clarify the diagnostic. * tests/warnopts.test: Adjust.
Alexandre Duret-Lutz 014ec4f2 2004-04-23T21:57:44 For PR automake/414: Introduce option filename-length-max=99. * doc/automake.texi (Options): Document it. * configure.ac (AM_INIT_AUTOMAKE): Use it. * lib/Automake/Options.pm (_process_option_list): Recognize it. * automake.in (handle_dist): Set FILENAME_FILTER. * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long filenames. * tests/fn99.test: New file. * tests/Makefile.am (TESTS): Add fn99.test.
Alexandre Duret-Lutz 6408f2b0 2004-04-17T18:46:06 Fix PR automake/49: * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE. * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test, tests/mdate3.test, tests/multlib.test, tests/reqd2.test, tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test, tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE. * tests/auxdir3.test: New file (exercise this diagnostic). * tests/Makefile.am (TESTS): Add auxdir3.test.
Alexandre Duret-Lutz 35d2d067 2004-04-12T22:16:22 * automake.in ($automake_needs_to_reprocess_all_files): Remove. ($automake_will_process_aux_dir): New variable. (scan_autoconf_traces): Reorder @input_files so that the Makefile that distributes aux files is processed last. This way we do not have to process all files twice using $automake_will_process_aux_dir. (require_file_internal): Suggest a full run of automake when appropriate. (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files. * tests/distcom7.test: New file. * tests/reqd2.test: Do not check for the "running more than two" message. * tests/Makefile.am (TESTS): Add distcom7.test.
Alexandre Duret-Lutz ce228aea 2004-04-12T19:19:16 * automake.in (@config_aux_path, $config_aux_dir): Rename as ... ($config_aux_dir, $am_config_aux_dir): ... these. ($config_aux_dir_set_in_configure_in): Rename as ... ($config_aux_dir_set_in_configure_ac): ... this. (%require_file_found): Rename as ... (%required_file_not_found): ... this. (handle_languages, handle_texinfo_helper, handle_dist, handle_configure, handle_emacs_lisp, handle_python, scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names. (scan_autoconf_traces): Call locate_aux_dir. (locate_aux_dir): New function. (@require_file_paths): Remove, not used anymore. (require_file_internal): Look files in only one directory (instead of @require_file_internal) passed in argument. (require_file, require_conf_file): Pass the destination directory to require_file_internal.
Alexandre Duret-Lutz 2fb66730 2004-04-10T17:18:01 * aclocal.in, automake.in, configure.ac, Makefile.am, tests/aclocal.in, tests/automake.in, tests/defs.in: Use PATH_SEPARATOR from autoconf instead of ':'.
Alexandre Duret-Lutz 1b0f49a7 2004-04-09T22:21:57 * automake.in (handle_lib_objects): Pass the condition of the variable definition to handle_LIBOBJS and handle_ALLOCA, not the aggregated conditions. * tests/Makefile.am (TESTS): Add libobj14.test. * tests/libobj14.test: New file. Report from Bill Davidson.
Alexandre Duret-Lutz 9590e75c 2004-04-02T07:14:27 Better support for Fortran 9x. * automake.in: Add "fc" and "ppfc" languages for Fortran 9x. * doc/automake.texi (Fortran 9x Support): New section. * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC. * tests/compile_f90_c_cxx.test: New file. * tests/ext.test: Add AC_PROG_FC. * tests/f90only.test: New file. * tests/link_f90_only.test: New file. * tests/Makefile.am (TESTS): Add new tests.
Alexandre Duret-Lutz b2ae2f6b 2004-03-14T07:26:43 * automake.in (handle_texinfo_helper): Typos in comment.
Alexandre Duret-Lutz 9a0d838f 2004-03-07T12:36:54 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.
Alexandre Duret-Lutz b95837bf 2004-03-07T09:24:21 * lib/Automake/Variable.pm (traverse_recursively, _do_recursive_traversal): Honor the skip_ac_subst option. * automake.in (handle_dist): Use skip_ac_subst.
Alexandre Duret-Lutz 2ac4685e 2004-02-29T19:10:21 * 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.
Alexandre Duret-Lutz d5bf5b1c 2004-02-01T12:54:02 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.
Alexandre Duret-Lutz 1c4bc227 2004-02-01T12:18:02 * 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.
Alexandre Duret-Lutz 56662762 2004-01-20T20:22:39 * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be correctly called without arguments as evidenced by the libtool demo directories.
Alexandre Duret-Lutz d7b43f2a 2004-01-10T00:24:29 * 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.
Alexandre Duret-Lutz f323a7a7 2004-01-08T20:22:24 * 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).
Alexandre Duret-Lutz 4a185139 2004-01-07T21:58:14 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.
Alexandre Duret-Lutz cbce9cd4 2004-01-07T21:56:49 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.
Alexandre Duret-Lutz 262bb922 2004-01-05T09:02:06 * 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%.
Alexandre Duret-Lutz 9f4cb893 2004-01-03T15:40:07 * automake.in (scan_texinfo_file): Do not compare $outfile to '' as $outfile might not be defined at all.
Tom Tromey 8fabb3b2 2004-01-02T21:38:07 * 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.
Alexandre Duret-Lutz 25c57a7e 2004-01-01T21:57:24 * 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.
Alexandre Duret-Lutz d82b453e 2004-01-01T18:54:20 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.
Alexandre Duret-Lutz 16773768 2004-01-01T17:34:18 * automake.in, aclocal.in: Bump copyright years.
Alexandre Duret-Lutz 1d3a5692 2003-12-31T22:13:07 * automake.in (generate_makefile): Update misleading comment.
Alexandre Duret-Lutz 13089ee2 2003-12-30T23:49:58 * 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.
Alexandre Duret-Lutz 6b0ea352 2003-12-27T15:39:45 * 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.
Alexandre Duret-Lutz 8a894d1d 2003-12-27T01:38:42 * 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.
Alexandre Duret-Lutz a5fc5b6d 2003-12-08T18:00:02 * 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.
Alexandre Duret-Lutz 9f11286e 2003-12-04T18:17:20 * 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.
Alexandre Duret-Lutz f77b57b2 2003-12-03T23:14:48 * 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.
Alexandre Duret-Lutz 3081fe01 2003-11-30T17:00:37 * 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.
Alexandre Duret-Lutz eeb89822 2003-11-30T13:35:29 * 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.
Alexandre Duret-Lutz 0a1c8dcb 2003-11-29T23:47:02 * 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.
Alexandre Duret-Lutz 721c236a 2003-11-25T22:19:44 * automake.in (prepend_srcdir): Parenthesize @inputs to remove a maintainer-check warning. * tests/subst2.test: Rewrite the $MAKE invocation to please maintainer-check.
Alexandre Duret-Lutz 543554ae 2003-11-25T22:07:12 * doc/automake.texi (Program variables): Mention per-target _CPPFLAGS in the documentation of INCLUDES. * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic. Report from Bob Friesenhahn.
Alexandre Duret-Lutz 17820676 2003-11-22T18:05:35 Fix for PR automake/411: * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename into ... (prepend_srcdir): ... this. (rewrite_inputs_into_dependencies): New function, extracted from ... (handle_configure): ... here. Adjust to use prepend_srcdir or rewrite_inputs_into_dependencies where needed. Especially, using (the new) rewrite_inputs_into_dependencies to compute Makefile dependencies will fix PR/411. * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's already distributed by rewrite_inputs_into_dependencies. * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test. * tests/colon3.test: Use set -e. Don't allow any AUTOMAKE invocation refer to zardoz. Make sure two.in and three.in appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies. * tests/distcom.test: Delete. This is covered by tests/output9.test. * tests/output10.test: New file, for PR/411.
Alexandre Duret-Lutz 6c02da5e 2003-11-21T19:16:12 * automake.in (append_exeext): Do not append $(EXEEXT) to @substitutions@. * tests/exeext4.test: New file. * tests/Makefile.am (TESTS): Add exeext4.test.
Alexandre Duret-Lutz 9b5e57d5 2003-11-17T23:18:20 * automake.in (generate_makefile): Define SUBDIRS if it is not defined and DIST_SUBDIRS is. * tests/subpkg2.test: New file. * tests/Makefile.am (TESTS): Add subpkg2.test. Report from Gary V. Vaughan.
Alexandre Duret-Lutz 720cf06a 2003-11-17T00:33:43 * automake.in (ac_config_files_location): Declare as a hash. (handle_configure): Rewrite the computation of AC_CONFIG_FILES dependencies; make sure we don't use $(srcdir) or $(top_srcdir) for inputs which are also outputs, and do not check inputs relatively to the current directory. (scan_autoconf_config_files): Take $where as argument, and fill $ac_config_files_location. * tests/output8.test, tests/output9.test: New files. * tests/Makefile.am (TESTS): Add output8.test and output9.test. Report from Bruno Haible.
Alexandre Duret-Lutz 1b3a0187 2003-11-12T19:29:53 * automake.in (scan_autoconf_traces): Honor sinclude. * tests/sinclude.test: Check for sinclude. Report from Roberto Bagnara.
Alexandre Duret-Lutz 2a8e1b17 2003-11-10T20:55:33 * automake.in (handle_configure): Distribute and define mkinstalldirs only if it is already present in the package. (scan_autoconf_files): Do not require mkinstalldirs. (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs). * lib/am/data.am, lib/am/distdir.am, lib/am/install.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs). * m4/mkdirp.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P. * tests/Makefile.am (TESTS): Remove insh.test. * tests/insh.test: Delete. * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs. * tests/auxdir.test: Install mkinstalldirs. * tests/distdir.test, tests/instman.test, tests/pr2.test: Use $(mkdir_p), not $(mkinstalldirs). * tests/empty.test: Run configure, do not substitute things by hand. * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh as an example, not mkinstalldirs. (Auxiliary Programs) <mkinstalldirs>: Update.
Alexandre Duret-Lutz 86c8a2d7 2003-11-09T11:55:36 * automake.in (check_gnu_standards): Install COPYING only if none of COPYING, COPYING.LIB, or COPYING.LESSER exist. Do not overwrite the license otherwise. * tests/Makefile.am (TESTS): Add license.test. * tests/license.test: New file.
Alexandre Duret-Lutz 9bfd1b3f 2003-11-08T13:01:13 * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ... (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC? to select $(srcdir) or `.' builds. (INFO_DEPS): Define here. * lib/am/texinfos.am (dist-info): Strip filename starting with "$(srcdir)/". * automake.in (output_texinfo_build_rules): Take a new argument $insrc, and adjust substitutions in 'texibuild'. (handle_texinfo_helper): Compute a regex of all user-cleaned files, and use this to select whether to build .info files in `.' or $(srcdir). Give an account of the $(srcdir) vs `.' debacle. Alway build the version.texi and stamp files in $(srcdir). Do not define INFO_DEPS. * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test, and txinfo25.test. * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test: New files. * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test, tests/vtexi.test: Adjust to new rules.
Alexandre Duret-Lutz 0768132f 2003-10-27T07:52:00 * automake.in (handle_configure): Rename am__configure_deps as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and $configure_ac. Define am__configure_deps as am__aclocal_m4_deps + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4). Do not define ACLOCAL_M4_DEPS while processing configure.am. (make_paragraphs): Do not define %CONFIGURE_AC%, now unused. (scan_aclocal_m4): Do not distribute aclocal.m4, this is done from lib/am/configure.am. * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON, $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using $(am__configure_deps) or $(am__aclocal_m4_deps). * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
Alexandre Duret-Lutz c8e03eca 2003-10-26T21:20:11 * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS sources, and without using require_file. Define %CONFIG_H_DEPS% and %FIRST_CONFIG_HIN% while processing remake-hdr.am. * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead of (srcdir)/%CONFIG_HIN%. Output the $(srcdir)/%CONFIG_HIN% rule only for the first header (i.e., if %FIRST_CONFIG_HIN%). * tests/autohdr4.test: New file. * tests/Makefile.am (TESTS): Add autohdr4.test. * tests/config.test: Do not grep, run things to see if they work.
Alexandre Duret-Lutz e35d416e 2003-10-06T21:47:34 * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'. * tests/stdlib2.test: New file. * tests/Makefile.am (TESTS): Add stdlib2.test. Report from Kevin P. Fleming.
Tom Tromey 8735ca14 2003-09-30T19:05:54 * lib/Automake/Options.pm (_process_option_list): Recognize no-dist. * NEWS: Update. * doc/automake.texi (Options): Document no-dist. * automake.in (check_cygnus): Set no-dist option. (handle_dist): Recognize no-dist. * tests/nodist3.test: New file. * tests/Makefile.am (TESTS): Added nodist3.test.
Alexandre Duret-Lutz 6b872f6d 2003-09-29T20:21:19 * automake.in (handle_clean): Take $makefile as argument, and define %MAKEFILE% while processing clean.am. (generate_makefile): Pass $makefile to handle_clean. * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%, not Makefile. * tests/gnumake.test: New file. * tests/Makefile.am (TESTS): Add gnumake.test. Report from Braden N. McDaniel.
Alexandre Duret-Lutz 74fe06a8 2003-09-23T08:14:35 Support for multiple inputs in AC_CONFIG_FILES. Requested long ago by Harlan Stenn. * automake.in (handle_dist): Remove unused argument $makefile. (handle_subdirs): Expect SUBDIRS elements in $relative_dir, not $am_relative_dir. (rewrite_inputs_into_dependencies): Allow $add_srcdir to be a filename that must always be prefixed by $(srcdir) or $(top_srcdir). (handle_configure, generate_makefile): Revamp to make the Makefile.am, Makefile.in, Makefile more independent. (locate_am): New function. (scan_configure_dep, parse_arguments): Use locate_am. (MAIN): Adjust call to generate_makefile. * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies of %MAKEFILE%. %MAKEFILE-IN% is already in %MAKEFILE-DEPS%. * tests/output6.test, tests/output7.test: New files. * tests/Makefile.am (TESTS): Add them. * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how multiple inputs are scanned.
Alexandre Duret-Lutz 9e88c16c 2003-09-07T09:55:36 * aclocal.in (configure_ac): Do not call require_configure_ac before parsing the options. * automake.in (configure_ac): Likewise. * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac, find it. * lib/Automake/Configure_ac.pm (require_configure_ac): find_configure_ac never return an undefined value, so test the file's existence instead. * tests/Makefile.am (TESTS): Add help.test. * tests/help.test: New file.
Alexandre Duret-Lutz 09cce90f 2003-09-06T21:10:40 * lib/Automake/XFile.pm: Update to use ChannelDefs. (close): Call Automake::FileUtils::handle_exec_errors on errors. * automake.in (scan_autoconf_files): Exit with $?=63 on version mismatch. (scan_autoconf_traces): Likewise. Close the autoconf pipe to capture abnormal exits. * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code instead. (trace_used_macros): Close the autom4te pipe to capture abnormal exits. * lib/missing: When a tool has run and exited with $?=63, emulate it. Adjust the diagnostic and pretend the tool is tool old in this case. Use an emacs-updated "scriptversion" variable. * configure.in: Output tests/aclocal-${APIVERSION} and tests/automake-${APIVERSION}. * tests/aclocal.in, tests/automake.in, tests/missing.test, tests/missing2.test: New files. * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION. * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are already testing for this. * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix configure.in so that aclocal works. * tests/defun.test: Quote the AC_DEFUN body. * tests/Makefile.am (TESTS): Add missing.test and missing2.test, and remove dup3.test. (check_SCRIPTS): Add aclocal and automake.
Paul Eggert 636c8076 2003-09-06T05:36:57 Spelling and minor grammar fixes.
Alexandre Duret-Lutz c2f546d3 2003-08-24T22:34:59 For Debian Bug #206299: * automake.in ($configure_deps_greatest_timestamp, $output_deps_greatest_timestamp): New variables. (initialize_per_input): Reset $output_deps_greatest_timestamp. (scan_autoconf_traces, scan_autoconf_files, read_am_file): Update $configure_deps_greatest_timestamp and $output_deps_greatest_timestamp (generate_makefile): Rewrite the logic to decide whether to rewrite the output. Move the leading dup_channel_setup and trailing drop_channel_setup to MAIN, so that drop_channel_setup is executed for all exit paths. * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force * tests/distcom6.test: New file. Report from Scott James Remnant. * tests/Makefile.am (TESTS): Add distcom6.test.
Alexandre Duret-Lutz 4de3f2b8 2003-08-24T02:16:31 * automake.in (file_contents_internal): Do not add newlines before empty actions.
Akim Demaille 1e118082 2003-08-21T08:49:25 * lib/Automake/Configure_ac.pm (&find_configure_ac) (&require_configure_ac): Accept an optional directory argument. ($configure_ac): Remove. * aclocal.in, automake.in ($configure_ac): New. * lib/Automake/Variable.pm: Don't use $configure_ac, just configure.ac.
Alexandre Duret-Lutz 9a792314 2003-08-12T17:52:09 * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files. * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files. * lib/Automake/Makefile.am (dist_perllib_DATA): Add them. * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef. (new): Adjust to call Automake::ItemDef::new. (comment, location, owner): Delete. Now inherited from ItemDef. * lib/Automake/Variable.pm: Make this a subclass of Automake::Item. (_new): Adjust to call Automake::Item::new. (name, def, rdef, _set, conditions, not_always_defined_in_cond): Delete. How inherited from Item, where `_set' is called `set'. * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule. (suffix_rules_default): Delete. Now Automake::Rule::_suffix_rules_default (suffixes): Delete. Now Automake::Rule::suffixes. (TARGET_AUTOMAKE, TARGET_USER): Delete. Now Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER. (%targets, %target_source, %target_name, %target_owner): Delete, replaced by the Rule and RuleDef classes. (dependencies, depend, actions): Delete. Now in Automake::Rule. (suffix_rules, register_suffix_rule): Likewise. (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise. (known_extensions_list): Delete. Now Automake::Rule::_known_extensions_list. (target_conditions): Delete. Now inherited by Automake::Rule from Automake::Item::conditions. (rule_define): Delete. Now Automake::Rule::define. Adjust all callers. (target_defined): Delete. Now Automake::Rule::rule. Adjust all callers. (initialize_per_input): Adjust to call Automake::Rule::reset. (err_target, err_cond_target, msg_cond_target, msg_target, reject_target): Delete. Now defined in Automake::Rule as err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target. Adjust all callers. (handle_languages): Call suffix_rules_count. * tests/location.test: Adjust expected diagnostics. We now display $(EXEEXT) accurately.
Alexandre Duret-Lutz a1be9812 2003-08-07T21:20:12 * lib/Automake/Variable.pm (condition_ambiguous_p): Move ... * lib/Automake/DisjConditions.pm (ambiguous_p): ... here. * automake.in (rule_define): Adjust usage. * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
Alexandre Duret-Lutz 7c50114c 2003-08-07T20:30:04 * lib/Automake/Options.pm: New file. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm. * automake.in (FOREIGN, GNU, GNITS, $default_strictness) ($default_strictness_name, $strictness, $strictness_name) (%options, %global_options, process_option_list) (set_strictness): Remove, now in Options.pm. (initialize_per_input): Call Automake::Options::reset. (handle_options, get_object_extension, get_object_extension) (handle_languages, handle_single_transform_list, handle_compile) (handle_texinfo_helper, handle_man_pages, handle_dist) (handle_configure, do_check_merge_target) (handle_factored_dependencies, handle_tests) (handle_minor_options, scan_autoconf_traces, check_cygnus) (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define) (make_paragraphs, am_install_var, parse_arguments): Adjust to set and read options via the new interface.
Raja R Harinath 724be946 2003-08-07T00:32:29 * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory from the builddir too, to pick up Automake::Config. * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise. * configure: Regenerate. * automake.in (BEGIN): Handle multiple directories in $perllibdir. * aclocal.in (BEGIN): Likewise.
Alexandre Duret-Lutz 271e79f4 2003-08-06T21:20:15 * lib/Automake/Config.in: New file. * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst, CLEANFILES): New variables. (Config.pm): New rule. * Makefile.am (maintainer-check): Adjust expected differences between automake.in and automake. * aclocal.in, automake.in: Use Automake::Config.
Alexandre Duret-Lutz 38b63de1 2003-08-05T09:25:17 * automake.in (handle_texinfo_helper): Use the user definition of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR. * tests/txinfo22.test: New file. * tests/Makefile.am (TESTS): Add txinfo22.test. Report from Tom Tromey.
Raja R Harinath bbde2866 2003-08-03T21:17:32 * lib/Automake/Variable.pm (@EXPORT): Remove traverse_variable_recursively and require_variables_for_variable. (require_variables_for_variable, traverse_variable_recursively) (_traverse_variable_recursively_worker): Convert to Automake::Variable methods, remove support for being invoked with variable names, and rename to ... (requires_variables, traverse_recursively) (_do_recursive_traversal): ... these. (_value_as_list_recursive_worker, transform_variable_recursively): Update to reflect changes. * automake.in (handle_LIBOBJS, handle_ALLOCA) (handle_libraries, handle_ltlibraries, am_primary_prefixes): Likewise. (define_objects_from_sources): Fix typo in comment.
Raja R Harinath 269f16e2 2003-08-02T14:14:59 (handle_source_transform): Replace 'grep' with 'map'. (register_language): Replace 'grep' with 'foreach' modifier.
Raja R Harinath 797e4c6e 2003-08-02T04:27:03 * lib/Automake/Variables.pm (variables): Return a list of Automake::Variable instances, not a list of strings. (dump): Remove support for being invoked with a string. (variables_dump): Adapt to these changes. * automake.in (check_typos): Likewise. (am_primary_prefixes): Likewise.
Alexandre Duret-Lutz bfca7d0d 2003-07-30T16:45:22 * automake.in (handle_single_transform_list): Complain about foo.$(OBJEXT) being created both with libtool and without, not about foo.lo. Report from Tim Van Holder.
Alexandre Duret-Lutz df7658d6 2003-07-28T06:44:33 * automake.in (handle_configure): Cosmetic change to avoid a maintainer-check complaint.
Alexandre Duret-Lutz 38a3b8da 2003-07-26T11:00:36 * automake.in (get_object_extension, handle_languages) (handle_single_transform_list, handle_compile, handle_compile) (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages) (handle_tests, handle_minor_options, check_gnu_standards) (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define): Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
Alexandre Duret-Lutz 2ad5634f 2003-07-26T10:12:03 Complete changes from 2003-07-08. * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove, replaced by $options{'no-dependencies'}. ($global_options): Remove. (%global_options): New variable. (initialize_per_input): Empty %options. (process_option_list): Take a location and %options ref argument, process no-dependencies as other options. (handle_options): Do not reparse the global options, just initialize %options from %global_options and fill it with local options. (handle_languages, handle_single_transform_list) (handle_configure, check_cygnus): Adjust usage of $options{'no-dependencies'}. (make_paragraphs): Adjust usage of $options{'cygnus'}. (parse_arguments): Set cygnus and no-dependencies in %global_options. (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list to fill %global_options.
Alexandre Duret-Lutz cfea6a81 2003-07-24T21:26:56 Fix missing rebuilds during `make dist' with BSD make. * automake.in (generate_makefile): Do not push Makefile.in, and Makefile.am into DIST_COMMON here. * lib/am/configure.am (DIST_COMMON): Do it here, and use %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON actually match the targets. Prefix `configure' with `$(srcdir)/' to match the target. * tests/remake4.test: New file. * tests/Makefile.am (TESTS): Add remake4.test. Report from Akim Demaille.
Alexandre Duret-Lutz 36fd44a7 2003-07-23T21:04:17 * automake.in (handle_multilib): Register all-multi. (file_contents_internal): Insert n when concatenating actions from "factored" rules. * lib/config-ml.in: New file, from GCC, including a patch from Ralf Corsepius (see GCC's PR 11526). * lib/symlink-tree.in: New file, from GCC. * lib/Makefile.am (dist_script_DATA): Add config-ml.in and symlink-tree. * lib/am/clean.am (distclean-generic): Do not delete Makefile here... (distclean, maintainer-clean): ... do it here. * lib/am/depend.am (distclean-depend): Likewise, replace by (distclean, maintainer-clean): ... these. * lib/am/multilib.am (all-recursive, install-recursive, mostlyclean-recursive, clean-recursive, distclean-recursive, maintainer-clean-recursive): Remove these rules. (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace by ... (mostlyclean, clean, distclean, maintainer-clean): ... these. (all-am): Remove, done in handle_multilib. (install-am): Replace by ... (install-exec-am): ... this. * tests/Makefile.am (TESTS): Add multlib.test. * tests/multlib.test: New file, based on a test case by Ralf Corsepius
Derek R. Price ff8634e6 2003-07-16T19:10:07 * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS. (handle_configure): Handle adding AC_CONFIG_LINKS arguments to distclean targets (CONFIG_CLEAN_FILES makefile var). * NEWS: Note new handling of AC_CONFIG_LINKS. * automake.texi (Other things Automake recognizes): Ditto. * tests/Makefile.am (TESTS): Add new tests. * tests/conflnk.test: New test that links are cleaned on distclean. * tests/conflnk2.test: New test that source files for links are distributed. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * stamp-vti: Ditto. * version.texi: Ditto. * lib/Makefile.in: Ditto. * lib/Automake/Makefile.in: Ditto. * lib/Automake/tests/Makefile.in: Ditto. * lib/am/Makefile.in: Ditto. * m4/Makefile.in: Ditto. * tests/Makefile.in: Ditto.
Alexandre Duret-Lutz 6c06e0a8 2003-07-15T21:21:25 2003-07-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (tiny change) * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to render $seen_multilib functional again.
Alexandre Duret-Lutz 4152bd4a 2003-07-09T22:09:28 * aclocal.in: Use Automake::FileUtils. (parse_arguments, scan_configure, scan_m4_files): Never call "die" to print an error message. Use print and exit. * automake.in: Use Automake::FileUtils. * lib/Automake/General.pm ($debug, $help, $tmp, $verbose, $version, &debug, &getopt, &mktmpdir, &verbose): Remove. (END): Do not massage Perl's exit code. Do not clean any temporary directory. (find_file, mtime, update_file, xsystem, contents): Move to ... * lib/Automake/FileUtils.pm: ... this new file. Adjust to report errors using Channels. (handle_exec_errors, xqx): New functions, from Autoconf. * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
Akim Demaille 21c69482 2003-07-08T08:10:21 * automake.in ($cygnus_mode): Replace with $options{'cygnus'}. Adjust all dependencies. (&depend): Move next to %dependencies. (&initialize_per_input): Initialize the 'cygnus' field of '%options' to spare the code from 'exists' or 'defined' when testing it.
Alexandre Duret-Lutz 458e7448 2003-07-06T23:48:09 * automake.in (generate_makefile): Move near the end of the file, after the definition of all called functions, so that prototypes can be enforced.
Akim Demaille d23e6821 2003-07-06T19:27:29 * automake.in (&define_files_variable): New. (&handle_texinfo_helper): Move the handling of user variables from here, to... (&handle_texinfo): here. This is to balance the size of these functions, and to match the convention of other _helper functions. (&handle_texinfo_helper): Use &define_files_variable. Move some code to use less variables. Rename $info_cursor as $texi. (&handle_texinfo): Do not call handle_texinfo_helper if there are no TEXINFOS. * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps and html. Remove *-recursive targets from .PHONY, they are part of $(RECURSIVE_TARGETS) anyway. (install-info, mostlyclean-aminfo): Are .PHONY.
Akim Demaille f9cef4a3 2003-07-06T07:42:36 * automake.in (&define_files_variable): New. (&handle_texinfo_helper): Move the handling of user variables from here, to... (&handle_texinfo): here. This is to balance the size of these functions, and to match the convention of other _helper functions. (&handle_texinfo_helper): Use &define_files_variable. Move some code to use less variables. Rename $info_cursor as $texi. (&handle_texinfo): Do not call handle_texinfo_helper if there are no TEXINFOS. * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps and html. Remove *-recursive targets from .PHONY, they are part of $(RECURSIVE_TARGETS) anyway. (install-info, mostlyclean-aminfo): Are .PHONY.
Akim Demaille ae954adc 2003-07-04T08:36:53 * automake.in (&scan_texinfo_file, &output_texinfo_build_rules, (&handle_texinfo_helper, &handle_texinfo): Formatting changes. Prototype properly. Don't use & when calling functions.
Alexandre Duret-Lutz 88c387e7 2003-07-02T23:30:56 * automake.in (handle_ltlibraries): Fix call to msg.
Alexandre Duret-Lutz a0ade5d3 2003-07-02T23:15:52 * automake.in (handle_single_transform_list): Use $var->name to print variable in the configure-substitution diagnostic. Do not mention the parent when it is the variable itself.
Alexandre Duret-Lutz e832a8a9 2003-07-02T22:20:32 * automake.in (cond_stack_else): Return FALSE if `if' was not used. (cond_stack_endif): Return TRUE if `if' was not used. Do not display $negate and $cond, they are irrelevant and maybe undefined.
Alexandre Duret-Lutz 7390113b 2003-07-01T21:25:39 * automake.in (scan_autoconf_traces): Check the expected number of arguments of each traced macro. * tests/overrid.test: Fix call to AM_CONDITIONAL. * tests/conff2.test: New files. * tests/Makefile.am (TESTS): Add conff2.test. Report from Paolo Bonzini.
Alexandre Duret-Lutz 41740be4 2003-06-30T06:35:55 * automake.in ($SUBST_REF_PATTERN): Do not define. (%gen_varname): Move to Variable.pm, as %_gen_varname. (initialize_per_input): Do not clean %gen_varname. (handle_options, check_libobjs_sources, handle_source_transform, handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper, handle_man_pages, handle_dist, handle_subdirs, handle_gettext, am_install_var): Adjust to use value_as_list_recursive, loc_and_value_as_list_recursive, and has_conditional_contents. (require_file_with_macro): Accept an Automake::Variable as argument. (traverse_variable_recursively, traverse_variable_recursively_worker, gen_varname, transform_variable_recursively): Move ... * lib/Automake/Variable.pm (traverse_variable_recursively, _traverse_variable_recursively_worker, _gen_varname, transform_variable_recursively): ... here. * automake.in (variable_conditionally_defined, variable_value_as_list_recursive_worker, variable_value_as_list_recursive variable_loc_and_value_as_list_recursive): Move ... * lib/Automake/Variable.pm (has_conditional_contents, _value_as_list_recursive_worker, value_as_list_recursive, loc_and_value_as_list_recursive): ... here. (reset): Reset %_gen_varname.
Akim Demaille 782464d3 2003-06-25T14:01:24 * automake.texi (Top): Use @copying and @insertcopying. Make Alexandre an author. * automake.in ($gen_copyright): Add the "(C)" to Copyright. * lib/depcomp: Likewise.
Alexandre Duret-Lutz 5b94845c 2003-06-23T21:39:54 * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions. (variable_defined, examine_variable): Remove. (%_ac_macro_for_var): Add an entry for ALLOCA. (require_variables): Use vardef instead of variable_defined. Do not use _cvar. * automake.in (generate_makefile): Do not push $(SOURCE) into @sources. Use define_pretty_variable to define SOURCES. (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable to require LIBOBJS, LTLIBOBJS and ALLOCA. (handle_programs, handle_ltlibraries): Do not define an empty _DEPENDENCIES or _LDFLAGS variable when none is defined. (define_configure_variable): Do not check whether the variable already exists (it's Automake::Variable::define's job). (require_build_directory): Likewise, do not check the existence of am__dirstamp. (generate_makefile, handle_options, handle_languages) (check_libobjs_sources, handle_single_transform_list) (traverse_variable_recursively_worker, handle_source_transform) (handle_lib_objects, handle_LIBOBJS, handle_compile) (handle_libtool, handle_programs, handle_libraries) (handle_ltlibraries, check_typos, handle_texinfo_helper) (handle_man_pages, handle_tags, handle_dist, handle_subdirs) (scan_aclocal_m4, handle_gettext, handle_footer, handle_install) (handle_all, do_check_merge_target, handle_clean, lang_c_finish) (handle_tests, lang_yacc_target_hook, define_pretty_variable) (define_compiler_variable, define_linker_variable) (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to call var, vardef, or set_seen, instead of variable_defined. Use set_seen only for variables which are actually checked by check_typos. * tests/target.test: Delete. * tests/alloca.test, tests/alloca2.test: New files. * tests/libobj3.test: Check error message. * tests/distcom4.test: Make sure configure is in DIST_COMMON. This replace confdist.test. * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test. (TESTS): Add alloca.test and alloca2.test. Remove confdist.test.
Alexandre Duret-Lutz 97aee5d7 2003-06-20T20:38:58 * automake.in (handle_dist): Delete DIST_COMMON before redefining it. Bug report from Akim Demaille. (rewrite_inputs_into_dependencies): Make sure we always return something, even when $add_srcdir is 0. * tests/distcom4.test, tests/distcom5.test: New files. * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
Alexandre Duret-Lutz 45bb4d83 2003-06-15T17:35:50 2003-06-15 Akim Demaille <akim@epita.fr> * automake.in (&make_paragraphs): Define %GZIP%. (&process_option_list): Accept no-dist-gzip2. (&handle_dist): Complain when no archive format is enabled. * lib/am/distdir.am (DIST_ARCHIVES): New variable. (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer conditioned. (dist): Build $(distdir).tar.gz conditionally. (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and to list built archives. Run $(MAKE) dist instead of dist-gzip. * automake.texi (Options, The types of distributions): Adjust.