From fca3f1b6f33296fc3b86793fba4c6215acf6d5be Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 14 Mar 2000 08:19:53 +0000 Subject: [PATCH] Get rid of the ICMDS diversion. * acgeneral.m4 (AC_DIVERT): Remove ICMDS. (_AC_OUTPUT_COMMANDS_INIT): New growing string. (_AC_CONFIG_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS): Adjust. --- ChangeLog | 8 ++++++++ acgeneral.m4 | 25 +++++++++++-------------- lib/autoconf/general.m4 | 25 +++++++++++-------------- 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c86e871..18bb7329 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-03-14 Akim Demaille + + Get rid of the ICMDS diversion. + + * acgeneral.m4 (AC_DIVERT): Remove ICMDS. + (_AC_OUTPUT_COMMANDS_INIT): New growing string. + (_AC_CONFIG_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS): Adjust. + 2000-03-14 Akim Demaille * autoheader.sh: Use run_m4f, not run_m4. diff --git a/acgeneral.m4 b/acgeneral.m4 index 71e832a1..85bb38ef 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -107,10 +107,6 @@ m4_namespace_push(autoconf) # AC_REQUIRE'd code, 1 level deep # - NORMAL # the tests and output code -# -# Finally, this is just a convenience diversions. Undiverted by hand. -# - ICMDS -# extra initialization in config.status # AC_DIVERT(DIVERSION-NAME) @@ -140,7 +136,6 @@ define([AC_DIVERT], [NORMAL_1], 23, [NORMAL], 24, - [ICMDS], 30, [$1])]) @@ -3266,8 +3261,8 @@ AC_DIVERT_POP()dnl ]) -# _AC_CONFIG_COMMANDS_INIT(INIT-COMMANDS) -# --------------------------------------- +# _AC_CONFIG_COMMANDS_INIT([INIT-COMMANDS]) +# ----------------------------------------- # # Register INIT-COMMANDS as command pasted *unquoted* in # `config.status'. This is typically used to pass variables from @@ -3275,9 +3270,11 @@ AC_DIVERT_POP()dnl # was the case in AC_OUTPUT_COMMANDS. define(_AC_CONFIG_COMMANDS_INIT, [ifval([$1], -[AC_DIVERT_PUSH([ICMDS])dnl -$1 -AC_DIVERT_POP()])]) +[m4_append([_AC_OUTPUT_COMMANDS_INIT], [$1 +])])]) + +# Initialize. +define([_AC_OUTPUT_COMMANDS_INIT]) # AC_CONFIG_COMMANDS(NAME...,[COMMANDS], [INIT-CMDS]) @@ -3755,14 +3752,14 @@ EOF ])[]dnl ifval dnl We output the INIT-CMDS first for obvious reasons :) - -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <>$CONFIG_STATUS <>$CONFIG_STATUS <