freebsd-ports/devel/autoconf257/files/patch-bin-autoscan.in
Alan Eldridge ab2da640e4 1. Fixed bug in autoscan. Thanks to Joe Marcus Clarke <marcus@marcuscom.com>
who worked with me and beyond to track this down.
2. Support the emacs autoconf/autotest modes now, for both emacs21 and
xemacs21. Other (x)emacsen may work, depends on where they put things.
2002-09-16 10:28:33 +00:00

15 lines
366 B
Text

--- bin/autoscan.in.orig Fri Mar 8 06:52:41 2002
+++ bin/autoscan.in Mon Sep 16 03:56:50 2002
@@ -192,7 +192,11 @@
sub used ($$;$)
{
my ($kind, $word, $where) = @_;
- $where ||= "$File::Find::name:$.";
+ my $lineno = 0;
+ if (defined($.)) {
+ $lineno = $.;
+ }
+ $where ||= "$File::Find::name:$lineno";
push (@{$used{$kind}{$word}}, $where);
}