dist-all.patch

2001-05-04 Thread Akim Demaille


Quite straightforward (oh, how I love *.am only patches :).  The only
question is whether we want to factor tar too or not.

Index: ChangeLog
from  Akim Demaille  [EMAIL PROTECTED]
* distdir.am (dist-all): Build all the flavors using a single
distdir.

Index: Makefile.am
===
RCS file: /cvs/automake/automake/Makefile.am,v
retrieving revision 1.163
diff -u -u -r1.163 Makefile.am
--- Makefile.am 2001/05/03 08:21:05 1.163
+++ Makefile.am 2001/05/04 08:25:41
@@ -1,6 +1,6 @@
 ## Process this file with automake to create Makefile.in

-AUTOMAKE_OPTIONS = gnits 1.4
+AUTOMAKE_OPTIONS = gnits 1.4 dist-bzip2
 MAINT_CHARSET = latin1

 ## We need `.' in SUBDIRS because we want `check' to build `.' before
Index: Makefile.in
===
RCS file: /cvs/automake/automake/Makefile.in,v
retrieving revision 1.314
diff -u -u -r1.314 Makefile.in
--- Makefile.in 2001/05/03 08:21:05 1.314
+++ Makefile.in 2001/05/04 08:25:42
@@ -73,7 +73,7 @@
 _am_quote = @_am_quote@
 install_sh = @install_sh@

-AUTOMAKE_OPTIONS = gnits 1.4
+AUTOMAKE_OPTIONS = gnits 1.4 dist-bzip2
 MAINT_CHARSET = latin1

 SUBDIRS = . m4 lib tests
@@ -468,6 +468,10 @@
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c $(distdir).tar.gz
-chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)

+dist-bzip2: distdir
+   $(AMTAR) chof - $(distdir) | bzip2 -9 -c $(distdir).tar.bz2
+   -chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)
+
 # This target untars the dist file and tries a VPATH configuration.  Then
 # it guarantees that the distribution is self-contained by making another
 # tarfile.
@@ -534,9 +538,11 @@
 clean: clean-recursive

 clean-am: clean-generic mostlyclean-am
-
-dist-all: dist

+dist-all: distdir
+   $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c $(distdir).tar.gz
+   $(AMTAR) chof - $(distdir) | bzip2 -9 -c $(distdir).tar.bz2
+   -chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)
 distclean: distclean-recursive
-rm -f config.status
 distclean-am: clean-am distclean-generic distclean-tags
@@ -599,11 +605,12 @@
 uninstall-info: uninstall-info-recursive

 .PHONY: $(RECURSIVE_TARGETS) all all-am check check-am clean \
-   clean-generic clean-recursive dist dist-all dist-info distcheck \
-   distclean distclean-generic distclean-recursive distclean-tags \
-   distdir dvi dvi-am dvi-recursive info info-am info-recursive \
-   install install-am install-binSCRIPTS install-data \
-   install-data-am install-data-recursive install-dist_amDATA \
+   clean-generic clean-recursive dist dist-all dist-bzip2 \
+   dist-info distcheck distclean distclean-generic \
+   distclean-recursive distclean-tags distdir dvi dvi-am \
+   dvi-recursive info info-am info-recursive install install-am \
+   install-binSCRIPTS install-data install-data-am \
+   install-data-recursive install-dist_amDATA \
install-dist_pkgdataDATA install-dist_scriptDATA install-exec \
install-exec-am install-exec-recursive install-info \
install-info-recursive install-man install-recursive \
Index: NEWS
===
RCS file: /cvs/automake/automake/NEWS,v
retrieving revision 1.141
diff -u -u -r1.141 NEWS
--- NEWS 2001/02/21 08:20:40 1.141
+++ NEWS 2001/05/04 08:25:43
@@ -1,5 +1,6 @@
 New in 1.4e:
 * Support for `configure.ac'.
+* `make dist-all' is much faster.

 New in 1.4b:
 * Faster AM_INIT_AUTOMAKE (requires update of `missing' script)
Index: distdir.am
===
RCS file: /cvs/automake/automake/distdir.am,v
retrieving revision 1.15
diff -u -u -r1.15 distdir.am
--- distdir.am 2001/04/10 12:41:04 1.15
+++ distdir.am 2001/05/04 08:25:45
@@ -148,14 +148,13 @@
 if %?TOPDIR_P%

 GZIP_ENV = --best
-.PHONY: dist-all dist
-dist-all: dist
+.PHONY: dist
 dist: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c $(distdir).tar.gz
-chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)

 if  %?BZIP2%
-.PHONY dist-all: dist-bzip2
+.PHONY: dist-bzip2
 dist-bzip2: distdir
$(AMTAR) chof - $(distdir) | bzip2 -9 -c $(distdir).tar.bz2
-chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)
@@ -163,7 +162,7 @@


 if  %?COMPRESS%
-.PHONY dist-all: dist-tarZ
+.PHONY: dist-tarZ
 dist-tarZ: distdir
$(AMTAR) chof - $(distdir) | compress -c $(distdir).tar.Z
-chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)
@@ -171,7 +170,7 @@


 if  %?SHAR%
-.PHONY dist-all: dist-shar
+.PHONY: dist-shar
 dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c $(distdir).shar.gz
-chmod -R a+w $(distdir) /dev/null 21; rm -rf $(distdir)
@@ -179,12 +178,35 @@


 if  %?ZIP%
-.PHONY dist-all: dist-zip
+.PHONY: dist-zip
 dist-zip: distdir
-rm -f $(distdir).zip

Re: --add-missing broken

2001-05-04 Thread Akim Demaille

 Ralf == Ralf Corsepius [EMAIL PROTECTED] writes:

Ralf Hi, At present time, automake --add-missing is broken.
Ralf Apparent cause is this patch below.

Doh!

Thanks!  Weird that the test suite did not catch this.

Ralf Related question: Which directory is am_dir/--am-dir supposed to
Ralf point to, now? ../automake/ or ../automake/am?

Good question.  No idea what Tom will prefer.  AFAIC, a single option
is enough, and therefore /automake seems the right answer.  Maybe
--libdir would sound better?




Re: [Patch] remove temp file in sanity check

2001-05-04 Thread Akim Demaille


+   rm -f conftest.file
if test $[*] != X $srcdir/configure conftest.file \
test $[*] != X conftest.file $srcdir/configure; then

Obviously there is a problem here.  Anyway, configure 2.50+ removes
conftest* when it exits so there is no real issue here (2.13 does not,
but it doesn't really matter for we work forward :).




Re: libtool 1.4: make uninstall broken?

2001-05-04 Thread Peter Eisentraut

Lars J. Aas writes:

 I installed libtool 1.4 in the wrong place and then tried make uninstall
 before doing a reconfigure.  It complained about not finding install-info
 or something - I didn't care to investigate further.

I pointed this out a long time ago.  make uninstall has the potential to
be broken in all Automake using packages -- at least those using texinfo.
(Try out Autoconf and Automake itself.)

The reason is that install-info is often installed under /sbin, so it's
not in the ordinary user's path.  The install targets work around this
by not calling install-info in that case, but uninstall does not.
Tom Tromey said to me something along the lines that uninstall is of too
little use to bother.

A correct fix, in my mind, would be to add Autoconf checks for
install-info, possibly combined with missing support.  At the same time,
vendors should be flamed not to install install-info into sbin.  Ordinary
users can make perfectly good use of it.

-- 
Peter Eisentraut   [EMAIL PROTECTED]   http://funkturm.homeip.net/~peter