]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): When there were no
authorAkim Demaille <akim@epita.fr>
Tue, 14 Mar 2000 08:27:19 +0000 (08:27 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 14 Mar 2000 08:27:19 +0000 (08:27 +0000)
CONFIG_FILES, we had to expand _AC_OUTPUT_FILES into the KILL
diversion, because it is AC_OUTPUT_FILES which undiverted the
AC_SUBST sed script at its proper place, otherwise it would have
been undiverted at the end of `configure', leading to an sh syntax
error.
Now that we no longer use a diversion, we don't need to call
AC_OUTPUT_FILES if useless.
(AC_OUTPUT_FILES): Rename as _AC_OUTPUT_FILES.
(AC_OUTPUT_LINKS): Rename as _AC_OUTPUT_LINKS.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 308a5bd833b102562a14bdbffbc8ca011ee0f617..0cb6e377e725d3db5fbbc9334703e4e6b1de87e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2000-03-14  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): When there were no
+       CONFIG_FILES, we had to expand _AC_OUTPUT_FILES into the KILL
+       diversion, because it is AC_OUTPUT_FILES which undiverted the
+       AC_SUBST sed script at its proper place, otherwise it would have
+       been undiverted at the end of `configure', leading to an sh syntax
+       error.
+       Now that we no longer use a diversion, we don't need to call
+       AC_OUTPUT_FILES if useless.
+       (AC_OUTPUT_FILES): Rename as _AC_OUTPUT_FILES.
+       (AC_OUTPUT_LINKS): Rename as _AC_OUTPUT_LINKS.
+
 2000-03-14  Akim Demaille  <akim@epita.fr>
 
        AC_ARG_PROGRAM must not be expanded twice, which is likely since
index d7b3e0fc0ae7e1b44d3b32985f4e677056cb335b..13dd7f76a48d6503dc1485ee42163d18fb2f6cd6 100644 (file)
@@ -1847,7 +1847,7 @@ define([_AC_SUBST_SED_PROGRAM])
 # empty value, not an empty second argument.
 #
 # Beware that if you change this macro, you also have to change the
-# sed script at the top of AC_OUTPUT_FILES.
+# sed script at the top of _AC_OUTPUT_FILES.
 define([AC_SUBST],
 [ifval([$2], [$1=$2
 ])[]dnl
@@ -3782,23 +3782,12 @@ _AC_OUTPUT_COMMANDS_INIT()
 EOF])
 
 
-dnl The following three sections are in charge of their own here
+dnl The following four sections are in charge of their own here
 dnl documenting into $CONFIG_STATUS.
-
-dnl Because AC_OUTPUT_FILES is in charge of undiverting the AC_SUBST
-dnl section, it is better to divert it to void and *call it*, rather
-dnl than not calling it at all
-ifset([AC_LIST_FILES],
-      [AC_OUTPUT_FILES()],
-      [AC_DIVERT_PUSH([KILL])dnl
-       AC_OUTPUT_FILES()dnl
-       AC_DIVERT_POP()])dnl
-ifset([AC_LIST_HEADERS],
-      [_AC_OUTPUT_HEADERS()])dnl
-ifset([AC_LIST_LINKS],
-      [AC_OUTPUT_LINKS()])dnl
-ifset([AC_LIST_COMMANDS],
-      [_AC_OUTPUT_COMMANDS()])dnl
+ifset([AC_LIST_FILES],    [_AC_OUTPUT_FILES()])dnl
+ifset([AC_LIST_HEADERS],  [_AC_OUTPUT_HEADERS()])dnl
+ifset([AC_LIST_LINKS],    [_AC_OUTPUT_LINKS()])dnl
+ifset([AC_LIST_COMMANDS], [_AC_OUTPUT_COMMANDS()])dnl
 
 cat >>$CONFIG_STATUS <<\EOF
 
@@ -3844,14 +3833,14 @@ rm -f conftest.defs
 ]])# AC_OUTPUT_MAKE_DEFS
 
 
-# AC_OUTPUT_FILES
-# ---------------
+# _AC_OUTPUT_FILES
+# ----------------
 # Do the variable substitutions to create the Makefiles or whatever.
 # This is a subroutine of AC_OUTPUT.
 #
 # It has to send itself into $CONFIG_STATUS (eg, via here documents).
 # Upon exit, no here document shall be opened.
-define(AC_OUTPUT_FILES,
+define(_AC_OUTPUT_FILES,
 [cat >>$CONFIG_STATUS <<EOF
 
 #
@@ -4019,7 +4008,7 @@ AC_LIST_FILES_COMMANDS()dnl
 fi; done
 rm -f $ac_cs_root.s*
 EOF
-])# AC_OUTPUT_FILES
+])# _AC_OUTPUT_FILES
 
 
 # _AC_OUTPUT_HEADERS
@@ -4059,7 +4048,7 @@ EOF
 # Optimization 4.  Once a substitution performed, since there can be
 # only one per line, immediately restart the script on the next input
 # line (using the `t' sed instruction).  Divides by about 2.
-# *Note:* In the case of the AC_SUBST sed script (AC_OUTPUT_FILES)
+# *Note:* In the case of the AC_SUBST sed script (_AC_OUTPUT_FILES)
 # this optimization cannot be applied as is, because there can be
 # several substitutions per line.
 #
@@ -4241,13 +4230,13 @@ EOF
 ])# _AC_OUTPUT_HEADERS
 
 
-# AC_OUTPUT_LINKS
-# ---------------
+# _AC_OUTPUT_LINKS
+# ----------------
 # This is a subroutine of AC_OUTPUT.
 #
 # It has to send itself into $CONFIG_STATUS (eg, via here documents).
 # Upon exit, no here document shall be opened.
-define(AC_OUTPUT_LINKS,
+define(_AC_OUTPUT_LINKS,
 [cat >>$CONFIG_STATUS <<\EOF
 
 #
@@ -4303,7 +4292,7 @@ AC_LIST_LINKS_COMMANDS()dnl
 ])dnl
 fi; done
 EOF
-])# AC_OUTPUT_LINKS
+])# _AC_OUTPUT_LINKS
 
 
 # _AC_OUTPUT_COMMANDS
index d7b3e0fc0ae7e1b44d3b32985f4e677056cb335b..13dd7f76a48d6503dc1485ee42163d18fb2f6cd6 100644 (file)
@@ -1847,7 +1847,7 @@ define([_AC_SUBST_SED_PROGRAM])
 # empty value, not an empty second argument.
 #
 # Beware that if you change this macro, you also have to change the
-# sed script at the top of AC_OUTPUT_FILES.
+# sed script at the top of _AC_OUTPUT_FILES.
 define([AC_SUBST],
 [ifval([$2], [$1=$2
 ])[]dnl
@@ -3782,23 +3782,12 @@ _AC_OUTPUT_COMMANDS_INIT()
 EOF])
 
 
-dnl The following three sections are in charge of their own here
+dnl The following four sections are in charge of their own here
 dnl documenting into $CONFIG_STATUS.
-
-dnl Because AC_OUTPUT_FILES is in charge of undiverting the AC_SUBST
-dnl section, it is better to divert it to void and *call it*, rather
-dnl than not calling it at all
-ifset([AC_LIST_FILES],
-      [AC_OUTPUT_FILES()],
-      [AC_DIVERT_PUSH([KILL])dnl
-       AC_OUTPUT_FILES()dnl
-       AC_DIVERT_POP()])dnl
-ifset([AC_LIST_HEADERS],
-      [_AC_OUTPUT_HEADERS()])dnl
-ifset([AC_LIST_LINKS],
-      [AC_OUTPUT_LINKS()])dnl
-ifset([AC_LIST_COMMANDS],
-      [_AC_OUTPUT_COMMANDS()])dnl
+ifset([AC_LIST_FILES],    [_AC_OUTPUT_FILES()])dnl
+ifset([AC_LIST_HEADERS],  [_AC_OUTPUT_HEADERS()])dnl
+ifset([AC_LIST_LINKS],    [_AC_OUTPUT_LINKS()])dnl
+ifset([AC_LIST_COMMANDS], [_AC_OUTPUT_COMMANDS()])dnl
 
 cat >>$CONFIG_STATUS <<\EOF
 
@@ -3844,14 +3833,14 @@ rm -f conftest.defs
 ]])# AC_OUTPUT_MAKE_DEFS
 
 
-# AC_OUTPUT_FILES
-# ---------------
+# _AC_OUTPUT_FILES
+# ----------------
 # Do the variable substitutions to create the Makefiles or whatever.
 # This is a subroutine of AC_OUTPUT.
 #
 # It has to send itself into $CONFIG_STATUS (eg, via here documents).
 # Upon exit, no here document shall be opened.
-define(AC_OUTPUT_FILES,
+define(_AC_OUTPUT_FILES,
 [cat >>$CONFIG_STATUS <<EOF
 
 #
@@ -4019,7 +4008,7 @@ AC_LIST_FILES_COMMANDS()dnl
 fi; done
 rm -f $ac_cs_root.s*
 EOF
-])# AC_OUTPUT_FILES
+])# _AC_OUTPUT_FILES
 
 
 # _AC_OUTPUT_HEADERS
@@ -4059,7 +4048,7 @@ EOF
 # Optimization 4.  Once a substitution performed, since there can be
 # only one per line, immediately restart the script on the next input
 # line (using the `t' sed instruction).  Divides by about 2.
-# *Note:* In the case of the AC_SUBST sed script (AC_OUTPUT_FILES)
+# *Note:* In the case of the AC_SUBST sed script (_AC_OUTPUT_FILES)
 # this optimization cannot be applied as is, because there can be
 # several substitutions per line.
 #
@@ -4241,13 +4230,13 @@ EOF
 ])# _AC_OUTPUT_HEADERS
 
 
-# AC_OUTPUT_LINKS
-# ---------------
+# _AC_OUTPUT_LINKS
+# ----------------
 # This is a subroutine of AC_OUTPUT.
 #
 # It has to send itself into $CONFIG_STATUS (eg, via here documents).
 # Upon exit, no here document shall be opened.
-define(AC_OUTPUT_LINKS,
+define(_AC_OUTPUT_LINKS,
 [cat >>$CONFIG_STATUS <<\EOF
 
 #
@@ -4303,7 +4292,7 @@ AC_LIST_LINKS_COMMANDS()dnl
 ])dnl
 fi; done
 EOF
-])# AC_OUTPUT_LINKS
+])# _AC_OUTPUT_LINKS
 
 
 # _AC_OUTPUT_COMMANDS