* lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
* lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
from M4sh.
* bin/autoconf.as: Put copyright up front in generated file.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-09 Eric Blake <ebb9@byu.net>
+ Improve header of bin/autoconf.
+ * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
+ * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
+ from M4sh.
+ * bin/autoconf.as: Put copyright up front in generated file.
+
* bin/autoconf.as (exit_missing_arg): Font-lock tweak.
2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
AS_INIT[]dnl -*- shell-script -*-
+m4_divert_push([HEADER-COPYRIGHT])dnl
+# @configure_input@
# autoconf -- create `configure' using m4 macros
# Copyright (C) 1992, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2003,
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+m4_divert_pop([HEADER-COPYRIGHT])dnl back to BODY
+
usage=["\
Usage: $0 [OPTION] ... [TEMPLATE-FILE]
# _AC_INIT_NOTICE
# ---------------
+# Provide useful headers; override the HEADER-COMMENT created by M4sh.
m4_define([_AC_INIT_NOTICE],
-[m4_divert_text([HEADER-COMMENT],
+[m4_divert_text([KILL], [m4_undivert([HEADER-COMMENT])])dnl
+m4_divert_text([HEADER-COMMENT],
[@%:@ Guess values for system-dependent variables and create Makefiles.
@%:@ Generated by m4_PACKAGE_STRING[]dnl
m4_ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).])
# Bangshe and minimal initialization.
m4_divert_text([BINSH], [@%:@! /bin/sh])
+m4_divert_text([HEADER-COMMENT],
+ [@%:@ Generated from __file__ by m4_PACKAGE_STRING.])
m4_divert_text([M4SH-SANITIZE], [AS_SHELL_SANITIZE])
AS_REQUIRE([_AS_SHELL_FN_SPY])