m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
+2004-12-17 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
+ m4_pattern_allow.
+ Suggested by Alexandre Duret-Lutz.
+ * doc/autoconf.texi (Setting Output Variables): Catch up.
+
2004-12-17 Stepan Kasal <kasal@ucw.cz>
* lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
+* Major changes in Autoconf 2.59c
+
* Major changes in Autoconf 2.59b
Released 2004-08-20, by Paul Eggert.
newlines.)
If @var{value} is given, in addition assign it to @var{variable}.
+
+The string @var{variable} is passed to @code{m4_pattern_allow}
+(@pxref{Forbidden Patterns}).
@end defmac
@defmac AC_SUBST_FILE (@var{variable})
could contain:
@example
-AC_SUBST_FILE(host_frag)
+AC_SUBST_FILE([host_frag])
host_frag=$srcdir/conf/sun4.mh
@end example
@example
@@host_frag@@
@end example
+
+The string @var{variable} is passed to @code{m4_pattern_allow}
+(@pxref{Forbidden Patterns}).
@end defmac
@cindex Previous Variable
# Beware that if you change this macro, you also have to change the
# sed script at the top of _AC_OUTPUT_FILES.
m4_define([AC_SUBST],
-[m4_ifvaln([$2], [$1=$2])[]dnl
+[m4_pattern_allow([^$1$])dnl
+m4_ifvaln([$2], [$1=$2])[]dnl
m4_append_uniq([_AC_SUBST_VARS], [$1], [ ])dnl
])# AC_SUBST
# -----------------------
# Read the comments of the preceding macro.
m4_define([AC_SUBST_FILE],
-[m4_append_uniq([_AC_SUBST_FILES], [$1], [ ])])
+[m4_pattern_allow([^$1$])dnl
+m4_append_uniq([_AC_SUBST_FILES], [$1], [ ])])