2009-05-04 23:41:41 +08:00
|
|
|
# statesave.m4 serial 2
|
2009-03-31 07:27:45 +08:00
|
|
|
|
|
|
|
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
2010-01-06 11:59:55 +08:00
|
|
|
# 2009, 2010 Free Software Foundation, Inc.
|
2009-05-04 23:41:41 +08:00
|
|
|
|
|
|
|
# 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
|
Update License to GPLv3+ including new Autoconf Exception.
* NEWS, README: Update licensing information.
* COPYING.EXCEPTION: New file.
* Makefile.am (EXTRA_DIST): Distribute it.
* cfg.mk (autom4te-update): Remove copyright change warning.
* lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
lib/autoconf/functions.m4, lib/autoconf/general.m4,
lib/autoconf/headers.m4, lib/autoconf/lang.m4,
lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
lib/autoconf/programs.m4, lib/autoconf/specific.m4,
lib/autoconf/status.m4, lib/autoconf/types.m4,
lib/autotest/autotest.m4, lib/autotest/general.m4,
lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
statement, bump to GPLv3.
* bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
bin/ifnames.in: Bump to GPLv3+, adjust --version output
to reflect the GPLv3+ and the Autoconf Exception.
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
lib/autom4te.in, lib/autoscan/autoscan.pre,
lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
tests/autotest.at, tests/base.at, tests/c.at,
tests/compile.at, tests/erlang.at, tests/foreign.at,
tests/fortran.at, tests/local.at, tests/m4sh.at,
tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
tests/statesave.m4, tests/suite.at, tests/tools.at,
tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
2009-09-10 01:53:31 +08:00
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2009-05-04 23:41:41 +08:00
|
|
|
#
|
|
|
|
# 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
# 02110-1301, USA.
|
2009-03-31 07:27:45 +08:00
|
|
|
|
|
|
|
# AC_STATE_SAVE(FILE)
|
|
|
|
# -------------------
|
|
|
|
# Save the shell variables and directory listing. AT_CHECK_ENV uses these to
|
|
|
|
# confirm that no test modifies variables outside the Autoconf namespace or
|
|
|
|
# leaves temporary files. AT_CONFIG_CMP uses the variable dumps to confirm
|
|
|
|
# that tests have the same side effects regardless of caching.
|
|
|
|
#
|
|
|
|
# The sed script duplicates uniq functionality (thanks to 'info sed
|
|
|
|
# uniq' for the recipe), in order to avoid a MacOS 10.5 bug where
|
|
|
|
# readdir can list a file multiple times in a rapidly changing
|
|
|
|
# directory, while avoiding yet another fork.
|
|
|
|
m4_defun([AC_STATE_SAVE],
|
|
|
|
[(set) 2>&1 | sort >state-env.$1
|
|
|
|
ls | sed '/^at-/d;/^state-/d;/^config\./d
|
|
|
|
h
|
|
|
|
:b
|
|
|
|
$b
|
|
|
|
N
|
|
|
|
/^\(.*\)\n\1$/ {
|
|
|
|
g
|
|
|
|
bb
|
|
|
|
}
|
|
|
|
$b
|
|
|
|
P
|
|
|
|
D' >state-ls.$1
|
|
|
|
])# AC_STATE_SAVE
|