* 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.
1999-03-26 Tom Tromey <tromey@cygnus.com>
+ * 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.
+
* automake.in (am_install_var): Removed obsolete comment.
* texinfos.am (uninstall-info): Don't print loop but instead print
# guaranteed to work on my machine.
maintainer-check: automake aclocal
## This check avoids accidental configure substitutions in the source.
-## There are exactly 8 lines that should be modified. This works out
-## to 24 lines of diffs.
- @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 24; then \
+## There are exactly 7 lines that should be modified. This works out
+## to 22 lines of diffs.
+ @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
echo "found too many diffs between automake.in and automake"; 1>&2; \
diff -c $(srcdir)/automake.in automake; \
exit 1; \
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+AMTARFLAGS = @AMTARFLAGS@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PERL = @PERL@
# tarfile.
distcheck: dist
-rm -rf $(distdir)
- GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(TAR) xf -
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
- GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+ tar ch$(AMTARFLAGS)f - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
- GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+ tar ch$(AMTARFLAGS)f - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
-rm -rf $(distdir)
distdir: $(DISTFILES)
@if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \
# Some simple checks, and then ordinary check. These are only really
# guaranteed to work on my machine.
maintainer-check: automake aclocal
- @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 24; then \
+ @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
echo "found too many diffs between automake.in and automake"; 1>&2; \
diff -c $(srcdir)/automake.in automake; \
exit 1; \
-dnl aclocal.m4 generated automatically by aclocal 1.4
+dnl aclocal.m4 generated automatically by aclocal 1.4a
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
+dnl We require 2.13 because we rely on SHELL being computed by configure.
+AC_PREREQ([2.13])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
+dnl We check for tar when the user configures the end package.
+dnl This is sad, since we only need this for "dist". However,
+dnl there's no other good way to do it. We prefer GNU tar if
+dnl we can find it. If we can't find a tar, it doesn't really matter.
+AC_CHECK_PROGS(TAR, gnutar gtar tar)
+AMTARFLAGS=
+if test -n "$TAR"; then
+ if $(SHELL) -c "$TAR --version" > /dev/null 2>&1; then
+ dnl We have GNU tar.
+ AMTARFLAGS=o
+ fi
+fi
+AC_SUBST(AMTARFLAGS)
AC_REQUIRE([AC_PROG_MAKE_SET])])
#
$PACKAGE = "@PACKAGE@";
$prefix = "@prefix@";
$am_dir = "@datadir@/@PACKAGE@";
-$TAR = "@TAR@";
# String constants.
$IGNORE_PATTERN = "^##([^#].*)?\$";
}
elsif ($_ eq 'no-installman' || $_ eq 'no-installinfo'
|| $_ eq 'dist-shar' || $_ eq 'dist-zip'
- || $_ eq 'dist-tarZ' || $_ eq 'dejagnu'
- || $_ eq 'no-texinfo.tex'
+ || $_ eq 'dist-tarZ' || $_ eq 'dist-bzip2'
+ || $_ eq 'dejagnu' || $_ eq 'no-texinfo.tex'
|| $_ eq 'readme-alpha' || $_ eq 'check-news')
{
# Explicitly recognize these.
# Some boilerplate.
$output_vars .= &file_contents ('dist-vars') . "\n";
- &define_variable ('TAR', $TAR);
&define_variable ('GZIP_ENV', '--best');
# Put these things in rules section so it is easier for whoever
$output_rules .= "\nsubdir = " . $relative_dir . "\n\n";
}
- # Generate 'dist' target, and maybe dist-shar / dist-zip / dist-tarZ.
+ # Generate 'dist' target, and maybe other dist targets.
if ($relative_dir eq '.')
{
# Rule to check whether a distribution is viable.
# tarfile.
distcheck: dist
-rm -rf $(distdir)
- GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(TAR) xf -
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \\'
local ($dist_all) = ('dist-all: distdir' . "\n"
. $dist_header);
local ($curs);
- foreach $curs ('dist', 'dist-shar', 'dist-zip', 'dist-tarZ')
+ foreach $curs ('dist', 'dist-shar', 'dist-zip', 'dist-tarZ',
+ 'dist-bzip2')
{
if (defined $options{$curs} || $curs eq 'dist')
{
# Ignore return result from chmod, because it might give an error
# if we chmod a symlink.
$dist_header = "\t" . '-chmod -R a+r $(distdir)' . "\n";
+ $dist{'dist-bzip2'} = ("\t"
+ . '$(TAR) ch$(AMTARFLAGS)f - $(distdir) | bzip --best -c > $(distdir).bz2'
+ . "\n");
$dist{'dist-tarZ'} = ("\t"
- . '$(TAR) chf - $(distdir) | compress -c > $(distdir).tar.Z'
+ . '$(TAR) ch$(AMTARFLAGS)f - $(distdir) | compress -c > $(distdir).tar.Z'
. "\n");
$dist{'dist-shar'} = ("\t"
. 'shar $(distdir) | gzip > $(distdir).shar.gz'
. "\n");
$dist{'dist-zip'} = "\t" . 'zip -rq $(distdir).zip $(distdir)' . "\n";
- $dist{'dist'} = "\t" . 'GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)' . "\n";
+ $dist{'dist'} = ("\t"
+ . 'tar ch$(AMTARFLAGS)f - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz'
+ . "\n");
$dist_trailer = "\t" . '-rm -rf $(distdir)' . "\n";
}
@cindex Option, dejagnu
Cause @code{dejagnu}-specific rules to be generated. @xref{Tests}.
+@item @code{dist-bzip2}
+@cindex Option, dist-bzip2
+Generate a @code{dist-bzip2} target as well as the ordinary @code{dist}
+target. This new target will create a bzip2 tar archive of the
+distribution. bzip2 archives are frequently smaller than even gzipped
+archives.
+@trindex dist-bzip2
+
@item @code{dist-shar}
@cindex Option, dist-shar
Generate a @code{dist-shar} target as well as the ordinary @code{dist}
@cindex Option, dist-tarZ
Generate a @code{dist-tarZ} target as well as the ordinary @code{dist}
target. This new target will create a compressed tar archive of the
-distribution; a traditional @code{tar} and @code{compress} will be
-assumed. Warning: if you are actually using @code{GNU tar}, then the
-generated archive might contain nonportable constructs.
+distribution.
@trindex dist-tarZ
@item @code{no-dependencies}
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.12.2
+# Generated automatically using autoconf version 2.14.1
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.12.2"
+ echo "configure generated by autoconf version 2.14.1"
exit 0 ;;
-with-* | --with-*)
fi
+
PACKAGE=automake
VERSION=1.4a
missing_dir=`cd $ac_aux_dir && pwd`
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
-echo "configure:713: checking for working aclocal" >&5
+echo "configure:714: checking for working aclocal" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
fi
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
-echo "configure:726: checking for working autoconf" >&5
+echo "configure:727: checking for working autoconf" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
fi
echo $ac_n "checking for working automake""... $ac_c" 1>&6
-echo "configure:739: checking for working automake" >&5
+echo "configure:740: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
fi
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
-echo "configure:752: checking for working autoheader" >&5
+echo "configure:753: checking for working autoheader" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
fi
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
-echo "configure:765: checking for working makeinfo" >&5
+echo "configure:766: checking for working makeinfo" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
echo "$ac_t""missing" 1>&6
fi
-
-
-# Find an appropriate tar for use in "dist" targets. A "best guess"
-# is good enough -- if we can't find GNU tar, we don't really care.
for ac_prog in gnutar gtar tar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:786: checking for $ac_word" >&5
+echo "configure:783: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
test -n "$TAR" && break
done
+AMTARFLAGS=
+if test -n "$TAR"; then
+ if $(SHELL) -c "$TAR --version" > /dev/null 2>&1; then
+ AMTARFLAGS=o
+ fi
+fi
+
+
+
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:818: checking for $ac_word" >&5
+echo "configure:824: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
+ echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
s%@AUTOMAKE@%$AUTOMAKE%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@MAKEINFO@%$MAKEINFO%g
-s%@SET_MAKE@%$SET_MAKE%g
s%@TAR@%$TAR%g
+s%@AMTARFLAGS@%$AMTARFLAGS%g
+s%@SET_MAKE@%$SET_MAKE%g
s%@PERL@%$PERL%g
CEOF
AM_INIT_AUTOMAKE(automake, 1.4a)
-# Find an appropriate tar for use in "dist" targets. A "best guess"
-# is good enough -- if we can't find GNU tar, we don't really care.
-AC_CHECK_PROGS(TAR, gnutar gtar tar)
AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
AC_MSG_ERROR([perl not found])
# guaranteed to work on my machine.
maintainer-check: automake aclocal
## This check avoids accidental configure substitutions in the source.
-## There are exactly 8 lines that should be modified. This works out
-## to 24 lines of diffs.
- @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 24; then \
+## There are exactly 7 lines that should be modified. This works out
+## to 22 lines of diffs.
+ @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
echo "found too many diffs between automake.in and automake"; 1>&2; \
diff -c $(srcdir)/automake.in automake; \
exit 1; \
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PERL = @PERL@
-TAR = @TAR@
VERSION = @VERSION@
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
+dnl We check for tar when the user configures the end package.
+dnl This is sad, since we only need this for "dist". However,
+dnl there's no other good way to do it. We prefer GNU tar if
+dnl we can find it. If we can't find a tar, it doesn't really matter.
+AC_CHECK_PROGS(TAR, gnutar gtar tar)
+AMTARFLAGS=
+if test -n "$TAR"; then
+ if $(SHELL) -c "$TAR --version" > /dev/null 2>&1; then
+ dnl We have GNU tar.
+ AMTARFLAGS=o
+ fi
+fi
+AC_SUBST(AMTARFLAGS)
AC_REQUIRE([AC_PROG_MAKE_SET])])
-@set UPDATED 25 March 1999
+@set UPDATED 26 March 1999
@set EDITION 1.4a
@set VERSION 1.4a
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PERL = @PERL@
-TAR = @TAR@
VERSION = @VERSION@
-@set UPDATED 25 March 1999
+@set UPDATED 26 March 1999
@set EDITION 1.4a
@set VERSION 1.4a