build: Fix autogen.sh for recent changes in configure.ac

Autogen.sh was grepping for the obsolete macro AM_CONFIG_HEADER, which
was replaced by AC_CONFIG_HEADERS in configure.ac. As a consequence it
was not calling autoheader, and then causing automake to fail if
config.h.in was not already present.
This commit is contained in:
Bertrand Lorentz 2013-09-08 17:10:50 +02:00
parent 0188d30f7f
commit 3af005a6de

View file

@ -87,7 +87,7 @@ aclocal $ACLOCAL_FLAGS || {
exit 1 exit 1
} }
if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
echo "Running autoheader..." echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; } autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi fi