From: Paolo Bonzini Date: Fri, 7 Nov 2008 07:58:24 +0000 (+0100) Subject: Avoid that autom4te complains about unexpanded macros. X-Git-Tag: v2.2.7b~187 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5ba92ad9c707d003caed0eaa9f697a10a01daba;p=thirdparty%2Flibtool.git Avoid that autom4te complains about unexpanded macros. * libtoolize.m4sh: Allow occurrences of "dnl" and use quadrigraphs to protect other m4 macros. --- diff --git a/ChangeLog b/ChangeLog index 1abce44e0..c99a0da05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-10 Paolo Bonzini + + 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 Ralf Wildenhues diff --git a/libtoolize.m4sh b/libtoolize.m4sh index f74cd7c13..456b4cfe0 100644 --- a/libtoolize.m4sh +++ b/libtoolize.m4sh @@ -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'