Slim down autogen a little
[lxde/lxde-common.git] / autogen.sh
1 #! /bin/sh
2 AC_VERSION=
3
4 AUTOMAKE=${AUTOMAKE:-automake}
5 AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
6
7 if [ "$AM_INSTALLED_VERSION" != "1.10" \
8 -a "$AM_INSTALLED_VERSION" != "1.11" ];then
9 echo
10 echo "You must have automake > 1.10 or 1.11 installed to compile lxde-common."
11 echo "Install the appropriate package for your distribution,"
12 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
13 exit 1
14 fi
15
16 set -x
17
18 if [ "x${ACLOCAL_DIR}" != "x" ]; then
19 ACLOCAL_ARG=-I ${ACLOCAL_DIR}
20 fi
21
22 ${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
23 $AUTOMAKE --add-missing --copy --include-deps
24 ${AUTOCONF:-autoconf$AC_VERSION}
25
26 # mkinstalldirs was not correctly installed in some cases.
27 cp -f /usr/share/${AUTOMAKE}-*/mkinstalldirs .
28
29 rm -rf autom4te.cache