$OpenBSD: patch-aclocal_in,v 1.1.1.1 2005/01/11 07:11:00 sturm Exp $
--- aclocal.in.orig	Thu Jul 25 12:51:42 2002
+++ aclocal.in	Wed Aug  7 11:10:20 2002
@@ -374,6 +374,10 @@ sub add_file
 	    push (@rlist, $1);
 	}
 
+	# Remove comments from current line.
+	s/\bdnl\b.*$//;
+	s/\#.*$//;
+
 	# This function constructed dynamically.
 	if (! &search && /(^|\s+)(AM_[A-Z0-9_]+)/)
 	{
