* tests/libtool2.test: Use `rm -f' to placate maintainer-check.
* lib/am/libtool.am (distclean-libtool): Conditional on TOPDIR.
* automake.in (generate_makefile): Call handle_libtool
unconditionally.
* tests/Makefile.am (XFAIL_TESTS): Removed libtool2.test.
2001-07-02 Tom Tromey <tromey@redhat.com>
+ Fix for libtool2.test:
+ * tests/libtool2.test: Use `rm -f' to placate maintainer-check.
+ * lib/am/libtool.am (distclean-libtool): Conditional on TOPDIR.
+ * automake.in (generate_makefile): Call handle_libtool
+ unconditionally.
+ * tests/Makefile.am (XFAIL_TESTS): Removed libtool2.test.
+
* tests/libtool2.test: Look for `.lo' files to be removed.
* tests/Makefile.am (XFAIL_TESTS): Added libtool2.test.
}
}
+ &handle_libtool;
+
# At the toplevel directory, we might need config.guess, config.sub
# or libtool scripts (ltconfig and ltmain.sh).
if ($relative_dir eq '.')
{
- &handle_libtool;
-
# AC_CANONICAL_HOST and AC_CANONICAL_SYSTEM need config.guess and
# config.sub.
&require_config_file ($FOREIGN, 'config.guess', 'config.sub')
# handle_libtool ()
# -----------------
-# Handle libtool rules. Only called when RELATIVE_DIR is `.'.
+# Handle libtool rules.
sub handle_libtool
{
return unless $seen_libtool;
- # libtool requires some files.
+ # libtool requires some files, but only at top level.
&require_conf_file_with_conf_line ($libtool_line, $FOREIGN,
- @libtoolize_files);
+ @libtoolize_files)
+ if $relative_dir eq '.';
+
# Output the libtool compilation rules.
$output_rules .= &file_contents ('libtool');
}
## .libs is for Unix, _libs for DOS.
-rm -rf .libs _libs
-distclean-am: distclean-libtool
-distclean-libtool:
- -rm -f libtool
+?TOPDIR?distclean-am: distclean-libtool
+?TOPDIR?distclean-libtool:
+?TOPDIR? -rm -f libtool
## Process this file with automake to create Makefile.in
-XFAIL_TESTS = libtool2.test subdir5.test
+XFAIL_TESTS = subdir5.test
TESTS = \
acinclude.test \
_am_quote = @_am_quote@
install_sh = @install_sh@
-XFAIL_TESTS = libtool2.test subdir5.test
+XFAIL_TESTS = subdir5.test
TESTS = \
acinclude.test \
: > ltmain.sh
$AUTOMAKE -a || exit 1
-grep 'rm .*\.lo' sub/Makefile.in
+grep 'rm -f .*\.lo' sub/Makefile.in