The Associated Rewriters are even prouder to present...

.
	  |
	  |
	 /-+		/   +		)===(   U  T  O  U  P  D  A  T  E    I V
       //   \
      =========
    _//_     _\_      The ``Eiffel Tower'' Release

* autoupdate.sh: Complete rewrite.  See that file for a detailed
explanation.  Basically, simulate the name spaces thanks to
`autoconf --trace' and auxiliary files.
No longer use `autoupdate.m4', remove the dependencies.
Synchronize the options and `--help'.
* doc/autoconf.texi (Invoking autoupdate): Humanoupdate.
* autoupdate.m4: Delete.
* tests/Makefile.am (FILTER_MACROS): Add `AC_OUTPUT'.
Since `AC_OUTPUT' is now AU_DEFUN'd, it is extracted for testing,
while it was not before.
* tests/tools.m4 (autoupdate): Re-enable.  Adjust the expected
output with the right quotation (yeah!).
Pass `-m $top_srcdir': autoupdate want the `.m4' files, not the
frozen files.
* Makefile.am (nodistpkgdataDATA): Move `acversion.m4' to
(distpkgdataDATA): here, so that all the `.m4' files are in the
source hierarchy, not split across src and build.
* acversion.m4.in: Update to today's standards.
* Makefile.am: Adjust.
This commit is contained in:
Akim Demaille 2000-05-11 15:45:34 +00:00
parent 6754d2ea94
commit cecf9459b8
10 changed files with 99 additions and 74 deletions

View File

@ -1,3 +1,36 @@
2000-05-11 Akim Demaille <akim@epita.fr>
The Associated Rewriters are even prouder to present...
.
|
|
/-\
/ \
)===( U T O U P D A T E I V
// \\
=========
_//_ _\\_ The ``Eiffel Tower'' Release
* autoupdate.sh: Complete rewrite. See that file for a detailed
explanation. Basically, simulate the name spaces thanks to
`autoconf --trace' and auxiliary files.
No longer use `autoupdate.m4', remove the dependencies.
Synchronize the options and `--help'.
* doc/autoconf.texi (Invoking autoupdate): Humanoupdate.
* autoupdate.m4: Delete.
* tests/Makefile.am (FILTER_MACROS): Add `AC_OUTPUT'.
Since `AC_OUTPUT' is now AU_DEFUN'd, it is extracted for testing,
while it was not before.
* tests/tools.m4 (autoupdate): Re-enable. Adjust the expected
output with the right quotation (yeah!).
Pass `-m $top_srcdir': autoupdate want the `.m4' files, not the
frozen files.
* Makefile.am (nodistpkgdataDATA): Move `acversion.m4' to
(distpkgdataDATA): here, so that all the `.m4' files are in the
source hierarchy, not split across src and build.
* acversion.m4.in: Update to today's standards.
* Makefile.am: Adjust.
2000-05-11 Akim Demaille <akim@epita.fr> 2000-05-11 Akim Demaille <akim@epita.fr>
* libm4.m4: Be robust to multiple inclusion. * libm4.m4: Be robust to multiple inclusion.

View File

@ -37,9 +37,9 @@ EXTRA_SCRIPTS = autoscan
distpkgdataDATA = \ distpkgdataDATA = \
acfunctions acheaders acidentifiers acmakevars acprograms \ acfunctions acheaders acidentifiers acmakevars acprograms \
libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 \ libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 \
autoupdate.m4 aclang.m4 aclang.m4 acversion.m4
nodistpkgdataDATA = autoconf.m4f autoupdate.m4f acversion.m4 nodistpkgdataDATA = autoconf.m4f
pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA) pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
@ -51,7 +51,7 @@ $(distpkgdataDATA)
# Files that should be removed, but which Automake does not know: # Files that should be removed, but which Automake does not know:
# the frozen files and the scripts. # the frozen files and the scripts.
CLEANFILES = autoconf.m4f autoupdate.m4f \ CLEANFILES = autoconf.m4f \
$(bin_SCRIPTS) $(bin_SCRIPTS)
# INSTALL is a special case. Automake seems to have a single name space # INSTALL is a special case. Automake seems to have a single name space
@ -98,4 +98,3 @@ common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 \
aclang.m4 aclang.m4
autoconf.m4f: autoconf.m4 $(common) autoconf.m4f: autoconf.m4 $(common)
autoupdate.m4f: autoupdate.m4 $(common)

View File

@ -79,10 +79,10 @@ EXTRA_SCRIPTS = autoscan
# s/nodistpackageDATA/nodist_pkgdata_DATA/ # s/nodistpackageDATA/nodist_pkgdata_DATA/
# and adapt dependencies once we use a more recent Automake # and adapt dependencies once we use a more recent Automake
distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 autoupdate.m4 aclang.m4 distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 aclang.m4 acversion.m4
nodistpkgdataDATA = autoconf.m4f autoupdate.m4f acversion.m4 nodistpkgdataDATA = autoconf.m4f
pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA) pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
@ -92,7 +92,7 @@ EXTRA_DIST = $(OLDCHANGELOGS) autoconf.sh autoheader.sh autoreconf.sh autoupdate
# Files that should be removed, but which Automake does not know: # Files that should be removed, but which Automake does not know:
# the frozen files and the scripts. # the frozen files and the scripts.
CLEANFILES = autoconf.m4f autoupdate.m4f $(bin_SCRIPTS) CLEANFILES = autoconf.m4f $(bin_SCRIPTS)
# The scripts. # The scripts.
@ -444,7 +444,6 @@ install-data-hook: INSTALL.txt
esac esac
autoconf.m4f: autoconf.m4 $(common) autoconf.m4f: autoconf.m4 $(common)
autoupdate.m4f: autoupdate.m4 $(common)
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -1,5 +1,5 @@
dnl This file is part of Autoconf. -*- Autoconf -*- # This file is part of Autoconf. -*- Autoconf -*-
dnl Version of Autoconf. # Version of Autoconf.
dnl Copyright (C) 1999 Free Software Foundation, Inc. # Copyright (C) 1999, 2000 Free Software Foundation, Inc.
define(AC_ACVERSION, @VERSION@) define([AC_ACVERSION], [@VERSION@])

View File

@ -1,31 +0,0 @@
include(libm4.m4)# -*- Autoconf -*-
# This file is part of Autoconf.
# Driver that loads the Autoupdate macro files.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
# Written by Akim Demaille.
#
# Do not sinclude acsite.m4 here, because it may not be installed
# yet when Autoconf is frozen.
# Do not sinclude ./aclocal.m4 here, to prevent it from being frozen.
m4_include(acversion.m4)
m4_include(acgeneral.m4)
m4_include(aclang.m4)
m4_include(acspecific.m4)
m4_include(acoldnames.m4)
divert(0)dnl

View File

@ -6877,18 +6877,29 @@ standard output.
@itemx -h @itemx -h
Print a summary of the command line options and exit. Print a summary of the command line options and exit.
@item --version
@itemx -V
Print the version number of Autoconf and exit.
@item --verbose
@itemx -v
Report processing steps.
@item --debug
@itemx -d
Don't remove the temporary files.
@item --macrodir=@var{dir} @item --macrodir=@var{dir}
@itemx -m @var{dir} @itemx -m @var{dir}
@evindex AC_MACRODIR @evindex AC_MACRODIR
Look for the Autoconf macro files in directory @var{dir} instead of the Look for the installed macro files in directory @var{dir}. You can also
default installation directory. set the @code{AC_MACRODIR} environment variable to a directory; this
You can also set the @code{AC_MACRODIR} option overrides the environment variable.
environment variable to a directory; this option overrides the
environment variable.
@item --version @item --localdir=@var{dir}
@itemx -V @itemx -l @var{dir}
Print the version number of @code{autoupdate} and exit. Look for the package file @file{aclocal.m4} in directory @var{dir}
instead of in the current directory.
@end table @end table
@node Changed Results, Changed Macro Writing, Invoking autoupdate, Upgrading @node Changed Results, Changed Macro Writing, Invoking autoupdate, Upgrading

View File

@ -9,6 +9,7 @@ autoupdate \- Update a configure.in to a newer Autoconf
Update the TEMPLATE-FILE... if given, or `configure.in' by default, to Update the TEMPLATE-FILE... if given, or `configure.in' by default, to
the syntax of the current version of `autoconf'. The original files the syntax of the current version of `autoconf'. The original files
are backed up. are backed up.
.SS "Operation modes:"
.TP .TP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR
print this help, then exit print this help, then exit
@ -16,8 +17,17 @@ print this help, then exit
\fB\-V\fR, \fB\-\-version\fR \fB\-V\fR, \fB\-\-version\fR
print version number, then exit print version number, then exit
.TP .TP
\fB\-v\fR, \fB\-\-verbose\fR
verbosely report processing
.TP
\fB\-d\fR, \fB\-\-debug\fR
don't remove temporary files
.TP
\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR \fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
directory storing Autoconf's files directory storing Autoconf's macro files
.TP
\fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
directory storing the `aclocal.m4' file
.SH AUTHOR .SH AUTHOR
Written by David J. MacKenzie. Written by David J. MacKenzie.
.SH "REPORTING BUGS" .SH "REPORTING BUGS"

View File

@ -67,6 +67,8 @@ testsuite: atgeneral.m4 atspecific.m4 suite.m4 macros.m4 $(SUITE)
# Used in many places. # Used in many places.
# - _AC_ # - _AC_
# Internal macros are used elsewhere. # Internal macros are used elsewhere.
# - AC_OUTPUT
# Already tested by `AT_TEST_MACRO'.
# #
# Multiple `-e' to egrep are not portable, so join all the patterns together. # Multiple `-e' to egrep are not portable, so join all the patterns together.
# We use the fact that automake will replace all the `\\\n' with ` '. # We use the fact that automake will replace all the `\\\n' with ` '.
@ -80,6 +82,7 @@ FILTER_MACROS = egrep -v -e \
^AC_LINKER_OPTION$$\ ^AC_LINKER_OPTION$$\
^AC_LINK_FILES$$\ ^AC_LINK_FILES$$\
^AC_LIST_MEMBER_OF$$\ ^AC_LIST_MEMBER_OF$$\
^AC_OUTPUT$$\
^AC_PATH_(TOOL|PROG)S?$$\ ^AC_PATH_(TOOL|PROG)S?$$\
^AC_PROG_(CC|CXX|F77)_(GNU|WORKS)$$\ ^AC_PROG_(CC|CXX|F77)_(GNU|WORKS)$$\
^AC_REPLACE_FUNCS$$\ ^AC_REPLACE_FUNCS$$\

View File

@ -100,10 +100,12 @@ PERL = perl
# Used in many places. # Used in many places.
# - _AC_ # - _AC_
# Internal macros are used elsewhere. # Internal macros are used elsewhere.
# - AC_OUTPUT
# Already tested by `AT_TEST_MACRO'.
# #
# Multiple `-e' to egrep are not portable, so join all the patterns together. # Multiple `-e' to egrep are not portable, so join all the patterns together.
# We use the fact that automake will replace all the `\\\n' with ` '. # We use the fact that automake will replace all the `\\\n' with ` '.
FILTER_MACROS = egrep -v -e `echo '^AC_ARG_VAR$$ ^AC_CANONICALIZE$$ ^AC_CHECK_(DECL|FILE|FUNC|HEADER|LIB|MEMBER|PROG|SIZEOF|TYPE)S?$$ ^AC_CONFIG ^AC_INIT ^AC_LANG ^AC_LINKER_OPTION$$ ^AC_LINK_FILES$$ ^AC_LIST_MEMBER_OF$$ ^AC_PATH_(TOOL|PROG)S?$$ ^AC_PROG_(CC|CXX|F77)_(GNU|WORKS)$$ ^AC_REPLACE_FUNCS$$ ^AC_SEARCH_LIBS$$ ^AC_TRY _AC_' | tr ' ' '|'` FILTER_MACROS = egrep -v -e `echo '^AC_ARG_VAR$$ ^AC_CANONICALIZE$$ ^AC_CHECK_(DECL|FILE|FUNC|HEADER|LIB|MEMBER|PROG|SIZEOF|TYPE)S?$$ ^AC_CONFIG ^AC_INIT ^AC_LANG ^AC_LINKER_OPTION$$ ^AC_LINK_FILES$$ ^AC_LIST_MEMBER_OF$$ ^AC_OUTPUT$$ ^AC_PATH_(TOOL|PROG)S?$$ ^AC_PROG_(CC|CXX|F77)_(GNU|WORKS)$$ ^AC_REPLACE_FUNCS$$ ^AC_SEARCH_LIBS$$ ^AC_TRY _AC_' | tr ' ' '|'`
# The files which contains macro we check for syntax. # The files which contains macro we check for syntax.

View File

@ -160,27 +160,26 @@ AT_CLEANUP
# Check that AC_LINK_FILES and AC_OUTPUT are properly updated. # Check that AC_LINK_FILES and AC_OUTPUT are properly updated.
# actest.m4 AU_ defines OSBOLETE to UPDATED. # actest.m4 AU_ defines OSBOLETE to UPDATED.
###FIXME: Disabled until there's a new autoupdate. AT_SETUP(autoupdate)
###AT_SETUP(autoupdate)
### AT_DATA(configure.in,
###AT_DATA(configure.in, [[AC_INIT
###[[AC_INIT dnl The doc says 27 is a valid fubar.
###dnl The doc says 27 is a valid fubar. fubar=27
###fubar=27 AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
###AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar) ]])
###]])
### # Checking `autoupdate'.
#### Checking `autoupdate'. AT_CHECK([../autoupdate -m $top_srcdir -<configure.in], 0,
###AT_CHECK([../autoupdate -m .. -l $at_srcdir -<configure.in], 0, [[AC_INIT
###[[AC_INIT dnl The doc says 27 is a valid fubar.
###dnl The doc says 27 is a valid fubar. fubar=27
###fubar=27 AC_CONFIG_FILES([Makefile])
###AC_CONFIG_FILES(Makefile) AC_CONFIG_COMMANDS([default],[[echo $fubar]],[[fubar=$fubar]])
###AC_CONFIG_COMMANDS(default, [echo $fubar], [fubar=$fubar]) AC_OUTPUT
###AC_OUTPUT ]], ignore)
###]], ignore)
### AT_CLEANUP
###AT_CLEANUP