From 92ddee8c24517ef761483356243096ab27c926c4 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 28 Feb 2016 16:21:05 +0900 Subject: [PATCH] add missing file --- autogen.sh | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 autogen.sh diff --git a/autogen.sh b/autogen.sh new file mode 100644 index 0000000..d76828b --- /dev/null +++ b/autogen.sh @@ -0,0 +1,55 @@ +#! /bin/sh +AC_VERSION= + +test -n "$SRC_DIR" || SRC_DIR=$(dirname "$0") +test -n "$SRC_DIR" || SRC_DIR=. + +OLD_DIR=$(pwd) +cd "$SRC_DIR" + +AUTOMAKE=${AUTOMAKE:-automake} +AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/') + +# FIXME: we need a better way for version check later. +case "$AM_INSTALLED_VERSION" in + 1.1[1-9]) + ;; + *) + echo + echo "You must have automake >= 1.11 installed." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" + exit 1 + ;; +esac + + +if [ "x${ACLOCAL_DIR}" != "x" ]; then + ACLOCAL_ARG=-I ${ACLOCAL_DIR} +fi + +GTKDOCIZE=`which gtkdocize` + +if test "x${GTKDOCIZE}" = x; then + echo "You need gtk-doc to build this package." + echo "http://www.gtk.org/gtk-doc/" + exit 1 +fi + +set -ex + +gtkdocize --copy +${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG} +${AUTOHEADER:-autoheader$AC_VERSION} --force +AUTOMAKE=$AUTOMAKE libtoolize -c --automake --force +AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force +$AUTOMAKE --add-missing --copy --include-deps +${AUTOCONF:-autoconf$AC_VERSION} + +rm -rf autom4te.cache + +if test -n "$DOCONFIGURE"; then + ./configure $@ +fi + +cd "$OLD_DIR"