* m4/lispdir.m4: Do not override lispdir if it's already defined.
Run some emacs-lisp to find out the site-lisp directory, but
relocate it into prefix.
* m4/mktime.m4 (bigtime_test, main): Move alarm from
bigtime_test to main, since Solaris 7 (64-bit) mktime loops
even outside of bigtime_test. Use a time limit of 60 seconds
for the whole test, not 10 seconds per iteration.
Tom Tromey [Fri, 16 Apr 1999 14:02:15 +0000 (14:02 +0000)]
From Brian Ford:
* progs.am (install-@DIR@PROGRAMS, uninstall-@DIR@PROGRAMS):
Invoke `sed' only once per program.
* scripts.am (install-@DIR@SCRIPTS, uninstall-@DIR@SCRIPTS):
Invoke `sed' only once per program.
Tom Tromey [Sun, 11 Apr 1999 21:16:22 +0000 (21:16 +0000)]
* 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.
Tom Tromey [Sun, 11 Apr 1999 13:02:35 +0000 (13:02 +0000)]
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.
Tom Tromey [Sat, 10 Apr 1999 23:29:40 +0000 (23:29 +0000)]
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.
Tom Tromey [Sat, 10 Apr 1999 23:27:03 +0000 (23:27 +0000)]
* confh.test: Use `sed' to extract full definition of
DIST_COMMON. Look for stamp-h.in rule in include/Makefile.in.
* Makefile.am (XFAIL_TESTS): Removed confh.test.
Tom Tromey [Sat, 10 Apr 1999 22:08:12 +0000 (22:08 +0000)]
* automake.in (handle_single_transform_list): Handle dependency
tracking when files are created in subdirs. Error if object in
subdir has `..' component.
* 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 <marc@mit.edu>
* automake.in (lang_yacc_finish): Generate and dist a `.h' for a
`.y' iff YFLAGS or AM_YFLAGS contain `-d'.
Reported by Jim Meyering <meyering@ascend.com>
Tom Tromey [Fri, 9 Apr 1999 12:01:27 +0000 (12:01 +0000)]
* 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.
* automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir
when appropriate.
Reported by Per Cederqvist <ceder@lysator.liu.se>
(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.
Tom Tromey [Wed, 31 Mar 1999 13:54:10 +0000 (13:54 +0000)]
* 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.
Tom Tromey [Sat, 27 Mar 1999 12:23:47 +0000 (12:23 +0000)]
* 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.
Tom Tromey [Fri, 26 Mar 1999 22:33:45 +0000 (22:33 +0000)]
* 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.
Tom Tromey [Thu, 25 Mar 1999 17:38:27 +0000 (17:38 +0000)]
1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>
* automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
is absolute and != objdir. dir="" or "$(srcdir)/" fixes it
Tom Tromey [Mon, 22 Mar 1999 11:49:42 +0000 (11:49 +0000)]
1999-02-01 Thomas Tanner <tanner@gmx.de>
* 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
Tom Tromey [Sun, 21 Mar 1999 23:27:58 +0000 (23:27 +0000)]
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.
Tom Tromey [Sun, 21 Mar 1999 21:08:17 +0000 (21:08 +0000)]
* subdir3.test: New file.
* Makefile.am (TESTS): Added subdir3.test.
* xsource.test: Changed to check whether multiple source files
with same object name cause failure.
Tom Tromey [Thu, 11 Mar 1999 22:52:32 +0000 (22:52 +0000)]
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.
Tom Tromey [Thu, 11 Mar 1999 22:31:02 +0000 (22:31 +0000)]
From Ralf Corsepius. Fixes lex3.test.
* automake.in (lang_yacc_finish): Include `.' in name pushed onto
maintainer-clean list.
(lang_lex_finish): Likewise.
Tom Tromey [Mon, 1 Mar 1999 20:46:49 +0000 (20:46 +0000)]
Fixes from Pavel Roskin:
* automake.in (variable_conditions_sub): Sort list passed to
variable_conditions_permutations.
(variable_conditions): Sort list before returning.
Tom Tromey [Sat, 27 Feb 1999 12:22:45 +0000 (12:22 +0000)]
* 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.