From: Ben Elliston Date: Sun, 27 Sep 1998 03:46:21 +0000 (+0000) Subject: 1998-09-27 Ben Elliston X-Git-Tag: autoconf-2-13-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e4ce29cd8df713941ce7757d26201f659402fff;p=thirdparty%2Fautoconf.git 1998-09-27 Ben Elliston * Makefile.in (all): Generate frozen .m4 files at build time. (install): Do not freeze .m4 files. Install pre-frozen .m4f files using $(INSTALL_DATA). (.m4.m4f): Freeze files if m4 supports stored internal state. Contributed by Karl Heuer . --- diff --git a/ChangeLog b/ChangeLog index ad31a1dc..f5e012a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 1998-09-27 Ben Elliston + * Makefile.in (all): Generate frozen .m4 files at build time. + (install): Do not freeze .m4 files. Install pre-frozen .m4f files + using $(INSTALL_DATA). + (.m4.m4f): Freeze files if m4 supports stored internal state. + Contributed by Karl Heuer . + * install-sh: Import latest version from the FSF. * mkinstalldirs: Likewise. diff --git a/Makefile.in b/Makefile.in index 7cb2cbb3..ade9e501 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,6 +32,10 @@ PERL = @PERL@ # Programs that are ALWAYS installed (and are created in the build dir). ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames + +# M4 input that is frozen. +M4FROZEN = autoconf.m4f autoheader.m4f + # All programs, including those only installed if you have perl. SCRIPTS = $(ASCRIPTS) @SCRIPTS@ @@ -78,10 +82,10 @@ editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e \ -e 's,@''SHELL''@,$(SHELL),g' editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g' -all: ${SCRIPTS} info +all: ${SCRIPTS} ${M4FROZEN} info .SUFFIXES: -.SUFFIXES: .sh .pl +.SUFFIXES: .sh .pl .m4 .m4f .sh: rm -f $@ $@.tmp @@ -91,6 +95,14 @@ all: ${SCRIPTS} info rm -f $@ $@.tmp $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@ +.m4.m4f: + @case `$(M4) --help &1` in \ + *reload-state*) echo freezing $*.m4; \ + $(M4) -F $*.m4f -I${srcdir} ${srcdir}/$*.m4 ;; \ + *traditional*) ;; \ + *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \ + esac + info: autoconf.info @standards_info@ INSTALL # Use --no-split to avoid creating filenames > 14 chars. @@ -125,18 +137,14 @@ installdirs: $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir) install: all $(M4FILES) acconfig.h installdirs install-info - @case `$(M4) --help < /dev/null 2>&1` in \ - *reload-state*) echo installing frozen m4 files; \ - $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \ - $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \ - *traditional*) ;; \ - *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \ - esac for p in $(ASCRIPTS); do \ $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ done + for i in $(M4FROZEN); do \ + $(INSTALL_DATA) $$i $(acdatadir)/$$i; \ + done for i in $(M4FILES) acconfig.h; do \ - $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ + $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ done -if test -f autoscan; then \ $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \ diff --git a/doc/Makefile.in b/doc/Makefile.in index 7cb2cbb3..ade9e501 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -32,6 +32,10 @@ PERL = @PERL@ # Programs that are ALWAYS installed (and are created in the build dir). ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames + +# M4 input that is frozen. +M4FROZEN = autoconf.m4f autoheader.m4f + # All programs, including those only installed if you have perl. SCRIPTS = $(ASCRIPTS) @SCRIPTS@ @@ -78,10 +82,10 @@ editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e \ -e 's,@''SHELL''@,$(SHELL),g' editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g' -all: ${SCRIPTS} info +all: ${SCRIPTS} ${M4FROZEN} info .SUFFIXES: -.SUFFIXES: .sh .pl +.SUFFIXES: .sh .pl .m4 .m4f .sh: rm -f $@ $@.tmp @@ -91,6 +95,14 @@ all: ${SCRIPTS} info rm -f $@ $@.tmp $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@ +.m4.m4f: + @case `$(M4) --help &1` in \ + *reload-state*) echo freezing $*.m4; \ + $(M4) -F $*.m4f -I${srcdir} ${srcdir}/$*.m4 ;; \ + *traditional*) ;; \ + *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \ + esac + info: autoconf.info @standards_info@ INSTALL # Use --no-split to avoid creating filenames > 14 chars. @@ -125,18 +137,14 @@ installdirs: $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir) install: all $(M4FILES) acconfig.h installdirs install-info - @case `$(M4) --help < /dev/null 2>&1` in \ - *reload-state*) echo installing frozen m4 files; \ - $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \ - $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \ - *traditional*) ;; \ - *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \ - esac for p in $(ASCRIPTS); do \ $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ done + for i in $(M4FROZEN); do \ + $(INSTALL_DATA) $$i $(acdatadir)/$$i; \ + done for i in $(M4FILES) acconfig.h; do \ - $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ + $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \ done -if test -f autoscan; then \ $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \