From: Pavel Roskin Date: Fri, 6 Oct 2000 22:49:14 +0000 (+0000) Subject: * aclocal.in (add_file): Strip comments while scanning for X-Git-Tag: Release-1-4b~45 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=fdc84b36e9d4fb76165d546ddcf97a8d5617e9ce;p=automake.git * aclocal.in (add_file): Strip comments while scanning for macro dependencies. --- diff --git a/ChangeLog b/ChangeLog index 24d5cbe5..ddcb7faf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-10-06 Alexandre Duret-Lutz + + * aclocal.in (add_file): Strip comments while scanning for + macro dependencies. + 2000-09-15 Alexandre Duret-Lutz * automake.in (initialize_global_constants): End the diff --git a/aclocal.in b/aclocal.in index 2d5cce1c..5fc838a5 100644 --- a/aclocal.in +++ b/aclocal.in @@ -362,7 +362,11 @@ sub add_file push (@rlist, $1); } - # This function constructed dynamically. + # Remove comments from current line. + s/\bdnl\b.*$//; + s/\#.*$//; + + # The search function is constructed dynamically by scan_m4_files. if (! &search && /(^|\s+)(AM_[A-Z_]+)/) { # Macro not found, but AM_ prefix found.