bootstrap: generalize autoheader check
authorJim Meyering <meyering@redhat.com>
Thu, 12 Nov 2009 08:42:52 +0000 (09:42 +0100)
committerIan Beckwith <ianb@erislabs.net>
Sun, 15 Nov 2009 02:53:33 +0000 (02:53 +0000)
* build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
AC_CONFIG_HEADERS.
(cherry picked from commit 7127847e1d16e94fec7422e637debeed24092c0f)

ChangeLog
build-aux/bootstrap

index fbfa1e4..1872251 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-12  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: generalize autoheader check
+       * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
+       AC_CONFIG_HEADERS.
+
 2009-11-11  Eric Blake  <ebb9@byu.net>
 
        readlink: detect FreeBSD bug
index 8f14199..48cc10e 100755 (executable)
@@ -729,7 +729,7 @@ find "$m4_base" "$source_base" \
 # Reconfigure, getting other files.
 
 # Skip autoheader if it's not needed.
-grep '^[        ]*AC_CONFIG_HEADERS\>' configure.ac >/dev/null ||
+grep -E '^[     ]*AC_CONFIG_HEADERS?\>' configure.ac >/dev/null ||
   AUTOHEADER=true
 
 for command in \