build: don't try to run autoheader if we don't use it
authorJim Meyering <meyering@redhat.com>
Tue, 8 Sep 2009 20:21:59 +0000 (22:21 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Sep 2009 20:22:39 +0000 (22:22 +0200)
* build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
is not used in configure.ac.

ChangeLog
build-aux/bootstrap

index 8cf27c034573f1f82a594de28f34d2acfed20569..5391614538219ec909e025a363f74d77b9c3e62c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-08  Jim Meyering  <meyering@redhat.com>
+
+       build: don't try to run autoheader if we don't use it
+       * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
+       is not used in configure.ac.
+
 2009-09-08  Eric Blake  <ebb9@byu.net>
 
        euidaccess: fix compilation error
index b6dce12ed71d88da5ab3f622148b491319da3fe1..8f14199959646ba998bf9d6f464c11143764acae 100755 (executable)
@@ -728,6 +728,10 @@ find "$m4_base" "$source_base" \
 
 # Reconfigure, getting other files.
 
+# Skip autoheader if it's not needed.
+grep '^[        ]*AC_CONFIG_HEADERS\>' configure.ac >/dev/null ||
+  AUTOHEADER=true
+
 for command in \
   libtool \
   "${ACLOCAL-aclocal} --force -I m4" \