changeset 11978:e14497f7747c

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.
author Jim Meyering <meyering@redhat.com>
date Tue, 08 Sep 2009 22:21:59 +0200
parents 4f551695bc4c
children 4dab439a2737
files ChangeLog build-aux/bootstrap
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -728,6 +728,10 @@
 
 # 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" \