You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-devel/automake/files/automake-1.9.6-ignore-comme...

30 lines
618 B

http://bugs.gentoo.org/126388
2006-03-16 Mike Frysinger <vapier@gentoo.org>
* aclocal.in (scan_configure_dep): Ignore ## lines.
(scan_file): Remove dnl and # comments.
--- a/aclocal.in
+++ b/aclocal.in
@@ -227,6 +227,8 @@
foreach (split ("\n", $contents))
{
++$line;
+ # Ignore `##' lines.
+ next if /^##/;
# Remove comments from current line.
s/\bdnl\b.*$//;
s/\#.*$//;
@@ -311,6 +313,10 @@
$contents .= $_;
+ # Remove comments from current line.
+ s/\bdnl\b.*$//;
+ s/\#.*$//;
+
while (/$ac_defun_rx/go)
{
if (! defined $1)