1999-04-11 Tom Tromey * automake.in (handle_dist): Use AMTAR. (initialize_global_constants): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR. * automake.in (lang_sub_obj): New function. (lang_cxx_rewrite): Use it. (lang_asm_rewrite): Likewise. (lang_objc_rewrite): Likewise. (lang_cxx_finish): Add `-o $@' to all C++ rules. (lang_asm_finish): Add `-o' to suffix rules when appropriate. (lang_objc_finish): Add `-o $@' to all ObjC rules. (lang_java_finish): Likewise. * automake.in: Only register `asm' once. (lang_asm_finish): Put assembly suffixes on @suffixes. * libtool.am (.s.lo): Removed. (.S.lo): Likewise. * automake.in (lang_asm_finish): Handle libtool. * libtool.am (.c.o): Always pass -c to libtool. * automake.in (lang_yacc_rewrite): Handle sources in subdirs. (lang_yaccxx_rewrite): Likewise. (lang_lex_rewrite): Likewise. (lang_lexxx_rewrite): Likewise. Assembly code no longer included by default: * compile.am (.s.o): Removed. (.S.o): Likewise. * automake.in: Register `asm' language. (lang_asm_finish): Generate suffix rules for assembly. (get_object_extension): Don't add `.s' or `.S' to suffix list. * automake.in (get_object_extension): Substitute @MINUSO@ when including compile.am. * compile.am (.c.o): Added @MINUSO@. (.c.obj): Likewise. First cut at allowing objects in subdirectories: * m4/Makefile.am (m4data_DATA): Added minuso.m4. * Makefile.am (dist_script_DATA): Added compile. * m4/minuso.m4: New file. * automake.in (initialize_global_constants): Added compile to common_files. (seen_cc_c_o): New global. (scan_one_configure_file): Set it when AM_PROG_CC_C_O seen. (handle_options): Recognize `subdir-objects' option. (lang_c_rewrite): Added directory argument. (lang_yacc_rewrite): Likewise. (lang_yaccxx_rewrite): Likewise. (lang_lex_rewrite): Likewise. (lang_lexxx_rewrite): Likewise. (handle_single_transform_list): Pass directory to _rewrite function. Generate dependencies for dirstamp files for each .o; it is just the rules we want to create once. (lang_c_rewrite): Handle `subdir-objects' option. (lang_c_rewrite): Require `compile' program. * compile: New file. * automake.in (initialize_per_input): Initialize %directory_map. (handle_single_transform_list): Only create .dirstamp rules once per directory. * m4/gcj.m4 (AM_PROG_GCJ): Use AC_CHECK_PROGS, not AC_CHECK_PROG. Fix for confh.test: * automake.in (configure_input_files): New global. (scan_configure): Set it. (handle_configure): Use configure_input_files when determining which subdirs have a Makefile.am. Fixes confh.test. (handle_configure): Only recognize acconfig.h in top srcdir. 1999-04-10 Tom Tromey * depend2.am (%.o): Use `$(*D)/$(*F)', not just `$(*F)'. (%.lo): Likewise. * automake.in (am_install_var): Remove redundancies from the result. Fixes test cond8.test. * automake.in (handle_single_transform_list): Handle dependency tracking when files are created in subdirs. Error if object in subdir has `..' component. * automake.in (initialize_global_constants): Use $(TAR), not tar. * automake.in (handle_ltlibraries): Allow check_LTLIBRARIES. * automake.in (lang_yacc_finish): Added missing `&'. 1999-04-10 Alexandre Oliva * automake.in (handle_configure): Replace multiple occurrences of @STAMP@ in the same line; completes the patch for remake-hdr.am below. * automake.in (handle_dependencies): Fix test for `autodep' support. * automake.in (handle_source_transform): Add a pfx to used_pfx only if it's conditional or non-empty, to reduce the number of empty variables. Emit _OBJECS variable based on program name if no SOURCES were explicitly specified. * remake-hdr.am: Create the stamp file before the header file, and just rename it after, so that the timestamps will be correct. Reported by Marc Horowitz * automake.in (lang_yacc_finish): Generate and dist a `.h' for a `.y' iff YFLAGS or AM_YFLAGS contain `-d'. Reported by Jim Meyering * automake.in (lang_yacc_finish): $hname must not contain a `.'. 1999-04-10 Tom Tromey * Makefile.am (EXTRA_DIST): New macro. * ChangeLog.1996, ChangeLog.1998: New files. 1999-04-09 Tom Tromey * automake.in (handle_source_transform): Handle dist and nodist prefixes. (initialize_per_input): Initialize dist_sources. (check_libobjs_sources): Handle dist and nodist prefixes. (generate_makefile): Define DIST_SOURCES. * dist-vars.am (DISTFILES): Reference DIST_SOURCES, not SOURCES. * automake.texi (Macros): Mention AM_PROG_GCJ. (Java Support): New node. (Dist): Documented dist_ and nodist_ prefixes. * m4/gcj.m4 (AM_PROG_GCJ): Renamed from AC_PROG_GCJ. * automake.in (lang_java_finish): Generate .lo rule for `.java' files, not `.gcj' files. * m4/gcj.m4: New file. * m4/Makefile.am (m4data_DATA): Added gcj.m4. * automake.in: Register the `java' language. (resolve_linker): Handle GCJLINK. (lang_java_rewrite): New function. (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR): New constants. (lang_c_rewrite): Use new constants. (lang_cxx_rewrite): Likewise. (lang_header_rewrite): Likewise. (lang_yacc_rewrite): Likewise. (lang_yaccxx_rewrite): Likewise. (lang_lex_rewrite): Likewise. (lang_lexxx_rewrite): Likewise. (lang_asm_rewrite): Likewise. (lang_f77_rewrite): Likewise. (lang_ppf77_rewrite): Likewise. (lang_ratfor_rewrite): Likewise. (lang_objc_rewrite): Likewise. (handle_single_transform_list): Likewise. Handle LANG_SUBDIR return from rewrite function. (lang_java_finish): New function. (register_language): Changed interface and all calls. Added `autodep' settings to various languages. (handle_dependencies): Use `autodep' property of language when including dependency-tracking code. 1999-04-07 Tom Tromey * automake.in (handle_texinfo): Indentation fixes. 1999-04-07 Alexandre Oliva * automake.in (value_to_list): Skip *only* trailing backslashes. 1999-04-07 Pavel Roskin * automake.in (value_to_list): Skip trailing backslashes. 1999-04-07 Alexandre Oliva * automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir when appropriate. Reported by Per Cederqvist (handle_texinfo): Do not define texinfo_tex='.', use '$(srcdir)/texinfo.tex' instead; the directory name will be properly extracted. (require_conf_file_with_line): Fixed typo. 1999-04-03 Raja R Harinath * automake.in (handle_tests): Test `dir=./' before `dir=', so that we do not depend on PATH starting with `.'. 1999-03-31 Tom Tromey * automake.in (quote_cond_val): Quote \n. (unquote_cond_val): Unquote \n. (read_am_file): If line ends with `\', preserve it and add a newline. (read_main_am_file): In conditional case, put conditional text at beginning of each generated line. 1999-03-31 Alexandre Oliva * automake.in (handle_tests): support XFAIL_TEST * automake.texi: document it 1999-03-27 Tom Tromey * automake.in (saw_sources_p): Correctly count header extensions seen. (handle_headers): Fixed order of arguments to am_install_var. * automake.in (am_install_var): Don't error if EXTRA_foo is defined uselessly. * scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate. (uninstall-@DIR@SCRIPTS): Likewise. * progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate. (uninstall-@DIR@PROGRAMS): Likewise. * ltlib.am (install-@DIR@LTLIBRARIES): Use NDIR when appropriate. (uninstall-@DIR@LTLIBRARIES): Likewise. * lisp.am (install-@DIR@LISP): Use NDIR when appropriate. (uninstall-@DIR@LISP): Likewise. * libs.am (install-@DIR@LIBRARIES): Use NDIR when appropriate. (uninstall-@DIR@LIBRARIES): Likewise. * java.am (install-@DIR@JAVA): Use NDIR when appropriate. (uninstall-@DIR@JAVA): Likewise. * header.am (install-@DIR@HEADERS): Use NDIR when appropriate. (uninstall-@DIR@HEADERS): Likewise. * data.am (install-@DIR@DATA): Use NDIR when appropriate. (uninstall-@DIR@DATA): Likewise. * Makefile.in: Rebuilt. * Makefile.am (dist_pkgdata_DATA): Renamed. (EXTRA_DIST): Removed. (install-data-hook): Added POST_INSTALL; print commands as they are run; respect DESTDIR. * dist-vars.am (DISTFILES): Removed $(HEADERS). * automake.in (am_install_var): Accept `-candist' and `-defaultdist' options. Handle `dist_' and `nodist_' prefixes. (am_primary_prefixes): Added can_dist argument. Recognize `dist_' and `nodist_' prefixes. (handle_scripts): Pass -candist to am_install_var. (handle_data): Pass -defaultdist to am_install_var. (handle_headers): Likewise. (handle_emacs_lisp): Pass -candist to am_install_var. (handle_java): Pass -candist to am_install_var. 1999-03-26 Tom Tromey * m4/init.m4: Fixed typo when invoking SHELL. * automake.in (lang_yacc_finish): Always use `.h' as suffix for yacc header file. From Ralf Corsepius. * Makefile.in: Rebuilt. * Makefile.am: Updated to reflect removal of TAR subst. * automake.texi (Options): Document dist-bzip2. * automake.in (TAR): Removed global. (initialize_global_constants): Changed `dist' to use pipe with gzip; work with non-GNU tar. (handle_dist): Handle non-GNU tar. Don't define TAR. (initialize_global_constants): Added `dist-bzip2' entry. (handle_options): Recognize dist-bzip2 option. (handle_dist): Likewise. * configure: Rebuilt. * configure.in: Don't check for tar. * m4/init.m4 (AM_INIT_AUTOMAKE): Check for `tar'. Substitute AMTARFLAGS. * automake.in (am_install_var): Removed obsolete comment. * texinfos.am (uninstall-info): Don't print loop but instead print commands. Simplified pre-uninstall loop. * scripts.am (uninstall-@DIR@SCRIPTS): Don't print loop but instead print commands. * progs.am (uninstall-@DIR@PROGRAMS): Don't print loop but instead print commands. * ltlib.am (uninstall-@DIR@LTLIBRARIES): Don't print loop but instead print commands. * lisp.am (install-@DIR@LISP): Strip subdir from file name. (uninstall-@DIR@LISP): Likewise. Also, don't print loop but instead print commands. * libs.am (uninstall-@DIR@LIBRARIES): Don't print loop but instead print commands. * java.am (uninstall-@DIR@JAVA): Don't print loop but instead print commands. * header.am (install-@DIR@HEADERS): Strip subdir from file name. (uninstall-@DIR@HEADERS): Likewise. Also, don't print loop but instead print commands. * data.am (install-@DIR@DATA): Strip subdir from file name. (uninstall-@DIR@DATA): Likewise. Also, don't print loop but instead print commands. * automake.in (handle_merge_targets): `install-strip' is a phony target. From Michel de Ruiter. 1999-03-25 Tom Tromey * automake.in (define_compiler_variable): Don't define variable with trailing `_'. 1999-03-25 Alexandre Oliva * automake.in (LDADD): accept -dlopen and -dlpreopen here * automake.texi: ditto 1999-03-25 Alexandre Oliva * automake.in (TESTS): make from Solaris 7/x86 loses if srcdir is absolute and != objdir. dir="" or "$(srcdir)/" fixes it 1999-03-24 Tom Tromey * automake.in (define_compiler_variable): New sub. (finish_languages): Use it. (lang_cxx_finish): Likewise. (lang_f77_finish): Likewise. (lang_ppf77_finish): Likewise. (lang_ratfor_finish): Likewise. (lang_objc_finish): Likewise. 1999-03-23 Tom Tromey * progs.am (install-@DIR@PROGRAMS): Use `-e' instead of multiple sed invocations. From Elrond. (uninstall-@DIR@PROGRAMS): Likewise. * automake.in (lang_lex_finish): Rewrite `l', not `y', to `c'. From Ralf Corsepius. 1999-02-01 Thomas Tanner * automake.in: accept both A(C|M)_PROG_LIBTOOL, print a warning when AM_PROG_LIBTOOL was found * automake.texi: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL 1999-03-22 Tom Tromey Made `+=' more robust. Fixes pluseq6.test and pluseq7.test. * automake.in (define_standard_variables): New sub. (read_main_am_file): Use two passes to scan standard variables. (read_am_file): Don't special-case configure variables with `+='. (initialize_per_input): Initialize %var_was_plus_eq. (read_am_file): Set var_was_plus_eq element correctly. (define_variable): Give error if variable assigned with `+=' is internally defined. (initialize_per_input): Initialize %am_var_defs. (file_contents_with_transform): Set element in %am_var_defs. (read_am_file): Use %am_var_defs. 1999-03-21 Tom Tromey * automake.in (initialize_per_input): Initialize %object_map. (handle_single_transform_list): Allow source files in subdirectories. 1999-03-21 Jim Meyering * automake.in (handle_dist): Add missing newline after the first semicolon. 1999-03-11 Tom Tromey * m4/error.m4, m4/mktime.m4, m4/obstack.m4, m4/regex.m4, m4/strtod.m4: Use $ac_objext, not `.o'. From Jim Meyering. From Jim Meyering: * automake.in (handle_dist): Add `;\' to end of distcheck-hook line. (scan_one_configure_file): In LIBOBJS, recognize `$ac_objext' as legitimate ending. Fixes libobj9.test. From Ralf Corsepius. Fixes lex3.test. * automake.in (lang_yacc_finish): Include `.' in name pushed onto maintainer-clean list. (lang_lex_finish): Likewise. 1999-03-02 Tom Tromey * subdirs.am (maintainer-clean-recursive): Changed "&&" into "if" construct to work around FreeBSD make/sh problem. From Rich Wales. 1999-03-01 Tom Tromey Fixes from Pavel Roskin: * automake.in (variable_conditions_sub): Sort list passed to variable_conditions_permutations. (variable_conditions): Sort list before returning. 1999-02-27 Tom Tromey * automake.in (lang_extensions): New sub. (handle_dependencies): Use it. (cxx_extensions): Removed. (lang_cxx_finish): Use lang_extensions. (f77_extensions): Removed. (lang_f77_finish): Use lang_extensions. (objc_extensions): Removed. (lang_ppf77_finish): Put `.' before extension. Fixes ext.test. Report from Dave Morrison. (lang_ratfor_finish): Likewise. 1999-02-26 Tom Tromey * automake.in (finish_languages): Added AM_LDFLAGS. (lang_cxx_finish): Likewise. (lang_f77_finish): Likewise. (lang_ppf77_finish): Likewise. (lang_ratfor_finish): Likewise. (lang_objc_finish): Likewise. 1999-02-11 Tom Tromey * aclocal.in (obsolete_macros): Copied from automake.in. (obsolete_rx): Use only keys of obsolete_macros. (scan_configure): Report replacement macro for an obsolete macro. * automake.in (obsolete_macros): Added ud_GNU_GETTEXT. * automake.in (obsolete_macros): Corrected typo in AM_EXEEXT entry. Fixes obsolete2.test. * automake.in (obsolete_macros): Use empty string to indicate no substitution. (scan_one_configure_file): Likewise. 1999-02-07 Paul Eggert * m4/ccstdc.m4 (AM_PROG_CC_STDC): Prefer -Ae to -Aa -D_HPUX_SOURCE, since -Ae allows `long long' and this is needed by some programs. 1999-02-10 Tom Tromey * automake.in (handle_texinfo): Added `pgs' to list of extensions. From NISHIDA Keisuke. 1999-02-04 Akim Demaille * automake.in (handle_texinfo): remove texinfo.tex from TEXINFODIR. 1999-02-02 Tom Tromey * automake.in (handle_merge_targets): Use INSTALL_STRIP_FLAG. * progs.am (install-@DIR@PROGRAMS): Added INSTALL_STRIP_FLAG. * header-vars.am (INSTALL_PROGRAM): Removed AM_INSTALL_PROGRAM_FLAGS. (INSTALL_STRIP_FLAG): New macro. * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++ lex source. (lang_yacc_finish): Likewise. (lang_lex_finish): Likewise. 1999-02-01 Tom Tromey * automake.in (handle_dist_worker): Correctly find find in $$d, not $$. From Bill Davidson. * automake.in (finish_languages): Use "&", not "do". From Pavel Roskin. (handle_single_transform_list): Likewise. 1999-01-29 Tom Tromey * automake.in (handle_configure): Removed unused variable. From Pavel Roskin. * ansi2knr.c: New version from L. Peter Deutsch. 1999-01-22 Tom Tromey * automake.in (require_file_internal): Correctly examine return value of `system'. From Andris Pavenis. Fixes copy.test. * m4/init.m4 (AM_INIT_AUTOMAKE): Require autoconf 2.13. * automake.in (lang_ppf77_rewrite): New function. From Jochen Kuepper. Fixes ppf77.test. (lang_ratfor_rewrite): New function * automake.in (handle_configure): Use `&' before sub calls (Perl 4 fix). From Erez Zadok. 1999-01-15 Tom Tromey * configure.in: Version 1.4a (oops). * configure.in: Updated version to 1.5a. 1999-01-14 Tom Tromey * automake.in (handle_configure): Compute $header_dir based on $one_name, not $one_hdr. Reported by Erez Zadok. Fixes confh2.test. (handle_configure): Compute relative path to input header correctly in all cases. * automake.in (handle_tests): Avoid error messages from dejagnu test rules. From Karl Heuer. * automake.in (handle_texinfo): Add `/' to end of $conf_dir. * Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'. * texi-vers.am ($(srcdir)/stamp-@VTI@): Find @TEXI@ in srcdir. From Alexandre Oliva and Erez Zadok. * automake.in (create): Renamed from touch. (handle_configure): Use create, not touch. * config.sub, config.guess: New versions from autoconf. * mkinstalldirs: New version from autoconf. 1999-01-12 Tom Tromey * config.sub, config.guess, COPYING, texinfo.tex: New versions from FSF. 1999-01-11 Marcus G. Daniels * automake.in (PATH_PATTERN): New variable: (INCLUDE_PATTERN): Use it. Ignore all include commands using symbols besides $(top_srcdir) and $(srcdir). 1999-01-11 Alexandre Oliva * automake.in (handle_dist_worker): avoid failure in `make dist' if last file is a builddir-only file 1999-01-11 Alexandre Oliva * missing (autoheader): `s' was missing from sed script; grr 1999-01-11 Tom Tromey * remake-hdr.am (@STAMP@): Reverted timestamp change. ($(srcdir)/@STAMP@.in): Likewise. 1999-01-10 Tom Tromey * Makefile.am (scriptdir): New macro. (script_DATA): Likewise. (install-data-hook): Use them. (EXTRA_DIST): Added script_DATA. (installcheck-local): Use script_DATA. * Makefile.am (pkgdata_DATA): Removed duplicate definition. 1999-01-10 Alexandre Oliva * missing (autoheader): accept multiple header files (automake): simplify sed processing 1999-01-10 Alexandre Oliva * automake.in (handle_configure, stamp_dir): create only one stamp file per header, instead of one in the top-level directory and one in the directory that contains the header. 1999-01-10 Tom Tromey * automake.in (lang_objc_finish): Formatting fix. * automake.in (objc_extensions): New sub. (handle_dependencies): Only generate dependency-tracking code for ObjC when ObjC source seen.