From 6588bee3103aceaf840cb073ef5717d85d3e412a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Sep 2009 22:21:59 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ build-aux/bootstrap | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8cf27c034..539161453 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-08 Jim Meyering + + 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 euidaccess: fix compilation error diff --git a/build-aux/bootstrap b/build-aux/bootstrap index b6dce12ed..8f1419995 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -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" \ -- 2.11.0