tests


Log

Author Commit Date CI Message
Alexandre Duret-Lutz a6894ebe 2003-02-11T19:32:36 Fix for PR automake/381: * automake.in (handle_gettext): Do not print diagnostics about po/ and intl/ missing from SUBDIRS if po/ does not exist. Warn if `SUBDIRS = intl' is used although libintl is 'external'. * tests/gettext.test: Make sure diagnostics are not output when po/ does not exist. * tests/gettext2.test: Test for unwanted intl/. PR from Alexander Turbov, fix suggested by Bruno Haible.
Alexandre Duret-Lutz faabcad8 2003-02-11T18:20:55 * m4/depend.m4: Grep depcomp's stderr for icc warnings about ignored options. * lib/depcomp (icc): New mode. * tests/depcomp5.test: New file. * tests/defs.in: Handle required=icc. * tests/Makefile.am (TESTS): Add it.
Alexandre Duret-Lutz b32202f7 2003-02-10T22:15:53 For PR automake/385: * lib/depcomp (makedepend): Strip any libtool call, before running makedepends. * tests/depcomp4.test: New file. * tests/Makefile.am (TESTS): Add it. Reported by Jeff Squyres.
Alexandre Duret-Lutz 0f5e989d 2003-02-10T21:47:58 Related to PR automake/385: * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will write dependencies to /dev/null. `-o /dev/null' was added on 2002-06-13 just because I tried to replace `-o foo.o' by something else and didn't thought about removing it entirely. * tests/depcomp3.test: New file. * tests/Makefile.am (TESTS): Add it.
Alexandre Duret-Lutz c149b8ac 2003-02-04T20:00:12 * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute indexes of header files so we create stamp files with the right numbers when config.status is run on some headers. * tests/stamph2.test: Check for this. Reported by Sander Niemeijer.
Alexandre Duret-Lutz 60501dbd 2003-02-02T23:40:51 * automake.in (vars_scanned): Move near traverse_variable_recursively. (traverse_variable_recursively, traverse_variable_recursively_worker): Accept a $COND_FILTER argument to filter out conditions during recursion. Don't recurse into undefined variables. Don't pass empty results to &FUN_COLLECT. (value_to_list): Remove, was used by variable_value_as_list_recursive_worker only. (variable_value_as_list_recursive_worker): Rewrite using traverse_variable_recursively. Remove the $parent argument. (variable_value_as_list_recursive, variable_loc_and_value_as_list_recursive): Adjust calls to variable_value_as_list_recursive_worker. Don't reset %vars_scanned. * tests/cond3.test: Don't expect empty helper variables, we don't output them anymore. * tests/cond30.test: Use an undefined variable.
Alexandre Duret-Lutz 7bbabafb 2003-02-02T17:08:00 * automake.in (handle_programs): Strip $(EXEEXT) before calling &check_canonical_spelling. * tests/exeext.test: Make sure we don't use a maude3__EXEEXT__OBJECTS variable.
Alexandre Duret-Lutz a3b0b170 2003-02-01T23:17:22 * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables using transform_variable_recursively instead of variable_conditions_recursive and variable_value_as_list_recursive to avoid combinatorial explosion. (handle_lib_objects_cond): Merge into handle_lib_objects. * tests/cond11.test: Don't grep internal details in Makefile.in, run $MAKE to make sure the resulting Makefile runs as expected. * tests/cond29.test: Also exercise conditional _LDADD. * tests/cond31.test, tests/cond32.test: New files. * tests/Makefile.am (TESTS): Add tests/cond31.test and tests/cond32.test.
Alexandre Duret-Lutz 6258ae2b 2003-01-31T23:40:58 * automake.in (handle_lib_objects_cond): Ignore -dlopen and -dlpreopen in _LIBADD variables too. (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from handle_lib_objects_cond. * tests/libtool7.test: New file. * tests/Makefile.am (TESTS): Add libtool7.test.
Alexandre Duret-Lutz e9dae118 2003-01-31T23:35:02 * automake.texi (Program and Library Variables): Clarify that _LIBADD is for libraries and _LDADD for programs.
Alexandre Duret-Lutz 780deea6 2003-01-28T23:24:25 Fix for PR automake/352: * automake.in (transform_variable_recursively): If the destination and the source variables are the same, delete the source variable before defining the destination variable. (handle_programs): Strip any $(EXEEXT) suffix from $one_file, or this will confuse handle_source_transform. (append_exeext): Rewrite using transform_variable_recursively. * tests/cond29.test, tests/cond30.test: New files. * tests/exeext.test: Run ./configure and make, this uncovered the above handle_programs issue. * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
Alexandre Duret-Lutz b1fe8738 2003-01-21T18:02:34 * lib/am/distdir.am (top_distdir, distdir): Define these variables only in top level Makefile. Redefine $(top_distdir) as $(distdir). (distdir): Fix passing of $(top_distdir) to sub-makes. * automake.in (handle_dist): Do not define the DISTDIR and TOP_DISTDIR transformations. We don't need them anymore. * automake.texi (Dist): Reorder the dist-hook section, and move the DIST_SUBDIRS paragraph earlier. Document distdir and top_distdir. * tests/subpkg.test: Update to check for $(distdir) and $(top_distdir).
Alexandre Duret-Lutz 7b01f9e9 2003-01-19T15:36:41 * tests/README: New file.
Alexandre Duret-Lutz cde2810a 2003-01-19T15:19:26 * automake.texi (Conditional Programs): Show a sample Makefile.am. Remind $(EXEEXT) must be appended to configure substitutions. Show how Automake conditionals can be used instead. * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also appended to conditionally defined programs.
Alexandre Duret-Lutz 6975cde2 2003-01-13T19:17:54 * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames. Use '_build' and '_inst' instead of '=build' and '=inst'. * tests/man2.test: Reflect change automake: check for files in '_build' and '_inst' directories instead of '=build' and '=inst'.
Alexandre Duret-Lutz a17b4312 2003-01-13T14:22:25 * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames. Use '_build' and '_inst' instead of '=build' and '=inst'. * tests/man2.test: Reflect change automake: check for files in '_build' and '_inst' directories instead of '=build' and '=inst'.
Alexandre Duret-Lutz bb174399 2003-01-13T14:04:41 Use `_dirstamp' when the file-system doesn't support `.dirstamp'. * m4/lead-dot.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4 * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.: * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define DEPDIR using am__leading_dot. * automake.in (require_build_directory): Define am__dirstamp, a new variable for the dirstamp basename, based on am__leading_dot. * tests/subobj6.test: Move all `test -f' into Makefiles, so we can use $(am__dirstamp). Reported by Richard Dawe.
Alexandre Duret-Lutz e3b2b029 2003-01-13T11:06:40 * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test: Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when testing for programs. Reported by Richard Dawe.
Alexandre Duret-Lutz e44668c6 2003-01-10T19:30:18 * Makefile.am (maintainer-check): Suggest using $sleep instead of sleep 2. * tests/defs.in (sleep): New variable. * tests/asm.test, tests/confsub.test, tests/lisp3.test, tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test: Use $sleep instead of sleep 2, to work around timestamp inconsistencies in Windows. Reported by Richard Dawe.
Alexandre Duret-Lutz 0e3cecdd 2003-01-10T18:15:22 * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh after $MAKE -e. * tests/ansi3.test, tests/ansi5.test, tests/cond22.test, tests/man2.test, tests/subobj3.test, tests/suffix8.test, tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e. $SHELL is overridden by tests/defs, so it won't hurt even if $MAKE -e uses the $SHELL envvar. * tests/ansi.test, tests/insh2.test, tests/texinfo.test, tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh. Reported by Richard Dawe.
Alexandre Duret-Lutz 1b88809d 2003-01-10T17:25:38 Build elisp files all at once instead of one by one. * automake.in (handle_emacs_lisp): Define am__ELFILES. Add elc-stamp to all's dependencies. * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files. (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist. (clean-lisp): Clean elc-stamp. * lib/elisp-comp: Reindent. Erase the temporatry directory from a trap. Propagate Emacs's exit status. * tests/lisp3.test: New file. * tests/Makefile.am (TESTS): Add lisp3.test. Reported by Ryan T. Sammartino.
Akim Demaille 25db9e9b 2003-01-09T12:43:42 Regen.
Alexandre Duret-Lutz 715ffed4 2003-01-05T22:41:33 * tests/defs.in: Substitute aclocaldir instead of running the installed aclocal. Otherwise Libtool and Gettext tests get skipped when aclocal doesn't preexist. Reported by Imacat. * tests/listval.test, tests/suffix2.test: Remove pointless -I argument to aclocal.
Alexandre Duret-Lutz ef3bf50f 2002-12-13T21:59:10 * tests/version7.test: Require GNU make. Reported by Patrick Welche.
Alexandre Duret-Lutz 364483ba 2002-12-12T13:41:00 * m4/init.m4 (AM_INIT_AUTOMAKE): Properly quote AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION.
Alexandre Duret-Lutz 62134ac5 2002-12-05T15:26:58 * lib/am/texinfos.am (install-info-am, uninstall-info-am): Strip directories from info filenames. * tests/texinfo13.test: Make sure main.info gets installed as $(infodir)/main.info.
Alexandre Duret-Lutz 4db71e50 2002-12-05T11:05:39 * automake.in (handle_dist): Do not define %GETTEXT% if the user is using $seen_gettext_external, this distcheck won't run `./configure' with a meaningless `--with-included-gettext'. * tests/gettext.test: Make sure distcheck uses --with-included-gettext. * tests/gettext2.test: Make sure distcheck does not use --with-included-gettext.
Alexandre Duret-Lutz 2ee7757c 2002-12-04T20:02:30 * tests/ansi10.test (liblib_a_LIBADD): Set ac_cv_prog_cc_stdc not am_cv_prog_cc_stdc.
Alexandre Duret-Lutz 97494915 2002-12-04T18:07:43 * tests/depcomp2.test: Pass CC='gcc' as an argument to ./configure not in the environment. Otherwise the test will fail when run with ksh and VERBOSE=x. Reported by Paul Jarc.
Alexandre Duret-Lutz 48023ff5 2002-12-04T17:45:26 * tests/man2.test: Exercize `make uninstall', to test the previous change.
Alexandre Duret-Lutz f5e15d52 2002-12-03T20:41:48 * automake.in (macro_define): Do not strip escaped new lines in Automake's +='ed variables. We don't know whether it will be pretty printed or not at this point. (variable_pretty_output): Do this here. * tests/pluseq10.test: New file. * tests/Makefile.am (TESTS): Add pluseq10.test. Reported by Ralf Corsepius.
Alexandre Duret-Lutz eb569773 2002-12-03T19:05:04 Revert previous patch (the one for PR automake/379), it conflicts with PR/280.
Alexandre Duret-Lutz 62e41948 2002-12-03T18:00:21 For PR automake/379: * automake.in (read_am_file): Do not complain about backslashes before blank lines when the backslash is in a comment. * tests/Makefile.am (TESTS): Add comment8.test. * tests/comment8.test: New file.
Alexandre Duret-Lutz c4c55d85 2002-12-02T18:04:47 * tests/gnits3.test (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Append $(EXEEXT) again.
Alexandre Duret-Lutz cc6883cf 2002-12-02T08:08:48 * automake.texi (Options): Programs listed in AM_INSTALLCHECK_STD_OPTIONS_EXEMPT should have $(EXEEXT) appended. * tests/gnits3.test (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Append $(EXEEXT). Reported by Charles Wilson.
Alexandre Duret-Lutz 864199e3 2002-12-01T18:16:34 * automake.in (lang_c_finish): Do not fill de_ansi_files with subdirectory informations for %libsources files. This revers part of a change from 2002-01-13. * tests/ansi10.test: New file. * tests/Makefile.am (TESTS): Add ansi10.test.
Alexandre Duret-Lutz 456c77e7 2002-11-30T20:41:12 * tests/gnits2.test, tests/gnits3.test: Move the greps inside the Makefile, so we can honor $(EXEEXT). Otherwise these tests fail under Cygwin. Reported by Charles Wilson.
Alexandre Duret-Lutz 2c8ac917 2002-11-30T20:12:19 For PR automake/375 (Debian Bug #168671): * automake.in (scan_texinfo_file): Erase all known index files, no matter whether they are used at the top-level or not, because we can never know if they are used in included files. The remaining macros we recognize at the top-level of a Texi document are @defindex, @defcodeindex, @synindex, and @syncodeindex. * tests/texinfo18.test: New file. * tests/Makefile.am (TESTS): Add texinfo18.test. Reported by Simon Richter.
Alexandre Duret-Lutz 9ef8a37f 2002-11-30T16:51:15 * automake.in (scan_texinfo_file): Honor only the first @setfilename. * tests/texinfo17.test: New file. * tests/Makefile.am (TESTS): Add texinfo17.test. Reported by Karl Berry.
Alexandre Duret-Lutz 9e34120c 2002-11-30T15:34:49 For PR automake/357: * automake.in (require_file_internal): Don't complain a file is "not found" when it is a target. Make sure "not found" files are otherwise reported as error (they were reported as 'note'). * tests/distcommon3.test: Augment to test the above. * tests/libobj12b.test: Touch ltmain.sh. * tests/required2.test: Make sure Automake fails because ltmain.sh has been removed. Reported by Ronald Landheer.
Alexandre Duret-Lutz f373ac53 2002-11-30T13:11:05 * tests/texinfo3.test: Make sure we don't output single suffix inference rules when building `.info'-less Info files (this confuses Solaris make). Run distcheck to make sure the rules work. * automake.in (output_texinfo_build_rules): Define GENERIC_INFO and SOURCE_INFO. * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%, %DEST_PREFIX%%DEST_SUFFIX%): Honor GENERIC_INFO and SOURCE_INFO.
Alexandre Duret-Lutz a117c24e 2002-11-29T21:53:06 For PR automake/359: * automake.in (do_check_merge_target): Make `check' dependent on $(BUILT_SOURCES) if the variable is defined. Run `check-am' or `check-recursive' in a submake in this case. * tests/check2.test, tests/check3.test: New files. * tests/check.test: Make sure `check' depends on `check-am'. * tests/Makefile.am (TESTS): Add check2.test and check3.test.
Alexandre Duret-Lutz bd4be419 2002-11-29T17:52:09 For PR automake/371 and PR automake/372: * automake.in (rule_define): Honor inference rules with multiple targets, and warn when they are used. * tests/suffix11.test: New file. * tests/Makefile.am (TESTS): Add suffix11.test. Reported by Duncan Gibson.
Alexandre Duret-Lutz 62aa352d 2002-11-28T21:01:51 For PR automake/370: * automake.in (handle_languages): Don't prepend $U to $myext since handle_single_transform_list now appends it to $obj. Process the rule twice to handle deansified files in subdirectories. Mark _.c files in subdirectories for cleaning. (handle_single_transform_list): Append $U to $obj_sans_ext if needed: before this dependencies were output foo.Po instead of foo$U.Po. Don't output explicit dependencies for renamed objects or sources in sub-directories: we already output a full compile rule for them. (lang_c_finish): Don't always use the full filename in the .c -> _.c rule. This reverts part of my change of 2002-11-21. * tests/ansi6.test, tests/ansi7.test: Make sure deansified files are created in the right directory, and cleaned. Reported by Kevin Ryde.
Alexandre Duret-Lutz 6f59504e 2002-11-21T13:27:20 * tests/texinfo13.test: Require texi2dvi-o. * tests/defs.in: Handle required=texi2dvi-o.
Alexandre Duret-Lutz b93c7625 2002-11-20T23:28:07 * automake.in (handle_single_transform_list): Don't strip the directory from $full_ansi. This reverts my patch of 2002-10-16. (lang_c_finish): Use the full filename, including the directory, in the .c -> _.c rule. These two files must reside in the same directory. * tests/ansi6.test: Also try to compile without ansi2knr. Reported by Andreas Schwab
Alexandre Duret-Lutz 6a952503 2002-11-20T22:03:57 * automake.in (conditional_ambiguous_p, macro_define, rule_define, require_variables): Use ->human instead of ->string. * lib/Automake/Conditional.pm (string): Don't sort conditions, they are already sorted. (_to_human, human): New functions. * lib/Automake/ConditionalSet.pm (human): New function. * tests/cond27.test, tests/library3.test, tests/pluseq5.test, tests/pluseq9.test: Adjust.
Alexandre Duret-Lutz 149abece 2002-11-19T20:02:40 * lib/Automake/ConditionalSet.pm (_simplify, simplify): New methods. (true): Cache return value, so _simplify can use it. * lib/Automake/tests/ConditionalSet.pl (test_simplify): New function. * automake.in (variable_not_always_defined_in_cond): Return a simplified ConditionalSet. (macro_define, require_variables): Adjust. * tests/Makefile.am (TEST): Add library3.test. * tests/library3.test: New file. * tests/pluseq9.test: Adjust. Thanks to Raja R Harinath.
Alexandre Duret-Lutz 180cd66e 2002-11-18T18:43:37 * lib/Automake/tests/Makefile.am, lib/Automake/tests/Conditional.pl, lib/Automake/tests/ConditionalSet.pl: New files. * lib/Automake/Makefile.am (SUBDIRS): New variable. * configure.in: Output lib/Automake/tests/Makefile. * lib/Automake/ConditionalSet.pm (by_conditions): Delete. (conds): Don't use by_conditions, sort alphabetically, and return sorted conds. (string): Call ->string on each Conditional. * tests/Makefile.am (TESTS): Remove cond12.test. * tests/cond12.test: Remove, moved to lib/Automake/tests/ConditionalSet.pl. * tests/cond3.test: Adjust conditional ordering.
Alexandre Duret-Lutz 70173bfc 2002-11-13T20:11:32 * automake.in: Don't declare TRUE and FALSE, import them from Automake::Conditional. * lib/Automake/Conditional.pm (TRUE, FALSE): New constants. (new): Simplify using FALSE. (reduce): New function, moved from ... * automake.in (variable_conditions_reduce): ... here. (variable_conditions_recursive_sub, invert_conditions): Adjust calls to Automake::Conditional::reduce. * tests/cond12.test: Adjust to use Automake::Conditional.
Jim Meyering 5fa44648 2002-11-10T14:25:23 regen
Jim Meyering 875b1a66 2002-11-10T14:25:16 (TESTS): Add installsh2.test.
Jim Meyering 2afb4254 2002-11-10T14:24:01 Make install-sh work even when names contain spaces or certain (but not all) shell metachars. * lib/install-sh: Remove lots of unnecessary quoting. Add double quotes where necessary. Write diagnostics to stderr, not stdout. Normalize spacing in diagnostics: use one space (not two, and not a TAB) after the leading `install:'. Remove trailing white space. Remove unnecessary curly braces. If removing the destination fails, also try to move it aside. Use `trap' more portably. * tests/installsh2.test: New file, to test for the above fix. * tests/Makefile.am (TESTS): Add installsh2.test.
Akim Demaille ce9484c9 2002-10-31T11:55:27 * tests/location.test (Makefile.am): Strengthen. * lib/Automake/Channels.pm (_print_message): Be sure to flush $partial when the message is output. Thanks to Alexandre Duret-Lutz.
Akim Demaille 49018c00 2002-10-31T11:42:23 * automake.in (&read_am_file): Use $last_where to register the _first_ line of a variable definition as location instead of the last one. (&conditional_ambiguous_p): Don't forget to ->string the Conditionals. (&rule_define): Likewise. * tests/location.test: Adjust to exercise this.
Alexandre Duret-Lutz c564e43d 2002-10-25T18:08:20 2002-10-25 Charles Wilson <cwilson@ece.gatech.edu> * tests/defs.in: Add explicit stanza for python -V.
Alexandre Duret-Lutz e13cf527 2002-10-16T18:53:44 * tests/ansi6.test, tests/ansi7.test: Set ac_cv_prog_cc_stdc instead of am_cv_prog_cc_stdc. This follows Akim's patch of 2002-10-09, and reveals a bug in my patch of 2002-10-15. * automake.in (handle_single_transform_list): Strip directory name from $full_ansi if subdir-objects is not set.
Alexandre Duret-Lutz dd335986 2002-10-15T08:38:55 * automake.in (handle_single_transform_list) <full_ansi>: New variable. Use this to record correct dependencies about deansifiable files which are using per-program flags or are in a subdirectory. * tests/ansi9.test: New file. * tests/Makefile.am (TESTS): Add ansi9.test. Reported by Paul D. Smith
Alexandre Duret-Lutz 84f29b04 2002-10-12T21:19:29 * aclocal.in (ac_defun_rx, ac_require_rx): If the macro name is quoted, accept any character but `]'. This makes it possible to define macros such as `AC_LANG_PREPROC(Fortran 90)'. (scan_m4_files): Quote $key in the regex. Don't define $expr, it's not used. (add_file, scan_file): Adjust to the new definitions of $ac_defun_rx and $ac_require_rx. * tests/aclocal2.test: New file. * tests/Makefile.am (TESTS): Add aclocal2.test. Reported by Tamara L. Dahlgren and Tom Epperly.
Alexandre Duret-Lutz 7f3fdf37 2002-10-10T18:22:07 For PR automake/369: * lib/am/python.am: Lookup python files in build directory or source directory. From Mathias Doreille. * tests/python3.test: New file. * tests/Makefile.am (TESTS): Add python3.test. * tests/defs: Handle `required=python'.
Alexandre Duret-Lutz fd386946 2002-10-10T17:37:38 For PR automake/358: * lib/am/texi-vers.am (%STAMPVTI%): Depend on configure instead of configure.ac. Suggested by Thien-Thi Nguyen. * lib/am/configure.am ($(srcdir)/configure): Depends on %CONFIGURE_DEPS% * automake.in (@configure_deps): New array. (scan_autoconf_traces): Scan for m4_include and m4_sinclude, and fill @configure_deps. (handle_configure): Substitute %CONFIGURE_DEPS%. Distribute @configure_deps. * tests/version7.texi: New file. * tests/vtexi.test: Adjust. * tests/Makefile.am (TESTS): Add version7.test. * automake.texi (Dist): Mention that m4_include'd files are distributed.
Alexandre Duret-Lutz 6f7799f1 2002-10-09T21:24:50 * m4/ccstdc.m4 (AM_PROG_CC_STDC): Its definition is now empty: the content of this macro was merged in AC_PROG_CC. * m4/protos.m4 (AM_C_PROTOTYPES): Adjust to AC_C_PROTOTYPES. * tests/depacl.test: Remove, it exercize aclocal in a way that was exercized by all the other tests since the test suite really uses aclocal. * tests/Makefile.am (TESTS): Remove depacl.test.
Alexandre Duret-Lutz 46dc44f4 2002-10-07T09:23:33 * lib/Automake/Conditional.pm: New file. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Conditional.pm. * automake.in: Use Automake::Conditional. (TRUE, FALSE): New constants. (%var_value, %var_location, %var_comment, %var_type, %var_owner, %targets, %target_source, %target_name, %target_owner): Tie to Tie::RefHash::Nestable. (generate_makefile, process_option_list, handle_options, handle_languages, handle_source_transform, handle_compile, handle_libtool, handle_texinfo_helper, handle_dist, handle_subdirs, scan_aclocal_m4, handle_emacs_lisp, handle_python, scan_autoconf_files, variable_assert, define_variable, define_pretty_variable, define_configure_variable, am_install_var, push_dist_common): Use TRUE. (define_objects_from_sources): Fix return value on "recursively-defined" errors. (conditional_string, conditional_true_when, conditional_is_redundant, conditional_implies_any, make_conditions): Remove these functions, obsoleted by Conditional.pm. (cond_stack_if, cond_stack_else, cond_stack_endif): Return an Automake::Conditional instance. (by_condition, conditional_ambiguous_p, variable_not_always_defined_in_cond, macro_define, variable_conditions_recursive, variable_conditions_recursive_sub, variable_conditions_reduce, invert_conditions, variable_conditions_permutations, check_variable_defined_unconditionally, variable_value_as_list, variable_output, variable_pretty_output, rule_define, read_am_file, file_contents_internal, require_variables): Adjust to use Automake::Conditional objects. (handle_footer): Get $(SUFFIXES) in 'all' conditions. * tests/cond12.test: Adjust to use Automake::Conditional objects.
Alexandre Duret-Lutz 972b4534 2002-10-01T19:59:34 * automake.in (handle_source_transform): If foo_SOURCES is defined conditionally, create and use am__foo_SOURCES_DIST for distribution. * tests/condd.test: Extend to check distributed files. * tests/substref.test: Make sure we don't use such a variable when it's not needed. Reported by Marcus Brinkmann.
Alexandre Duret-Lutz d34b18cc 2002-09-30T20:12:27 * tests/defs.in: Run $MAKE --version -v. * tests/dollar.test: Abort on ./defs failure. * tests/lex5.test: Require GNUmake, not make.
Alexandre Duret-Lutz e4dfb627 2002-09-30T18:08:07 * automake.in (require_variables): The fix introduced in 2002-09-19 is imcomplete. Rewrite the conditional variable definition check using &variable_not_always_defined_in_cond. * tests/cond26.test, tests/cond27.test, tests/cond28.test: New file. * tests/Makefile.am (TESTS): Add cond26.test, cond27.test, and cond28.test. Reported by Juergen Keil.
Alexandre Duret-Lutz c864bddd 2002-09-30T13:05:03 regen
Alexandre Duret-Lutz 6f7f6265 2002-09-30T12:32:21 Fix for PR automake/366: * automake.in (handle_dist): Strip $(srcdir) and replace $(top_srcdir) when computing DIST_COMMON directories. * tests/include2.test: Use an obsolute $(srcdir), and check for spurious directories in $(distdir)/sub. * lib/am/distdir.am: Rewrite $(top_srcdir) as $(top_builddir). Reported by Kevin Ryde.
Alexandre Duret-Lutz da988ed6 2002-09-29T13:08:18 * automake.in (handle_ltlibraries): Record library locations in %liblocations, and print the previous declaration on error. * tests/libtool6.test: Check that the locations of the two definitions are shown.
Alexandre Duret-Lutz 8910bab0 2002-09-29T12:49:07 For PR automake/360: Propagate more locations. * automake.in (handle_programs): Adjust usage of am_install_var's return value. Pass on locations as context to file_contents. (handle_libraries, handle_ltlibraries): Likewise. Use locations in the 'not a standard library name' diagnostic. (handle_emacs_lisp, handle_python): Adjust usage of am_install_var's return value. Pass on locations to require_variables and require_conf_file. (check_ambiguous_conditional): Strip trailing dot in message. (value_to_list): Add the $WHERE and $LOC_WANTED arguments. (variable_value_as_list_recursive_worker): Add the $LOC_WANTED argument. Adjust calls to value_to_list. (variable_value_as_list_recursive): Call variable_value_as_list_recursive_worker with $LOC_WANTED = 0. (variable_loc_and_value_as_list_recursive): New function, variable_value_as_list_recursive_worker with $LOC_WANTED = 1. (am_install_var): Use variable_loc_and_value_as_list_recursive, and return a list of [$location, $value] pairs. (rule_define): Use better locations in EXEEXT diagnostic. (handle_source_transform, define_objects_from_sources): Add and use a $WHERE argument. Adjust callers. * tests/stdlib.test: Grep the location in error message. * tests/location.test: New file. * tests/Makefile.am (TESTS): Add location.test.
Alexandre Duret-Lutz 27855504 2002-09-29T10:35:03 * tests/exeext3.test: New file. * tests/Makefile.am (TESTS): Add exeext3.test. * automake.in (%target_name): New hash. (initialize_per_input): Reset %target_name. (rule_define): Fill %target_name, and use it to detect targets which have been registered with key X but really are X$(EXEEXT).
Alexandre Duret-Lutz 5d52af28 2002-09-28T12:41:06 For PR automake/360: * lib/Automake/Location.pm: New file. * lib/Automake/Channels.pm (_print_message): Display contexts when given an Automake::Location. (msg): Clone the location. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Location.pm. * tests/comment5.test: Make sure we display `included from' stacks. * automake.in: Use Automake::Location. (INTERNAL): New constant. (file_contents, file_contents_internal, define_variable, define_pretty_variable, read_am_file): Take $WHERE as argument. Adjust all callers. (scan_autoconf_traces) <$where>: Define as a Location, and use it instead of $here. (macro_define, rule_define): Make sure $WHERE is a location. Clone it before updating $var_location or $targets.
Alexandre Duret-Lutz bc638d97 2002-09-25T20:30:49 * configure.in: Bump version to 1.7a.
Alexandre Duret-Lutz c2d90d2e 2002-09-25T20:17:13 * NEWS, configure.ac: Version 1.7.
Alexandre Duret-Lutz 3c407110 2002-09-25T18:46:47 * configure.in: Check for 'tex'. * tests/defs.in: Handle required=tex using configure's result. Reported by Patrick Welche.
Alexandre Duret-Lutz b125b7ad 2002-09-24T22:50:35 * tests/specflags7.test (true_CFLAGS, false_CFLAGS, false.c): Use AM_TRUE, AM_FALSE to avoid bad interaction with Tru64 UNIX <sys/types.h>. * tests/specflags8.test (true_CPPFLAGS, false_CPPFLAGS, false.c): Likewise.
Alexandre Duret-Lutz 8b317c41 2002-09-24T19:37:24 * tests/target-cflags.test: Build in `build/', not `obj/' because `obj/' is special to BSD make.
Alexandre Duret-Lutz 6672e40d 2002-09-24T08:05:58 * tests/defs.in (SHELL): Set it.
Alexandre Duret-Lutz 9a5358a7 2002-09-23T22:08:31 For PR automake/350: * automake.in (handle_ltlibraries): Allow a library to be installed many times in the same directory. * tests/libtool5.test, tests/libtool6.test: New files. * tests/Makefile.am (TESTS): Add libtool5.test and libtool6.test.
Alexandre Duret-Lutz 8d510c6d 2002-09-22T19:02:45 * automake.in (handle_ltlibraries): Fill $libtool_clean_directories here, with directories where .la files are built... (handle_single_transform_list): ... not here with directories where .lo files are built. * tests/libtool3.test: Build a library in a subdirectory to check for this. Reported by Peter Gavin.
Alexandre Duret-Lutz 1d4f1787 2002-09-22T18:57:18 * tests/cond5.test: Give more time to automake. Reported by Art Haas.
Alexandre Duret-Lutz 749fdb7f 2002-09-22T14:35:19 * automake.in (macro_define): Update a variable's location each time its owner is updated. * tests/gnuwarn.test: Append to CFLAGS to check for this. Reported by Harlan Stenn.
Alexandre Duret-Lutz a0984319 2002-09-20T11:29:12 * configure.in: Bump version to 1.6g.
Alexandre Duret-Lutz 903ee525 2002-09-20T11:20:04 * configure.in, NEWS: Bump version to 1.6f.
Pavel Roskin b09e0327 2002-09-19T19:04:16 * tests/warnopts.test: Fix random failures by removing Autoconf cache directory whan configure.in changes. Use the code and the comment from tests/asm.test.
Alexandre Duret-Lutz 30d3b058 2002-09-19T09:16:05 For PR automake/361: * tests/suffix8.test: More explicit dependencies. Reported by Paul Eggert.
Alexandre Duret-Lutz 2074e6c6 2002-09-19T08:59:49 * automake.in (rule_define): Don't diagnose duplicate user rules. * tests/phony.test, tests/percent2.test: New files. * tests/Makefile.am (TESTS): Add them.
Alexandre Duret-Lutz 7d1007cc 2002-09-19T07:59:37 * automake.in (require_variables): Search variable definitions in any condition implied by $cond. * tests/cond25.test: New file. * tests/Makefile.am (TESTS): Add cond25.test. Reported by Pavel Roskin.
Alexandre Duret-Lutz f8f7b1aa 2002-09-19T07:31:49 * tests/subobj9.test: Skip this test on configure errors.
Alexandre Duret-Lutz b2a016ed 2002-09-18T21:17:27 * configure.in: Bump version to 1.6e.
Alexandre Duret-Lutz a0a144cd 2002-09-18T21:05:27 * configure.in, NEWS: Bump version to 1.6d. * tests/libobj12.test, tests/libobj12b.test: Include ./defs, not $srcdir/defs. * tests/suffix8.test: Typo.
Alexandre Duret-Lutz a294ed3b 2002-09-18T18:43:24 For PR automake/353: fill %var_location, %var_comment, %var_type, %var_owner for each condition. * automake.in (msg_cond_var): New function. (msg_var): Use it. (generate_makefile, process_option_list, handle_languages, handle_lib_objects_cond, handle_compile, handle_libtool, handle_ltlibraries, handle_texinfo_helper, handle_tests, handle_emacs_lisp, handle_python, macro_define, macro_delete, macro_dump, variable_assert, variable_output, variable_pretty_output, read_am_file, read_main_am_file, file_contents_internal, am_primary_prefixes, require_variables_for_macro): Adjust accesses to %var_location, %var_comment, %var_type, %var_owner. (append_comments, require_file_with_macro, require_conf_file_with_macro, require_variables): Add the $cond argument. * tests/comment7.test: New file. * tests/Makefile.am (TESTS): Add comment7.test.
Alexandre Duret-Lutz 13d64b8c 2002-09-17T21:11:49 * automake.in (handle_programs): Ooops. Really add LDADD objects into _DEPENDENCIES. * tests/libobj12.test: Check for it.
Alexandre Duret-Lutz 545416a7 2002-09-17T20:53:09 2002-09-17 Assar Westerlund <assar@kth.se> Alexandre Duret-Lutz <duret_g@epita.fr> * automake.in (handle_programs, handle_libraries, handle_ltlibraries): Maintain $seen_libobjs on a per-program/per-library basis, instead of globally to each of these functions. * tests/libobj12.test, tests/libobj12b.test: New files. * tests/Makefile.am (TESTS): Add libobj12.test and libobj12b.test.
Alexandre Duret-Lutz c8409243 2002-09-17T19:32:54 * tests/defs.in (configure.in): Don't call AC_PROG_INSTALL and AC_PROG_MAKE_SET.
Alexandre Duret-Lutz da31858a 2002-09-17T18:07:23 * automake.in: Rename the 'unused' channel to 'syntax'. (variable_defined): Issue a warning instead of an error for variable-is-a-target conditions. * automake.texi (Invoking Automake): Rename the 'unused' channel to 'syntax'. * tests/warnopts.test: Likewise.
Alexandre Duret-Lutz a187d2b0 2002-09-17T17:40:14 * tests/suffix8.test: Add explicit dependencies. * tests/texinfo13.test, tests/texinfo16.test: Require tex.
Pavel Roskin 69481950 2002-09-16T20:39:59 Add "defs".
Alexandre Duret-Lutz f0791481 2002-09-16T10:12:22 * configure.in, m4/init.m4, NEWS: Require Autoconf 2.54.
Tom Tromey 806f257a 2002-09-15T20:45:48 * tests/subdircond3.test: Pass flags to make in environment. * tests/subdircond2.test: Pass flags to make in environment. * Makefile.am (maintainer-check): Add a new check for @...@ substitutions. Updated correct number of diffs between source and build trees.