]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Avoid that autom4te complains about unexpanded macros.
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 7 Nov 2008 07:58:24 +0000 (08:58 +0100)
committerPaolo Bonzini <bonzini@gnu.org>
Tue, 11 Nov 2008 09:08:38 +0000 (10:08 +0100)
* libtoolize.m4sh: Allow occurrences of "dnl" and use quadrigraphs
to protect other m4 macros.

ChangeLog
libtoolize.m4sh

index 1abce44e01e43316338980734206b7aaead1ed6b..c99a0da051d1c22869358af668810d6ac9bdb620 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-10  Paolo Bonzini  <bonzini@gnu.org>
+
+       Avoid that autom4te complains about unexpanded macros.
+       * libtoolize.m4sh: Allow occurrences of "dnl" and use quadrigraphs
+       to protect other m4 macros.
+
 2008-11-11  Bruno Haible  <bruno@clisp.org>
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
index f74cd7c13757322fb5af6e9a00ba2c77bf2bad40..456b4cfe0508044ca7b3a207a01df093f4524f56 100644 (file)
@@ -1,5 +1,7 @@
+m4_pattern_allow([dnl])
 m4_define([_m4_divert(SCRIPT)], 100)
-m4_divert_push([SCRIPT])#! /bin/sh
+m4_divert_push([SCRIPT])dnl
+#! /bin/sh
 # @configure_input@
 
 # libtoolize (GNU @PACKAGE@@TIMESTAMP@) @VERSION@
@@ -478,8 +480,9 @@ func_scan_files ()
     # ---------------------------------------------------- #
 
     my_sed_traces='s,#.*$,,; s,^dnl .*$,,; s, dnl .*$,,
-        s,^.*AC_REQUIRE(.*$,,; s,^.*m4_require(.*$,,; s,^.*m4_define(.*$,,
-       s,^.*A[CU]_DEFUN(.*$,,; s,^.*m4_defun(.*$,,
+        s,^.*AC_REQUIRE(.*$,,; s,^.*m4@&t@_require(.*$,,;
+       s,^.*m4@&t@_define(.*$,,
+       s,^.*A[CU]_DEFUN(.*$,,; s,^.*m4@&t@_defun(.*$,,
        /AC_CONFIG_AUX_DIR(/ {
            s,^.*AC_CONFIG_AUX_DIR([[   ]*\([^])]*\).*$,ac_auxdir=\1,
            p
@@ -670,8 +673,8 @@ func_included_files ()
 
     my_include_regex=
     my_sed_include='
-        /^m4_include(\[.*\])$/ {
-           s,^m4_include(\[\(.*\)\])$,\1,
+        /^m4@&t@_include(\[.*\])$/ {
+           s,^m4@&t@_include(\[\(.*\)\])$,\1,
            p
        }
         d'