From 13a7132d84b68074cad291bd03f99d1b582dc77c Mon Sep 17 00:00:00 2001
From: Tom Tromey <[EMAIL REDACTED]>
Date: Fri, 16 Jul 1999 23:57:26 +0000
Subject: [PATCH] * autoheader.sh: Be more stringent when looking to see
if symbol is in a template file.
---
ChangeLog | 5 +++++
autoheader.sh | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4a219c65..66d2e397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-16 Tom Tromey <tromey@cygnus.com>
+
+ * autoheader.sh: Be more stringent when looking to see if symbol
+ is in a template file.
+
1999-07-15 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* acspecific.m4 (AC_F77_LIBRARY_LDFLAGS): New implementation, to
diff --git a/autoheader.sh b/autoheader.sh
index 67f642fb..d46266ab 100644
--- a/autoheader.sh
+++ b/autoheader.sh
@@ -1,6 +1,6 @@
#! @SHELL@
# autoheader -- create `config.h.in' from `configure.in'
-# Copyright (C) 1992, 1993, 1994, 1996, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1996, 1998, 1999 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -267,7 +267,7 @@ status=0
if test -n "$syms"; then
for sym in $syms; do
- if fgrep $sym $TEMPLATES >/dev/null; then
+ if grep "^#[a-z]*[ ]$sym\\>" $TEMPLATES >/dev/null; then
: # All is well.
else
echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2