summaryrefslogtreecommitdiff
blob: da3f288d739ec873ee59af7d89485164fc57a0f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)