Fixes to the autogen.sh script

- Proper formatting and indenting
- Tell aclocal that we use m4/ as macro directory and the final dist
  tarball actually contains the m4/ directory.
- Run intltoolize before aclocal, so aclocal does not append intltool.m4
  to aclocal.m4

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
This commit is contained in:
Michael Biebl 2010-03-26 08:10:11 +01:00 committed by Martin Pitt
parent f435bf07ac
commit 42ecfd7bdc

View file

@ -1,6 +1,8 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
ACLOCAL_FLAGS="-I m4"
touch ChangeLog
srcdir=`dirname $0`
@ -73,26 +75,32 @@ xlc )
am_opt=--include-deps;;
esac
aclocalinclude="$ACLOCAL_FLAGS"
aclocalinclude="$ACLOCAL_FLAGS"
if grep "^LT_INIT" configure.ac >/dev/null; then
if grep "^LT_INIT" configure.ac >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
libtoolize --force --copy
fi
fi
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
fi
echo "Running intltoolize ..."
intltoolize --copy --force --automake
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader
fi
echo "Running automake --add-missing --gnu -Wno-portability $am_opt ..."
automake --add-missing --gnu -Wno-portability $am_opt
echo "Running autoconf ..."
autoconf
fi
echo "Running automake --add-missing --gnu -Wno-portability $am_opt ..."
automake --add-missing --gnu -Wno-portability $am_opt
echo "Running autoconf ..."
autoconf
intltoolize --copy --force --automake || exit 1
conf_flags="--enable-maintainer-mode --enable-gtk-doc"