From: Tom Tromey Date: Sat, 7 Dec 1996 20:39:44 +0000 (+0000) Subject: Fixlets from Ulrich; new test X-Git-Tag: Release-1-1l~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b355c821f2b2cb559d08bb6d1cc2e93db160609e;p=thirdparty%2Fautomake.git Fixlets from Ulrich; new test --- diff --git a/ChangeLog b/ChangeLog index 2bcd39048..c1e262c25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 7 11:34:39 1996 Tom Tromey + + * automake.in (am_install_var): Quote $ in regexp substitution. + From Ulrich Drepper. + Fri Dec 6 18:54:10 1996 Tom Tromey * automake.in (handle_configure): Require actual input files, not diff --git a/Makefile.in b/Makefile.in index ba7eb245f..69895503e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -95,16 +95,16 @@ default: all .SUFFIXES: .SUFFIXES: .texi .texinfo .info .dvi -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in - cd $(top_srcdir) && automake --gnits Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - $(srcdir)/aclocal.m4: configure.in cd $(srcdir) && aclocal +$(srcdir)/Makefile.in: Makefile.am configure.in + cd $(srcdir) && automake --gnits Makefile + +# For an explanation of the following Makefile rules, see node +# `Automatic Remaking' in GNU Autoconf documentation. +Makefile: $(srcdir)/Makefile.in config.status $(BUILT_SOURCES) + CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status config.status: configure $(SHELL) ./config.status --recheck $(srcdir)/configure: configure.in $(ACLOCAL) $(CONFIGURE_DEPENDENCIES) @@ -173,8 +173,6 @@ automake.info: automake.texi version.texi automake.dvi: automake.texi version.texi -DVIPS = dvips - .texi.info: cd $(srcdir) \ && $(MAKEINFO) `echo $< | sed 's,.*/,,'` @@ -189,8 +187,6 @@ DVIPS = dvips .texinfo.dvi: TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $< -.dvi.ps: - $(DVIPS) $< -o $@ install-info-am: $(INFO_DEPS) $(NORMAL_INSTALL) diff --git a/automake.in b/automake.in index 0f767a47b..dc89fa982 100755 --- a/automake.in +++ b/automake.in @@ -2506,7 +2506,7 @@ sub handle_configure . "\t" . 'cd $(top_builddir) && CONFIG_FILES=' . ($relative_dir eq '.' ? '' : '$(subdir)/') - . '$@' . (length (@inputs) > 1 + . '$@' . (length (@rewritten_inputs) > 1 ? (':' . join (':', @rewritten_inputs)) : '') . ' CONFIG_HEADERS= ./config.status' @@ -4294,7 +4294,7 @@ sub am_install_var { # Note that we explicitly set the mode, to avoid # lossage if the program name isn't what we expect. - $more_xform = 's/\@LIBTOOL\@/$(LIBTOOL) --mode=install/;'; + $more_xform = 's/\@LIBTOOL\@/\$(LIBTOOL) --mode=install/;'; } else { diff --git a/tests/ChangeLog b/tests/ChangeLog index 96c1d070c..b3f3ff5a9 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +Sat Dec 7 12:52:45 1996 Tom Tromey + + * output2.test: New file. + Fri Dec 6 19:00:31 1996 Tom Tromey * output.test: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index 0dfbd9e18..cb29e871c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,7 +19,7 @@ confsub.test primary.test primary2.test depend2.test spell3.test \ comment2.test vpath.test symlink.test discover.test acinclude.test req.test \ acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \ ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \ -colon3.test remake.test output.test +colon3.test remake.test output.test output2.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/output2.test b/tests/output2.test new file mode 100755 index 000000000..711de2d89 --- /dev/null +++ b/tests/output2.test @@ -0,0 +1,25 @@ +#! /bin/sh + +# Another AC_OUTPUT test. From report by Ulrich Drepper. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +PACKAGE=nonesuch +VERSION=nonesuch +AC_ARG_PROGRAM +AC_PROG_INSTALL +AC_OUTPUT(Makefile intl/intlh.inst po/Makefile.in misc/gettextize) +END + +: > Makefile.am + +mkdir intl po misc +: > intl/intlh.inst.in +: > po/Makefile.in.am +: > misc/gettextize.in + +$AUTOMAKE || exit 1 + +grep '^gettextize' Makefile.in && exit 1 +exit 0